Skip to content

Instantly share code, notes, and snippets.

@AlexMost
Created June 28, 2018 15:01
Show Gist options
  • Save AlexMost/c603932b4797cf7ca2462303a0f54805 to your computer and use it in GitHub Desktop.
Save AlexMost/c603932b4797cf7ca2462303a0f54805 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
> webpack-inspect@0.0.2 build /Users/alexandermostovenko/git/webpack-deps-inspect
> webpack --mode development "--profile" "--json"
Skipping static resource "/Users/alexandermostovenko/git/webpack-deps-inspect/dist/ModulesGraph.608555813bb86bd0463f.js" (4.89 MB) - max size is 2.1 MB
Skipping static resource "/Users/alexandermostovenko/git/webpack-deps-inspect/dist/main.d291962e3b23afd704a1.js" (3.66 MB) - max size is 2.1 MB
Total precache size is about 1.27 MB for 7 resources.
{
"errors": [],
"warnings": [],
"version": "4.12.0",
"hash": "2907f90081fc82a88403",
"time": 5198,
"builtAt": 1530198003645,
"publicPath": "",
"outputPath": "/Users/alexandermostovenko/git/webpack-deps-inspect/dist",
"assetsByChunkName": {
"InspectorPage": "InspectorPage.5983193436248a50b214.js",
"ModulesGraph": "ModulesGraph.608555813bb86bd0463f.js",
"UploadPage": "UploadPage.121c2e150cabfcc46ff2.js",
"main": "main.d291962e3b23afd704a1.js",
"runtime": "runtime.c1f5adccd4289c66f164.js",
"vendors": "vendors.f059c97b9fc462539332.js"
},
"assets": [
{
"name": "InspectorPage.5983193436248a50b214.js",
"size": 421898,
"chunks": [
"InspectorPage"
],
"chunkNames": [
"InspectorPage"
],
"emitted": true
},
{
"name": "ModulesGraph.608555813bb86bd0463f.js",
"size": 4894323,
"chunks": [
"ModulesGraph"
],
"chunkNames": [
"ModulesGraph"
],
"emitted": true
},
{
"name": "UploadPage.121c2e150cabfcc46ff2.js",
"size": 76002,
"chunks": [
"UploadPage"
],
"chunkNames": [
"UploadPage"
],
"emitted": true
},
{
"name": "main.d291962e3b23afd704a1.js",
"size": 3664364,
"chunks": [
"main"
],
"chunkNames": [
"main"
],
"emitted": true
},
{
"name": "runtime.c1f5adccd4289c66f164.js",
"size": 23549,
"chunks": [
"runtime"
],
"chunkNames": [
"runtime"
],
"emitted": true
},
{
"name": "vendors.f059c97b9fc462539332.js",
"size": 746251,
"chunks": [
"vendors"
],
"chunkNames": [
"vendors"
],
"emitted": true
},
{
"name": "index.html",
"size": 283,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "favicon.ico",
"size": 1150,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "CNAME",
"size": 22,
"chunks": [],
"chunkNames": [],
"emitted": true
}
],
"filteredAssets": 0,
"entrypoints": {
"main": {
"chunks": [
"runtime",
"main"
],
"assets": [
"runtime.c1f5adccd4289c66f164.js",
"main.d291962e3b23afd704a1.js"
],
"children": {
"prefetch": [
{
"name": "InspectorPage",
"chunks": [
"vendors",
"InspectorPage"
],
"assets": [
"vendors.f059c97b9fc462539332.js",
"InspectorPage.5983193436248a50b214.js"
]
}
]
},
"childAssets": {
"prefetch": [
"vendors.f059c97b9fc462539332.js",
"InspectorPage.5983193436248a50b214.js"
]
}
}
},
"namedChunkGroups": {
"main": {
"chunks": [
"runtime",
"main"
],
"assets": [
"runtime.c1f5adccd4289c66f164.js",
"main.d291962e3b23afd704a1.js"
],
"children": {
"prefetch": [
{
"name": "InspectorPage",
"chunks": [
"vendors",
"InspectorPage"
],
"assets": [
"vendors.f059c97b9fc462539332.js",
"InspectorPage.5983193436248a50b214.js"
]
}
]
},
"childAssets": {
"prefetch": [
"vendors.f059c97b9fc462539332.js",
"InspectorPage.5983193436248a50b214.js"
]
}
},
"UploadPage": {
"chunks": [
"vendors",
"UploadPage"
],
"assets": [
"vendors.f059c97b9fc462539332.js",
"UploadPage.121c2e150cabfcc46ff2.js"
],
"children": {},
"childAssets": {}
},
"InspectorPage": {
"chunks": [
"vendors",
"InspectorPage"
],
"assets": [
"vendors.f059c97b9fc462539332.js",
"InspectorPage.5983193436248a50b214.js"
],
"children": {
"prefetch": [
{
"name": "ModulesGraph",
"chunks": [
"ModulesGraph"
],
"assets": [
"ModulesGraph.608555813bb86bd0463f.js"
]
}
]
},
"childAssets": {
"prefetch": [
"ModulesGraph.608555813bb86bd0463f.js"
]
}
},
"ModulesGraph": {
"chunks": [
"ModulesGraph"
],
"assets": [
"ModulesGraph.608555813bb86bd0463f.js"
],
"children": {},
"childAssets": {}
}
},
"chunks": [
{
"id": "InspectorPage",
"rendered": true,
"initial": false,
"entry": false,
"size": 145275,
"names": [
"InspectorPage"
],
"files": [
"InspectorPage.5983193436248a50b214.js"
],
"hash": "5983193436248a50b214",
"siblings": [
"vendors"
],
"parents": [
"main",
"runtime"
],
"children": [
"ModulesGraph"
],
"childrenByOrder": {
"prefetch": [
"ModulesGraph"
]
},
"modules": [
{
"id": "/DBP",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/autosuggest-highlight/match/index.js",
"name": "./node_modules/autosuggest-highlight/match/index.js",
"index": 266,
"index2": 261,
"size": 1462,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"issuerId": "izlm",
"issuerName": "./frontend/components/ModuleSearch.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony side effect evaluation",
"userRequest": "autosuggest-highlight/match",
"loc": "8:0-48"
},
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony import specifier",
"userRequest": "autosuggest-highlight/match",
"loc": "32:18-23"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "var removeDiacritics = require('diacritic').clean;\n\n// https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions#Using_special_characters\nvar specialCharsRegex = /[.*+?^${}()|[\\]\\\\]/g;\n\n// http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.6\nvar wordCharacterRegex = /[a-z0-9_]/i;\n\nvar whitespacesRegex = /\\s+/;\n\nfunction escapeRegexCharacters(str) {\n return str.replace(specialCharsRegex, '\\\\$&');\n}\n\nmodule.exports = function match(text, query) {\n text = removeDiacritics(text);\n query = removeDiacritics(query);\n\n return (\n query\n .trim()\n .split(whitespacesRegex)\n // If query is blank, we'll get empty string here, so let's filter it out.\n .filter(function(word) {\n return word.length > 0;\n })\n .reduce(function(result, word) {\n var wordLen = word.length;\n var prefix = wordCharacterRegex.test(word[0]) ? '\\\\b' : '';\n var regex = new RegExp(prefix + escapeRegexCharacters(word), 'i');\n var index = text.search(regex);\n\n if (index > -1) {\n result.push([index, index + wordLen]);\n\n // Replace what we just found with spaces so we don't find it again.\n text =\n text.slice(0, index) +\n new Array(wordLen + 1).join(' ') +\n text.slice(index + wordLen);\n }\n\n return result;\n }, [])\n .sort(function(match1, match2) {\n return match1[0] - match2[0];\n })\n );\n};\n"
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"index": 253,
"index2": 259,
"size": 65,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"issuerId": "izlm",
"issuerName": "./frontend/components/ModuleSearch.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony side effect evaluation",
"userRequest": "react-autosuggest",
"loc": "7:0-44"
},
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony import specifier",
"userRequest": "react-autosuggest",
"loc": "123:31-42"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "'use strict';\n\nmodule.exports = require('./Autosuggest').default;"
},
{
"id": "24wR",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/autosuggest-highlight/parse/index.js",
"name": "./node_modules/autosuggest-highlight/parse/index.js",
"index": 268,
"index2": 262,
"size": 893,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"issuerId": "izlm",
"issuerName": "./frontend/components/ModuleSearch.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony side effect evaluation",
"userRequest": "autosuggest-highlight/parse",
"loc": "9:0-48"
},
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony import specifier",
"userRequest": "autosuggest-highlight/parse",
"loc": "33:16-21"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "module.exports = function parse(text, matches) {\n var result = [];\n\n if (matches.length === 0) {\n result.push({\n text: text,\n highlight: false\n });\n } else {\n if (matches[0][0] > 0) {\n result.push({\n text: text.slice(0, matches[0][0]),\n highlight: false\n });\n }\n }\n\n matches.forEach(function(match, i) {\n var startIndex = match[0];\n var endIndex = match[1];\n\n result.push({\n text: text.slice(startIndex, endIndex),\n highlight: true\n });\n\n if (i === matches.length - 1) {\n if (endIndex < text.length) {\n result.push({\n text: text.slice(endIndex, text.length),\n highlight: false\n });\n }\n } else if (endIndex < matches[i + 1][0]) {\n result.push({\n text: text.slice(endIndex, matches[i + 1][0]),\n highlight: false\n });\n }\n });\n\n return result;\n};\n"
},
{
"id": "2VVu",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Toolbar/index.js",
"name": "./node_modules/@material-ui/core/Toolbar/index.js",
"index": 246,
"index2": 242,
"size": 361,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/Toolbar",
"loc": "8:0-48"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/Toolbar",
"loc": "36:12-19"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 5,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _Toolbar.default;\n }\n});\n\nvar _Toolbar = _interopRequireDefault(require(\"./Toolbar\"));"
},
{
"id": "3JpL",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-themeable/dist/index.js",
"name": "./node_modules/react-themeable/dist/index.js",
"index": 259,
"index2": 250,
"size": 2072,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerId": "cRPI",
"issuerName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
}
],
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "cRPI",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"module": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"moduleName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"type": "cjs require",
"userRequest": "react-themeable",
"loc": "25:22-48"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 10,
"source": "'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }\n\nvar _objectAssign = require('object-assign');\n\nvar _objectAssign2 = _interopRequireDefault(_objectAssign);\n\nvar truthy = function truthy(x) {\n return x;\n};\n\nexports['default'] = function (input) {\n var _ref = Array.isArray(input) && input.length === 2 ? input : [input, null];\n\n var _ref2 = _slicedToArray(_ref, 2);\n\n var theme = _ref2[0];\n var classNameDecorator = _ref2[1];\n\n return function (key) {\n for (var _len = arguments.length, names = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n names[_key - 1] = arguments[_key];\n }\n\n var styles = names.map(function (name) {\n return theme[name];\n }).filter(truthy);\n\n return typeof styles[0] === 'string' || typeof classNameDecorator === 'function' ? { key: key, className: classNameDecorator ? classNameDecorator.apply(undefined, _toConsumableArray(styles)) : styles.join(' ') } : { key: key, style: _objectAssign2['default'].apply(undefined, [{}].concat(_toConsumableArray(styles))) };\n };\n};\n\nmodule.exports = exports['default'];"
},
{
"id": "4eE1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItemText/index.js",
"name": "./node_modules/@material-ui/core/ListItemText/index.js",
"index": 390,
"index2": 384,
"size": 376,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"issuerId": "Yn2G",
"issuerName": "./frontend/components/Sidebar/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
}
],
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/ListItemText",
"loc": "6:0-58"
},
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/ListItemText",
"loc": "37:12-24"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ListItemText.default;\n }\n});\n\nvar _ListItemText = _interopRequireDefault(require(\"./ListItemText\"));"
},
{
"id": "4yO7",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/theme.js",
"name": "./node_modules/react-autosuggest/dist/theme.js",
"index": 265,
"index2": 257,
"size": 1735,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerId": "Cg+p",
"issuerName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
}
],
"profile": {
"factory": 940,
"building": 54
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Cg+p",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"module": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"moduleName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"type": "cjs require",
"userRequest": "./theme",
"loc": "27:13-31"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar defaultTheme = exports.defaultTheme = {\n container: 'react-autosuggest__container',\n containerOpen: 'react-autosuggest__container--open',\n input: 'react-autosuggest__input',\n inputOpen: 'react-autosuggest__input--open',\n inputFocused: 'react-autosuggest__input--focused',\n suggestionsContainer: 'react-autosuggest__suggestions-container',\n suggestionsContainerOpen: 'react-autosuggest__suggestions-container--open',\n suggestionsList: 'react-autosuggest__suggestions-list',\n suggestion: 'react-autosuggest__suggestion',\n suggestionFirst: 'react-autosuggest__suggestion--first',\n suggestionHighlighted: 'react-autosuggest__suggestion--highlighted',\n sectionContainer: 'react-autosuggest__section-container',\n sectionContainerFirst: 'react-autosuggest__section-container--first',\n sectionTitle: 'react-autosuggest__section-title'\n};\n\nvar mapToAutowhateverTheme = exports.mapToAutowhateverTheme = function mapToAutowhateverTheme(theme) {\n var result = {};\n\n for (var key in theme) {\n switch (key) {\n case 'suggestionsContainer':\n result['itemsContainer'] = theme[key];\n break;\n\n case 'suggestionsContainerOpen':\n result['itemsContainerOpen'] = theme[key];\n break;\n\n case 'suggestion':\n result['item'] = theme[key];\n break;\n\n case 'suggestionFirst':\n result['itemFirst'] = theme[key];\n break;\n\n case 'suggestionHighlighted':\n result['itemHighlighted'] = theme[key];\n break;\n\n case 'suggestionsList':\n result['itemsList'] = theme[key];\n break;\n\n default:\n result[key] = theme[key];\n }\n }\n\n return result;\n};"
},
{
"id": "6LVJ",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/index.js",
"name": "./frontend/components/ModulesGraph/index.js",
"index": 248,
"index2": 246,
"size": 771,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "../../components/ModulesGraph/index",
"loc": "11:0-67"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "../../components/ModulesGraph/index",
"loc": "52:30-42"
}
],
"providedExports": [
"ModulesGraph"
],
"optimizationBailout": [],
"depth": 5,
"source": "import React from \"react\";\nimport { StoreContext } from \"../../Store\";\nimport { asyncComponent } from \"react-async-component\";\n\nconst AsyncModulesGraphComponent = asyncComponent({\n resolve: () => import( /* webpackPrefetch: true, webpackChunkName: \"ModulesGraph\" */\"./component\")\n});\n\nexport const ModulesGraph = () => {\n return React.createElement(\n StoreContext.Consumer,\n null,\n ctx => {\n return ctx.moduleId !== null ? React.createElement(AsyncModulesGraphComponent, {\n modules: ctx.modules,\n moduleId: ctx.moduleId,\n selectedAsset: ctx.selectedAsset,\n clusterMap: ctx.clusterMap,\n onNodeClick: ctx.onSelectModule,\n onDrawStart: ctx.onDrawStart,\n onDrawEnd: ctx.onDrawEnd\n }) : null;\n }\n );\n};"
},
{
"id": "8sd6",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/styles.js",
"name": "./frontend/pages/Inspector/styles.js",
"index": 398,
"index2": 393,
"size": 1974,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "./styles",
"loc": "15:0-34"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "./styles",
"loc": "77:26-32"
}
],
"providedExports": [
"styles"
],
"optimizationBailout": [],
"depth": 5,
"source": "var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nconst drawerWidth = \"30vw\";\n\nexport const styles = theme => ({\n root: {\n flexGrow: 1\n },\n appFrame: {\n zIndex: 1,\n overflow: \"hidden\",\n position: \"relative\",\n display: \"flex\",\n width: \"100%\"\n },\n appBar: {\n position: \"absolute\",\n transition: theme.transitions.create([\"margin\", \"width\"], {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen\n })\n },\n appBarShift: {\n width: \"70vw\",\n transition: theme.transitions.create([\"margin\", \"width\"], {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen\n })\n },\n \"appBarShift-right\": {\n marginRight: drawerWidth\n },\n menuButton: {\n marginLeft: 12,\n marginRight: 20\n },\n hide: {\n display: \"none\"\n },\n drawerPaper: {\n position: \"relative\",\n width: drawerWidth,\n overflow: \"hidden\",\n height: \"100vh\"\n },\n drawerHeader: _extends({\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n padding: \"0 8px\"\n }, theme.mixins.toolbar),\n content: {\n flexGrow: 1,\n display: \"flex\",\n flexDirection: \"column\",\n backgroundColor: theme.palette.background.default,\n padding: theme.spacing.unit * 3,\n transition: theme.transitions.create(\"margin\", {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen\n })\n },\n \"content-right\": {\n marginRight: -drawerWidth\n },\n contentShift: {\n transition: theme.transitions.create(\"margin\", {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen\n })\n },\n \"contentShift-right\": {\n marginRight: 0\n }\n});"
},
{
"id": "A69X",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/section-iterator/dist/index.js",
"name": "./node_modules/section-iterator/dist/index.js",
"index": 258,
"index2": 248,
"size": 2890,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerId": "cRPI",
"issuerName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
}
],
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "cRPI",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"module": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"moduleName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"type": "cjs require",
"userRequest": "section-iterator",
"loc": "21:23-50"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 10,
"source": "\"use strict\";\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function (_ref) {\n var data = _ref.data;\n var multiSection = _ref.multiSection;\n\n function nextNonEmptySectionIndex(sectionIndex) {\n if (sectionIndex === null) {\n sectionIndex = 0;\n } else {\n sectionIndex++;\n }\n\n while (sectionIndex < data.length && data[sectionIndex] === 0) {\n sectionIndex++;\n }\n\n return sectionIndex === data.length ? null : sectionIndex;\n }\n\n function prevNonEmptySectionIndex(sectionIndex) {\n if (sectionIndex === null) {\n sectionIndex = data.length - 1;\n } else {\n sectionIndex--;\n }\n\n while (sectionIndex >= 0 && data[sectionIndex] === 0) {\n sectionIndex--;\n }\n\n return sectionIndex === -1 ? null : sectionIndex;\n }\n\n function next(position) {\n var _position = _slicedToArray(position, 2);\n\n var sectionIndex = _position[0];\n var itemIndex = _position[1];\n\n\n if (multiSection) {\n if (itemIndex === null || itemIndex === data[sectionIndex] - 1) {\n sectionIndex = nextNonEmptySectionIndex(sectionIndex);\n\n if (sectionIndex === null) {\n return [null, null];\n }\n\n return [sectionIndex, 0];\n }\n\n return [sectionIndex, itemIndex + 1];\n }\n\n if (data === 0 || itemIndex === data - 1) {\n return [null, null];\n }\n\n if (itemIndex === null) {\n return [null, 0];\n }\n\n return [null, itemIndex + 1];\n }\n\n function prev(position) {\n var _position2 = _slicedToArray(position, 2);\n\n var sectionIndex = _position2[0];\n var itemIndex = _position2[1];\n\n\n if (multiSection) {\n if (itemIndex === null || itemIndex === 0) {\n sectionIndex = prevNonEmptySectionIndex(sectionIndex);\n\n if (sectionIndex === null) {\n return [null, null];\n }\n\n return [sectionIndex, data[sectionIndex] - 1];\n }\n\n return [sectionIndex, itemIndex - 1];\n }\n\n if (data === 0 || itemIndex === 0) {\n return [null, null];\n }\n\n if (itemIndex === null) {\n return [null, data - 1];\n }\n\n return [null, itemIndex - 1];\n }\n\n function isLast(position) {\n return next(position)[1] === null;\n }\n\n return {\n next: next,\n prev: prev,\n isLast: isLast\n };\n};\n"
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"index": 254,
"index2": 258,
"size": 27217,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"issuerId": "1h/R",
"issuerName": "./node_modules/react-autosuggest/dist/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
}
],
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "1h/R",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"module": "./node_modules/react-autosuggest/dist/index.js",
"moduleName": "./node_modules/react-autosuggest/dist/index.js",
"type": "cjs require",
"userRequest": "./Autosuggest",
"loc": "3:17-41"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _arrays = require('shallow-equal/arrays');\n\nvar _arrays2 = _interopRequireDefault(_arrays);\n\nvar _reactAutowhatever = require('react-autowhatever');\n\nvar _reactAutowhatever2 = _interopRequireDefault(_reactAutowhatever);\n\nvar _theme = require('./theme');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar alwaysTrue = function alwaysTrue() {\n return true;\n};\nvar defaultShouldRenderSuggestions = function defaultShouldRenderSuggestions(value) {\n return value.trim().length > 0;\n};\nvar defaultRenderSuggestionsContainer = function defaultRenderSuggestionsContainer(_ref) {\n var containerProps = _ref.containerProps,\n children = _ref.children;\n return _react2.default.createElement(\n 'div',\n containerProps,\n children\n );\n};\n\nvar Autosuggest = function (_Component) {\n _inherits(Autosuggest, _Component);\n\n function Autosuggest(_ref2) {\n var alwaysRenderSuggestions = _ref2.alwaysRenderSuggestions;\n\n _classCallCheck(this, Autosuggest);\n\n var _this = _possibleConstructorReturn(this, (Autosuggest.__proto__ || Object.getPrototypeOf(Autosuggest)).call(this));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n isFocused: false,\n isCollapsed: !alwaysRenderSuggestions,\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null\n };\n\n _this.justPressedUpDown = false;\n _this.justMouseEntered = false;\n return _this;\n }\n\n _createClass(Autosuggest, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n document.addEventListener('mousedown', this.onDocumentMouseDown);\n\n this.input = this.autowhatever.input;\n this.suggestionsContainer = this.autowhatever.itemsContainer;\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ((0, _arrays2.default)(nextProps.suggestions, this.props.suggestions)) {\n if (nextProps.highlightFirstSuggestion && nextProps.suggestions.length > 0 && this.justPressedUpDown === false && this.justMouseEntered === false) {\n this.highlightFirstSuggestion();\n }\n } else {\n if (this.willRenderSuggestions(nextProps)) {\n if (this.state.isCollapsed && !this.justSelectedSuggestion) {\n this.revealSuggestions();\n }\n } else {\n this.resetHighlightedSuggestion();\n }\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n var _props = this.props,\n suggestions = _props.suggestions,\n onSuggestionHighlighted = _props.onSuggestionHighlighted,\n highlightFirstSuggestion = _props.highlightFirstSuggestion;\n\n\n if (!(0, _arrays2.default)(suggestions, prevProps.suggestions) && suggestions.length > 0 && highlightFirstSuggestion) {\n this.highlightFirstSuggestion();\n return;\n }\n\n if (onSuggestionHighlighted) {\n var highlightedSuggestion = this.getHighlightedSuggestion();\n var prevHighlightedSuggestion = prevState.highlightedSuggestion;\n\n if (highlightedSuggestion != prevHighlightedSuggestion) {\n onSuggestionHighlighted({\n suggestion: highlightedSuggestion\n });\n }\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n document.removeEventListener('mousedown', this.onDocumentMouseDown);\n }\n }, {\n key: 'updateHighlightedSuggestion',\n value: function updateHighlightedSuggestion(sectionIndex, suggestionIndex, prevValue) {\n var _this2 = this;\n\n this.setState(function (state) {\n var valueBeforeUpDown = state.valueBeforeUpDown;\n\n\n if (suggestionIndex === null) {\n valueBeforeUpDown = null;\n } else if (valueBeforeUpDown === null && typeof prevValue !== 'undefined') {\n valueBeforeUpDown = prevValue;\n }\n\n return {\n highlightedSectionIndex: sectionIndex,\n highlightedSuggestionIndex: suggestionIndex,\n highlightedSuggestion: suggestionIndex === null ? null : _this2.getSuggestion(sectionIndex, suggestionIndex),\n valueBeforeUpDown: valueBeforeUpDown\n };\n });\n }\n }, {\n key: 'resetHighlightedSuggestion',\n value: function resetHighlightedSuggestion() {\n var shouldResetValueBeforeUpDown = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n this.setState(function (state) {\n var valueBeforeUpDown = state.valueBeforeUpDown;\n\n\n return {\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: shouldResetValueBeforeUpDown ? null : valueBeforeUpDown\n };\n });\n }\n }, {\n key: 'revealSuggestions',\n value: function revealSuggestions() {\n this.setState({\n isCollapsed: false\n });\n }\n }, {\n key: 'closeSuggestions',\n value: function closeSuggestions() {\n this.setState({\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null,\n isCollapsed: true\n });\n }\n }, {\n key: 'getSuggestion',\n value: function getSuggestion(sectionIndex, suggestionIndex) {\n var _props2 = this.props,\n suggestions = _props2.suggestions,\n multiSection = _props2.multiSection,\n getSectionSuggestions = _props2.getSectionSuggestions;\n\n\n if (multiSection) {\n return getSectionSuggestions(suggestions[sectionIndex])[suggestionIndex];\n }\n\n return suggestions[suggestionIndex];\n }\n }, {\n key: 'getHighlightedSuggestion',\n value: function getHighlightedSuggestion() {\n var _state = this.state,\n highlightedSectionIndex = _state.highlightedSectionIndex,\n highlightedSuggestionIndex = _state.highlightedSuggestionIndex;\n\n\n if (highlightedSuggestionIndex === null) {\n return null;\n }\n\n return this.getSuggestion(highlightedSectionIndex, highlightedSuggestionIndex);\n }\n }, {\n key: 'getSuggestionValueByIndex',\n value: function getSuggestionValueByIndex(sectionIndex, suggestionIndex) {\n var getSuggestionValue = this.props.getSuggestionValue;\n\n\n return getSuggestionValue(this.getSuggestion(sectionIndex, suggestionIndex));\n }\n }, {\n key: 'getSuggestionIndices',\n value: function getSuggestionIndices(suggestionElement) {\n var sectionIndex = suggestionElement.getAttribute('data-section-index');\n var suggestionIndex = suggestionElement.getAttribute('data-suggestion-index');\n\n return {\n sectionIndex: typeof sectionIndex === 'string' ? parseInt(sectionIndex, 10) : null,\n suggestionIndex: parseInt(suggestionIndex, 10)\n };\n }\n }, {\n key: 'findSuggestionElement',\n value: function findSuggestionElement(startNode) {\n var node = startNode;\n\n do {\n if (node.getAttribute('data-suggestion-index') !== null) {\n return node;\n }\n\n node = node.parentNode;\n } while (node !== null);\n\n console.error('Clicked element:', startNode); // eslint-disable-line no-console\n throw new Error(\"Couldn't find suggestion element\");\n }\n }, {\n key: 'maybeCallOnChange',\n value: function maybeCallOnChange(event, newValue, method) {\n var _props$inputProps = this.props.inputProps,\n value = _props$inputProps.value,\n onChange = _props$inputProps.onChange;\n\n\n if (newValue !== value) {\n onChange(event, { newValue: newValue, method: method });\n }\n }\n }, {\n key: 'willRenderSuggestions',\n value: function willRenderSuggestions(props) {\n var suggestions = props.suggestions,\n inputProps = props.inputProps,\n shouldRenderSuggestions = props.shouldRenderSuggestions;\n var value = inputProps.value;\n\n\n return suggestions.length > 0 && shouldRenderSuggestions(value);\n }\n }, {\n key: 'getQuery',\n value: function getQuery() {\n var inputProps = this.props.inputProps;\n var value = inputProps.value;\n var valueBeforeUpDown = this.state.valueBeforeUpDown;\n\n\n return (valueBeforeUpDown === null ? value : valueBeforeUpDown).trim();\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props3 = this.props,\n suggestions = _props3.suggestions,\n renderInputComponent = _props3.renderInputComponent,\n onSuggestionsFetchRequested = _props3.onSuggestionsFetchRequested,\n renderSuggestion = _props3.renderSuggestion,\n inputProps = _props3.inputProps,\n multiSection = _props3.multiSection,\n renderSectionTitle = _props3.renderSectionTitle,\n id = _props3.id,\n getSectionSuggestions = _props3.getSectionSuggestions,\n theme = _props3.theme,\n getSuggestionValue = _props3.getSuggestionValue,\n alwaysRenderSuggestions = _props3.alwaysRenderSuggestions,\n highlightFirstSuggestion = _props3.highlightFirstSuggestion;\n var _state2 = this.state,\n isFocused = _state2.isFocused,\n isCollapsed = _state2.isCollapsed,\n highlightedSectionIndex = _state2.highlightedSectionIndex,\n highlightedSuggestionIndex = _state2.highlightedSuggestionIndex,\n valueBeforeUpDown = _state2.valueBeforeUpDown;\n\n var shouldRenderSuggestions = alwaysRenderSuggestions ? alwaysTrue : this.props.shouldRenderSuggestions;\n var value = inputProps.value,\n _onFocus = inputProps.onFocus,\n _onKeyDown = inputProps.onKeyDown;\n\n var willRenderSuggestions = this.willRenderSuggestions(this.props);\n var isOpen = alwaysRenderSuggestions || isFocused && !isCollapsed && willRenderSuggestions;\n var items = isOpen ? suggestions : [];\n var autowhateverInputProps = _extends({}, inputProps, {\n onFocus: function onFocus(event) {\n if (!_this3.justSelectedSuggestion && !_this3.justClickedOnSuggestionsContainer) {\n var shouldRender = shouldRenderSuggestions(value);\n\n _this3.setState({\n isFocused: true,\n isCollapsed: !shouldRender\n });\n\n _onFocus && _onFocus(event);\n\n if (shouldRender) {\n onSuggestionsFetchRequested({ value: value, reason: 'input-focused' });\n }\n }\n },\n onBlur: function onBlur(event) {\n if (_this3.justClickedOnSuggestionsContainer) {\n _this3.input.focus();\n return;\n }\n\n _this3.blurEvent = event;\n\n if (!_this3.justSelectedSuggestion) {\n _this3.onBlur();\n _this3.onSuggestionsClearRequested();\n }\n },\n onChange: function onChange(event) {\n var value = event.target.value;\n\n var shouldRender = shouldRenderSuggestions(value);\n\n _this3.maybeCallOnChange(event, value, 'type');\n\n _this3.setState(_extends({}, highlightFirstSuggestion ? {} : {\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null\n }, {\n valueBeforeUpDown: null,\n isCollapsed: !shouldRender\n }));\n\n if (shouldRender) {\n onSuggestionsFetchRequested({ value: value, reason: 'input-changed' });\n } else {\n _this3.onSuggestionsClearRequested();\n }\n },\n onKeyDown: function onKeyDown(event, data) {\n var keyCode = event.keyCode;\n\n\n switch (keyCode) {\n case 40: // ArrowDown\n case 38:\n // ArrowUp\n if (isCollapsed) {\n if (shouldRenderSuggestions(value)) {\n onSuggestionsFetchRequested({\n value: value,\n reason: 'suggestions-revealed'\n });\n _this3.revealSuggestions();\n }\n } else if (suggestions.length > 0) {\n var newHighlightedSectionIndex = data.newHighlightedSectionIndex,\n newHighlightedItemIndex = data.newHighlightedItemIndex;\n\n\n var newValue = void 0;\n\n if (newHighlightedItemIndex === null) {\n // valueBeforeUpDown can be null if, for example, user\n // hovers on the first suggestion and then pressed Up.\n // If that happens, use the original input value.\n newValue = valueBeforeUpDown === null ? value : valueBeforeUpDown;\n } else {\n newValue = _this3.getSuggestionValueByIndex(newHighlightedSectionIndex, newHighlightedItemIndex);\n }\n\n _this3.updateHighlightedSuggestion(newHighlightedSectionIndex, newHighlightedItemIndex, value);\n _this3.maybeCallOnChange(event, newValue, keyCode === 40 ? 'down' : 'up');\n }\n\n event.preventDefault(); // Prevents the cursor from moving\n\n _this3.justPressedUpDown = true;\n\n setTimeout(function () {\n _this3.justPressedUpDown = false;\n });\n\n break;\n\n // Enter\n case 13:\n {\n // See #388\n if (event.keyCode === 229) {\n break;\n }\n\n var highlightedSuggestion = _this3.getHighlightedSuggestion();\n\n if (isOpen && !alwaysRenderSuggestions) {\n _this3.closeSuggestions();\n }\n\n if (highlightedSuggestion != null) {\n var _newValue = getSuggestionValue(highlightedSuggestion);\n\n _this3.maybeCallOnChange(event, _newValue, 'enter');\n\n _this3.onSuggestionSelected(event, {\n suggestion: highlightedSuggestion,\n suggestionValue: _newValue,\n suggestionIndex: highlightedSuggestionIndex,\n sectionIndex: highlightedSectionIndex,\n method: 'enter'\n });\n\n _this3.justSelectedSuggestion = true;\n\n setTimeout(function () {\n _this3.justSelectedSuggestion = false;\n });\n }\n\n break;\n }\n\n // Escape\n case 27:\n {\n if (isOpen) {\n // If input.type === 'search', the browser clears the input\n // when Escape is pressed. We want to disable this default\n // behaviour so that, when suggestions are shown, we just hide\n // them, without clearing the input.\n event.preventDefault();\n }\n\n var willCloseSuggestions = isOpen && !alwaysRenderSuggestions;\n\n if (valueBeforeUpDown === null) {\n // Didn't interact with Up/Down\n if (!willCloseSuggestions) {\n var _newValue2 = '';\n\n _this3.maybeCallOnChange(event, _newValue2, 'escape');\n\n if (shouldRenderSuggestions(_newValue2)) {\n onSuggestionsFetchRequested({\n value: _newValue2,\n reason: 'escape-pressed'\n });\n } else {\n _this3.onSuggestionsClearRequested();\n }\n }\n } else {\n // Interacted with Up/Down\n _this3.maybeCallOnChange(event, valueBeforeUpDown, 'escape');\n }\n\n if (willCloseSuggestions) {\n _this3.onSuggestionsClearRequested();\n _this3.closeSuggestions();\n } else {\n _this3.resetHighlightedSuggestion();\n }\n\n break;\n }\n }\n\n _onKeyDown && _onKeyDown(event);\n }\n });\n var renderSuggestionData = {\n query: this.getQuery()\n };\n\n return _react2.default.createElement(_reactAutowhatever2.default, {\n multiSection: multiSection,\n items: items,\n renderInputComponent: renderInputComponent,\n renderItemsContainer: this.renderSuggestionsContainer,\n renderItem: renderSuggestion,\n renderItemData: renderSuggestionData,\n renderSectionTitle: renderSectionTitle,\n getSectionItems: getSectionSuggestions,\n highlightedSectionIndex: highlightedSectionIndex,\n highlightedItemIndex: highlightedSuggestionIndex,\n inputProps: autowhateverInputProps,\n itemProps: this.itemProps,\n theme: (0, _theme.mapToAutowhateverTheme)(theme),\n id: id,\n ref: this.storeAutowhateverRef\n });\n }\n }]);\n\n return Autosuggest;\n}(_react.Component);\n\nAutosuggest.propTypes = {\n suggestions: _propTypes2.default.array.isRequired,\n onSuggestionsFetchRequested: function onSuggestionsFetchRequested(props, propName) {\n var onSuggestionsFetchRequested = props[propName];\n\n if (typeof onSuggestionsFetchRequested !== 'function') {\n throw new Error(\"'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp\");\n }\n },\n onSuggestionsClearRequested: function onSuggestionsClearRequested(props, propName) {\n var onSuggestionsClearRequested = props[propName];\n\n if (props.alwaysRenderSuggestions === false && typeof onSuggestionsClearRequested !== 'function') {\n throw new Error(\"'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp\");\n }\n },\n onSuggestionSelected: _propTypes2.default.func,\n onSuggestionHighlighted: _propTypes2.default.func,\n renderInputComponent: _propTypes2.default.func,\n renderSuggestionsContainer: _propTypes2.default.func,\n getSuggestionValue: _propTypes2.default.func.isRequired,\n renderSuggestion: _propTypes2.default.func.isRequired,\n inputProps: function inputProps(props, propName) {\n var inputProps = props[propName];\n\n if (!inputProps.hasOwnProperty('value')) {\n throw new Error(\"'inputProps' must have 'value'.\");\n }\n\n if (!inputProps.hasOwnProperty('onChange')) {\n throw new Error(\"'inputProps' must have 'onChange'.\");\n }\n },\n shouldRenderSuggestions: _propTypes2.default.func,\n alwaysRenderSuggestions: _propTypes2.default.bool,\n multiSection: _propTypes2.default.bool,\n renderSectionTitle: function renderSectionTitle(props, propName) {\n var renderSectionTitle = props[propName];\n\n if (props.multiSection === true && typeof renderSectionTitle !== 'function') {\n throw new Error(\"'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp\");\n }\n },\n getSectionSuggestions: function getSectionSuggestions(props, propName) {\n var getSectionSuggestions = props[propName];\n\n if (props.multiSection === true && typeof getSectionSuggestions !== 'function') {\n throw new Error(\"'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp\");\n }\n },\n focusInputOnSuggestionClick: _propTypes2.default.bool,\n highlightFirstSuggestion: _propTypes2.default.bool,\n theme: _propTypes2.default.object,\n id: _propTypes2.default.string\n};\nAutosuggest.defaultProps = {\n renderSuggestionsContainer: defaultRenderSuggestionsContainer,\n shouldRenderSuggestions: defaultShouldRenderSuggestions,\n alwaysRenderSuggestions: false,\n multiSection: false,\n focusInputOnSuggestionClick: true,\n highlightFirstSuggestion: false,\n theme: _theme.defaultTheme,\n id: '1'\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onDocumentMouseDown = function (event) {\n _this4.justClickedOnSuggestionsContainer = false;\n\n var node = event.detail && event.detail.target || // This is for testing only. Please show me a better way to emulate this.\n event.target;\n\n while (node !== null && node !== document) {\n if (node.getAttribute('data-suggestion-index') !== null) {\n // Suggestion was clicked\n return;\n }\n\n if (node === _this4.suggestionsContainer) {\n // Something else inside suggestions container was clicked\n _this4.justClickedOnSuggestionsContainer = true;\n return;\n }\n\n node = node.parentNode;\n }\n };\n\n this.storeAutowhateverRef = function (autowhatever) {\n if (autowhatever !== null) {\n _this4.autowhatever = autowhatever;\n }\n };\n\n this.onSuggestionMouseEnter = function (event, _ref3) {\n var sectionIndex = _ref3.sectionIndex,\n itemIndex = _ref3.itemIndex;\n\n _this4.updateHighlightedSuggestion(sectionIndex, itemIndex);\n\n _this4.justMouseEntered = true;\n\n setTimeout(function () {\n _this4.justMouseEntered = false;\n });\n };\n\n this.highlightFirstSuggestion = function () {\n _this4.updateHighlightedSuggestion(_this4.props.multiSection ? 0 : null, 0);\n };\n\n this.onSuggestionMouseDown = function () {\n _this4.justSelectedSuggestion = true;\n };\n\n this.onSuggestionsClearRequested = function () {\n var onSuggestionsClearRequested = _this4.props.onSuggestionsClearRequested;\n\n\n onSuggestionsClearRequested && onSuggestionsClearRequested();\n };\n\n this.onSuggestionSelected = function (event, data) {\n var _props4 = _this4.props,\n alwaysRenderSuggestions = _props4.alwaysRenderSuggestions,\n onSuggestionSelected = _props4.onSuggestionSelected,\n onSuggestionsFetchRequested = _props4.onSuggestionsFetchRequested;\n\n\n onSuggestionSelected && onSuggestionSelected(event, data);\n\n if (alwaysRenderSuggestions) {\n onSuggestionsFetchRequested({\n value: data.suggestionValue,\n reason: 'suggestion-selected'\n });\n } else {\n _this4.onSuggestionsClearRequested();\n }\n\n _this4.resetHighlightedSuggestion();\n };\n\n this.onSuggestionClick = function (event) {\n var _props5 = _this4.props,\n alwaysRenderSuggestions = _props5.alwaysRenderSuggestions,\n focusInputOnSuggestionClick = _props5.focusInputOnSuggestionClick;\n\n var _getSuggestionIndices = _this4.getSuggestionIndices(_this4.findSuggestionElement(event.target)),\n sectionIndex = _getSuggestionIndices.sectionIndex,\n suggestionIndex = _getSuggestionIndices.suggestionIndex;\n\n var clickedSuggestion = _this4.getSuggestion(sectionIndex, suggestionIndex);\n var clickedSuggestionValue = _this4.props.getSuggestionValue(clickedSuggestion);\n\n _this4.maybeCallOnChange(event, clickedSuggestionValue, 'click');\n _this4.onSuggestionSelected(event, {\n suggestion: clickedSuggestion,\n suggestionValue: clickedSuggestionValue,\n suggestionIndex: suggestionIndex,\n sectionIndex: sectionIndex,\n method: 'click'\n });\n\n if (!alwaysRenderSuggestions) {\n _this4.closeSuggestions();\n }\n\n if (focusInputOnSuggestionClick === true) {\n _this4.input.focus();\n } else {\n _this4.onBlur();\n }\n\n setTimeout(function () {\n _this4.justSelectedSuggestion = false;\n });\n };\n\n this.onBlur = function () {\n var _props6 = _this4.props,\n inputProps = _props6.inputProps,\n shouldRenderSuggestions = _props6.shouldRenderSuggestions;\n var value = inputProps.value,\n onBlur = inputProps.onBlur;\n\n var highlightedSuggestion = _this4.getHighlightedSuggestion();\n var shouldRender = shouldRenderSuggestions(value);\n\n _this4.setState({\n isFocused: false,\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null,\n isCollapsed: !shouldRender\n });\n\n onBlur && onBlur(_this4.blurEvent, { highlightedSuggestion: highlightedSuggestion });\n };\n\n this.resetHighlightedSuggestionOnMouseLeave = function () {\n _this4.resetHighlightedSuggestion(false); // shouldResetValueBeforeUpDown\n };\n\n this.itemProps = function (_ref4) {\n var sectionIndex = _ref4.sectionIndex,\n itemIndex = _ref4.itemIndex;\n\n return {\n 'data-section-index': sectionIndex,\n 'data-suggestion-index': itemIndex,\n onMouseEnter: _this4.onSuggestionMouseEnter,\n onMouseLeave: _this4.resetHighlightedSuggestionOnMouseLeave,\n onMouseDown: _this4.onSuggestionMouseDown,\n onTouchStart: _this4.onSuggestionMouseDown, // Because on iOS `onMouseDown` is not triggered\n onClick: _this4.onSuggestionClick\n };\n };\n\n this.renderSuggestionsContainer = function (_ref5) {\n var containerProps = _ref5.containerProps,\n children = _ref5.children;\n var renderSuggestionsContainer = _this4.props.renderSuggestionsContainer;\n\n\n return renderSuggestionsContainer({\n containerProps: containerProps,\n children: children,\n query: _this4.getQuery()\n });\n };\n};\n\nexports.default = Autosuggest;"
},
{
"id": "D0r8",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/styles.js",
"name": "./frontend/components/Sidebar/styles.js",
"index": 394,
"index2": 387,
"size": 206,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"issuerId": "Yn2G",
"issuerName": "./frontend/components/Sidebar/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
}
],
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony side effect evaluation",
"userRequest": "./styles",
"loc": "8:0-34"
},
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony import specifier",
"userRequest": "./styles",
"loc": "10:36-42"
}
],
"providedExports": [
"styles"
],
"optimizationBailout": [],
"depth": 7,
"source": "export const styles = theme => ({\n sidebarRoot: {\n padding: \"10px\",\n \"overflow-y\": \"scroll\"\n },\n listItemCaption: {\n \"word-wrap\": \"break-word\"\n },\n reasonLabel: {\n cursor: \"pointer\"\n }\n});"
},
{
"id": "FiVM",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Slide/Slide.js",
"name": "./node_modules/@material-ui/core/Slide/Slide.js",
"index": 241,
"index2": 233,
"size": 10430,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Slide/index.js",
"issuerId": "MPIl",
"issuerName": "./node_modules/@material-ui/core/Slide/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "ekFh",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"name": "./node_modules/@material-ui/core/Drawer/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "NdOY",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/Drawer.js",
"name": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"profile": {
"factory": 93,
"building": 76,
"dependencies": 111
}
},
{
"id": "MPIl",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Slide/index.js",
"name": "./node_modules/@material-ui/core/Slide/index.js",
"profile": {
"factory": 251,
"building": 63,
"dependencies": 6
}
}
],
"profile": {
"factory": 811,
"building": 52,
"dependencies": 56
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "MPIl",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Slide/index.js",
"module": "./node_modules/@material-ui/core/Slide/index.js",
"moduleName": "./node_modules/@material-ui/core/Slide/index.js",
"type": "cjs require",
"userRequest": "./Slide",
"loc": "15:36-54"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setTranslateValue = setTranslateValue;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectSpread\"));\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/createClass\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/possibleConstructorReturn\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/inherits\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _reactEventListener = _interopRequireDefault(require(\"react-event-listener\"));\n\nvar _debounce = _interopRequireDefault(require(\"debounce\"));\n\nvar _Transition = _interopRequireDefault(require(\"react-transition-group/Transition\"));\n\nvar _ownerWindow = _interopRequireDefault(require(\"../utils/ownerWindow\"));\n\nvar _withTheme = _interopRequireDefault(require(\"../styles/withTheme\"));\n\nvar _transitions = require(\"../styles/transitions\");\n\nvar _utils = require(\"../transitions/utils\");\n\n// @inheritedComponent Transition\nvar GUTTER = 24; // Translate the node so he can't be seen on the screen.\n// Later, we gonna translate back the node to his original location\n// with `translate3d(0, 0, 0)`.`\n\nfunction getTranslateValue(props, node) {\n var direction = props.direction;\n var rect = node.getBoundingClientRect();\n var transform;\n\n if (node.fakeTransform) {\n transform = node.fakeTransform;\n } else {\n var computedStyle = (0, _ownerWindow.default)(node).getComputedStyle(node);\n transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n }\n\n var offsetX = 0;\n var offsetY = 0;\n\n if (transform && transform !== 'none' && typeof transform === 'string') {\n var transformValues = transform.split('(')[1].split(')')[0].split(',');\n offsetX = parseInt(transformValues[4], 10);\n offsetY = parseInt(transformValues[5], 10);\n }\n\n if (direction === 'left') {\n return \"translateX(100vw) translateX(-\".concat(rect.left - offsetX, \"px)\");\n } else if (direction === 'right') {\n return \"translateX(-\".concat(rect.left + rect.width + GUTTER - offsetX, \"px)\");\n } else if (direction === 'up') {\n return \"translateY(100vh) translateY(-\".concat(rect.top - offsetY, \"px)\");\n } // direction === 'down'\n\n\n return \"translateY(-\".concat(rect.top + rect.height + GUTTER - offsetY, \"px)\");\n}\n\nfunction setTranslateValue(props, node) {\n var transform = getTranslateValue(props, node);\n\n if (transform) {\n node.style.webkitTransform = transform;\n node.style.transform = transform;\n }\n}\n/**\n * The Slide transition is used by the [Snackbar](/demos/snackbars) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\n\n\nvar Slide =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inherits2.default)(Slide, _React$Component);\n\n function Slide() {\n var _ref;\n\n var _temp, _this;\n\n (0, _classCallCheck2.default)(this, Slide);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return (0, _possibleConstructorReturn2.default)(_this, (_temp = _this = (0, _possibleConstructorReturn2.default)(this, (_ref = Slide.__proto__ || Object.getPrototypeOf(Slide)).call.apply(_ref, [this].concat(args))), _this.mounted = false, _this.transition = null, _this.handleResize = (0, _debounce.default)(function () {\n // Skip configuration where the position is screen size invariant.\n if (_this.props.in || _this.props.direction === 'down' || _this.props.direction === 'right') {\n return;\n }\n\n var node = _reactDom.default.findDOMNode(_this.transition);\n\n if (node) {\n setTranslateValue(_this.props, node);\n }\n }, 166), _this.handleEnter = function (node) {\n setTranslateValue(_this.props, node);\n (0, _utils.reflow)(node);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node);\n }\n }, _this.handleEntering = function (node) {\n var theme = _this.props.theme;\n var transitionProps = (0, _utils.getTransitionProps)(_this.props, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', (0, _objectSpread2.default)({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.transition = theme.transitions.create('transform', (0, _objectSpread2.default)({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.webkitTransform = 'translate(0, 0)';\n node.style.transform = 'translate(0, 0)';\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node);\n }\n }, _this.handleExit = function (node) {\n var theme = _this.props.theme;\n var transitionProps = (0, _utils.getTransitionProps)(_this.props, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', (0, _objectSpread2.default)({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n node.style.transition = theme.transitions.create('transform', (0, _objectSpread2.default)({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n setTranslateValue(_this.props, node);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n }, _this.handleExited = function (node) {\n // No need for transitions when the component is hidden\n node.style.webkitTransition = '';\n node.style.transition = '';\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n }, _temp));\n }\n\n (0, _createClass2.default)(Slide, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // state.mounted handle SSR, once the component is mounted, we need\n // to properly hide it.\n if (!this.props.in) {\n // We need to set initial translate values of transition element\n // otherwise component will be shown when in=false.\n this.updatePosition();\n }\n\n this.mounted = true;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.direction !== this.props.direction && !this.props.in) {\n // We need to update the position of the drawer when the direction change and\n // when it's hidden.\n this.updatePosition();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.handleResize.clear();\n }\n }, {\n key: \"updatePosition\",\n value: function updatePosition() {\n var node = _reactDom.default.findDOMNode(this.transition);\n\n if (node) {\n node.style.visibility = 'inherit';\n setTranslateValue(this.props, node);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n children = _props.children,\n onEnter = _props.onEnter,\n onEntering = _props.onEntering,\n onExit = _props.onExit,\n onExited = _props.onExited,\n styleProp = _props.style,\n theme = _props.theme,\n other = (0, _objectWithoutProperties2.default)(_props, [\"children\", \"onEnter\", \"onEntering\", \"onExit\", \"onExited\", \"style\", \"theme\"]);\n var style = {}; // We use this state to handle the server-side rendering.\n // We don't know the width of the children ahead of time.\n // We need to render it.\n\n if (!this.props.in && !this.mounted) {\n style.visibility = 'hidden';\n }\n\n style = (0, _objectSpread2.default)({}, style, styleProp, _react.default.isValidElement(children) ? children.props.style : {});\n return _react.default.createElement(_reactEventListener.default, {\n target: \"window\",\n onResize: this.handleResize\n }, _react.default.createElement(_Transition.default, (0, _extends2.default)({\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onExit: this.handleExit,\n onExited: this.handleExited,\n appear: true,\n style: style,\n ref: function ref(node) {\n _this2.transition = node;\n }\n }, other), children));\n }\n }]);\n return Slide;\n}(_react.default.Component);\n\nSlide.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A single child content element.\n */\n children: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),\n\n /**\n * Direction the child node will enter from.\n */\n direction: _propTypes.default.oneOf(['left', 'right', 'up', 'down']),\n\n /**\n * If `true`, show the component; triggers the enter or exit animation.\n */\n in: _propTypes.default.bool,\n\n /**\n * @ignore\n */\n onEnter: _propTypes.default.func,\n\n /**\n * @ignore\n */\n onEntering: _propTypes.default.func,\n\n /**\n * @ignore\n */\n onExit: _propTypes.default.func,\n\n /**\n * @ignore\n */\n onExited: _propTypes.default.func,\n\n /**\n * @ignore\n */\n style: _propTypes.default.object,\n\n /**\n * @ignore\n */\n theme: _propTypes.default.object.isRequired,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n timeout: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number\n })])\n} : {};\nSlide.defaultProps = {\n direction: 'down',\n timeout: {\n enter: _transitions.duration.enteringScreen,\n exit: _transitions.duration.leavingScreen\n }\n};\n\nvar _default = (0, _withTheme.default)()(Slide);\n\nexports.default = _default;"
},
{
"id": "H9cb",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItemText/ListItemText.js",
"name": "./node_modules/@material-ui/core/ListItemText/ListItemText.js",
"index": 391,
"index2": 383,
"size": 4358,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItemText/index.js",
"issuerId": "4eE1",
"issuerName": "./node_modules/@material-ui/core/ListItemText/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
},
{
"id": "4eE1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItemText/index.js",
"name": "./node_modules/@material-ui/core/ListItemText/index.js",
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
}
}
],
"profile": {
"factory": 70,
"building": 38,
"dependencies": 13
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "4eE1",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItemText/index.js",
"module": "./node_modules/@material-ui/core/ListItemText/index.js",
"moduleName": "./node_modules/@material-ui/core/ListItemText/index.js",
"type": "cjs require",
"userRequest": "./ListItemText",
"loc": "15:43-68"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _Typography = _interopRequireDefault(require(\"../Typography\"));\n\nvar styles = function styles(theme) {\n return {\n root: {\n flex: '1 1 auto',\n minWidth: 0,\n padding: \"0 \".concat(theme.spacing.unit * 2, \"px\"),\n '&:first-child': {\n paddingLeft: 0\n }\n },\n inset: {\n '&:first-child': {\n paddingLeft: theme.spacing.unit * 7\n }\n },\n dense: {\n fontSize: theme.typography.pxToRem(13)\n },\n primary: {\n '&$textDense': {\n fontSize: 'inherit'\n }\n },\n secondary: {\n '&$textDense': {\n fontSize: 'inherit'\n }\n },\n textDense: {}\n };\n};\n\nexports.styles = styles;\n\nfunction ListItemText(props, context) {\n var _classNames3;\n\n var children = props.children,\n classes = props.classes,\n classNameProp = props.className,\n disableTypography = props.disableTypography,\n inset = props.inset,\n primaryProp = props.primary,\n secondaryProp = props.secondary,\n other = (0, _objectWithoutProperties2.default)(props, [\"children\", \"classes\", \"className\", \"disableTypography\", \"inset\", \"primary\", \"secondary\"]);\n var dense = context.dense;\n var primary = primaryProp != null ? primaryProp : children;\n\n if (primary != null && !disableTypography) {\n primary = _react.default.createElement(_Typography.default, {\n variant: \"subheading\",\n className: (0, _classnames.default)(classes.primary, (0, _defineProperty2.default)({}, classes.textDense, dense)),\n component: \"span\"\n }, primary);\n }\n\n var secondary = secondaryProp;\n\n if (secondary != null && !disableTypography) {\n secondary = _react.default.createElement(_Typography.default, {\n variant: \"body1\",\n className: (0, _classnames.default)(classes.secondary, (0, _defineProperty2.default)({}, classes.textDense, dense)),\n color: \"textSecondary\"\n }, secondary);\n }\n\n return _react.default.createElement(\"div\", (0, _extends2.default)({\n className: (0, _classnames.default)(classes.root, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, classes.dense, dense), (0, _defineProperty2.default)(_classNames3, classes.inset, inset), _classNames3), classNameProp)\n }, other), primary, secondary);\n}\n\nListItemText.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Alias for the `primary` property.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * If `true`, the children won't be wrapped by a Typography component.\n * This can be useful to render an alternative Typography variant by wrapping\n * the `children` (or `primary`) text, and optional `secondary` text\n * with the Typography component.\n */\n disableTypography: _propTypes.default.bool,\n\n /**\n * If `true`, the children will be indented.\n * This should be used if there is no left avatar or left icon.\n */\n inset: _propTypes.default.bool,\n\n /**\n * The main content element.\n */\n primary: _propTypes.default.node,\n\n /**\n * The secondary content element.\n */\n secondary: _propTypes.default.node\n} : {};\nListItemText.defaultProps = {\n disableTypography: false,\n inset: false\n};\nListItemText.contextTypes = {\n dense: _propTypes.default.bool\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiListItemText'\n})(ListItemText);\n\nexports.default = _default;"
},
{
"id": "IVVx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListSubheader/ListSubheader.js",
"name": "./node_modules/@material-ui/core/ListSubheader/ListSubheader.js",
"index": 393,
"index2": 385,
"size": 3676,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListSubheader/index.js",
"issuerId": "WqRt",
"issuerName": "./node_modules/@material-ui/core/ListSubheader/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
},
{
"id": "WqRt",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListSubheader/index.js",
"name": "./node_modules/@material-ui/core/ListSubheader/index.js",
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
}
}
],
"profile": {
"factory": 73,
"building": 28,
"dependencies": 2
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "WqRt",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListSubheader/index.js",
"module": "./node_modules/@material-ui/core/ListSubheader/index.js",
"moduleName": "./node_modules/@material-ui/core/ListSubheader/index.js",
"type": "cjs require",
"userRequest": "./ListSubheader",
"loc": "15:44-70"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _helpers = require(\"../utils/helpers\");\n\nvar styles = function styles(theme) {\n return {\n root: theme.mixins.gutters({\n boxSizing: 'border-box',\n lineHeight: '48px',\n listStyle: 'none',\n color: theme.palette.text.secondary,\n fontFamily: theme.typography.fontFamily,\n fontWeight: theme.typography.fontWeightMedium,\n fontSize: theme.typography.pxToRem(14)\n }),\n colorPrimary: {\n color: theme.palette.primary.main\n },\n colorInherit: {\n color: 'inherit'\n },\n inset: {\n paddingLeft: theme.spacing.unit * 9\n },\n sticky: {\n position: 'sticky',\n top: 0,\n zIndex: 1,\n backgroundColor: 'inherit'\n }\n };\n};\n\nexports.styles = styles;\n\nfunction ListSubheader(props) {\n var _classNames;\n\n var classes = props.classes,\n className = props.className,\n color = props.color,\n Component = props.component,\n disableSticky = props.disableSticky,\n inset = props.inset,\n other = (0, _objectWithoutProperties2.default)(props, [\"classes\", \"className\", \"color\", \"component\", \"disableSticky\", \"inset\"]);\n return _react.default.createElement(Component, (0, _extends2.default)({\n className: (0, _classnames.default)(classes.root, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes[\"color\".concat((0, _helpers.capitalize)(color))], color !== 'default'), (0, _defineProperty2.default)(_classNames, classes.inset, inset), (0, _defineProperty2.default)(_classNames, classes.sticky, !disableSticky), _classNames), className)\n }, other));\n}\n\nListSubheader.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * The content of the component.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: _propTypes.default.oneOf(['default', 'primary', 'inherit']),\n\n /**\n * The component used for the root node.\n * Either a string to use a DOM element or a component.\n */\n component: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),\n\n /**\n * If `true`, the List Subheader will not stick to the top during scroll.\n */\n disableSticky: _propTypes.default.bool,\n\n /**\n * If `true`, the List Subheader will be indented.\n */\n inset: _propTypes.default.bool\n} : {};\nListSubheader.defaultProps = {\n color: 'default',\n component: 'li',\n disableSticky: false,\n inset: false\n};\nListSubheader.muiName = 'ListSubheader';\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiListSubheader'\n})(ListSubheader);\n\nexports.default = _default;"
},
{
"id": "Lu6H",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/MenuItem.js",
"name": "./node_modules/@material-ui/core/MenuItem/MenuItem.js",
"index": 383,
"index2": 378,
"size": 3090,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/index.js",
"issuerId": "n5s8",
"issuerName": "./node_modules/@material-ui/core/MenuItem/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "n5s8",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/index.js",
"name": "./node_modules/@material-ui/core/MenuItem/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
}
],
"profile": {
"factory": 137,
"building": 106,
"dependencies": 3
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "n5s8",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/index.js",
"module": "./node_modules/@material-ui/core/MenuItem/index.js",
"moduleName": "./node_modules/@material-ui/core/MenuItem/index.js",
"type": "cjs require",
"userRequest": "./MenuItem",
"loc": "15:39-60"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectSpread\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _ListItem = _interopRequireDefault(require(\"../ListItem\"));\n\n// @inheritedComponent ListItem\nvar styles = function styles(theme) {\n return {\n root: (0, _objectSpread2.default)({}, theme.typography.subheading, {\n height: theme.spacing.unit * 3,\n boxSizing: 'content-box',\n width: 'auto',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n paddingLeft: theme.spacing.unit * 2,\n paddingRight: theme.spacing.unit * 2,\n '&$selected': {\n backgroundColor: theme.palette.action.selected\n }\n }),\n selected: {}\n };\n};\n\nexports.styles = styles;\n\nfunction MenuItem(props) {\n var classes = props.classes,\n className = props.className,\n component = props.component,\n selected = props.selected,\n role = props.role,\n other = (0, _objectWithoutProperties2.default)(props, [\"classes\", \"className\", \"component\", \"selected\", \"role\"]);\n return _react.default.createElement(_ListItem.default, (0, _extends2.default)({\n button: true,\n role: role,\n tabIndex: -1,\n className: (0, _classnames.default)(classes.root, (0, _defineProperty2.default)({}, classes.selected, selected), className),\n component: component\n }, other));\n}\n\nMenuItem.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Menu item contents.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a DOM element or a component.\n */\n component: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),\n\n /**\n * @ignore\n */\n role: _propTypes.default.string,\n\n /**\n * Use to apply selected styling.\n */\n selected: _propTypes.default.bool\n} : {};\nMenuItem.defaultProps = {\n component: 'li',\n role: 'menuitem',\n selected: false\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiMenuItem'\n})(MenuItem);\n\nexports.default = _default;"
},
{
"id": "LyY/",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-themeable/node_modules/object-assign/index.js",
"name": "./node_modules/react-themeable/node_modules/object-assign/index.js",
"index": 260,
"index2": 249,
"size": 817,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-themeable/dist/index.js",
"issuerId": "3JpL",
"issuerName": "./node_modules/react-themeable/dist/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
},
{
"id": "3JpL",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-themeable/dist/index.js",
"name": "./node_modules/react-themeable/dist/index.js",
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
}
}
],
"profile": {
"factory": 56,
"building": 6
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "3JpL",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-themeable/dist/index.js",
"module": "./node_modules/react-themeable/dist/index.js",
"moduleName": "./node_modules/react-themeable/dist/index.js",
"type": "cjs require",
"userRequest": "object-assign",
"loc": "13:20-44"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 11,
"source": "'use strict';\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction ToObject(val) {\n\tif (val == null) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction ownEnumerableKeys(obj) {\n\tvar keys = Object.getOwnPropertyNames(obj);\n\n\tif (Object.getOwnPropertySymbols) {\n\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t}\n\n\treturn keys.filter(function (key) {\n\t\treturn propIsEnumerable.call(obj, key);\n\t});\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar keys;\n\tvar to = ToObject(target);\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = arguments[s];\n\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tto[keys[i]] = from[keys[i]];\n\t\t}\n\t}\n\n\treturn to;\n};\n"
},
{
"id": "MPIl",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Slide/index.js",
"name": "./node_modules/@material-ui/core/Slide/index.js",
"index": 240,
"index2": 234,
"size": 355,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/Drawer.js",
"issuerId": "NdOY",
"issuerName": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "ekFh",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"name": "./node_modules/@material-ui/core/Drawer/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "NdOY",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/Drawer.js",
"name": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"profile": {
"factory": 93,
"building": 76,
"dependencies": 111
}
}
],
"profile": {
"factory": 251,
"building": 63,
"dependencies": 6
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "NdOY",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/Drawer.js",
"module": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"moduleName": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"type": "cjs require",
"userRequest": "../Slide",
"loc": "38:36-55"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _Slide.default;\n }\n});\n\nvar _Slide = _interopRequireDefault(require(\"./Slide\"));"
},
{
"id": "NABS",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItem/index.js",
"name": "./node_modules/@material-ui/core/ListItem/index.js",
"index": 384,
"index2": 377,
"size": 364,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"issuerId": "Yn2G",
"issuerName": "./frontend/components/Sidebar/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
}
],
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/ListItem",
"loc": "5:0-50"
},
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/ListItem",
"loc": "34:10-18"
},
{
"moduleId": "Lu6H",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/MenuItem.js",
"module": "./node_modules/@material-ui/core/MenuItem/MenuItem.js",
"moduleName": "./node_modules/@material-ui/core/MenuItem/MenuItem.js",
"type": "cjs require",
"userRequest": "../ListItem",
"loc": "26:39-61"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ListItem.default;\n }\n});\n\nvar _ListItem = _interopRequireDefault(require(\"./ListItem\"));"
},
{
"id": "NdOY",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/Drawer.js",
"name": "./node_modules/@material-ui/core/Drawer/Drawer.js",
"index": 217,
"index2": 237,
"size": 9478,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"issuerId": "ekFh",
"issuerName": "./node_modules/@material-ui/core/Drawer/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "ekFh",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"name": "./node_modules/@material-ui/core/Drawer/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 93,
"building": 76,
"dependencies": 111
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "ekFh",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"module": "./node_modules/@material-ui/core/Drawer/index.js",
"moduleName": "./node_modules/@material-ui/core/Drawer/index.js",
"type": "cjs require",
"userRequest": "./Drawer",
"loc": "15:37-56"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isHorizontal = isHorizontal;\nexports.getAnchor = getAnchor;\nexports.default = exports.styles = void 0;\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectSpread\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/createClass\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/possibleConstructorReturn\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/inherits\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _Modal = _interopRequireDefault(require(\"../Modal\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _Slide = _interopRequireDefault(require(\"../Slide\"));\n\nvar _Paper = _interopRequireDefault(require(\"../Paper\"));\n\nvar _helpers = require(\"../utils/helpers\");\n\nvar _transitions = require(\"../styles/transitions\");\n\nvar oppositeDirection = {\n left: 'right',\n right: 'left',\n top: 'down',\n bottom: 'up'\n};\n\nfunction isHorizontal(props) {\n return ['left', 'right'].indexOf(props.anchor) !== -1;\n}\n\nfunction getAnchor(props) {\n return props.theme.direction === 'rtl' && isHorizontal(props) ? oppositeDirection[props.anchor] : props.anchor;\n}\n\nvar styles = function styles(theme) {\n return {\n docked: {\n flex: '0 0 auto'\n },\n paper: {\n overflowY: 'auto',\n display: 'flex',\n flexDirection: 'column',\n height: '100vh',\n flex: '1 0 auto',\n zIndex: theme.zIndex.drawer,\n WebkitOverflowScrolling: 'touch',\n // Add iOS momentum scrolling.\n // temporary style\n position: 'fixed',\n top: 0,\n // We disable the focus ring for mouse, touch and keyboard users.\n // At some point, it would be better to keep it for keyboard users.\n // :focus-ring CSS pseudo-class will help.\n outline: 'none'\n },\n paperAnchorLeft: {\n left: 0,\n right: 'auto'\n },\n paperAnchorRight: {\n left: 'auto',\n right: 0\n },\n paperAnchorTop: {\n top: 0,\n left: 0,\n bottom: 'auto',\n right: 0,\n height: 'auto',\n maxHeight: '100vh'\n },\n paperAnchorBottom: {\n top: 'auto',\n left: 0,\n bottom: 0,\n right: 0,\n height: 'auto',\n maxHeight: '100vh'\n },\n paperAnchorDockedLeft: {\n borderRight: \"1px solid \".concat(theme.palette.divider)\n },\n paperAnchorDockedTop: {\n borderBottom: \"1px solid \".concat(theme.palette.divider)\n },\n paperAnchorDockedRight: {\n borderLeft: \"1px solid \".concat(theme.palette.divider)\n },\n paperAnchorDockedBottom: {\n borderTop: \"1px solid \".concat(theme.palette.divider)\n },\n modal: {} // Just here so people can override the style.\n\n };\n};\n/**\n * The properties of the [Modal](/api/modal) component are available\n * when `variant=\"temporary\"` is set.\n */\n\n\nexports.styles = styles;\n\nvar Drawer =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inherits2.default)(Drawer, _React$Component);\n\n function Drawer() {\n var _ref;\n\n var _temp, _this;\n\n (0, _classCallCheck2.default)(this, Drawer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return (0, _possibleConstructorReturn2.default)(_this, (_temp = _this = (0, _possibleConstructorReturn2.default)(this, (_ref = Drawer.__proto__ || Object.getPrototypeOf(Drawer)).call.apply(_ref, [this].concat(args))), _this.mounted = false, _temp));\n }\n\n (0, _createClass2.default)(Drawer, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.mounted = true;\n } // Let's assume that the Drawer will always be rendered on user space.\n // We use that state is order to skip the appear transition during the\n // initial mount of the component.\n\n }, {\n key: \"render\",\n value: function render() {\n var _props = this.props,\n anchorProp = _props.anchor,\n children = _props.children,\n classes = _props.classes,\n className = _props.className,\n elevation = _props.elevation,\n _props$ModalProps = _props.ModalProps;\n _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;\n var BackdropPropsProp = _props$ModalProps.BackdropProps,\n ModalProps = (0, _objectWithoutProperties2.default)(_props$ModalProps, [\"BackdropProps\"]),\n onClose = _props.onClose,\n open = _props.open,\n PaperProps = _props.PaperProps,\n SlideProps = _props.SlideProps,\n theme = _props.theme,\n transitionDuration = _props.transitionDuration,\n variant = _props.variant,\n other = (0, _objectWithoutProperties2.default)(_props, [\"anchor\", \"children\", \"classes\", \"className\", \"elevation\", \"ModalProps\", \"onClose\", \"open\", \"PaperProps\", \"SlideProps\", \"theme\", \"transitionDuration\", \"variant\"]);\n var anchor = getAnchor(this.props);\n\n var drawer = _react.default.createElement(_Paper.default, (0, _extends2.default)({\n elevation: variant === 'temporary' ? elevation : 0,\n square: true,\n className: (0, _classnames.default)(classes.paper, classes[\"paperAnchor\".concat((0, _helpers.capitalize)(anchor))], (0, _defineProperty2.default)({}, classes[\"paperAnchorDocked\".concat((0, _helpers.capitalize)(anchor))], variant !== 'temporary'))\n }, PaperProps), children);\n\n if (variant === 'permanent') {\n return _react.default.createElement(\"div\", (0, _extends2.default)({\n className: (0, _classnames.default)(classes.docked, className)\n }, other), drawer);\n }\n\n var slidingDrawer = _react.default.createElement(_Slide.default, (0, _extends2.default)({\n \"in\": open,\n direction: oppositeDirection[anchor],\n timeout: transitionDuration,\n appear: this.mounted\n }, SlideProps), drawer);\n\n if (variant === 'persistent') {\n return _react.default.createElement(\"div\", (0, _extends2.default)({\n className: (0, _classnames.default)(classes.docked, className)\n }, other), slidingDrawer);\n } // variant === temporary\n\n\n return _react.default.createElement(_Modal.default, (0, _extends2.default)({\n BackdropProps: (0, _objectSpread2.default)({}, BackdropPropsProp, {\n transitionDuration: transitionDuration\n }),\n className: (0, _classnames.default)(classes.modal, className),\n open: open,\n onClose: onClose\n }, other, ModalProps), slidingDrawer);\n }\n }]);\n return Drawer;\n}(_react.default.Component);\n\nDrawer.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Side from which the drawer will appear.\n */\n anchor: _propTypes.default.oneOf(['left', 'top', 'right', 'bottom']),\n\n /**\n * The contents of the drawer.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * The elevation of the drawer.\n */\n elevation: _propTypes.default.number,\n\n /**\n * Properties applied to the `Modal` element.\n */\n ModalProps: _propTypes.default.object,\n\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback\n */\n onClose: _propTypes.default.func,\n\n /**\n * If `true`, the drawer is open.\n */\n open: _propTypes.default.bool,\n\n /**\n * Properties applied to the `Paper` element.\n */\n PaperProps: _propTypes.default.object,\n\n /**\n * Properties applied to the `Slide` element.\n */\n SlideProps: _propTypes.default.object,\n\n /**\n * @ignore\n */\n theme: _propTypes.default.object.isRequired,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number\n })]),\n\n /**\n * The variant of drawer.\n */\n variant: _propTypes.default.oneOf(['permanent', 'persistent', 'temporary'])\n} : {};\nDrawer.defaultProps = {\n anchor: 'left',\n elevation: 16,\n open: false,\n transitionDuration: {\n enter: _transitions.duration.enteringScreen,\n exit: _transitions.duration.leavingScreen\n },\n variant: 'temporary' // Mobile first.\n\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiDrawer',\n flip: false,\n withTheme: true\n})(Drawer);\n\nexports.default = _default;"
},
{
"id": "SKiK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Toolbar/Toolbar.js",
"name": "./node_modules/@material-ui/core/Toolbar/Toolbar.js",
"index": 247,
"index2": 241,
"size": 2440,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Toolbar/index.js",
"issuerId": "2VVu",
"issuerName": "./node_modules/@material-ui/core/Toolbar/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "2VVu",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Toolbar/index.js",
"name": "./node_modules/@material-ui/core/Toolbar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 79,
"building": 109,
"dependencies": 2
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "2VVu",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Toolbar/index.js",
"module": "./node_modules/@material-ui/core/Toolbar/index.js",
"moduleName": "./node_modules/@material-ui/core/Toolbar/index.js",
"type": "cjs require",
"userRequest": "./Toolbar",
"loc": "15:38-58"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectSpread\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar styles = function styles(theme) {\n return {\n root: (0, _objectSpread2.default)({}, theme.mixins.toolbar, {\n position: 'relative',\n display: 'flex',\n alignItems: 'center'\n }),\n gutters: theme.mixins.gutters()\n };\n};\n\nexports.styles = styles;\n\nfunction Toolbar(props) {\n var children = props.children,\n classes = props.classes,\n classNameProp = props.className,\n disableGutters = props.disableGutters,\n other = (0, _objectWithoutProperties2.default)(props, [\"children\", \"classes\", \"className\", \"disableGutters\"]);\n var className = (0, _classnames.default)(classes.root, (0, _defineProperty2.default)({}, classes.gutters, !disableGutters), classNameProp);\n return _react.default.createElement(\"div\", (0, _extends2.default)({\n className: className\n }, other), children);\n}\n\nToolbar.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * If `true`, disables gutter padding.\n */\n disableGutters: _propTypes.default.bool\n} : {};\nToolbar.defaultProps = {\n disableGutters: false\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiToolbar'\n})(Toolbar);\n\nexports.default = _default;"
},
{
"id": "WqRt",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListSubheader/index.js",
"name": "./node_modules/@material-ui/core/ListSubheader/index.js",
"index": 392,
"index2": 386,
"size": 379,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"issuerId": "Yn2G",
"issuerName": "./frontend/components/Sidebar/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
}
],
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/ListSubheader",
"loc": "7:0-60"
},
{
"moduleId": "Yn2G",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"module": "./frontend/components/Sidebar/component.js",
"moduleName": "./frontend/components/Sidebar/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/ListSubheader",
"loc": "26:8-21"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ListSubheader.default;\n }\n});\n\nvar _ListSubheader = _interopRequireDefault(require(\"./ListSubheader\"));"
},
{
"id": "YDiY",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/AppBar/index.js",
"name": "./node_modules/@material-ui/core/AppBar/index.js",
"index": 244,
"index2": 240,
"size": 358,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/AppBar",
"loc": "7:0-46"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/AppBar",
"loc": "28:10-16"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 5,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _AppBar.default;\n }\n});\n\nvar _AppBar = _interopRequireDefault(require(\"./AppBar\"));"
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"index": 387,
"index2": 388,
"size": 1755,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"issuerId": "krr1",
"issuerName": "./frontend/components/Sidebar/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "krr1",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"module": "./frontend/components/Sidebar/index.js",
"moduleName": "./frontend/components/Sidebar/index.js",
"type": "harmony side effect evaluation",
"userRequest": "./component",
"loc": "3:0-43"
},
{
"moduleId": "krr1",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"module": "./frontend/components/Sidebar/index.js",
"moduleName": "./frontend/components/Sidebar/index.js",
"type": "harmony import specifier",
"userRequest": "./component",
"loc": "9:31-47"
}
],
"providedExports": [
"default"
],
"optimizationBailout": [],
"depth": 6,
"source": "import React from \"react\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { withStyles } from \"@material-ui/core/styles\";\nimport List from \"@material-ui/core/List\";\nimport ListItem from \"@material-ui/core/ListItem\";\nimport ListItemText from \"@material-ui/core/ListItemText\";\nimport ListSubheader from \"@material-ui/core/ListSubheader\";\nimport { styles } from \"./styles\";\n\nconst SidebarComponent = withStyles(styles)(props => {\n const module = props.modules.find(m => m.id === props.selectedModuleId);\n const { sidebarRoot, listItemCaption, reasonLabel } = props.classes;\n if (!module) return null;\n return React.createElement(\n \"div\",\n { className: sidebarRoot },\n React.createElement(\n Typography,\n { align: \"center\", gutterBottom: true, noWrap: true, variant: \"title\" },\n module.label\n ),\n React.createElement(\n List,\n { disablePadding: true },\n React.createElement(\n ListSubheader,\n { disableSticky: true },\n module.reasons.length,\n \" Reasons:\"\n ),\n module.reasons.map(reason => {\n const module = props.modules.find(m => m.id === reason.moduleId);\n return React.createElement(\n ListItem,\n { key: reason.module + reason.loc, divider: true },\n React.createElement(\n ListItemText,\n null,\n React.createElement(\n Typography,\n { className: reasonLabel, noWrap: true },\n module.label\n ),\n React.createElement(\n Typography,\n { className: listItemCaption, variant: \"caption\" },\n module.name\n )\n )\n );\n })\n )\n );\n});\n\nexport default SidebarComponent;"
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"index": 215,
"index2": 394,
"size": 2317,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"issuerId": "tctK",
"issuerName": "./frontend/pages/Inspector/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
}
],
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "tctK",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"module": "./frontend/pages/Inspector/index.js",
"moduleName": "./frontend/pages/Inspector/index.js",
"type": "harmony side effect evaluation",
"userRequest": "./component",
"loc": "6:0-45"
},
{
"moduleId": "tctK",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"module": "./frontend/pages/Inspector/index.js",
"moduleName": "./frontend/pages/Inspector/index.js",
"type": "harmony import specifier",
"userRequest": "./component",
"loc": "12:52-70"
}
],
"providedExports": [
"default"
],
"optimizationBailout": [],
"depth": 4,
"source": "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classNames from \"classnames\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Drawer from \"@material-ui/core/Drawer\";\nimport AppBar from \"@material-ui/core/AppBar\";\nimport Toolbar from \"@material-ui/core/Toolbar\";\n\nimport { GithubLink } from \"../../components/Github\";\nimport { ModulesGraph } from \"../../components/ModulesGraph/index\";\nimport ModuleSearch from \"../../components/ModuleSearch\";\nimport Sidebar from \"../../components/Sidebar/index\";\nimport { DrawingProgress } from \"../../components/DrawingProgress\";\nimport { styles } from \"./styles\";\n\nclass InspectorComponent extends React.Component {\n render() {\n const { classes, open } = this.props;\n\n return React.createElement(\n \"div\",\n { className: classes.root },\n React.createElement(\n \"div\",\n { className: classes.appFrame },\n React.createElement(\n AppBar,\n {\n className: classNames(classes.appBar, {\n [classes.appBarShift]: open,\n [classes[\"appBarShift-right\"]]: open\n })\n },\n React.createElement(\n Toolbar,\n null,\n React.createElement(ModuleSearch, null),\n React.createElement(GithubLink, null)\n ),\n React.createElement(DrawingProgress, null)\n ),\n React.createElement(\n \"main\",\n {\n className: classNames(classes.content, classes[\"content-right\"], {\n [classes.contentShift]: open,\n [classes[`contentShift-right`]]: open\n })\n },\n React.createElement(\"div\", { className: classes.drawerHeader }),\n React.createElement(ModulesGraph, null)\n ),\n React.createElement(\n Drawer,\n {\n variant: \"persistent\",\n anchor: \"right\",\n open: open,\n classes: {\n paper: classes.drawerPaper\n }\n },\n React.createElement(Sidebar, null)\n )\n )\n );\n }\n}\n\nInspectorComponent.propTypes = {\n classes: PropTypes.object.isRequired,\n theme: PropTypes.object.isRequired,\n open: PropTypes.bool\n};\n\nexport default withStyles(styles, { withTheme: true })(InspectorComponent);"
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"index": 257,
"index2": 255,
"size": 17368,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"issuerId": "svsH",
"issuerName": "./node_modules/react-autowhatever/dist/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
}
],
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "svsH",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"module": "./node_modules/react-autowhatever/dist/index.js",
"moduleName": "./node_modules/react-autowhatever/dist/index.js",
"type": "cjs require",
"userRequest": "./Autowhatever",
"loc": "3:17-42"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 9,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _sectionIterator = require('section-iterator');\n\nvar _sectionIterator2 = _interopRequireDefault(_sectionIterator);\n\nvar _reactThemeable = require('react-themeable');\n\nvar _reactThemeable2 = _interopRequireDefault(_reactThemeable);\n\nvar _SectionTitle = require('./SectionTitle');\n\nvar _SectionTitle2 = _interopRequireDefault(_SectionTitle);\n\nvar _ItemsList = require('./ItemsList');\n\nvar _ItemsList2 = _interopRequireDefault(_ItemsList);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar emptyObject = {};\nvar defaultRenderInputComponent = function defaultRenderInputComponent(props) {\n return _react2.default.createElement('input', props);\n};\nvar defaultRenderItemsContainer = function defaultRenderItemsContainer(_ref) {\n var containerProps = _ref.containerProps,\n children = _ref.children;\n return _react2.default.createElement(\n 'div',\n containerProps,\n children\n );\n};\nvar defaultTheme = {\n container: 'react-autowhatever__container',\n containerOpen: 'react-autowhatever__container--open',\n input: 'react-autowhatever__input',\n inputOpen: 'react-autowhatever__input--open',\n inputFocused: 'react-autowhatever__input--focused',\n itemsContainer: 'react-autowhatever__items-container',\n itemsContainerOpen: 'react-autowhatever__items-container--open',\n itemsList: 'react-autowhatever__items-list',\n item: 'react-autowhatever__item',\n itemFirst: 'react-autowhatever__item--first',\n itemHighlighted: 'react-autowhatever__item--highlighted',\n sectionContainer: 'react-autowhatever__section-container',\n sectionContainerFirst: 'react-autowhatever__section-container--first',\n sectionTitle: 'react-autowhatever__section-title'\n};\n\nvar Autowhatever = function (_Component) {\n _inherits(Autowhatever, _Component);\n\n function Autowhatever(props) {\n _classCallCheck(this, Autowhatever);\n\n var _this = _possibleConstructorReturn(this, (Autowhatever.__proto__ || Object.getPrototypeOf(Autowhatever)).call(this, props));\n\n _this.storeInputReference = function (input) {\n if (input !== null) {\n _this.input = input;\n }\n };\n\n _this.storeItemsContainerReference = function (itemsContainer) {\n if (itemsContainer !== null) {\n _this.itemsContainer = itemsContainer;\n }\n };\n\n _this.onHighlightedItemChange = function (highlightedItem) {\n _this.highlightedItem = highlightedItem;\n };\n\n _this.getItemId = function (sectionIndex, itemIndex) {\n if (itemIndex === null) {\n return null;\n }\n\n var id = _this.props.id;\n\n var section = sectionIndex === null ? '' : 'section-' + sectionIndex;\n\n return 'react-autowhatever-' + id + '-' + section + '-item-' + itemIndex;\n };\n\n _this.onFocus = function (event) {\n var inputProps = _this.props.inputProps;\n\n\n _this.setState({\n isInputFocused: true\n });\n\n inputProps.onFocus && inputProps.onFocus(event);\n };\n\n _this.onBlur = function (event) {\n var inputProps = _this.props.inputProps;\n\n\n _this.setState({\n isInputFocused: false\n });\n\n inputProps.onBlur && inputProps.onBlur(event);\n };\n\n _this.onKeyDown = function (event) {\n var _this$props = _this.props,\n inputProps = _this$props.inputProps,\n highlightedSectionIndex = _this$props.highlightedSectionIndex,\n highlightedItemIndex = _this$props.highlightedItemIndex;\n\n\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n {\n var nextPrev = event.key === 'ArrowDown' ? 'next' : 'prev';\n\n var _this$sectionIterator = _this.sectionIterator[nextPrev]([highlightedSectionIndex, highlightedItemIndex]),\n _this$sectionIterator2 = _slicedToArray(_this$sectionIterator, 2),\n newHighlightedSectionIndex = _this$sectionIterator2[0],\n newHighlightedItemIndex = _this$sectionIterator2[1];\n\n inputProps.onKeyDown(event, { newHighlightedSectionIndex: newHighlightedSectionIndex, newHighlightedItemIndex: newHighlightedItemIndex });\n break;\n }\n\n default:\n inputProps.onKeyDown(event, { highlightedSectionIndex: highlightedSectionIndex, highlightedItemIndex: highlightedItemIndex });\n }\n };\n\n _this.highlightedItem = null;\n\n _this.state = {\n isInputFocused: false\n };\n\n _this.setSectionsItems(props);\n _this.setSectionIterator(props);\n _this.setTheme(props);\n return _this;\n }\n\n _createClass(Autowhatever, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.ensureHighlightedItemIsVisible();\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if (nextProps.items !== this.props.items) {\n this.setSectionsItems(nextProps);\n }\n\n if (nextProps.items !== this.props.items || nextProps.multiSection !== this.props.multiSection) {\n this.setSectionIterator(nextProps);\n }\n\n if (nextProps.theme !== this.props.theme) {\n this.setTheme(nextProps);\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.ensureHighlightedItemIsVisible();\n }\n }, {\n key: 'setSectionsItems',\n value: function setSectionsItems(props) {\n if (props.multiSection) {\n this.sectionsItems = props.items.map(function (section) {\n return props.getSectionItems(section);\n });\n this.sectionsLengths = this.sectionsItems.map(function (items) {\n return items.length;\n });\n this.allSectionsAreEmpty = this.sectionsLengths.every(function (itemsCount) {\n return itemsCount === 0;\n });\n }\n }\n }, {\n key: 'setSectionIterator',\n value: function setSectionIterator(props) {\n this.sectionIterator = (0, _sectionIterator2.default)({\n multiSection: props.multiSection,\n data: props.multiSection ? this.sectionsLengths : props.items.length\n });\n }\n }, {\n key: 'setTheme',\n value: function setTheme(props) {\n this.theme = (0, _reactThemeable2.default)(props.theme);\n }\n }, {\n key: 'renderSections',\n value: function renderSections() {\n var _this2 = this;\n\n if (this.allSectionsAreEmpty) {\n return null;\n }\n\n var theme = this.theme;\n var _props = this.props,\n id = _props.id,\n items = _props.items,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n renderSectionTitle = _props.renderSectionTitle,\n highlightedSectionIndex = _props.highlightedSectionIndex,\n highlightedItemIndex = _props.highlightedItemIndex,\n itemProps = _props.itemProps;\n\n\n return items.map(function (section, sectionIndex) {\n var keyPrefix = 'react-autowhatever-' + id + '-';\n var sectionKeyPrefix = keyPrefix + 'section-' + sectionIndex + '-';\n var isFirstSection = sectionIndex === 0;\n\n // `key` is provided by theme()\n /* eslint-disable react/jsx-key */\n return _react2.default.createElement(\n 'div',\n theme(sectionKeyPrefix + 'container', 'sectionContainer', isFirstSection && 'sectionContainerFirst'),\n _react2.default.createElement(_SectionTitle2.default, {\n section: section,\n renderSectionTitle: renderSectionTitle,\n theme: theme,\n sectionKeyPrefix: sectionKeyPrefix\n }),\n _react2.default.createElement(_ItemsList2.default, {\n items: _this2.sectionsItems[sectionIndex],\n itemProps: itemProps,\n renderItem: renderItem,\n renderItemData: renderItemData,\n sectionIndex: sectionIndex,\n highlightedItemIndex: highlightedSectionIndex === sectionIndex ? highlightedItemIndex : null,\n onHighlightedItemChange: _this2.onHighlightedItemChange,\n getItemId: _this2.getItemId,\n theme: theme,\n keyPrefix: keyPrefix,\n ref: _this2.storeItemsListReference\n })\n );\n /* eslint-enable react/jsx-key */\n });\n }\n }, {\n key: 'renderItems',\n value: function renderItems() {\n var items = this.props.items;\n\n\n if (items.length === 0) {\n return null;\n }\n\n var theme = this.theme;\n var _props2 = this.props,\n id = _props2.id,\n renderItem = _props2.renderItem,\n renderItemData = _props2.renderItemData,\n highlightedSectionIndex = _props2.highlightedSectionIndex,\n highlightedItemIndex = _props2.highlightedItemIndex,\n itemProps = _props2.itemProps;\n\n\n return _react2.default.createElement(_ItemsList2.default, {\n items: items,\n itemProps: itemProps,\n renderItem: renderItem,\n renderItemData: renderItemData,\n highlightedItemIndex: highlightedSectionIndex === null ? highlightedItemIndex : null,\n onHighlightedItemChange: this.onHighlightedItemChange,\n getItemId: this.getItemId,\n theme: theme,\n keyPrefix: 'react-autowhatever-' + id + '-'\n });\n }\n }, {\n key: 'ensureHighlightedItemIsVisible',\n value: function ensureHighlightedItemIsVisible() {\n var highlightedItem = this.highlightedItem;\n\n\n if (!highlightedItem) {\n return;\n }\n\n var itemsContainer = this.itemsContainer;\n\n var itemOffsetRelativeToContainer = highlightedItem.offsetParent === itemsContainer ? highlightedItem.offsetTop : highlightedItem.offsetTop - itemsContainer.offsetTop;\n\n var scrollTop = itemsContainer.scrollTop; // Top of the visible area\n\n if (itemOffsetRelativeToContainer < scrollTop) {\n // Item is off the top of the visible area\n scrollTop = itemOffsetRelativeToContainer;\n } else if (itemOffsetRelativeToContainer + highlightedItem.offsetHeight > scrollTop + itemsContainer.offsetHeight) {\n // Item is off the bottom of the visible area\n scrollTop = itemOffsetRelativeToContainer + highlightedItem.offsetHeight - itemsContainer.offsetHeight;\n }\n\n if (scrollTop !== itemsContainer.scrollTop) {\n itemsContainer.scrollTop = scrollTop;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var theme = this.theme;\n var _props3 = this.props,\n id = _props3.id,\n multiSection = _props3.multiSection,\n renderInputComponent = _props3.renderInputComponent,\n renderItemsContainer = _props3.renderItemsContainer,\n highlightedSectionIndex = _props3.highlightedSectionIndex,\n highlightedItemIndex = _props3.highlightedItemIndex;\n var isInputFocused = this.state.isInputFocused;\n\n var renderedItems = multiSection ? this.renderSections() : this.renderItems();\n var isOpen = renderedItems !== null;\n var ariaActivedescendant = this.getItemId(highlightedSectionIndex, highlightedItemIndex);\n var itemsContainerId = 'react-autowhatever-' + id;\n var containerProps = _extends({\n role: 'combobox',\n 'aria-haspopup': 'listbox',\n 'aria-owns': itemsContainerId,\n 'aria-expanded': isOpen\n }, theme('react-autowhatever-' + id + '-container', 'container', isOpen && 'containerOpen'));\n var inputComponent = renderInputComponent(_extends({\n type: 'text',\n value: '',\n autoComplete: 'off',\n 'aria-autocomplete': 'list',\n 'aria-controls': itemsContainerId,\n 'aria-activedescendant': ariaActivedescendant\n }, theme('react-autowhatever-' + id + '-input', 'input', isOpen && 'inputOpen', isInputFocused && 'inputFocused'), this.props.inputProps, {\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown,\n ref: this.storeInputReference\n }));\n var itemsContainer = renderItemsContainer({\n containerProps: _extends({\n id: itemsContainerId,\n role: 'listbox'\n }, theme('react-autowhatever-' + id + '-items-container', 'itemsContainer', isOpen && 'itemsContainerOpen'), {\n ref: this.storeItemsContainerReference\n }),\n children: renderedItems\n });\n\n return _react2.default.createElement(\n 'div',\n containerProps,\n inputComponent,\n itemsContainer\n );\n }\n }]);\n\n return Autowhatever;\n}(_react.Component);\n\nAutowhatever.propTypes = {\n id: _propTypes2.default.string, // Used in aria-* attributes. If multiple Autowhatever's are rendered on a page, they must have unique ids.\n multiSection: _propTypes2.default.bool, // Indicates whether a multi section layout should be rendered.\n renderInputComponent: _propTypes2.default.func, // When specified, it is used to render the input element.\n renderItemsContainer: _propTypes2.default.func, // Renders the items container.\n items: _propTypes2.default.array.isRequired, // Array of items or sections to render.\n renderItem: _propTypes2.default.func, // This function renders a single item.\n renderItemData: _propTypes2.default.object, // Arbitrary data that will be passed to renderItem()\n renderSectionTitle: _propTypes2.default.func, // This function gets a section and renders its title.\n getSectionItems: _propTypes2.default.func, // This function gets a section and returns its items, which will be passed into `renderItem` for rendering.\n inputProps: _propTypes2.default.object, // Arbitrary input props\n itemProps: _propTypes2.default.oneOfType([// Arbitrary item props\n _propTypes2.default.object, _propTypes2.default.func]),\n highlightedSectionIndex: _propTypes2.default.number, // Section index of the highlighted item\n highlightedItemIndex: _propTypes2.default.number, // Highlighted item index (within a section)\n theme: _propTypes2.default.oneOfType([// Styles. See: https://github.com/markdalgleish/react-themeable\n _propTypes2.default.object, _propTypes2.default.array])\n};\nAutowhatever.defaultProps = {\n id: '1',\n multiSection: false,\n renderInputComponent: defaultRenderInputComponent,\n renderItemsContainer: defaultRenderItemsContainer,\n renderItem: function renderItem() {\n throw new Error('`renderItem` must be provided');\n },\n renderItemData: emptyObject,\n renderSectionTitle: function renderSectionTitle() {\n throw new Error('`renderSectionTitle` must be provided');\n },\n getSectionItems: function getSectionItems() {\n throw new Error('`getSectionItems` must be provided');\n },\n inputProps: emptyObject,\n itemProps: emptyObject,\n highlightedSectionIndex: null,\n highlightedItemIndex: null,\n theme: defaultTheme\n};\nexports.default = Autowhatever;"
},
{
"id": "ekFh",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/Drawer/index.js",
"name": "./node_modules/@material-ui/core/Drawer/index.js",
"index": 216,
"index2": 238,
"size": 358,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/Drawer",
"loc": "6:0-46"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/Drawer",
"loc": "55:10-16"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 5,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _Drawer.default;\n }\n});\n\nvar _Drawer = _interopRequireDefault(require(\"./Drawer\"));"
},
{
"id": "g9BV",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/DrawingProgress.js",
"name": "./frontend/components/DrawingProgress.js",
"index": 395,
"index2": 392,
"size": 367,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "../../components/DrawingProgress",
"loc": "14:0-67"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "../../components/DrawingProgress",
"loc": "41:30-45"
}
],
"providedExports": [
"DrawingProgress"
],
"optimizationBailout": [],
"depth": 5,
"source": "import React from \"react\";\nimport LinearProgress from \"@material-ui/core/LinearProgress\";\nimport { StoreContext } from \"../Store\";\n\nexport const DrawingProgress = () => {\n return React.createElement(\n StoreContext.Consumer,\n null,\n ctx => {\n return ctx.isDrawing ? React.createElement(LinearProgress, { style: { width: \"100%\" } }) : null;\n }\n );\n};"
},
{
"id": "gz6s",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/compareObjects.js",
"name": "./node_modules/react-autowhatever/dist/compareObjects.js",
"index": 262,
"index2": 251,
"size": 1635,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"issuerId": "k7+M",
"issuerName": "./node_modules/react-autowhatever/dist/ItemsList.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
},
{
"id": "k7+M",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"name": "./node_modules/react-autowhatever/dist/ItemsList.js",
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
}
}
],
"profile": {
"factory": 44,
"building": 19,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "k7+M",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"module": "./node_modules/react-autowhatever/dist/ItemsList.js",
"moduleName": "./node_modules/react-autowhatever/dist/ItemsList.js",
"type": "cjs require",
"userRequest": "./compareObjects",
"loc": "23:22-49"
},
{
"moduleId": "nEw6",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/SectionTitle.js",
"module": "./node_modules/react-autowhatever/dist/SectionTitle.js",
"moduleName": "./node_modules/react-autowhatever/dist/SectionTitle.js",
"type": "cjs require",
"userRequest": "./compareObjects",
"loc": "17:22-49"
},
{
"moduleId": "iVub",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Item.js",
"module": "./node_modules/react-autowhatever/dist/Item.js",
"moduleName": "./node_modules/react-autowhatever/dist/Item.js",
"type": "cjs require",
"userRequest": "./compareObjects",
"loc": "19:22-49"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 11,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = compareObjects;\nfunction compareObjects(objA, objB) {\n var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n if (objA === objB) {\n return false;\n }\n\n var aKeys = Object.keys(objA);\n var bKeys = Object.keys(objB);\n\n if (aKeys.length !== bKeys.length) {\n return true;\n }\n\n var keysMap = {};\n var i = void 0,\n len = void 0;\n\n for (i = 0, len = keys.length; i < len; i++) {\n keysMap[keys[i]] = true;\n }\n\n for (i = 0, len = aKeys.length; i < len; i++) {\n var key = aKeys[i];\n var aValue = objA[key];\n var bValue = objB[key];\n\n if (aValue === bValue) {\n continue;\n }\n\n if (!keysMap[key] || aValue === null || bValue === null || (typeof aValue === 'undefined' ? 'undefined' : _typeof(aValue)) !== 'object' || (typeof bValue === 'undefined' ? 'undefined' : _typeof(bValue)) !== 'object') {\n return true;\n }\n\n var aValueKeys = Object.keys(aValue);\n var bValueKeys = Object.keys(bValue);\n\n if (aValueKeys.length !== bValueKeys.length) {\n return true;\n }\n\n for (var n = 0, length = aValueKeys.length; n < length; n++) {\n var aValueKey = aValueKeys[n];\n\n if (aValue[aValueKey] !== bValue[aValueKey]) {\n return true;\n }\n }\n }\n\n return false;\n}"
},
{
"id": "iVub",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Item.js",
"name": "./node_modules/react-autowhatever/dist/Item.js",
"index": 264,
"index2": 253,
"size": 6050,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"issuerId": "k7+M",
"issuerName": "./node_modules/react-autowhatever/dist/ItemsList.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
},
{
"id": "k7+M",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"name": "./node_modules/react-autowhatever/dist/ItemsList.js",
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
}
}
],
"profile": {
"factory": 44,
"building": 19,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "k7+M",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"module": "./node_modules/react-autowhatever/dist/ItemsList.js",
"moduleName": "./node_modules/react-autowhatever/dist/ItemsList.js",
"type": "cjs require",
"userRequest": "./Item",
"loc": "19:12-29"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 11,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Item = function (_Component) {\n _inherits(Item, _Component);\n\n function Item() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Item);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Item.__proto__ || Object.getPrototypeOf(Item)).call.apply(_ref, [this].concat(args))), _this), _this.storeItemReference = function (item) {\n if (item !== null) {\n _this.item = item;\n }\n }, _this.onMouseEnter = function (event) {\n var _this$props = _this.props,\n sectionIndex = _this$props.sectionIndex,\n itemIndex = _this$props.itemIndex;\n\n\n _this.props.onMouseEnter(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onMouseLeave = function (event) {\n var _this$props2 = _this.props,\n sectionIndex = _this$props2.sectionIndex,\n itemIndex = _this$props2.itemIndex;\n\n\n _this.props.onMouseLeave(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onMouseDown = function (event) {\n var _this$props3 = _this.props,\n sectionIndex = _this$props3.sectionIndex,\n itemIndex = _this$props3.itemIndex;\n\n\n _this.props.onMouseDown(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onClick = function (event) {\n var _this$props4 = _this.props,\n sectionIndex = _this$props4.sectionIndex,\n itemIndex = _this$props4.itemIndex;\n\n\n _this.props.onClick(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Item, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props, ['renderItemData']);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n isHighlighted = _props.isHighlighted,\n item = _props.item,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n restProps = _objectWithoutProperties(_props, ['isHighlighted', 'item', 'renderItem', 'renderItemData']);\n\n delete restProps.sectionIndex;\n delete restProps.itemIndex;\n\n if (typeof restProps.onMouseEnter === 'function') {\n restProps.onMouseEnter = this.onMouseEnter;\n }\n\n if (typeof restProps.onMouseLeave === 'function') {\n restProps.onMouseLeave = this.onMouseLeave;\n }\n\n if (typeof restProps.onMouseDown === 'function') {\n restProps.onMouseDown = this.onMouseDown;\n }\n\n if (typeof restProps.onClick === 'function') {\n restProps.onClick = this.onClick;\n }\n\n return _react2.default.createElement(\n 'li',\n _extends({ role: 'option' }, restProps, { ref: this.storeItemReference }),\n renderItem(item, _extends({ isHighlighted: isHighlighted }, renderItemData))\n );\n }\n }]);\n\n return Item;\n}(_react.Component);\n\nItem.propTypes = {\n sectionIndex: _propTypes2.default.number,\n isHighlighted: _propTypes2.default.bool.isRequired,\n itemIndex: _propTypes2.default.number.isRequired,\n item: _propTypes2.default.any.isRequired,\n renderItem: _propTypes2.default.func.isRequired,\n renderItemData: _propTypes2.default.object.isRequired,\n onMouseEnter: _propTypes2.default.func,\n onMouseLeave: _propTypes2.default.func,\n onMouseDown: _propTypes2.default.func,\n onClick: _propTypes2.default.func\n};\nexports.default = Item;"
},
{
"id": "ivWS",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/AppBar/AppBar.js",
"name": "./node_modules/@material-ui/core/AppBar/AppBar.js",
"index": 245,
"index2": 239,
"size": 4186,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/AppBar/index.js",
"issuerId": "YDiY",
"issuerName": "./node_modules/@material-ui/core/AppBar/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "YDiY",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/AppBar/index.js",
"name": "./node_modules/@material-ui/core/AppBar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 78,
"building": 105,
"dependencies": 2
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "YDiY",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/AppBar/index.js",
"module": "./node_modules/@material-ui/core/AppBar/index.js",
"moduleName": "./node_modules/@material-ui/core/AppBar/index.js",
"type": "cjs require",
"userRequest": "./AppBar",
"loc": "15:37-56"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _helpers = require(\"../utils/helpers\");\n\nvar _Paper = _interopRequireDefault(require(\"../Paper\"));\n\n// @inheritedComponent Paper\nvar styles = function styles(theme) {\n var backgroundColorDefault = theme.palette.type === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];\n return {\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n boxSizing: 'border-box',\n // Prevent padding issue with the Modal and fixed positioned AppBar.\n zIndex: theme.zIndex.appBar,\n flexShrink: 0\n },\n positionFixed: {\n position: 'fixed',\n top: 0,\n left: 'auto',\n right: 0\n },\n positionAbsolute: {\n position: 'absolute',\n top: 0,\n left: 'auto',\n right: 0\n },\n positionSticky: {\n position: 'sticky',\n top: 0,\n left: 'auto',\n right: 0\n },\n positionStatic: {\n position: 'static'\n },\n colorDefault: {\n backgroundColor: backgroundColorDefault,\n color: theme.palette.getContrastText(backgroundColorDefault)\n },\n colorPrimary: {\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText\n },\n colorSecondary: {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.secondary.contrastText\n }\n };\n};\n\nexports.styles = styles;\n\nfunction AppBar(props) {\n var _classNames;\n\n var children = props.children,\n classes = props.classes,\n classNameProp = props.className,\n color = props.color,\n position = props.position,\n other = (0, _objectWithoutProperties2.default)(props, [\"children\", \"classes\", \"className\", \"color\", \"position\"]);\n var className = (0, _classnames.default)(classes.root, classes[\"position\".concat((0, _helpers.capitalize)(position))], (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes[\"color\".concat((0, _helpers.capitalize)(color))], color !== 'inherit'), (0, _defineProperty2.default)(_classNames, 'mui-fixed', position === 'fixed'), _classNames), classNameProp);\n return _react.default.createElement(_Paper.default, (0, _extends2.default)({\n square: true,\n component: \"header\",\n elevation: 4,\n className: className\n }, other), children);\n}\n\nAppBar.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * The content of the component.\n */\n children: _propTypes.default.node.isRequired,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: _propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'default']),\n\n /**\n * The positioning type. The behavior of the different options is described\n * [here](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).\n * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.\n */\n position: _propTypes.default.oneOf(['fixed', 'absolute', 'sticky', 'static'])\n} : {};\nAppBar.defaultProps = {\n color: 'primary',\n position: 'fixed'\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiAppBar'\n})(AppBar);\n\nexports.default = _default;"
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"index": 252,
"index2": 380,
"size": 5379,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "../../components/ModuleSearch",
"loc": "12:0-57"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "../../components/ModuleSearch",
"loc": "38:32-44"
}
],
"providedExports": [
"default"
],
"optimizationBailout": [],
"depth": 5,
"source": "var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Autosuggest from \"react-autosuggest\";\nimport match from \"autosuggest-highlight/match\";\nimport parse from \"autosuggest-highlight/parse\";\nimport TextField from \"@material-ui/core/TextField\";\nimport Paper from \"@material-ui/core/Paper\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport { withStyles } from \"@material-ui/core/styles\";\nimport { StoreContext } from \"../Store\";\n\nfunction renderInput(inputProps) {\n const { classes, ref } = inputProps,\n other = _objectWithoutProperties(inputProps, [\"classes\", \"ref\"]);\n\n return React.createElement(TextField, {\n fullWidth: true,\n InputProps: _extends({\n inputRef: ref,\n classes: {\n input: classes.input\n }\n }, other)\n });\n}\n\nfunction renderSuggestion(suggestion, { query, isHighlighted }) {\n const matches = match(suggestion.label, query);\n const parts = parse(suggestion.label, matches);\n\n return React.createElement(\n MenuItem,\n { selected: isHighlighted, component: \"div\" },\n React.createElement(\n \"div\",\n null,\n parts.map((part, index) => {\n return part.highlight ? React.createElement(\n \"span\",\n { key: String(index), style: { fontWeight: 300 } },\n part.text\n ) : React.createElement(\n \"strong\",\n { key: String(index), style: { fontWeight: 500 } },\n part.text\n );\n })\n )\n );\n}\n\nfunction renderSuggestionsContainer(options) {\n const { containerProps, children } = options;\n\n return React.createElement(\n Paper,\n _extends({}, containerProps, { square: true }),\n children\n );\n}\n\nfunction getSuggestionValue(suggestion) {\n return suggestion.label;\n}\n\nfunction getSuggestions(value, modules) {\n const inputValue = value.trim().toLowerCase();\n const inputLength = inputValue.length;\n const suggestions = [];\n if (inputLength === 0) {\n return [];\n }\n let count = 0;\n for (let i = 0; i < modules.length; i++) {\n const mod = modules[i];\n if (mod.label.toLowerCase().indexOf(inputValue) !== -1 && count < 10) {\n suggestions.push(mod);\n count++;\n }\n }\n return suggestions;\n}\n\nconst styles = theme => ({\n container: {\n flexGrow: 1,\n position: \"relative\"\n },\n suggestionsContainerOpen: {\n position: \"absolute\",\n zIndex: 1,\n marginTop: theme.spacing.unit,\n left: 0,\n right: 0\n },\n suggestion: {\n display: \"block\"\n },\n suggestionsList: {\n margin: 0,\n padding: 0,\n listStyleType: \"none\"\n },\n input: {\n color: \"white\"\n }\n});\n\nclass IntegrationAutosuggest extends React.Component {\n constructor(...args) {\n var _temp;\n\n return _temp = super(...args), _initialiseProps.call(this), _temp;\n }\n\n render() {\n const { classes } = this.props;\n\n return React.createElement(Autosuggest, {\n theme: {\n container: classes.container,\n suggestionsContainerOpen: classes.suggestionsContainerOpen,\n suggestionsList: classes.suggestionsList,\n suggestion: classes.suggestion\n },\n renderInputComponent: renderInput,\n suggestions: this.state.suggestions,\n onSuggestionsFetchRequested: this.handleSuggestionsFetchRequested,\n onSuggestionsClearRequested: this.handleSuggestionsClearRequested,\n onSuggestionSelected: this.handleSuggestionSelected,\n renderSuggestionsContainer: renderSuggestionsContainer,\n getSuggestionValue: getSuggestionValue,\n renderSuggestion: renderSuggestion,\n inputProps: {\n classes,\n placeholder: \"Search and select module\",\n value: this.state.value,\n onChange: this.handleChange\n }\n });\n }\n}\n\nvar _initialiseProps = function () {\n this.state = {\n value: \"\",\n suggestions: []\n };\n\n this.handleSuggestionsFetchRequested = ({ value }) => {\n this.setState({\n suggestions: getSuggestions(value, this.props.modules)\n });\n };\n\n this.handleSuggestionsClearRequested = () => {\n this.setState({\n suggestions: []\n });\n };\n\n this.handleChange = (event, { newValue }) => {\n this.setState({\n value: newValue\n });\n };\n\n this.handleSuggestionSelected = (event, args) => {\n console.log(\"selected suggestion\", args.suggestion);\n this.props.onSuggestionSelected(args.suggestion.id);\n };\n};\n\nIntegrationAutosuggest.propTypes = {\n classes: PropTypes.object.isRequired\n};\n\nfunction makeSuggestions(modules) {\n return modules.map(module => {\n return { label: module.name, id: module.id, module };\n });\n}\n\nconst ModuleSearchWrapper = props => {\n return React.createElement(\n StoreContext.Consumer,\n null,\n ({ modules, onModuleChange }) => React.createElement(IntegrationAutosuggest, _extends({}, props, {\n modules: makeSuggestions(modules),\n onSuggestionSelected: onModuleChange\n }))\n );\n};\n\nexport default withStyles(styles)(ModuleSearchWrapper);"
},
{
"id": "jPLn",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItem/ListItem.js",
"name": "./node_modules/@material-ui/core/ListItem/ListItem.js",
"index": 385,
"index2": 376,
"size": 8889,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItem/index.js",
"issuerId": "NABS",
"issuerName": "./node_modules/@material-ui/core/ListItem/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "Yn2G",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/component.js",
"name": "./frontend/components/Sidebar/component.js",
"profile": {
"factory": 90,
"building": 101,
"dependencies": 1
}
},
{
"id": "NABS",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItem/index.js",
"name": "./node_modules/@material-ui/core/ListItem/index.js",
"profile": {
"factory": 257,
"building": 70,
"dependencies": 7
}
}
],
"profile": {
"factory": 70,
"building": 52,
"dependencies": 5
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "NABS",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/ListItem/index.js",
"module": "./node_modules/@material-ui/core/ListItem/index.js",
"moduleName": "./node_modules/@material-ui/core/ListItem/index.js",
"type": "cjs require",
"userRequest": "./ListItem",
"loc": "15:39-60"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.styles = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/extends\"));\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectSpread\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/objectWithoutProperties\"));\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/createClass\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/possibleConstructorReturn\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/builtin/inherits\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _withStyles = _interopRequireDefault(require(\"../styles/withStyles\"));\n\nvar _ButtonBase = _interopRequireDefault(require(\"../ButtonBase\"));\n\nvar _reactHelpers = require(\"../utils/reactHelpers\");\n\nvar styles = function styles(theme) {\n return {\n root: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left'\n },\n container: {\n position: 'relative'\n },\n focusVisible: {\n backgroundColor: theme.palette.action.hover\n },\n default: {\n paddingTop: 12,\n paddingBottom: 12\n },\n dense: {\n paddingTop: theme.spacing.unit,\n paddingBottom: theme.spacing.unit\n },\n disabled: {\n opacity: 0.5\n },\n divider: {\n borderBottom: \"1px solid \".concat(theme.palette.divider),\n backgroundClip: 'padding-box'\n },\n gutters: theme.mixins.gutters(),\n button: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n secondaryAction: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positionned.\n paddingRight: theme.spacing.unit * 4\n }\n };\n};\n\nexports.styles = styles;\n\nvar ListItem =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inherits2.default)(ListItem, _React$Component);\n\n function ListItem() {\n (0, _classCallCheck2.default)(this, ListItem);\n return (0, _possibleConstructorReturn2.default)(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).apply(this, arguments));\n }\n\n (0, _createClass2.default)(ListItem, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n dense: this.props.dense || this.context.dense || false\n };\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classNames;\n\n var _props = this.props,\n button = _props.button,\n childrenProp = _props.children,\n classes = _props.classes,\n classNameProp = _props.className,\n componentProp = _props.component,\n ContainerComponent = _props.ContainerComponent,\n _props$ContainerProps = _props.ContainerProps;\n _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;\n var ContainerClassName = _props$ContainerProps.className,\n ContainerProps = (0, _objectWithoutProperties2.default)(_props$ContainerProps, [\"className\"]),\n dense = _props.dense,\n disabled = _props.disabled,\n disableGutters = _props.disableGutters,\n divider = _props.divider,\n focusVisibleClassName = _props.focusVisibleClassName,\n other = (0, _objectWithoutProperties2.default)(_props, [\"button\", \"children\", \"classes\", \"className\", \"component\", \"ContainerComponent\", \"ContainerProps\", \"dense\", \"disabled\", \"disableGutters\", \"divider\", \"focusVisibleClassName\"]);\n var isDense = dense || this.context.dense || false;\n\n var children = _react.default.Children.toArray(childrenProp);\n\n var hasAvatar = children.some(function (value) {\n return (0, _reactHelpers.isMuiElement)(value, ['ListItemAvatar']);\n });\n var hasSecondaryAction = children.length && (0, _reactHelpers.isMuiElement)(children[children.length - 1], ['ListItemSecondaryAction']);\n var className = (0, _classnames.default)(classes.root, isDense || hasAvatar ? classes.dense : classes.default, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.gutters, !disableGutters), (0, _defineProperty2.default)(_classNames, classes.divider, divider), (0, _defineProperty2.default)(_classNames, classes.disabled, disabled), (0, _defineProperty2.default)(_classNames, classes.button, button), (0, _defineProperty2.default)(_classNames, classes.secondaryAction, hasSecondaryAction), _classNames), classNameProp);\n var componentProps = (0, _objectSpread2.default)({\n className: className,\n disabled: disabled\n }, other);\n var Component = componentProp || 'li';\n\n if (button) {\n componentProps.component = componentProp || 'div';\n componentProps.focusVisibleClassName = (0, _classnames.default)(classes.focusVisible, focusVisibleClassName);\n Component = _ButtonBase.default;\n }\n\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component; // Avoid nesting of li > li.\n\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n\n return _react.default.createElement(ContainerComponent, (0, _extends2.default)({\n className: (0, _classnames.default)(classes.container, ContainerClassName)\n }, ContainerProps), _react.default.createElement(Component, componentProps, children), children.pop());\n }\n\n return _react.default.createElement(Component, componentProps, children);\n }\n }]);\n return ListItem;\n}(_react.default.Component);\n\nListItem.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * If `true`, the list item will be a button (using `ButtonBase`).\n */\n button: _propTypes.default.bool,\n\n /**\n * The content of the component.\n */\n children: _propTypes.default.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css-api) below for more details.\n */\n classes: _propTypes.default.object.isRequired,\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a DOM element or a component.\n * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`.\n */\n component: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),\n\n /**\n * The container component used when a `ListItemSecondaryAction` is rendered.\n */\n ContainerComponent: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),\n\n /**\n * Properties applied to the container element when the component\n * is used to display a `ListItemSecondaryAction`.\n */\n ContainerProps: _propTypes.default.object,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */\n dense: _propTypes.default.bool,\n\n /**\n * @ignore\n */\n disabled: _propTypes.default.bool,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: _propTypes.default.bool,\n\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n */\n divider: _propTypes.default.bool,\n\n /**\n * @ignore\n */\n focusVisibleClassName: _propTypes.default.string\n} : {};\nListItem.defaultProps = {\n button: false,\n ContainerComponent: 'li',\n dense: false,\n disabled: false,\n disableGutters: false,\n divider: false\n};\nListItem.contextTypes = {\n dense: _propTypes.default.bool\n};\nListItem.childContextTypes = {\n dense: _propTypes.default.bool\n};\n\nvar _default = (0, _withStyles.default)(styles, {\n name: 'MuiListItem'\n})(ListItem);\n\nexports.default = _default;"
},
{
"id": "k7+M",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/ItemsList.js",
"name": "./node_modules/react-autowhatever/dist/ItemsList.js",
"index": 263,
"index2": 254,
"size": 5923,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerId": "cRPI",
"issuerName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
}
],
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "cRPI",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"module": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"moduleName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"type": "cjs require",
"userRequest": "./ItemsList",
"loc": "33:17-39"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 10,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Item = require('./Item');\n\nvar _Item2 = _interopRequireDefault(_Item);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ItemsList = function (_Component) {\n _inherits(ItemsList, _Component);\n\n function ItemsList() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, ItemsList);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [this].concat(args))), _this), _this.storeHighlightedItemReference = function (highlightedItem) {\n _this.props.onHighlightedItemChange(highlightedItem === null ? null : highlightedItem.item);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(ItemsList, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props, ['itemProps']);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n items = _props.items,\n itemProps = _props.itemProps,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n sectionIndex = _props.sectionIndex,\n highlightedItemIndex = _props.highlightedItemIndex,\n getItemId = _props.getItemId,\n theme = _props.theme,\n keyPrefix = _props.keyPrefix;\n\n var sectionPrefix = sectionIndex === null ? keyPrefix : keyPrefix + 'section-' + sectionIndex + '-';\n var isItemPropsFunction = typeof itemProps === 'function';\n\n return _react2.default.createElement(\n 'ul',\n _extends({ role: 'listbox' }, theme(sectionPrefix + 'items-list', 'itemsList')),\n items.map(function (item, itemIndex) {\n var isFirst = itemIndex === 0;\n var isHighlighted = itemIndex === highlightedItemIndex;\n var itemKey = sectionPrefix + 'item-' + itemIndex;\n var itemPropsObj = isItemPropsFunction ? itemProps({ sectionIndex: sectionIndex, itemIndex: itemIndex }) : itemProps;\n var allItemProps = _extends({\n id: getItemId(sectionIndex, itemIndex),\n 'aria-selected': isHighlighted\n }, theme(itemKey, 'item', isFirst && 'itemFirst', isHighlighted && 'itemHighlighted'), itemPropsObj);\n\n if (isHighlighted) {\n allItemProps.ref = _this2.storeHighlightedItemReference;\n }\n\n // `key` is provided by theme()\n /* eslint-disable react/jsx-key */\n return _react2.default.createElement(_Item2.default, _extends({}, allItemProps, {\n sectionIndex: sectionIndex,\n isHighlighted: isHighlighted,\n itemIndex: itemIndex,\n item: item,\n renderItem: renderItem,\n renderItemData: renderItemData\n }));\n /* eslint-enable react/jsx-key */\n })\n );\n }\n }]);\n\n return ItemsList;\n}(_react.Component);\n\nItemsList.propTypes = {\n items: _propTypes2.default.array.isRequired,\n itemProps: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n renderItem: _propTypes2.default.func.isRequired,\n renderItemData: _propTypes2.default.object.isRequired,\n sectionIndex: _propTypes2.default.number,\n highlightedItemIndex: _propTypes2.default.number,\n onHighlightedItemChange: _propTypes2.default.func.isRequired,\n getItemId: _propTypes2.default.func.isRequired,\n theme: _propTypes2.default.func.isRequired,\n keyPrefix: _propTypes2.default.string.isRequired\n};\nItemsList.defaultProps = {\n sectionIndex: null\n};\nexports.default = ItemsList;"
},
{
"id": "krr1",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/Sidebar/index.js",
"name": "./frontend/components/Sidebar/index.js",
"index": 386,
"index2": 389,
"size": 418,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"issuerId": "bFrp",
"issuerName": "./frontend/pages/Inspector/component.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
}
],
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony side effect evaluation",
"userRequest": "../../components/Sidebar/index",
"loc": "13:0-53"
},
{
"moduleId": "bFrp",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"module": "./frontend/pages/Inspector/component.js",
"moduleName": "./frontend/pages/Inspector/component.js",
"type": "harmony import specifier",
"userRequest": "../../components/Sidebar/index",
"loc": "64:30-37"
}
],
"providedExports": [
"default"
],
"optimizationBailout": [],
"depth": 5,
"source": "import React from \"react\";\nimport { StoreContext } from \"../../Store\";\nimport SidebarComponent from \"./component\";\n\nconst Sidebar = () => {\n return React.createElement(\n StoreContext.Consumer,\n null,\n ctx => React.createElement(SidebarComponent, {\n modules: ctx.modules || [],\n selectedModuleId: ctx.selectedModuleId,\n onReasonSelect: ctx.onReasonSelect\n })\n );\n};\n\nexport default Sidebar;"
},
{
"id": "n5s8",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/@material-ui/core/MenuItem/index.js",
"name": "./node_modules/@material-ui/core/MenuItem/index.js",
"index": 382,
"index2": 379,
"size": 364,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"issuerId": "izlm",
"issuerName": "./frontend/components/ModuleSearch.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
}
],
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony side effect evaluation",
"userRequest": "@material-ui/core/MenuItem",
"loc": "12:0-50"
},
{
"moduleId": "izlm",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"module": "./frontend/components/ModuleSearch.js",
"moduleName": "./frontend/components/ModuleSearch.js",
"type": "harmony import specifier",
"userRequest": "@material-ui/core/MenuItem",
"loc": "36:4-12"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 6,
"source": "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/builtin/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _MenuItem.default;\n }\n});\n\nvar _MenuItem = _interopRequireDefault(require(\"./MenuItem\"));"
},
{
"id": "nEw6",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/SectionTitle.js",
"name": "./node_modules/react-autowhatever/dist/SectionTitle.js",
"index": 261,
"index2": 252,
"size": 3273,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerId": "cRPI",
"issuerName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"profile": {
"factory": 940,
"building": 54
}
},
{
"id": "cRPI",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"name": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"profile": {
"factory": 73,
"building": 27,
"dependencies": 39
}
}
],
"profile": {
"factory": 109,
"building": 7,
"dependencies": 42
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "cRPI",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/Autowhatever.js",
"module": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"moduleName": "./node_modules/react-autowhatever/dist/Autowhatever.js",
"type": "cjs require",
"userRequest": "./SectionTitle",
"loc": "29:20-45"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 10,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar SectionTitle = function (_Component) {\n _inherits(SectionTitle, _Component);\n\n function SectionTitle() {\n _classCallCheck(this, SectionTitle);\n\n return _possibleConstructorReturn(this, (SectionTitle.__proto__ || Object.getPrototypeOf(SectionTitle)).apply(this, arguments));\n }\n\n _createClass(SectionTitle, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n section = _props.section,\n renderSectionTitle = _props.renderSectionTitle,\n theme = _props.theme,\n sectionKeyPrefix = _props.sectionKeyPrefix;\n\n var sectionTitle = renderSectionTitle(section);\n\n if (!sectionTitle) {\n return null;\n }\n\n return _react2.default.createElement(\n 'div',\n theme(sectionKeyPrefix + 'title', 'sectionTitle'),\n sectionTitle\n );\n }\n }]);\n\n return SectionTitle;\n}(_react.Component);\n\nSectionTitle.propTypes = {\n section: _propTypes2.default.any.isRequired,\n renderSectionTitle: _propTypes2.default.func.isRequired,\n theme: _propTypes2.default.func.isRequired,\n sectionKeyPrefix: _propTypes2.default.string.isRequired\n};\nexports.default = SectionTitle;"
},
{
"id": "svsH",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autowhatever/dist/index.js",
"name": "./node_modules/react-autowhatever/dist/index.js",
"index": 256,
"index2": 256,
"size": 66,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerId": "Cg+p",
"issuerName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
}
],
"profile": {
"factory": 940,
"building": 54
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Cg+p",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"module": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"moduleName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"type": "cjs require",
"userRequest": "react-autowhatever",
"loc": "23:25-54"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "'use strict';\n\nmodule.exports = require('./Autowhatever').default;"
},
{
"id": "sz7I",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/diacritic/diacritics.js",
"name": "./node_modules/diacritic/diacritics.js",
"index": 267,
"index2": 260,
"size": 10151,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/autosuggest-highlight/match/index.js",
"issuerId": "/DBP",
"issuerName": "./node_modules/autosuggest-highlight/match/index.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "/DBP",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/autosuggest-highlight/match/index.js",
"name": "./node_modules/autosuggest-highlight/match/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
}
],
"profile": {
"factory": 198,
"building": 28
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "/DBP",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/autosuggest-highlight/match/index.js",
"module": "./node_modules/autosuggest-highlight/match/index.js",
"moduleName": "./node_modules/autosuggest-highlight/match/index.js",
"type": "cjs require",
"userRequest": "diacritic",
"loc": "1:23-43"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 7,
"source": "// Diacritics.js\n// \n// Started as something to be an equivalent of the Google Java Library diacritics library for JavaScript.\n// Found this: http://jsperf.com/diacritics/6 and converted it into a reusable module.\n// \n// @author Nijiko Yonskai\n// @license MIT\n// @copyright Nijikokun 2013 <nijikokun@gmail.com>\n(function (name, definition) {\n if (typeof module != 'undefined' && module.exports) module.exports = definition()\n else if (typeof define == 'function' && define.amd) define(definition)\n else this[name] = definition()\n})('Diacritics', function () {\n // Create public object\n var output = {\n map: {}\n };\n\n // Create private reference map.\n var reference = [\n {'base':' ', 'letters':'\\u00A0'},\n {'base':'A', 'letters':'\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F'},\n {'base':'AA', 'letters':'\\uA732'},\n {'base':'AE', 'letters':'\\u00C6\\u01FC\\u01E2'},\n {'base':'AO', 'letters':'\\uA734'},\n {'base':'AU', 'letters':'\\uA736'},\n {'base':'AV', 'letters':'\\uA738\\uA73A'},\n {'base':'AY', 'letters':'\\uA73C'},\n {'base':'B', 'letters':'\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181'},\n {'base':'C', 'letters':'\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E'},\n {'base':'D', 'letters':'\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779'},\n {'base':'DZ', 'letters':'\\u01F1\\u01C4'},\n {'base':'Dz', 'letters':'\\u01F2\\u01C5'},\n {'base':'E', 'letters':'\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E'},\n {'base':'F', 'letters':'\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B'},\n {'base':'G', 'letters':'\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E'},\n {'base':'H', 'letters':'\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D'},\n {'base':'I', 'letters':'\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197'},\n {'base':'J', 'letters':'\\u004A\\u24BF\\uFF2A\\u0134\\u0248'},\n {'base':'K', 'letters':'\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2'},\n {'base':'L', 'letters':'\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780'},\n {'base':'LJ', 'letters':'\\u01C7'},\n {'base':'Lj', 'letters':'\\u01C8'},\n {'base':'M', 'letters':'\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C'},\n {'base':'N', 'letters':'\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4'},\n {'base':'NJ', 'letters':'\\u01CA'},\n {'base':'Nj', 'letters':'\\u01CB'},\n {'base':'O', 'letters':'\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C'},\n {'base':'OI', 'letters':'\\u01A2'},\n {'base':'OO', 'letters':'\\uA74E'},\n {'base':'OU', 'letters':'\\u0222'},\n {'base':'P', 'letters':'\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754'},\n {'base':'Q', 'letters':'\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A'},\n {'base':'R', 'letters':'\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782'},\n {'base':'S', 'letters':'\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784'},\n {'base':'T', 'letters':'\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786'},\n {'base':'Th', 'letters':'\\u00DE'},\n {'base':'TZ', 'letters':'\\uA728'},\n {'base':'U', 'letters':'\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244'},\n {'base':'V', 'letters':'\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245'},\n {'base':'VY', 'letters':'\\uA760'},\n {'base':'W', 'letters':'\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72'},\n {'base':'X', 'letters':'\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C'},\n {'base':'Y', 'letters':'\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE'},\n {'base':'Z', 'letters':'\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762'},\n {'base':'a', 'letters':'\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\\u0251'},\n {'base':'aa', 'letters':'\\uA733'},\n {'base':'ae', 'letters':'\\u00E6\\u01FD\\u01E3'},\n {'base':'ao', 'letters':'\\uA735'},\n {'base':'au', 'letters':'\\uA737'},\n {'base':'av', 'letters':'\\uA739\\uA73B'},\n {'base':'ay', 'letters':'\\uA73D'},\n {'base':'b', 'letters':'\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253'},\n {'base':'c', 'letters':'\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184'},\n {'base':'d', 'letters':'\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A'},\n {'base':'dz', 'letters':'\\u01F3\\u01C6'},\n {'base':'e', 'letters':'\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD'},\n {'base':'f', 'letters':'\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C'},\n {'base':'ff', 'letters':'\\uFB00'},\n {'base':'fi', 'letters':'\\uFB01'},\n {'base':'fl', 'letters':'\\uFB02'},\n {'base':'ffi', 'letters':'\\uFB03'},\n {'base':'ffl', 'letters':'\\uFB04'},\n {'base':'g', 'letters':'\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F'},\n {'base':'h', 'letters':'\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265'},\n {'base':'hv', 'letters':'\\u0195'},\n {'base':'i', 'letters':'\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131'},\n {'base':'j', 'letters':'\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249'},\n {'base':'k', 'letters':'\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3'},\n {'base':'l', 'letters':'\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747'},\n {'base':'lj', 'letters':'\\u01C9'},\n {'base':'m', 'letters':'\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F'},\n {'base':'n', 'letters':'\\x6E\\xF1\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\\u043B\\u0509'},\n {'base':'nj', 'letters':'\\u01CC'},\n {'base':'o', 'letters':'\\u07C0\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275'},\n {'base':'oe', 'letters':'\\u0152\\u0153'},\n {'base':'oi', 'letters':'\\u01A3'},\n {'base':'ou', 'letters':'\\u0223'},\n {'base':'oo', 'letters':'\\uA74F'},\n {'base':'p', 'letters':'\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755'},\n {'base':'q', 'letters':'\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759'},\n {'base':'r', 'letters':'\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783'},\n {'base':'s', 'letters':'\\u0073\\u24E2\\uFF53\\u00DF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B'},\n {'base':'ss', 'letters':'\\xDF'},\n {'base':'t', 'letters':'\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787'},\n {'base':'th', 'letters':'\\u00FE'},\n {'base':'tz', 'letters':'\\uA729'},\n {'base':'u', 'letters': '\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289'},\n {'base':'v', 'letters':'\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C'},\n {'base':'vy', 'letters':'\\uA761'},\n {'base':'w', 'letters':'\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73'},\n {'base':'x', 'letters':'\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D'},\n {'base':'y', 'letters':'\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF'},\n {'base':'z', 'letters':'\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763'}\n ];\n\n // Generate reference mapping\n for (var i = 0, refLength = reference.length; i < refLength; i++){\n var letters = reference[i].letters.split(\"\");\n\n for (var j = 0, letLength = letters.length; j < letLength; j++){\n output.map[letters[j]] = reference[i].base;\n }\n }\n\n /**\n * Clean accents (diacritics) from string.\n * \n * @param {String} input String to be cleaned of diacritics.\n * @return {String}\n */\n output.clean = function (input) {\n if (!input || !input.length || input.length < 1) {\n return \"\";\n }\n\n var string = \"\";\n var letters = input.split(\"\");\n var index = 0;\n var length = letters.length;\n var letter;\n\n for (; index < length; index++) {\n letter = letters[index];\n string += letter in output.map ? output.map[letter] : letter;\n }\n\n return string;\n };\n\n return output;\n});"
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"index": 175,
"index2": 395,
"size": 713,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"issuerId": "3VGx",
"issuerName": "./frontend/pages/Inspector/async.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
}
],
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "3VGx",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"module": "./frontend/pages/Inspector/async.js",
"moduleName": "./frontend/pages/Inspector/async.js",
"type": "import()",
"userRequest": "./index",
"loc": "4:17-97"
}
],
"providedExports": [
"default"
],
"optimizationBailout": [],
"depth": 3,
"source": "var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport React from \"react\";\nimport { withRouter, Redirect } from \"react-router-dom\";\nimport { StoreContext } from \"../../Store\";\nimport InspectorComponent from \"./component\";\n\nexport default withRouter(props => {\n return React.createElement(\n StoreContext.Consumer,\n null,\n ctx => ctx.modules.length ? React.createElement(InspectorComponent, _extends({ open: ctx.moduleId !== null }, props)) : React.createElement(Redirect, { to: \"/\" })\n );\n});"
},
{
"id": "wrOu",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/shallow-equal/arrays/index.js",
"name": "./node_modules/shallow-equal/arrays/index.js",
"index": 255,
"index2": 247,
"size": 296,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"InspectorPage"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerId": "Cg+p",
"issuerName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "izlm",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModuleSearch.js",
"name": "./frontend/components/ModuleSearch.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "1h/R",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/index.js",
"name": "./node_modules/react-autosuggest/dist/index.js",
"profile": {
"factory": 354,
"building": 125,
"dependencies": 61
}
},
{
"id": "Cg+p",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"name": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"profile": {
"factory": 137,
"building": 100,
"dependencies": 13
}
}
],
"profile": {
"factory": 940,
"building": 54
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "Cg+p",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/react-autosuggest/dist/Autosuggest.js",
"module": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"moduleName": "./node_modules/react-autosuggest/dist/Autosuggest.js",
"type": "cjs require",
"userRequest": "shallow-equal/arrays",
"loc": "19:14-45"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "module.exports = function shallowEqualArrays(arrA, arrB) {\n if (arrA === arrB) {\n return true;\n }\n\n var len = arrA.length;\n\n if (arrB.length !== len) {\n return false;\n }\n\n for (var i = 0; i < len; i++) {\n if (arrA[i] !== arrB[i]) {\n return false;\n }\n }\n\n return true;\n};\n"
}
],
"filteredModules": 0,
"origins": [
{
"moduleId": "3VGx",
"module": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"moduleName": "./frontend/pages/Inspector/async.js",
"loc": "4:17-97",
"request": "./index",
"reasons": []
}
]
},
{
"id": "ModulesGraph",
"rendered": true,
"initial": false,
"entry": false,
"size": 1858102,
"names": [
"ModulesGraph"
],
"files": [
"ModulesGraph.608555813bb86bd0463f.js"
],
"hash": "608555813bb86bd0463f",
"siblings": [],
"parents": [
"InspectorPage",
"vendors"
],
"children": [],
"childrenByOrder": {},
"modules": [
{
"id": "TycK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/vis/dist/vis.js",
"name": "./node_modules/vis/dist/vis.js",
"index": 251,
"index2": 243,
"size": 1853590,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
"ModulesGraph"
],
"issuer": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/visGraph.js",
"issuerId": "dEa6",
"issuerName": "./frontend/components/ModulesGraph/visGraph.js",
"issuerPath": [
{
"id": "CXUk",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/entry.js",
"name": "./frontend/entry.js",
"profile": {
"factory": 87,
"building": 654
}
},
{
"id": "Al1D",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/App/index.js",
"name": "./frontend/components/App/index.js",
"profile": {
"factory": 78,
"building": 6,
"dependencies": 8
}
},
{
"id": "3VGx",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/async.js",
"name": "./frontend/pages/Inspector/async.js",
"profile": {
"factory": 512,
"building": 114,
"dependencies": 549
}
},
{
"id": "tctK",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/index.js",
"name": "./frontend/pages/Inspector/index.js",
"profile": {
"factory": 555,
"building": 64,
"dependencies": 81
}
},
{
"id": "bFrp",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/pages/Inspector/component.js",
"name": "./frontend/pages/Inspector/component.js",
"profile": {
"factory": 42,
"building": 78,
"dependencies": 63
}
},
{
"id": "6LVJ",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/index.js",
"name": "./frontend/components/ModulesGraph/index.js",
"profile": {
"factory": 311,
"building": 83,
"dependencies": 141
}
},
{
"id": "isD0",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/component.js",
"name": "./frontend/components/ModulesGraph/component.js",
"profile": {
"factory": 96,
"building": 86,
"dependencies": 1
}
},
{
"id": "dEa6",
"identifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/visGraph.js",
"name": "./frontend/components/ModulesGraph/visGraph.js",
"profile": {
"factory": 81,
"building": 119,
"dependencies": 1
}
}
],
"profile": {
"factory": 211,
"building": 814
},
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": "dEa6",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/visGraph.js",
"module": "./frontend/components/ModulesGraph/visGraph.js",
"moduleName": "./frontend/components/ModulesGraph/visGraph.js",
"type": "harmony side effect evaluation",
"userRequest": "vis",
"loc": "1:0-22"
},
{
"moduleId": "dEa6",
"moduleIdentifier": "/Users/alexandermostovenko/git/webpack-deps-inspect/node_modules/babel-loader/lib/index.js!/Users/alexandermostovenko/git/webpack-deps-inspect/frontend/components/ModulesGraph/visGraph.js",
"module": "./frontend/components/ModulesGraph/visGraph.js",
"moduleName": "./frontend/components/ModulesGraph/visGraph.js",
"type": "harmony import specifier",
"userRequest": "vis",
"loc": "90:20-23"
}
],
"providedExports": null,
"optimizationBailout": [],
"depth": 8,
"source": "/**\r\n * vis.js\r\n * https://github.com/almende/vis\r\n *\r\n * A dynamic, browser-based visualization library.\r\n *\r\n * @version 4.21.0\r\n * @date 2017-10-12\r\n *\r\n * @license\r\n * Copyright (C) 2011-2017 Almende B.V, http://almende.com\r\n *\r\n * Vis.js is dual licensed under both\r\n *\r\n * * The Apache 2.0 License\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * and\r\n *\r\n * * The MIT License\r\n * http://opensource.org/licenses/MIT\r\n *\r\n * Vis.js may be distributed under either license.\r\n */\r\n\r\n\"use strict\";\r\n\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vis\"] = factory();\n\telse\n\t\troot[\"vis\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 123);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _defineProperty = __webpack_require__(169);\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _getIterator2 = __webpack_require__(77);\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nvar _create = __webpack_require__(29);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// utility functions\n\n// first check if moment.js is already loaded in the browser window, if so,\n// use this instance. Else, load via commonjs.\n\n\nvar moment = __webpack_require__(9);\nvar uuid = __webpack_require__(157);\n\n/**\r\n * Test whether given object is a number\r\n * @param {*} object\r\n * @return {Boolean} isNumber\r\n */\nexports.isNumber = function (object) {\n return object instanceof Number || typeof object == 'number';\n};\n\n/**\r\n * Remove everything in the DOM object\r\n * @param {Element} DOMobject\r\n */\nexports.recursiveDOMDelete = function (DOMobject) {\n if (DOMobject) {\n while (DOMobject.hasChildNodes() === true) {\n exports.recursiveDOMDelete(DOMobject.firstChild);\n DOMobject.removeChild(DOMobject.firstChild);\n }\n }\n};\n\n/**\r\n * this function gives you a range between 0 and 1 based on the min and max values in the set, the total sum of all values and the current value.\r\n *\r\n * @param {number} min\r\n * @param {number} max\r\n * @param {number} total\r\n * @param {number} value\r\n * @returns {number}\r\n */\nexports.giveRange = function (min, max, total, value) {\n if (max == min) {\n return 0.5;\n } else {\n var scale = 1 / (max - min);\n return Math.max(0, (value - min) * scale);\n }\n};\n\n/**\r\n * Test whether given object is a string\r\n * @param {*} object\r\n * @return {Boolean} isString\r\n */\nexports.isString = function (object) {\n return object instanceof String || typeof object == 'string';\n};\n\n/**\r\n * Test whether given object is a Date, or a String containing a Date\r\n * @param {Date | String} object\r\n * @return {Boolean} isDate\r\n */\nexports.isDate = function (object) {\n if (object instanceof Date) {\n return true;\n } else if (exports.isString(object)) {\n // test whether this string contains a date\n var match = ASPDateRegex.exec(object);\n if (match) {\n return true;\n } else if (!isNaN(Date.parse(object))) {\n return true;\n }\n }\n\n return false;\n};\n\n/**\r\n * Create a semi UUID\r\n * source: http://stackoverflow.com/a/105074/1262753\r\n * @return {string} uuid\r\n */\nexports.randomUUID = function () {\n return uuid.v4();\n};\n\n/**\r\n * assign all keys of an object that are not nested objects to a certain value (used for color objects).\r\n * @param {object} obj\r\n * @param {number} value\r\n */\nexports.assignAllKeys = function (obj, value) {\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n if ((0, _typeof3['default'])(obj[prop]) !== 'object') {\n obj[prop] = value;\n }\n }\n }\n};\n\n/**\r\n * Copy property from b to a if property present in a.\r\n * If property in b explicitly set to null, delete it if `allowDeletion` set.\r\n *\r\n * Internal helper routine, should not be exported. Not added to `exports` for that reason.\r\n *\r\n * @param {object} a target object\r\n * @param {object} b source object\r\n * @param {string} prop name of property to copy to a\r\n * @param {boolean} allowDeletion if true, delete property in a if explicitly set to null in b \r\n * @private\r\n */\nfunction copyOrDelete(a, b, prop, allowDeletion) {\n var doDeletion = false;\n if (allowDeletion === true) {\n doDeletion = b[prop] === null && a[prop] !== undefined;\n }\n\n if (doDeletion) {\n delete a[prop];\n } else {\n a[prop] = b[prop]; // Remember, this is a reference copy!\n }\n}\n\n/**\r\n * Fill an object with a possibly partially defined other object.\r\n *\r\n * Only copies values for the properties already present in a.\r\n * That means an object is not created on a property if only the b object has it.\r\n *\r\n * @param {object} a\r\n * @param {object} b\r\n * @param {boolean} [allowDeletion=false] if true, delete properties in a that are explicitly set to null in b \r\n */\nexports.fillIfDefined = function (a, b) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n // NOTE: iteration of properties of a\n // NOTE: prototype properties iterated over as well\n for (var prop in a) {\n if (b[prop] !== undefined) {\n if (b[prop] === null || (0, _typeof3['default'])(b[prop]) !== 'object') {\n // Note: typeof null === 'object'\n copyOrDelete(a, b, prop, allowDeletion);\n } else {\n if ((0, _typeof3['default'])(a[prop]) === 'object') {\n exports.fillIfDefined(a[prop], b[prop], allowDeletion);\n }\n }\n }\n }\n};\n\n/**\r\n * Extend object a with the properties of object b or a series of objects\r\n * Only properties with defined values are copied\r\n * @param {Object} a\r\n * @param {...Object} b\r\n * @return {Object} a\r\n */\nexports.extend = function (a, b) {\n // eslint-disable-line no-unused-vars\n for (var i = 1; i < arguments.length; i++) {\n var other = arguments[i];\n for (var prop in other) {\n if (other.hasOwnProperty(prop)) {\n a[prop] = other[prop];\n }\n }\n }\n return a;\n};\n\n/**\r\n * Extend object a with selected properties of object b or a series of objects\r\n * Only properties with defined values are copied\r\n * @param {Array.<string>} props\r\n * @param {Object} a\r\n * @param {Object} b\r\n * @return {Object} a\r\n */\nexports.selectiveExtend = function (props, a, b) {\n // eslint-disable-line no-unused-vars\n if (!Array.isArray(props)) {\n throw new Error('Array with property names expected as first argument');\n }\n\n for (var i = 2; i < arguments.length; i++) {\n var other = arguments[i];\n\n for (var p = 0; p < props.length; p++) {\n var prop = props[p];\n if (other && other.hasOwnProperty(prop)) {\n a[prop] = other[prop];\n }\n }\n }\n return a;\n};\n\n/**\r\n * Extend object a with selected properties of object b.\r\n * Only properties with defined values are copied.\r\n *\r\n * **Note:** Previous version of this routine implied that multiple source objects\r\n * could be used; however, the implementation was **wrong**.\r\n * Since multiple (>1) sources weren't used anywhere in the `vis.js` code,\r\n * this has been removed\r\n *\r\n * @param {Array.<string>} props names of first-level properties to copy over\r\n * @param {object} a target object\r\n * @param {object} b source object\r\n * @param {boolean} [allowDeletion=false] if true, delete property in a if explicitly set to null in b \r\n * @returns {Object} a\r\n */\nexports.selectiveDeepExtend = function (props, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n // TODO: add support for Arrays to deepExtend\n if (Array.isArray(b)) {\n throw new TypeError('Arrays are not supported by deepExtend');\n }\n\n for (var p = 0; p < props.length; p++) {\n var prop = props[p];\n if (b.hasOwnProperty(prop)) {\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n exports.deepExtend(a[prop], b[prop], false, allowDeletion);\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (Array.isArray(b[prop])) {\n throw new TypeError('Arrays are not supported by deepExtend');\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n};\n\n/**\r\n * Extend object `a` with properties of object `b`, ignoring properties which are explicitly \r\n * specified to be excluded.\r\n * \r\n * The properties of `b` are considered for copying.\r\n * Properties which are themselves objects are are also extended.\r\n * Only properties with defined values are copied\r\n *\r\n * @param {Array.<string>} propsToExclude names of properties which should *not* be copied\r\n * @param {Object} a object to extend\r\n * @param {Object} b object to take properties from for extension\r\n * @param {boolean} [allowDeletion=false] if true, delete properties in a that are explicitly set to null in b \r\n * @return {Object} a\r\n */\nexports.selectiveNotDeepExtend = function (propsToExclude, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n // TODO: add support for Arrays to deepExtend\n // NOTE: array properties have an else-below; apparently, there is a problem here. \n if (Array.isArray(b)) {\n throw new TypeError('Arrays are not supported by deepExtend');\n }\n\n for (var prop in b) {\n if (!b.hasOwnProperty(prop)) continue; // Handle local properties only \n if (propsToExclude.indexOf(prop) !== -1) continue; // In exclusion list, skip\n\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n exports.deepExtend(a[prop], b[prop]); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (Array.isArray(b[prop])) {\n a[prop] = [];\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n\n return a;\n};\n\n/**\r\n * Deep extend an object a with the properties of object b\r\n *\r\n * @param {Object} a\r\n * @param {Object} b\r\n * @param {boolean} [protoExtend=false] If true, the prototype values will also be extended.\r\n * (ie. the options objects that inherit from others will also get the inherited options)\r\n * @param {boolean} [allowDeletion=false] If true, the values of fields that are null will be deleted\r\n * @returns {Object}\r\n */\nexports.deepExtend = function (a, b) {\n var protoExtend = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n for (var prop in b) {\n if (b.hasOwnProperty(prop) || protoExtend === true) {\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n exports.deepExtend(a[prop], b[prop], protoExtend); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (Array.isArray(b[prop])) {\n a[prop] = [];\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n};\n\n/**\r\n * Test whether all elements in two arrays are equal.\r\n * @param {Array} a\r\n * @param {Array} b\r\n * @return {boolean} Returns true if both arrays have the same length and same\r\n * elements.\r\n */\nexports.equalArray = function (a, b) {\n if (a.length != b.length) return false;\n\n for (var i = 0, len = a.length; i < len; i++) {\n if (a[i] != b[i]) return false;\n }\n\n return true;\n};\n\n/**\r\n * Convert an object to another type\r\n * @param {boolean | number | string | Date | Moment | Null | undefined} object\r\n * @param {string | undefined} type Name of the type. Available types:\r\n * 'Boolean', 'Number', 'String',\r\n * 'Date', 'Moment', ISODate', 'ASPDate'.\r\n * @return {*} object\r\n * @throws Error\r\n */\nexports.convert = function (object, type) {\n var match;\n\n if (object === undefined) {\n return undefined;\n }\n if (object === null) {\n return null;\n }\n\n if (!type) {\n return object;\n }\n if (!(typeof type === 'string') && !(type instanceof String)) {\n throw new Error('Type must be a string');\n }\n\n //noinspection FallthroughInSwitchStatementJS\n switch (type) {\n case 'boolean':\n case 'Boolean':\n return Boolean(object);\n\n case 'number':\n case 'Number':\n if (exports.isString(object) && !isNaN(Date.parse(object))) {\n return moment(object).valueOf();\n } else {\n return Number(object.valueOf());\n }\n case 'string':\n case 'String':\n return String(object);\n\n case 'Date':\n if (exports.isNumber(object)) {\n return new Date(object);\n }\n if (object instanceof Date) {\n return new Date(object.valueOf());\n } else if (moment.isMoment(object)) {\n return new Date(object.valueOf());\n }\n if (exports.isString(object)) {\n match = ASPDateRegex.exec(object);\n if (match) {\n // object is an ASP date\n return new Date(Number(match[1])); // parse number\n } else {\n return moment(new Date(object)).toDate(); // parse string\n }\n } else {\n throw new Error('Cannot convert object of type ' + exports.getType(object) + ' to type Date');\n }\n\n case 'Moment':\n if (exports.isNumber(object)) {\n return moment(object);\n }\n if (object instanceof Date) {\n return moment(object.valueOf());\n } else if (moment.isMoment(object)) {\n return moment(object);\n }\n if (exports.isString(object)) {\n match = ASPDateRegex.exec(object);\n if (match) {\n // object is an ASP date\n return moment(Number(match[1])); // parse number\n } else {\n return moment(object); // parse string\n }\n } else {\n throw new Error('Cannot convert object of type ' + exports.getType(object) + ' to type Date');\n }\n\n case 'ISODate':\n if (exports.isNumber(object)) {\n return new Date(object);\n } else if (object instanceof Date) {\n return object.toISOString();\n } else if (moment.isMoment(object)) {\n return object.toDate().toISOString();\n } else if (exports.isString(object)) {\n match = ASPDateRegex.exec(object);\n if (match) {\n // object is an ASP date\n return new Date(Number(match[1])).toISOString(); // parse number\n } else {\n return moment(object).format(); // ISO 8601\n }\n } else {\n throw new Error('Cannot convert object of type ' + exports.getType(object) + ' to type ISODate');\n }\n\n case 'ASPDate':\n if (exports.isNumber(object)) {\n return '/Date(' + object + ')/';\n } else if (object instanceof Date) {\n return '/Date(' + object.valueOf() + ')/';\n } else if (exports.isString(object)) {\n match = ASPDateRegex.exec(object);\n var value;\n if (match) {\n // object is an ASP date\n value = new Date(Number(match[1])).valueOf(); // parse number\n } else {\n value = new Date(object).valueOf(); // parse string\n }\n return '/Date(' + value + ')/';\n } else {\n throw new Error('Cannot convert object of type ' + exports.getType(object) + ' to type ASPDate');\n }\n\n default:\n throw new Error('Unknown type \"' + type + '\"');\n }\n};\n\n// parse ASP.Net Date pattern,\n// for example '/Date(1198908717056)/' or '/Date(1198908717056-0700)/'\n// code from http://momentjs.com/\nvar ASPDateRegex = /^\\/?Date\\((\\-?\\d+)/i;\n\n/**\r\n * Get the type of an object, for example exports.getType([]) returns 'Array'\r\n * @param {*} object\r\n * @return {string} type\r\n */\nexports.getType = function (object) {\n var type = typeof object === 'undefined' ? 'undefined' : (0, _typeof3['default'])(object);\n\n if (type == 'object') {\n if (object === null) {\n return 'null';\n }\n if (object instanceof Boolean) {\n return 'Boolean';\n }\n if (object instanceof Number) {\n return 'Number';\n }\n if (object instanceof String) {\n return 'String';\n }\n if (Array.isArray(object)) {\n return 'Array';\n }\n if (object instanceof Date) {\n return 'Date';\n }\n return 'Object';\n } else if (type == 'number') {\n return 'Number';\n } else if (type == 'boolean') {\n return 'Boolean';\n } else if (type == 'string') {\n return 'String';\n } else if (type === undefined) {\n return 'undefined';\n }\n\n return type;\n};\n\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param {Array} arr\r\n * @param {*} newValue\r\n * @returns {Array}\r\n */\nexports.copyAndExtendArray = function (arr, newValue) {\n var newArr = [];\n for (var i = 0; i < arr.length; i++) {\n newArr.push(arr[i]);\n }\n newArr.push(newValue);\n return newArr;\n};\n\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param {Array} arr\r\n * @returns {Array}\r\n */\nexports.copyArray = function (arr) {\n var newArr = [];\n for (var i = 0; i < arr.length; i++) {\n newArr.push(arr[i]);\n }\n return newArr;\n};\n\n/**\r\n * Retrieve the absolute left value of a DOM element\r\n * @param {Element} elem A dom element, for example a div\r\n * @return {number} left The absolute left position of this element\r\n * in the browser page.\r\n */\nexports.getAbsoluteLeft = function (elem) {\n return elem.getBoundingClientRect().left;\n};\n\nexports.getAbsoluteRight = function (elem) {\n return elem.getBoundingClientRect().right;\n};\n\n/**\r\n * Retrieve the absolute top value of a DOM element\r\n * @param {Element} elem A dom element, for example a div\r\n * @return {number} top The absolute top position of this element\r\n * in the browser page.\r\n */\nexports.getAbsoluteTop = function (elem) {\n return elem.getBoundingClientRect().top;\n};\n\n/**\r\n * add a className to the given elements style\r\n * @param {Element} elem\r\n * @param {string} classNames\r\n */\nexports.addClassName = function (elem, classNames) {\n var classes = elem.className.split(' ');\n var newClasses = classNames.split(' ');\n classes = classes.concat(newClasses.filter(function (className) {\n return classes.indexOf(className) < 0;\n }));\n elem.className = classes.join(' ');\n};\n\n/**\r\n * add a className to the given elements style\r\n * @param {Element} elem\r\n * @param {string} classNames\r\n */\nexports.removeClassName = function (elem, classNames) {\n var classes = elem.className.split(' ');\n var oldClasses = classNames.split(' ');\n classes = classes.filter(function (className) {\n return oldClasses.indexOf(className) < 0;\n });\n elem.className = classes.join(' ');\n};\n\n/**\r\n * For each method for both arrays and objects.\r\n * In case of an array, the built-in Array.forEach() is applied. (**No, it's not!**)\r\n * In case of an Object, the method loops over all properties of the object.\r\n * @param {Object | Array} object An Object or Array\r\n * @param {function} callback Callback method, called for each item in\r\n * the object or array with three parameters:\r\n * callback(value, index, object)\r\n */\nexports.forEach = function (object, callback) {\n var i, len;\n if (Array.isArray(object)) {\n // array\n for (i = 0, len = object.length; i < len; i++) {\n callback(object[i], i, object);\n }\n } else {\n // object\n for (i in object) {\n if (object.hasOwnProperty(i)) {\n callback(object[i], i, object);\n }\n }\n }\n};\n\n/**\r\n * Convert an object into an array: all objects properties are put into the\r\n * array. The resulting array is unordered.\r\n * @param {Object} object\r\n * @returns {Array} array\r\n */\nexports.toArray = function (object) {\n var array = [];\n\n for (var prop in object) {\n if (object.hasOwnProperty(prop)) array.push(object[prop]);\n }\n\n return array;\n};\n\n/**\r\n * Update a property in an object\r\n * @param {Object} object\r\n * @param {string} key\r\n * @param {*} value\r\n * @return {Boolean} changed\r\n */\nexports.updateProperty = function (object, key, value) {\n if (object[key] !== value) {\n object[key] = value;\n return true;\n } else {\n return false;\n }\n};\n\n/**\r\n * Throttle the given function to be only executed once per animation frame\r\n * @param {function} fn\r\n * @returns {function} Returns the throttled function\r\n */\nexports.throttle = function (fn) {\n var scheduled = false;\n\n return function throttled() {\n if (!scheduled) {\n scheduled = true;\n requestAnimationFrame(function () {\n scheduled = false;\n fn();\n });\n }\n };\n};\n\n/**\r\n * Add and event listener. Works for all browsers\r\n * @param {Element} element An html element\r\n * @param {string} action The action, for example \"click\",\r\n * without the prefix \"on\"\r\n * @param {function} listener The callback function to be executed\r\n * @param {boolean} [useCapture]\r\n */\nexports.addEventListener = function (element, action, listener, useCapture) {\n if (element.addEventListener) {\n if (useCapture === undefined) useCapture = false;\n\n if (action === \"mousewheel\" && navigator.userAgent.indexOf(\"Firefox\") >= 0) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.addEventListener(action, listener, useCapture);\n } else {\n element.attachEvent(\"on\" + action, listener); // IE browsers\n }\n};\n\n/**\r\n * Remove an event listener from an element\r\n * @param {Element} element An html dom element\r\n * @param {string} action The name of the event, for example \"mousedown\"\r\n * @param {function} listener The listener function\r\n * @param {boolean} [useCapture]\r\n */\nexports.removeEventListener = function (element, action, listener, useCapture) {\n if (element.removeEventListener) {\n // non-IE browsers\n if (useCapture === undefined) useCapture = false;\n\n if (action === \"mousewheel\" && navigator.userAgent.indexOf(\"Firefox\") >= 0) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.removeEventListener(action, listener, useCapture);\n } else {\n // IE browsers\n element.detachEvent(\"on\" + action, listener);\n }\n};\n\n/**\r\n * Cancels the event if it is cancelable, without stopping further propagation of the event.\r\n * @param {Event} event\r\n */\nexports.preventDefault = function (event) {\n if (!event) event = window.event;\n\n if (event.preventDefault) {\n event.preventDefault(); // non-IE browsers\n } else {\n event.returnValue = false; // IE browsers\n }\n};\n\n/**\r\n * Get HTML element which is the target of the event\r\n * @param {Event} event\r\n * @return {Element} target element\r\n */\nexports.getTarget = function (event) {\n // code from http://www.quirksmode.org/js/events_properties.html\n if (!event) {\n event = window.event;\n }\n\n var target;\n\n if (event.target) {\n target = event.target;\n } else if (event.srcElement) {\n target = event.srcElement;\n }\n\n if (target.nodeType != undefined && target.nodeType == 3) {\n // defeat Safari bug\n target = target.parentNode;\n }\n\n return target;\n};\n\n/**\r\n * Check if given element contains given parent somewhere in the DOM tree\r\n * @param {Element} element\r\n * @param {Element} parent\r\n * @returns {boolean}\r\n */\nexports.hasParent = function (element, parent) {\n var e = element;\n\n while (e) {\n if (e === parent) {\n return true;\n }\n e = e.parentNode;\n }\n\n return false;\n};\n\nexports.option = {};\n\n/**\r\n * Convert a value into a boolean\r\n * @param {Boolean | function | undefined} value\r\n * @param {boolean} [defaultValue]\r\n * @returns {Boolean} bool\r\n */\nexports.option.asBoolean = function (value, defaultValue) {\n if (typeof value == 'function') {\n value = value();\n }\n\n if (value != null) {\n return value != false;\n }\n\n return defaultValue || null;\n};\n\n/**\r\n * Convert a value into a number\r\n * @param {Boolean | function | undefined} value\r\n * @param {number} [defaultValue]\r\n * @returns {number} number\r\n */\nexports.option.asNumber = function (value, defaultValue) {\n if (typeof value == 'function') {\n value = value();\n }\n\n if (value != null) {\n return Number(value) || defaultValue || null;\n }\n\n return defaultValue || null;\n};\n\n/**\r\n * Convert a value into a string\r\n * @param {string | function | undefined} value\r\n * @param {string} [defaultValue]\r\n * @returns {String} str\r\n */\nexports.option.asString = function (value, defaultValue) {\n if (typeof value == 'function') {\n value = value();\n }\n\n if (value != null) {\n return String(value);\n }\n\n return defaultValue || null;\n};\n\n/**\r\n * Convert a size or location into a string with pixels or a percentage\r\n * @param {string | number | function | undefined} value\r\n * @param {string} [defaultValue]\r\n * @returns {String} size\r\n */\nexports.option.asSize = function (value, defaultValue) {\n if (typeof value == 'function') {\n value = value();\n }\n\n if (exports.isString(value)) {\n return value;\n } else if (exports.isNumber(value)) {\n return value + 'px';\n } else {\n return defaultValue || null;\n }\n};\n\n/**\r\n * Convert a value into a DOM element\r\n * @param {HTMLElement | function | undefined} value\r\n * @param {HTMLElement} [defaultValue]\r\n * @returns {HTMLElement | null} dom\r\n */\nexports.option.asElement = function (value, defaultValue) {\n if (typeof value == 'function') {\n value = value();\n }\n\n return value || defaultValue || null;\n};\n\n/**\r\n * http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\r\n *\r\n * @param {string} hex\r\n * @returns {{r: *, g: *, b: *}} | 255 range\r\n */\nexports.hexToRGB = function (hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n var shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n hex = hex.replace(shorthandRegex, function (m, r, g, b) {\n return r + r + g + g + b + b;\n });\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n return result ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16)\n } : null;\n};\n\n/**\r\n * This function takes color in hex format or rgb() or rgba() format and overrides the opacity. Returns rgba() string.\r\n * @param {string} color\r\n * @param {number} opacity\r\n * @returns {String}\r\n */\nexports.overrideOpacity = function (color, opacity) {\n var rgb;\n if (color.indexOf(\"rgba\") != -1) {\n return color;\n } else if (color.indexOf(\"rgb\") != -1) {\n rgb = color.substr(color.indexOf(\"(\") + 1).replace(\")\", \"\").split(\",\");\n return \"rgba(\" + rgb[0] + \",\" + rgb[1] + \",\" + rgb[2] + \",\" + opacity + \")\";\n } else {\n rgb = exports.hexToRGB(color);\n if (rgb == null) {\n return color;\n } else {\n return \"rgba(\" + rgb.r + \",\" + rgb.g + \",\" + rgb.b + \",\" + opacity + \")\";\n }\n }\n};\n\n/**\r\n *\r\n * @param {number} red 0 -- 255\r\n * @param {number} green 0 -- 255\r\n * @param {number} blue 0 -- 255\r\n * @returns {String}\r\n * @constructor\r\n */\nexports.RGBToHex = function (red, green, blue) {\n return \"#\" + ((1 << 24) + (red << 16) + (green << 8) + blue).toString(16).slice(1);\n};\n\n/**\r\n * Parse a color property into an object with border, background, and\r\n * highlight colors\r\n * @param {Object | String} color\r\n * @return {Object} colorObject\r\n */\nexports.parseColor = function (color) {\n var c;\n if (exports.isString(color) === true) {\n if (exports.isValidRGB(color) === true) {\n var rgb = color.substr(4).substr(0, color.length - 5).split(',').map(function (value) {\n return parseInt(value);\n });\n color = exports.RGBToHex(rgb[0], rgb[1], rgb[2]);\n }\n if (exports.isValidHex(color) === true) {\n var hsv = exports.hexToHSV(color);\n var lighterColorHSV = { h: hsv.h, s: hsv.s * 0.8, v: Math.min(1, hsv.v * 1.02) };\n var darkerColorHSV = { h: hsv.h, s: Math.min(1, hsv.s * 1.25), v: hsv.v * 0.8 };\n var darkerColorHex = exports.HSVToHex(darkerColorHSV.h, darkerColorHSV.s, darkerColorHSV.v);\n var lighterColorHex = exports.HSVToHex(lighterColorHSV.h, lighterColorHSV.s, lighterColorHSV.v);\n c = {\n background: color,\n border: darkerColorHex,\n highlight: {\n background: lighterColorHex,\n border: darkerColorHex\n },\n hover: {\n background: lighterColorHex,\n border: darkerColorHex\n }\n };\n } else {\n c = {\n background: color,\n border: color,\n highlight: {\n background: color,\n border: color\n },\n hover: {\n background: color,\n border: color\n }\n };\n }\n } else {\n c = {};\n c.background = color.background || undefined;\n c.border = color.border || undefined;\n\n if (exports.isString(color.highlight)) {\n c.highlight = {\n border: color.highlight,\n background: color.highlight\n };\n } else {\n c.highlight = {};\n c.highlight.background = color.highlight && color.highlight.background || undefined;\n c.highlight.border = color.highlight && color.highlight.border || undefined;\n }\n\n if (exports.isString(color.hover)) {\n c.hover = {\n border: color.hover,\n background: color.hover\n };\n } else {\n c.hover = {};\n c.hover.background = color.hover && color.hover.background || undefined;\n c.hover.border = color.hover && color.hover.border || undefined;\n }\n }\n\n return c;\n};\n\n/**\r\n * http://www.javascripter.net/faq/rgb2hsv.htm\r\n *\r\n * @param {number} red\r\n * @param {number} green\r\n * @param {number} blue\r\n * @returns {{h: number, s: number, v: number}}\r\n * @constructor\r\n */\nexports.RGBToHSV = function (red, green, blue) {\n red = red / 255;green = green / 255;blue = blue / 255;\n var minRGB = Math.min(red, Math.min(green, blue));\n var maxRGB = Math.max(red, Math.max(green, blue));\n\n // Black-gray-white\n if (minRGB == maxRGB) {\n return { h: 0, s: 0, v: minRGB };\n }\n\n // Colors other than black-gray-white:\n var d = red == minRGB ? green - blue : blue == minRGB ? red - green : blue - red;\n var h = red == minRGB ? 3 : blue == minRGB ? 1 : 5;\n var hue = 60 * (h - d / (maxRGB - minRGB)) / 360;\n var saturation = (maxRGB - minRGB) / maxRGB;\n var value = maxRGB;\n return { h: hue, s: saturation, v: value };\n};\n\nvar cssUtil = {\n // split a string with css styles into an object with key/values\n split: function split(cssText) {\n var styles = {};\n\n cssText.split(';').forEach(function (style) {\n if (style.trim() != '') {\n var parts = style.split(':');\n var key = parts[0].trim();\n var value = parts[1].trim();\n styles[key] = value;\n }\n });\n\n return styles;\n },\n\n // build a css text string from an object with key/values\n join: function join(styles) {\n return (0, _keys2['default'])(styles).map(function (key) {\n return key + ': ' + styles[key];\n }).join('; ');\n }\n};\n\n/**\r\n * Append a string with css styles to an element\r\n * @param {Element} element\r\n * @param {string} cssText\r\n */\nexports.addCssText = function (element, cssText) {\n var currentStyles = cssUtil.split(element.style.cssText);\n var newStyles = cssUtil.split(cssText);\n var styles = exports.extend(currentStyles, newStyles);\n\n element.style.cssText = cssUtil.join(styles);\n};\n\n/**\r\n * Remove a string with css styles from an element\r\n * @param {Element} element\r\n * @param {string} cssText\r\n */\nexports.removeCssText = function (element, cssText) {\n var styles = cssUtil.split(element.style.cssText);\n var removeStyles = cssUtil.split(cssText);\n\n for (var key in removeStyles) {\n if (removeStyles.hasOwnProperty(key)) {\n delete styles[key];\n }\n }\n\n element.style.cssText = cssUtil.join(styles);\n};\n\n/**\r\n * https://gist.github.com/mjijackson/5311256\r\n * @param {number} h\r\n * @param {number} s\r\n * @param {number} v\r\n * @returns {{r: number, g: number, b: number}}\r\n * @constructor\r\n */\nexports.HSVToRGB = function (h, s, v) {\n var r, g, b;\n\n var i = Math.floor(h * 6);\n var f = h * 6 - i;\n var p = v * (1 - s);\n var q = v * (1 - f * s);\n var t = v * (1 - (1 - f) * s);\n\n switch (i % 6) {\n case 0:\n r = v, g = t, b = p;break;\n case 1:\n r = q, g = v, b = p;break;\n case 2:\n r = p, g = v, b = t;break;\n case 3:\n r = p, g = q, b = v;break;\n case 4:\n r = t, g = p, b = v;break;\n case 5:\n r = v, g = p, b = q;break;\n }\n\n return { r: Math.floor(r * 255), g: Math.floor(g * 255), b: Math.floor(b * 255) };\n};\n\nexports.HSVToHex = function (h, s, v) {\n var rgb = exports.HSVToRGB(h, s, v);\n return exports.RGBToHex(rgb.r, rgb.g, rgb.b);\n};\n\nexports.hexToHSV = function (hex) {\n var rgb = exports.hexToRGB(hex);\n return exports.RGBToHSV(rgb.r, rgb.g, rgb.b);\n};\n\nexports.isValidHex = function (hex) {\n var isOk = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex);\n return isOk;\n};\n\nexports.isValidRGB = function (rgb) {\n rgb = rgb.replace(\" \", \"\");\n var isOk = /rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)/i.test(rgb);\n return isOk;\n};\nexports.isValidRGBA = function (rgba) {\n rgba = rgba.replace(\" \", \"\");\n var isOk = /rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(.{1,3})\\)/i.test(rgba);\n return isOk;\n};\n\n/**\r\n * This recursively redirects the prototype of JSON objects to the referenceObject\r\n * This is used for default options.\r\n *\r\n * @param {Array.<string>} fields\r\n * @param {Object} referenceObject\r\n * @returns {*}\r\n */\nexports.selectiveBridgeObject = function (fields, referenceObject) {\n if (referenceObject !== null && (typeof referenceObject === 'undefined' ? 'undefined' : (0, _typeof3['default'])(referenceObject)) === \"object\") {\n // !!! typeof null === 'object'\n var objectTo = (0, _create2['default'])(referenceObject);\n for (var i = 0; i < fields.length; i++) {\n if (referenceObject.hasOwnProperty(fields[i])) {\n if ((0, _typeof3['default'])(referenceObject[fields[i]]) == \"object\") {\n objectTo[fields[i]] = exports.bridgeObject(referenceObject[fields[i]]);\n }\n }\n }\n return objectTo;\n } else {\n return null;\n }\n};\n\n/**\r\n * This recursively redirects the prototype of JSON objects to the referenceObject\r\n * This is used for default options.\r\n *\r\n * @param {Object} referenceObject\r\n * @returns {*}\r\n */\nexports.bridgeObject = function (referenceObject) {\n if (referenceObject !== null && (typeof referenceObject === 'undefined' ? 'undefined' : (0, _typeof3['default'])(referenceObject)) === \"object\") {\n // !!! typeof null === 'object'\n var objectTo = (0, _create2['default'])(referenceObject);\n if (referenceObject instanceof Element) {\n // Avoid bridging DOM objects\n objectTo = referenceObject;\n } else {\n objectTo = (0, _create2['default'])(referenceObject);\n for (var i in referenceObject) {\n if (referenceObject.hasOwnProperty(i)) {\n if ((0, _typeof3['default'])(referenceObject[i]) == \"object\") {\n objectTo[i] = exports.bridgeObject(referenceObject[i]);\n }\n }\n }\n }\n return objectTo;\n } else {\n return null;\n }\n};\n\n/**\r\n * This method provides a stable sort implementation, very fast for presorted data\r\n *\r\n * @param {Array} a the array\r\n * @param {function} compare an order comparator\r\n * @returns {Array}\r\n */\nexports.insertSort = function (a, compare) {\n for (var i = 0; i < a.length; i++) {\n var k = a[i];\n for (var j = i; j > 0 && compare(k, a[j - 1]) < 0; j--) {\n a[j] = a[j - 1];\n }\n a[j] = k;\n }\n return a;\n};\n\n/**\r\n * This is used to set the options of subobjects in the options object.\r\n *\r\n * A requirement of these subobjects is that they have an 'enabled' element\r\n * which is optional for the user but mandatory for the program.\r\n *\r\n * The added value here of the merge is that option 'enabled' is set as required.\r\n *\r\n *\r\n * @param {object} mergeTarget | either this.options or the options used for the groups.\r\n * @param {object} options | options\r\n * @param {string} option | option key in the options argument\r\n * @param {object} globalOptions | global options, passed in to determine value of option 'enabled'\r\n */\nexports.mergeOptions = function (mergeTarget, options, option) {\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n // Local helpers\n var isPresent = function isPresent(obj) {\n return obj !== null && obj !== undefined;\n };\n\n var isObject = function isObject(obj) {\n return obj !== null && (typeof obj === 'undefined' ? 'undefined' : (0, _typeof3['default'])(obj)) === 'object';\n };\n\n // https://stackoverflow.com/a/34491287/1223531\n var isEmpty = function isEmpty(obj) {\n for (var x in obj) {\n if (obj.hasOwnProperty(x)) return false;\n }\n return true;\n };\n\n // Guards\n if (!isObject(mergeTarget)) {\n throw new Error('Parameter mergeTarget must be an object');\n }\n\n if (!isObject(options)) {\n throw new Error('Parameter options must be an object');\n }\n\n if (!isPresent(option)) {\n throw new Error('Parameter option must have a value');\n }\n\n if (!isObject(globalOptions)) {\n throw new Error('Parameter globalOptions must be an object');\n }\n\n //\n // Actual merge routine, separated from main logic\n // Only a single level of options is merged. Deeper levels are ref'd. This may actually be an issue.\n //\n var doMerge = function doMerge(target, options, option) {\n if (!isObject(target[option])) {\n target[option] = {};\n }\n\n var src = options[option];\n var dst = target[option];\n for (var prop in src) {\n if (src.hasOwnProperty(prop)) {\n dst[prop] = src[prop];\n }\n }\n };\n\n // Local initialization\n var srcOption = options[option];\n var globalPassed = isObject(globalOptions) && !isEmpty(globalOptions);\n var globalOption = globalPassed ? globalOptions[option] : undefined;\n var globalEnabled = globalOption ? globalOption.enabled : undefined;\n\n /////////////////////////////////////////\n // Main routine\n /////////////////////////////////////////\n if (srcOption === undefined) {\n return; // Nothing to do\n }\n\n if (typeof srcOption === 'boolean') {\n if (!isObject(mergeTarget[option])) {\n mergeTarget[option] = {};\n }\n\n mergeTarget[option].enabled = srcOption;\n return;\n }\n\n if (srcOption === null && !isObject(mergeTarget[option])) {\n // If possible, explicit copy from globals\n if (isPresent(globalOption)) {\n mergeTarget[option] = (0, _create2['default'])(globalOption);\n } else {\n return; // Nothing to do\n }\n }\n\n if (!isObject(srcOption)) {\n return;\n }\n\n //\n // Ensure that 'enabled' is properly set. It is required internally\n // Note that the value from options will always overwrite the existing value\n //\n var enabled = true; // default value\n\n if (srcOption.enabled !== undefined) {\n enabled = srcOption.enabled;\n } else {\n // Take from globals, if present\n if (globalEnabled !== undefined) {\n enabled = globalOption.enabled;\n }\n }\n\n doMerge(mergeTarget, options, option);\n mergeTarget[option].enabled = enabled;\n};\n\n/**\r\n * This function does a binary search for a visible item in a sorted list. If we find a visible item, the code that uses\r\n * this function will then iterate in both directions over this sorted list to find all visible items.\r\n *\r\n * @param {Item[]} orderedItems | Items ordered by start\r\n * @param {function} comparator | -1 is lower, 0 is equal, 1 is higher\r\n * @param {string} field\r\n * @param {string} field2\r\n * @returns {number}\r\n * @private\r\n */\nexports.binarySearchCustom = function (orderedItems, comparator, field, field2) {\n var maxIterations = 10000;\n var iteration = 0;\n var low = 0;\n var high = orderedItems.length - 1;\n\n while (low <= high && iteration < maxIterations) {\n var middle = Math.floor((low + high) / 2);\n\n var item = orderedItems[middle];\n var value = field2 === undefined ? item[field] : item[field][field2];\n\n var searchResult = comparator(value);\n if (searchResult == 0) {\n // jihaa, found a visible item!\n return middle;\n } else if (searchResult == -1) {\n // it is too small --> increase low\n low = middle + 1;\n } else {\n // it is too big --> decrease high\n high = middle - 1;\n }\n\n iteration++;\n }\n\n return -1;\n};\n\n/**\r\n * This function does a binary search for a specific value in a sorted array. If it does not exist but is in between of\r\n * two values, we return either the one before or the one after, depending on user input\r\n * If it is found, we return the index, else -1.\r\n *\r\n * @param {Array} orderedItems\r\n * @param {{start: number, end: number}} target\r\n * @param {string} field\r\n * @param {string} sidePreference 'before' or 'after'\r\n * @param {function} comparator an optional comparator, returning -1,0,1 for <,==,>.\r\n * @returns {number}\r\n * @private\r\n */\nexports.binarySearchValue = function (orderedItems, target, field, sidePreference, comparator) {\n var maxIterations = 10000;\n var iteration = 0;\n var low = 0;\n var high = orderedItems.length - 1;\n var prevValue, value, nextValue, middle;\n\n comparator = comparator != undefined ? comparator : function (a, b) {\n return a == b ? 0 : a < b ? -1 : 1;\n };\n\n while (low <= high && iteration < maxIterations) {\n // get a new guess\n middle = Math.floor(0.5 * (high + low));\n prevValue = orderedItems[Math.max(0, middle - 1)][field];\n value = orderedItems[middle][field];\n nextValue = orderedItems[Math.min(orderedItems.length - 1, middle + 1)][field];\n\n if (comparator(value, target) == 0) {\n // we found the target\n return middle;\n } else if (comparator(prevValue, target) < 0 && comparator(value, target) > 0) {\n // target is in between of the previous and the current\n return sidePreference == 'before' ? Math.max(0, middle - 1) : middle;\n } else if (comparator(value, target) < 0 && comparator(nextValue, target) > 0) {\n // target is in between of the current and the next\n return sidePreference == 'before' ? middle : Math.min(orderedItems.length - 1, middle + 1);\n } else {\n // didnt find the target, we need to change our boundaries.\n if (comparator(value, target) < 0) {\n // it is too small --> increase low\n low = middle + 1;\n } else {\n // it is too big --> decrease high\n high = middle - 1;\n }\n }\n iteration++;\n }\n\n // didnt find anything. Return -1.\n return -1;\n};\n\n/*\r\n * Easing Functions - inspired from http://gizma.com/easing/\r\n * only considering the t value for the range [0, 1] => [0, 1]\r\n * https://gist.github.com/gre/1650294\r\n */\nexports.easingFunctions = {\n // no easing, no acceleration\n linear: function linear(t) {\n return t;\n },\n // accelerating from zero velocity\n easeInQuad: function easeInQuad(t) {\n return t * t;\n },\n // decelerating to zero velocity\n easeOutQuad: function easeOutQuad(t) {\n return t * (2 - t);\n },\n // acceleration until halfway, then deceleration\n easeInOutQuad: function easeInOutQuad(t) {\n return t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n },\n // accelerating from zero velocity\n easeInCubic: function easeInCubic(t) {\n return t * t * t;\n },\n // decelerating to zero velocity\n easeOutCubic: function easeOutCubic(t) {\n return --t * t * t + 1;\n },\n // acceleration until halfway, then deceleration\n easeInOutCubic: function easeInOutCubic(t) {\n return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n // accelerating from zero velocity\n easeInQuart: function easeInQuart(t) {\n return t * t * t * t;\n },\n // decelerating to zero velocity\n easeOutQuart: function easeOutQuart(t) {\n return 1 - --t * t * t * t;\n },\n // acceleration until halfway, then deceleration\n easeInOutQuart: function easeInOutQuart(t) {\n return t < .5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n // accelerating from zero velocity\n easeInQuint: function easeInQuint(t) {\n return t * t * t * t * t;\n },\n // decelerating to zero velocity\n easeOutQuint: function easeOutQuint(t) {\n return 1 + --t * t * t * t * t;\n },\n // acceleration until halfway, then deceleration\n easeInOutQuint: function easeInOutQuint(t) {\n return t < .5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n};\n\nexports.getScrollBarWidth = function () {\n var inner = document.createElement('p');\n inner.style.width = \"100%\";\n inner.style.height = \"200px\";\n\n var outer = document.createElement('div');\n outer.style.position = \"absolute\";\n outer.style.top = \"0px\";\n outer.style.left = \"0px\";\n outer.style.visibility = \"hidden\";\n outer.style.width = \"200px\";\n outer.style.height = \"150px\";\n outer.style.overflow = \"hidden\";\n outer.appendChild(inner);\n\n document.body.appendChild(outer);\n var w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n var w2 = inner.offsetWidth;\n if (w1 == w2) w2 = outer.clientWidth;\n\n document.body.removeChild(outer);\n\n return w1 - w2;\n};\n\nexports.topMost = function (pile, accessors) {\n var candidate = void 0;\n if (!Array.isArray(accessors)) {\n accessors = [accessors];\n }\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = (0, _getIterator3['default'])(pile), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var member = _step.value;\n\n if (member) {\n candidate = member[accessors[0]];\n for (var i = 1; i < accessors.length; i++) {\n if (candidate) {\n candidate = candidate[accessors[i]];\n } else {\n continue;\n }\n }\n if (typeof candidate != 'undefined') {\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator['return']) {\n _iterator['return']();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return candidate;\n};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(194), __esModule: true };\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = __webpack_require__(196);\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = __webpack_require__(29);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _iterator = __webpack_require__(142);\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = __webpack_require__(144);\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.5.1' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(140), __esModule: true };\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// first check if moment.js is already loaded in the browser window, if so,\n// use this instance. Else, load via commonjs.\nmodule.exports = typeof window !== 'undefined' && window['moment'] || __webpack_require__(154);\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * Setup a mock hammer.js object, for unit testing.\r\n *\r\n * Inspiration: https://github.com/uber/deck.gl/pull/658\r\n *\r\n * @returns {{on: noop, off: noop, destroy: noop, emit: noop, get: get}}\r\n */\nfunction hammerMock() {\n var noop = function noop() {};\n\n return {\n on: noop,\n off: noop,\n destroy: noop,\n emit: noop,\n\n get: function get(m) {\n //eslint-disable-line no-unused-vars\n return {\n set: noop\n };\n }\n };\n}\n\nif (typeof window !== 'undefined') {\n var propagating = __webpack_require__(175);\n var Hammer = window['Hammer'] || __webpack_require__(176);\n module.exports = propagating(Hammer, {\n preventDefault: 'mouse'\n });\n} else {\n module.exports = function () {\n // hammer.js is only available in a browser, not in node.js. Replacing it with a mock object.\n return hammerMock();\n };\n}\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar Queue = __webpack_require__(43);\n\n/**\r\n * DataSet\r\n * // TODO: add a DataSet constructor DataSet(data, options)\r\n *\r\n * Usage:\r\n * var dataSet = new DataSet({\r\n * fieldId: '_id',\r\n * type: {\r\n * // ...\r\n * }\r\n * });\r\n *\r\n * dataSet.add(item);\r\n * dataSet.add(data);\r\n * dataSet.update(item);\r\n * dataSet.update(data);\r\n * dataSet.remove(id);\r\n * dataSet.remove(ids);\r\n * var data = dataSet.get();\r\n * var data = dataSet.get(id);\r\n * var data = dataSet.get(ids);\r\n * var data = dataSet.get(ids, options, data);\r\n * dataSet.clear();\r\n *\r\n * A data set can:\r\n * - add/remove/update data\r\n * - gives triggers upon changes in the data\r\n * - can import/export data in various data formats\r\n *\r\n * @param {Array} [data] Optional array with initial data\r\n * @param {Object} [options] Available options:\r\n * {string} fieldId Field name of the id in the\r\n * items, 'id' by default.\r\n * {Object.<string, string} type\r\n * A map with field names as key,\r\n * and the field type as value.\r\n * {Object} queue Queue changes to the DataSet,\r\n * flush them all at once.\r\n * Queue options:\r\n * - {number} delay Delay in ms, null by default\r\n * - {number} max Maximum number of entries in the queue, Infinity by default\r\n * @constructor DataSet\r\n */\nfunction DataSet(data, options) {\n // correctly read optional arguments\n if (data && !Array.isArray(data)) {\n options = data;\n data = null;\n }\n\n this._options = options || {};\n this._data = {}; // map with data indexed by id\n this.length = 0; // number of items in the DataSet\n this._fieldId = this._options.fieldId || 'id'; // name of the field containing id\n this._type = {}; // internal field types (NOTE: this can differ from this._options.type)\n\n // all variants of a Date are internally stored as Date, so we can convert\n // from everything to everything (also from ISODate to Number for example)\n if (this._options.type) {\n var fields = (0, _keys2['default'])(this._options.type);\n for (var i = 0, len = fields.length; i < len; i++) {\n var field = fields[i];\n var value = this._options.type[field];\n if (value == 'Date' || value == 'ISODate' || value == 'ASPDate') {\n this._type[field] = 'Date';\n } else {\n this._type[field] = value;\n }\n }\n }\n\n this._subscribers = {}; // event subscribers\n\n // add initial data when provided\n if (data) {\n this.add(data);\n }\n\n this.setOptions(options);\n}\n\n/**\r\n * @param {Object} options Available options:\r\n * {Object} queue Queue changes to the DataSet,\r\n * flush them all at once.\r\n * Queue options:\r\n * - {number} delay Delay in ms, null by default\r\n * - {number} max Maximum number of entries in the queue, Infinity by default\r\n */\nDataSet.prototype.setOptions = function (options) {\n if (options && options.queue !== undefined) {\n if (options.queue === false) {\n // delete queue if loaded\n if (this._queue) {\n this._queue.destroy();\n delete this._queue;\n }\n } else {\n // create queue and update its options\n if (!this._queue) {\n this._queue = Queue.extend(this, {\n replace: ['add', 'update', 'remove']\n });\n }\n\n if ((0, _typeof3['default'])(options.queue) === 'object') {\n this._queue.setOptions(options.queue);\n }\n }\n }\n};\n\n/**\r\n * Subscribe to an event, add an event listener\r\n * @param {string} event Event name. Available events: 'add', 'update',\r\n * 'remove'\r\n * @param {function} callback Callback method. Called with three parameters:\r\n * {string} event\r\n * {Object | null} params\r\n * {string | number} senderId\r\n */\nDataSet.prototype.on = function (event, callback) {\n var subscribers = this._subscribers[event];\n if (!subscribers) {\n subscribers = [];\n this._subscribers[event] = subscribers;\n }\n\n subscribers.push({\n callback: callback\n });\n};\n\n/**\r\n * Unsubscribe from an event, remove an event listener\r\n * @param {string} event\r\n * @param {function} callback\r\n */\nDataSet.prototype.off = function (event, callback) {\n var subscribers = this._subscribers[event];\n if (subscribers) {\n this._subscribers[event] = subscribers.filter(function (listener) {\n return listener.callback != callback;\n });\n }\n};\n\n/**\r\n * Trigger an event\r\n * @param {string} event\r\n * @param {Object | null} params\r\n * @param {string} [senderId] Optional id of the sender.\r\n * @private\r\n */\nDataSet.prototype._trigger = function (event, params, senderId) {\n if (event == '*') {\n throw new Error('Cannot trigger event *');\n }\n\n var subscribers = [];\n if (event in this._subscribers) {\n subscribers = subscribers.concat(this._subscribers[event]);\n }\n if ('*' in this._subscribers) {\n subscribers = subscribers.concat(this._subscribers['*']);\n }\n\n for (var i = 0, len = subscribers.length; i < len; i++) {\n var subscriber = subscribers[i];\n if (subscriber.callback) {\n subscriber.callback(event, params, senderId || null);\n }\n }\n};\n\n/**\r\n * Add data.\r\n * Adding an item will fail when there already is an item with the same id.\r\n * @param {Object | Array} data\r\n * @param {string} [senderId] Optional sender id\r\n * @return {Array.<string|number>} addedIds Array with the ids of the added items\r\n */\nDataSet.prototype.add = function (data, senderId) {\n var addedIds = [],\n id,\n me = this;\n\n if (Array.isArray(data)) {\n // Array\n for (var i = 0, len = data.length; i < len; i++) {\n id = me._addItem(data[i]);\n addedIds.push(id);\n }\n } else if (data && (typeof data === 'undefined' ? 'undefined' : (0, _typeof3['default'])(data)) === 'object') {\n // Single item\n id = me._addItem(data);\n addedIds.push(id);\n } else {\n throw new Error('Unknown dataType');\n }\n\n if (addedIds.length) {\n this._trigger('add', { items: addedIds }, senderId);\n }\n\n return addedIds;\n};\n\n/**\r\n * Update existing items. When an item does not exist, it will be created\r\n * @param {Object | Array} data\r\n * @param {string} [senderId] Optional sender id\r\n * @return {Array.<string|number>} updatedIds The ids of the added or updated items\r\n * @throws {Error} Unknown Datatype\r\n */\nDataSet.prototype.update = function (data, senderId) {\n var addedIds = [];\n var updatedIds = [];\n var oldData = [];\n var updatedData = [];\n var me = this;\n var fieldId = me._fieldId;\n\n var addOrUpdate = function addOrUpdate(item) {\n var id = item[fieldId];\n if (me._data[id]) {\n var oldItem = util.extend({}, me._data[id]);\n // update item\n id = me._updateItem(item);\n updatedIds.push(id);\n updatedData.push(item);\n oldData.push(oldItem);\n } else {\n // add new item\n id = me._addItem(item);\n addedIds.push(id);\n }\n };\n\n if (Array.isArray(data)) {\n // Array\n for (var i = 0, len = data.length; i < len; i++) {\n if (data[i] && (0, _typeof3['default'])(data[i]) === 'object') {\n addOrUpdate(data[i]);\n } else {\n console.warn('Ignoring input item, which is not an object at index ' + i);\n }\n }\n } else if (data && (typeof data === 'undefined' ? 'undefined' : (0, _typeof3['default'])(data)) === 'object') {\n // Single item\n addOrUpdate(data);\n } else {\n throw new Error('Unknown dataType');\n }\n\n if (addedIds.length) {\n this._trigger('add', { items: addedIds }, senderId);\n }\n if (updatedIds.length) {\n var props = { items: updatedIds, oldData: oldData, data: updatedData };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger('update', props, senderId);\n }\n\n return addedIds.concat(updatedIds);\n};\n\n/**\r\n * Get a data item or multiple items.\r\n *\r\n * Usage:\r\n *\r\n * get()\r\n * get(options: Object)\r\n *\r\n * get(id: number | string)\r\n * get(id: number | string, options: Object)\r\n *\r\n * get(ids: number[] | string[])\r\n * get(ids: number[] | string[], options: Object)\r\n *\r\n * Where:\r\n *\r\n * {number | string} id The id of an item\r\n * {number[] | string{}} ids An array with ids of items\r\n * {Object} options An Object with options. Available options:\r\n * {string} [returnType] Type of data to be returned.\r\n * Can be 'Array' (default) or 'Object'.\r\n * {Object.<string, string>} [type]\r\n * {string[]} [fields] field names to be returned\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by a field name or custom sort function.\r\n * @param {Array} args\r\n * @returns {DataSet}\r\n * @throws Error\r\n */\nDataSet.prototype.get = function (args) {\n // eslint-disable-line no-unused-vars\n var me = this;\n\n // parse the arguments\n var id, ids, options;\n var firstType = util.getType(arguments[0]);\n if (firstType == 'String' || firstType == 'Number') {\n // get(id [, options])\n id = arguments[0];\n options = arguments[1];\n } else if (firstType == 'Array') {\n // get(ids [, options])\n ids = arguments[0];\n options = arguments[1];\n } else {\n // get([, options])\n options = arguments[0];\n }\n\n // determine the return type\n var returnType;\n if (options && options.returnType) {\n var allowedValues = ['Array', 'Object'];\n returnType = allowedValues.indexOf(options.returnType) == -1 ? 'Array' : options.returnType;\n } else {\n returnType = 'Array';\n }\n\n // build options\n var type = options && options.type || this._options.type;\n var filter = options && options.filter;\n var items = [],\n item,\n itemIds,\n itemId,\n i,\n len;\n\n // convert items\n if (id != undefined) {\n // return a single item\n item = me._getItem(id, type);\n if (item && filter && !filter(item)) {\n item = null;\n }\n } else if (ids != undefined) {\n // return a subset of items\n for (i = 0, len = ids.length; i < len; i++) {\n item = me._getItem(ids[i], type);\n if (!filter || filter(item)) {\n items.push(item);\n }\n }\n } else {\n // return all items\n itemIds = (0, _keys2['default'])(this._data);\n for (i = 0, len = itemIds.length; i < len; i++) {\n itemId = itemIds[i];\n item = me._getItem(itemId, type);\n if (!filter || filter(item)) {\n items.push(item);\n }\n }\n }\n\n // order the results\n if (options && options.order && id == undefined) {\n this._sort(items, options.order);\n }\n\n // filter fields of the items\n if (options && options.fields) {\n var fields = options.fields;\n if (id != undefined) {\n item = this._filterFields(item, fields);\n } else {\n for (i = 0, len = items.length; i < len; i++) {\n items[i] = this._filterFields(items[i], fields);\n }\n }\n }\n\n // return the results\n if (returnType == 'Object') {\n var result = {},\n resultant;\n for (i = 0, len = items.length; i < len; i++) {\n resultant = items[i];\n result[resultant.id] = resultant;\n }\n return result;\n } else {\n if (id != undefined) {\n // a single item\n return item;\n } else {\n // just return our array\n return items;\n }\n }\n};\n\n/**\r\n * Get ids of all items or from a filtered set of items.\r\n * @param {Object} [options] An Object with options. Available options:\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n * @return {Array.<string|number>} ids\r\n */\nDataSet.prototype.getIds = function (options) {\n var data = this._data,\n filter = options && options.filter,\n order = options && options.order,\n type = options && options.type || this._options.type,\n itemIds = (0, _keys2['default'])(data),\n i,\n len,\n id,\n item,\n items,\n ids = [];\n\n if (filter) {\n // get filtered items\n if (order) {\n // create ordered list\n items = [];\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n item = this._getItem(id, type);\n if (filter(item)) {\n items.push(item);\n }\n }\n\n this._sort(items, order);\n\n for (i = 0, len = items.length; i < len; i++) {\n ids.push(items[i][this._fieldId]);\n }\n } else {\n // create unordered list\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n item = this._getItem(id, type);\n if (filter(item)) {\n ids.push(item[this._fieldId]);\n }\n }\n }\n } else {\n // get all items\n if (order) {\n // create an ordered list\n items = [];\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n items.push(data[id]);\n }\n\n this._sort(items, order);\n\n for (i = 0, len = items.length; i < len; i++) {\n ids.push(items[i][this._fieldId]);\n }\n } else {\n // create unordered list\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n item = data[id];\n ids.push(item[this._fieldId]);\n }\n }\n }\n\n return ids;\n};\n\n/**\r\n * Returns the DataSet itself. Is overwritten for example by the DataView,\r\n * which returns the DataSet it is connected to instead.\r\n * @returns {DataSet}\r\n */\nDataSet.prototype.getDataSet = function () {\n return this;\n};\n\n/**\r\n * Execute a callback function for every item in the dataset.\r\n * @param {function} callback\r\n * @param {Object} [options] Available options:\r\n * {Object.<string, string>} [type]\r\n * {string[]} [fields] filter fields\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n */\nDataSet.prototype.forEach = function (callback, options) {\n var filter = options && options.filter,\n type = options && options.type || this._options.type,\n data = this._data,\n itemIds = (0, _keys2['default'])(data),\n i,\n len,\n item,\n id;\n\n if (options && options.order) {\n // execute forEach on ordered list\n var items = this.get(options);\n\n for (i = 0, len = items.length; i < len; i++) {\n item = items[i];\n id = item[this._fieldId];\n callback(item, id);\n }\n } else {\n // unordered\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n item = this._getItem(id, type);\n if (!filter || filter(item)) {\n callback(item, id);\n }\n }\n }\n};\n\n/**\r\n * Map every item in the dataset.\r\n * @param {function} callback\r\n * @param {Object} [options] Available options:\r\n * {Object.<string, string>} [type]\r\n * {string[]} [fields] filter fields\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n * @return {Object[]} mappedItems\r\n */\nDataSet.prototype.map = function (callback, options) {\n var filter = options && options.filter,\n type = options && options.type || this._options.type,\n mappedItems = [],\n data = this._data,\n itemIds = (0, _keys2['default'])(data),\n i,\n len,\n id,\n item;\n\n // convert and filter items\n for (i = 0, len = itemIds.length; i < len; i++) {\n id = itemIds[i];\n item = this._getItem(id, type);\n if (!filter || filter(item)) {\n mappedItems.push(callback(item, id));\n }\n }\n\n // order items\n if (options && options.order) {\n this._sort(mappedItems, options.order);\n }\n\n return mappedItems;\n};\n\n/**\r\n * Filter the fields of an item\r\n * @param {Object | null} item\r\n * @param {string[]} fields Field names\r\n * @return {Object | null} filteredItem or null if no item is provided\r\n * @private\r\n */\nDataSet.prototype._filterFields = function (item, fields) {\n if (!item) {\n // item is null\n return item;\n }\n\n var filteredItem = {},\n itemFields = (0, _keys2['default'])(item),\n len = itemFields.length,\n i,\n field;\n\n if (Array.isArray(fields)) {\n for (i = 0; i < len; i++) {\n field = itemFields[i];\n if (fields.indexOf(field) != -1) {\n filteredItem[field] = item[field];\n }\n }\n } else {\n for (i = 0; i < len; i++) {\n field = itemFields[i];\n if (fields.hasOwnProperty(field)) {\n filteredItem[fields[field]] = item[field];\n }\n }\n }\n\n return filteredItem;\n};\n\n/**\r\n * Sort the provided array with items\r\n * @param {Object[]} items\r\n * @param {string | function} order A field name or custom sort function.\r\n * @private\r\n */\nDataSet.prototype._sort = function (items, order) {\n if (util.isString(order)) {\n // order by provided field name\n var name = order; // field name\n items.sort(function (a, b) {\n var av = a[name];\n var bv = b[name];\n return av > bv ? 1 : av < bv ? -1 : 0;\n });\n } else if (typeof order === 'function') {\n // order by sort function\n items.sort(order);\n }\n // TODO: extend order by an Object {field:string, direction:string}\n // where direction can be 'asc' or 'desc'\n else {\n throw new TypeError('Order must be a function or a string');\n }\n};\n\n/**\r\n * Remove an object by pointer or by id\r\n * @param {string | number | Object | Array.<string|number>} id Object or id, or an array with\r\n * objects or ids to be removed\r\n * @param {string} [senderId] Optional sender id\r\n * @return {Array.<string|number>} removedIds\r\n */\nDataSet.prototype.remove = function (id, senderId) {\n var removedIds = [],\n removedItems = [],\n ids = [],\n i,\n len,\n itemId,\n item;\n\n // force everything to be an array for simplicity\n ids = Array.isArray(id) ? id : [id];\n\n for (i = 0, len = ids.length; i < len; i++) {\n item = this._remove(ids[i]);\n if (item) {\n itemId = item[this._fieldId];\n if (itemId != undefined) {\n removedIds.push(itemId);\n removedItems.push(item);\n }\n }\n }\n\n if (removedIds.length) {\n this._trigger('remove', { items: removedIds, oldData: removedItems }, senderId);\n }\n\n return removedIds;\n};\n\n/**\r\n * Remove an item by its id\r\n * @param {number | string | Object} id id or item\r\n * @returns {number | string | null} id\r\n * @private\r\n */\nDataSet.prototype._remove = function (id) {\n var item, ident;\n\n // confirm the id to use based on the args type\n if (util.isNumber(id) || util.isString(id)) {\n ident = id;\n } else if (id && (typeof id === 'undefined' ? 'undefined' : (0, _typeof3['default'])(id)) === 'object') {\n ident = id[this._fieldId]; // look for the identifier field using _fieldId\n }\n\n // do the remove if the item is found\n if (ident !== undefined && this._data[ident]) {\n item = this._data[ident];\n delete this._data[ident];\n this.length--;\n return item;\n }\n return null;\n};\n\n/**\r\n * Clear the data\r\n * @param {string} [senderId] Optional sender id\r\n * @return {Array.<string|number>} removedIds The ids of all removed items\r\n */\nDataSet.prototype.clear = function (senderId) {\n var i, len;\n var ids = (0, _keys2['default'])(this._data);\n var items = [];\n\n for (i = 0, len = ids.length; i < len; i++) {\n items.push(this._data[ids[i]]);\n }\n\n this._data = {};\n this.length = 0;\n\n this._trigger('remove', { items: ids, oldData: items }, senderId);\n\n return ids;\n};\n\n/**\r\n * Find the item with maximum value of a specified field\r\n * @param {string} field\r\n * @return {Object | null} item Item containing max value, or null if no items\r\n */\nDataSet.prototype.max = function (field) {\n var data = this._data,\n itemIds = (0, _keys2['default'])(data),\n max = null,\n maxField = null,\n i,\n len;\n\n for (i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data[id];\n var itemField = item[field];\n if (itemField != null && (!max || itemField > maxField)) {\n max = item;\n maxField = itemField;\n }\n }\n\n return max;\n};\n\n/**\r\n * Find the item with minimum value of a specified field\r\n * @param {string} field\r\n * @return {Object | null} item Item containing max value, or null if no items\r\n */\nDataSet.prototype.min = function (field) {\n var data = this._data,\n itemIds = (0, _keys2['default'])(data),\n min = null,\n minField = null,\n i,\n len;\n\n for (i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data[id];\n var itemField = item[field];\n if (itemField != null && (!min || itemField < minField)) {\n min = item;\n minField = itemField;\n }\n }\n\n return min;\n};\n\n/**\r\n * Find all distinct values of a specified field\r\n * @param {string} field\r\n * @return {Array} values Array containing all distinct values. If data items\r\n * do not contain the specified field are ignored.\r\n * The returned array is unordered.\r\n */\nDataSet.prototype.distinct = function (field) {\n var data = this._data;\n var itemIds = (0, _keys2['default'])(data);\n var values = [];\n var fieldType = this._options.type && this._options.type[field] || null;\n var count = 0;\n var i, j, len;\n\n for (i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data[id];\n var value = item[field];\n var exists = false;\n for (j = 0; j < count; j++) {\n if (values[j] == value) {\n exists = true;\n break;\n }\n }\n if (!exists && value !== undefined) {\n values[count] = value;\n count++;\n }\n }\n\n if (fieldType) {\n for (i = 0, len = values.length; i < len; i++) {\n values[i] = util.convert(values[i], fieldType);\n }\n }\n\n return values;\n};\n\n/**\r\n * Add a single item. Will fail when an item with the same id already exists.\r\n * @param {Object} item\r\n * @return {string} id\r\n * @private\r\n */\nDataSet.prototype._addItem = function (item) {\n var id = item[this._fieldId];\n\n if (id != undefined) {\n // check whether this id is already taken\n if (this._data[id]) {\n // item already exists\n throw new Error('Cannot add item: item with id ' + id + ' already exists');\n }\n } else {\n // generate an id\n id = util.randomUUID();\n item[this._fieldId] = id;\n }\n\n var d = {},\n fields = (0, _keys2['default'])(item),\n i,\n len;\n for (i = 0, len = fields.length; i < len; i++) {\n var field = fields[i];\n var fieldType = this._type[field]; // type may be undefined\n d[field] = util.convert(item[field], fieldType);\n }\n this._data[id] = d;\n this.length++;\n\n return id;\n};\n\n/**\r\n * Get an item. Fields can be converted to a specific type\r\n * @param {string} id\r\n * @param {Object.<string, string>} [types] field types to convert\r\n * @return {Object | null} item\r\n * @private\r\n */\nDataSet.prototype._getItem = function (id, types) {\n var field, value, i, len;\n\n // get the item from the dataset\n var raw = this._data[id];\n if (!raw) {\n return null;\n }\n\n // convert the items field types\n var converted = {},\n fields = (0, _keys2['default'])(raw);\n\n if (types) {\n for (i = 0, len = fields.length; i < len; i++) {\n field = fields[i];\n value = raw[field];\n converted[field] = util.convert(value, types[field]);\n }\n } else {\n // no field types specified, no converting needed\n for (i = 0, len = fields.length; i < len; i++) {\n field = fields[i];\n value = raw[field];\n converted[field] = value;\n }\n }\n\n if (!converted[this._fieldId]) {\n converted[this._fieldId] = raw.id;\n }\n\n return converted;\n};\n\n/**\r\n * Update a single item: merge with existing item.\r\n * Will fail when the item has no id, or when there does not exist an item\r\n * with the same id.\r\n * @param {Object} item\r\n * @return {string} id\r\n * @private\r\n */\nDataSet.prototype._updateItem = function (item) {\n var id = item[this._fieldId];\n if (id == undefined) {\n throw new Error('Cannot update item: item has no id (item: ' + (0, _stringify2['default'])(item) + ')');\n }\n var d = this._data[id];\n if (!d) {\n // item doesn't exist\n throw new Error('Cannot update item: no item with id ' + id + ' found');\n }\n\n // merge with current item\n var fields = (0, _keys2['default'])(item);\n for (var i = 0, len = fields.length; i < len; i++) {\n var field = fields[i];\n var fieldType = this._type[field]; // type may be undefined\n d[field] = util.convert(item[field], fieldType);\n }\n\n return id;\n};\n\nmodule.exports = DataSet;\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar DataSet = __webpack_require__(11);\n\n/**\r\n * DataView\r\n *\r\n * a dataview offers a filtered view on a dataset or an other dataview.\r\n *\r\n * @param {DataSet | DataView} data\r\n * @param {Object} [options] Available options: see method get\r\n *\r\n * @constructor DataView\r\n */\nfunction DataView(data, options) {\n this._data = null;\n this._ids = {}; // ids of the items currently in memory (just contains a boolean true)\n this.length = 0; // number of items in the DataView\n this._options = options || {};\n this._fieldId = 'id'; // name of the field containing id\n this._subscribers = {}; // event subscribers\n\n var me = this;\n this.listener = function () {\n me._onEvent.apply(me, arguments);\n };\n\n this.setData(data);\n}\n\n// TODO: implement a function .config() to dynamically update things like configured filter\n// and trigger changes accordingly\n\n/**\r\n * Set a data source for the view\r\n * @param {DataSet | DataView} data\r\n */\nDataView.prototype.setData = function (data) {\n var ids, id, i, len, items;\n\n if (this._data) {\n // unsubscribe from current dataset\n if (this._data.off) {\n this._data.off('*', this.listener);\n }\n\n // trigger a remove of all items in memory\n ids = this._data.getIds({ filter: this._options && this._options.filter });\n items = [];\n\n for (i = 0, len = ids.length; i < len; i++) {\n items.push(this._data._data[ids[i]]);\n }\n\n this._ids = {};\n this.length = 0;\n this._trigger('remove', { items: ids, oldData: items });\n }\n\n this._data = data;\n\n if (this._data) {\n // update fieldId\n this._fieldId = this._options.fieldId || this._data && this._data.options && this._data.options.fieldId || 'id';\n\n // trigger an add of all added items\n ids = this._data.getIds({ filter: this._options && this._options.filter });\n for (i = 0, len = ids.length; i < len; i++) {\n id = ids[i];\n this._ids[id] = true;\n }\n this.length = ids.length;\n this._trigger('add', { items: ids });\n\n // subscribe to new dataset\n if (this._data.on) {\n this._data.on('*', this.listener);\n }\n }\n};\n\n/**\r\n * Refresh the DataView. Useful when the DataView has a filter function\r\n * containing a variable parameter.\r\n */\nDataView.prototype.refresh = function () {\n var id, i, len;\n var ids = this._data.getIds({ filter: this._options && this._options.filter }),\n oldIds = (0, _keys2['default'])(this._ids),\n newIds = {},\n addedIds = [],\n removedIds = [],\n removedItems = [];\n\n // check for additions\n for (i = 0, len = ids.length; i < len; i++) {\n id = ids[i];\n newIds[id] = true;\n if (!this._ids[id]) {\n addedIds.push(id);\n this._ids[id] = true;\n }\n }\n\n // check for removals\n for (i = 0, len = oldIds.length; i < len; i++) {\n id = oldIds[i];\n if (!newIds[id]) {\n removedIds.push(id);\n removedItems.push(this._data._data[id]);\n delete this._ids[id];\n }\n }\n\n this.length += addedIds.length - removedIds.length;\n\n // trigger events\n if (addedIds.length) {\n this._trigger('add', { items: addedIds });\n }\n if (removedIds.length) {\n this._trigger('remove', { items: removedIds, oldData: removedItems });\n }\n};\n\n/**\r\n * Get data from the data view\r\n *\r\n * Usage:\r\n *\r\n * get()\r\n * get(options: Object)\r\n * get(options: Object, data: Array | DataTable)\r\n *\r\n * get(id: Number)\r\n * get(id: Number, options: Object)\r\n * get(id: Number, options: Object, data: Array | DataTable)\r\n *\r\n * get(ids: Number[])\r\n * get(ids: Number[], options: Object)\r\n * get(ids: Number[], options: Object, data: Array | DataTable)\r\n *\r\n * Where:\r\n *\r\n * {number | string} id The id of an item\r\n * {number[] | string{}} ids An array with ids of items\r\n * {Object} options An Object with options. Available options:\r\n * {string} [type] Type of data to be returned. Can\r\n * be 'DataTable' or 'Array' (default)\r\n * {Object.<string, string>} [convert]\r\n * {string[]} [fields] field names to be returned\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n * {Array | DataTable} [data] If provided, items will be appended to this\r\n * array or table. Required in case of Google\r\n * DataTable.\r\n * @param {Array} args\r\n * @return {DataSet|DataView}\r\n */\nDataView.prototype.get = function (args) {\n // eslint-disable-line no-unused-vars\n var me = this;\n\n // parse the arguments\n var ids, options, data;\n var firstType = util.getType(arguments[0]);\n if (firstType == 'String' || firstType == 'Number' || firstType == 'Array') {\n // get(id(s) [, options] [, data])\n ids = arguments[0]; // can be a single id or an array with ids\n options = arguments[1];\n data = arguments[2];\n } else {\n // get([, options] [, data])\n options = arguments[0];\n data = arguments[1];\n }\n\n // extend the options with the default options and provided options\n var viewOptions = util.extend({}, this._options, options);\n\n // create a combined filter method when needed\n if (this._options.filter && options && options.filter) {\n viewOptions.filter = function (item) {\n return me._options.filter(item) && options.filter(item);\n };\n }\n\n // build up the call to the linked data set\n var getArguments = [];\n if (ids != undefined) {\n getArguments.push(ids);\n }\n getArguments.push(viewOptions);\n getArguments.push(data);\n\n return this._data && this._data.get.apply(this._data, getArguments);\n};\n\n/**\r\n * Get ids of all items or from a filtered set of items.\r\n * @param {Object} [options] An Object with options. Available options:\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n * @return {Array.<string|number>} ids\r\n */\nDataView.prototype.getIds = function (options) {\n var ids;\n\n if (this._data) {\n var defaultFilter = this._options.filter;\n var filter;\n\n if (options && options.filter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && options.filter(item);\n };\n } else {\n filter = options.filter;\n }\n } else {\n filter = defaultFilter;\n }\n\n ids = this._data.getIds({\n filter: filter,\n order: options && options.order\n });\n } else {\n ids = [];\n }\n\n return ids;\n};\n\n/**\r\n * Map every item in the dataset.\r\n * @param {function} callback\r\n * @param {Object} [options] Available options:\r\n * {Object.<string, string>} [type]\r\n * {string[]} [fields] filter fields\r\n * {function} [filter] filter items\r\n * {string | function} [order] Order the items by\r\n * a field name or custom sort function.\r\n * @return {Object[]} mappedItems\r\n */\nDataView.prototype.map = function (callback, options) {\n var mappedItems = [];\n if (this._data) {\n var defaultFilter = this._options.filter;\n var filter;\n\n if (options && options.filter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && options.filter(item);\n };\n } else {\n filter = options.filter;\n }\n } else {\n filter = defaultFilter;\n }\n\n mappedItems = this._data.map(callback, {\n filter: filter,\n order: options && options.order\n });\n } else {\n mappedItems = [];\n }\n\n return mappedItems;\n};\n\n/**\r\n * Get the DataSet to which this DataView is connected. In case there is a chain\r\n * of multiple DataViews, the root DataSet of this chain is returned.\r\n * @return {DataSet} dataSet\r\n */\nDataView.prototype.getDataSet = function () {\n var dataSet = this;\n while (dataSet instanceof DataView) {\n dataSet = dataSet._data;\n }\n return dataSet || null;\n};\n\n/**\r\n * Event listener. Will propagate all events from the connected data set to\r\n * the subscribers of the DataView, but will filter the items and only trigger\r\n * when there are changes in the filtered data set.\r\n * @param {string} event\r\n * @param {Object | null} params\r\n * @param {string} senderId\r\n * @private\r\n */\nDataView.prototype._onEvent = function (event, params, senderId) {\n var i, len, id, item;\n var ids = params && params.items;\n var addedIds = [],\n updatedIds = [],\n removedIds = [],\n oldItems = [],\n updatedItems = [],\n removedItems = [];\n\n if (ids && this._data) {\n switch (event) {\n case 'add':\n // filter the ids of the added items\n for (i = 0, len = ids.length; i < len; i++) {\n id = ids[i];\n item = this.get(id);\n if (item) {\n this._ids[id] = true;\n addedIds.push(id);\n }\n }\n\n break;\n\n case 'update':\n // determine the event from the views viewpoint: an updated\n // item can be added, updated, or removed from this view.\n for (i = 0, len = ids.length; i < len; i++) {\n id = ids[i];\n item = this.get(id);\n\n if (item) {\n if (this._ids[id]) {\n updatedIds.push(id);\n updatedItems.push(params.data[i]);\n oldItems.push(params.oldData[i]);\n } else {\n this._ids[id] = true;\n addedIds.push(id);\n }\n } else {\n if (this._ids[id]) {\n delete this._ids[id];\n removedIds.push(id);\n removedItems.push(params.oldData[i]);\n } else {\n // nothing interesting for me :-(\n }\n }\n }\n\n break;\n\n case 'remove':\n // filter the ids of the removed items\n for (i = 0, len = ids.length; i < len; i++) {\n id = ids[i];\n if (this._ids[id]) {\n delete this._ids[id];\n removedIds.push(id);\n removedItems.push(params.oldData[i]);\n }\n }\n\n break;\n }\n\n this.length += addedIds.length - removedIds.length;\n\n if (addedIds.length) {\n this._trigger('add', { items: addedIds }, senderId);\n }\n if (updatedIds.length) {\n this._trigger('update', { items: updatedIds, oldData: oldItems, data: updatedItems }, senderId);\n }\n if (removedIds.length) {\n this._trigger('remove', { items: removedIds, oldData: removedItems }, senderId);\n }\n }\n};\n\n// copy subscription functionality from DataSet\nDataView.prototype.on = DataSet.prototype.on;\nDataView.prototype.off = DataSet.prototype.off;\nDataView.prototype._trigger = DataSet.prototype._trigger;\n\n// TODO: make these functions deprecated (replaced with `on` and `off` since version 0.5)\nDataView.prototype.subscribe = DataView.prototype.on;\nDataView.prototype.unsubscribe = DataView.prototype.off;\n\nmodule.exports = DataView;\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(57)('wks');\nvar uid = __webpack_require__(40);\nvar Symbol = __webpack_require__(18).Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// DOM utility methods\n\n/**\r\n * this prepares the JSON container for allocating SVG elements\r\n * @param {Object} JSONcontainer\r\n * @private\r\n */\nexports.prepareElements = function (JSONcontainer) {\n // cleanup the redundant svgElements;\n for (var elementType in JSONcontainer) {\n if (JSONcontainer.hasOwnProperty(elementType)) {\n JSONcontainer[elementType].redundant = JSONcontainer[elementType].used;\n JSONcontainer[elementType].used = [];\n }\n }\n};\n\n/**\r\n * this cleans up all the unused SVG elements. By asking for the parentNode, we only need to supply the JSON container from\r\n * which to remove the redundant elements.\r\n *\r\n * @param {Object} JSONcontainer\r\n * @private\r\n */\nexports.cleanupElements = function (JSONcontainer) {\n // cleanup the redundant svgElements;\n for (var elementType in JSONcontainer) {\n if (JSONcontainer.hasOwnProperty(elementType)) {\n if (JSONcontainer[elementType].redundant) {\n for (var i = 0; i < JSONcontainer[elementType].redundant.length; i++) {\n JSONcontainer[elementType].redundant[i].parentNode.removeChild(JSONcontainer[elementType].redundant[i]);\n }\n JSONcontainer[elementType].redundant = [];\n }\n }\n }\n};\n\n/**\r\n * Ensures that all elements are removed first up so they can be recreated cleanly\r\n * @param {Object} JSONcontainer\r\n */\nexports.resetElements = function (JSONcontainer) {\n exports.prepareElements(JSONcontainer);\n exports.cleanupElements(JSONcontainer);\n exports.prepareElements(JSONcontainer);\n};\n\n/**\r\n * Allocate or generate an SVG element if needed. Store a reference to it in the JSON container and draw it in the svgContainer\r\n * the JSON container and the SVG container have to be supplied so other svg containers (like the legend) can use this.\r\n *\r\n * @param {string} elementType\r\n * @param {Object} JSONcontainer\r\n * @param {Object} svgContainer\r\n * @returns {Element}\r\n * @private\r\n */\nexports.getSVGElement = function (elementType, JSONcontainer, svgContainer) {\n var element;\n // allocate SVG element, if it doesnt yet exist, create one.\n if (JSONcontainer.hasOwnProperty(elementType)) {\n // this element has been created before\n // check if there is an redundant element\n if (JSONcontainer[elementType].redundant.length > 0) {\n element = JSONcontainer[elementType].redundant[0];\n JSONcontainer[elementType].redundant.shift();\n } else {\n // create a new element and add it to the SVG\n element = document.createElementNS('http://www.w3.org/2000/svg', elementType);\n svgContainer.appendChild(element);\n }\n } else {\n // create a new element and add it to the SVG, also create a new object in the svgElements to keep track of it.\n element = document.createElementNS('http://www.w3.org/2000/svg', elementType);\n JSONcontainer[elementType] = { used: [], redundant: [] };\n svgContainer.appendChild(element);\n }\n JSONcontainer[elementType].used.push(element);\n return element;\n};\n\n/**\r\n * Allocate or generate an SVG element if needed. Store a reference to it in the JSON container and draw it in the svgContainer\r\n * the JSON container and the SVG container have to be supplied so other svg containers (like the legend) can use this.\r\n *\r\n * @param {string} elementType\r\n * @param {Object} JSONcontainer\r\n * @param {Element} DOMContainer\r\n * @param {Element} insertBefore\r\n * @returns {*}\r\n */\nexports.getDOMElement = function (elementType, JSONcontainer, DOMContainer, insertBefore) {\n var element;\n // allocate DOM element, if it doesnt yet exist, create one.\n if (JSONcontainer.hasOwnProperty(elementType)) {\n // this element has been created before\n // check if there is an redundant element\n if (JSONcontainer[elementType].redundant.length > 0) {\n element = JSONcontainer[elementType].redundant[0];\n JSONcontainer[elementType].redundant.shift();\n } else {\n // create a new element and add it to the SVG\n element = document.createElement(elementType);\n if (insertBefore !== undefined) {\n DOMContainer.insertBefore(element, insertBefore);\n } else {\n DOMContainer.appendChild(element);\n }\n }\n } else {\n // create a new element and add it to the SVG, also create a new object in the svgElements to keep track of it.\n element = document.createElement(elementType);\n JSONcontainer[elementType] = { used: [], redundant: [] };\n if (insertBefore !== undefined) {\n DOMContainer.insertBefore(element, insertBefore);\n } else {\n DOMContainer.appendChild(element);\n }\n }\n JSONcontainer[elementType].used.push(element);\n return element;\n};\n\n/**\r\n * Draw a point object. This is a separate function because it can also be called by the legend.\r\n * The reason the JSONcontainer and the target SVG svgContainer have to be supplied is so the legend can use these functions\r\n * as well.\r\n *\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Object} groupTemplate: A template containing the necessary information to draw the datapoint e.g., {style: 'circle', size: 5, className: 'className' }\r\n * @param {Object} JSONcontainer\r\n * @param {Object} svgContainer\r\n * @param {Object} labelObj\r\n * @returns {vis.PointItem}\r\n */\nexports.drawPoint = function (x, y, groupTemplate, JSONcontainer, svgContainer, labelObj) {\n var point;\n if (groupTemplate.style == 'circle') {\n point = exports.getSVGElement('circle', JSONcontainer, svgContainer);\n point.setAttributeNS(null, \"cx\", x);\n point.setAttributeNS(null, \"cy\", y);\n point.setAttributeNS(null, \"r\", 0.5 * groupTemplate.size);\n } else {\n point = exports.getSVGElement('rect', JSONcontainer, svgContainer);\n point.setAttributeNS(null, \"x\", x - 0.5 * groupTemplate.size);\n point.setAttributeNS(null, \"y\", y - 0.5 * groupTemplate.size);\n point.setAttributeNS(null, \"width\", groupTemplate.size);\n point.setAttributeNS(null, \"height\", groupTemplate.size);\n }\n\n if (groupTemplate.styles !== undefined) {\n point.setAttributeNS(null, \"style\", groupTemplate.styles);\n }\n point.setAttributeNS(null, \"class\", groupTemplate.className + \" vis-point\");\n //handle label\n\n\n if (labelObj) {\n var label = exports.getSVGElement('text', JSONcontainer, svgContainer);\n if (labelObj.xOffset) {\n x = x + labelObj.xOffset;\n }\n\n if (labelObj.yOffset) {\n y = y + labelObj.yOffset;\n }\n if (labelObj.content) {\n label.textContent = labelObj.content;\n }\n\n if (labelObj.className) {\n label.setAttributeNS(null, \"class\", labelObj.className + \" vis-label\");\n }\n label.setAttributeNS(null, \"x\", x);\n label.setAttributeNS(null, \"y\", y);\n }\n\n return point;\n};\n\n/**\r\n * draw a bar SVG element centered on the X coordinate\r\n *\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {string} className\r\n * @param {Object} JSONcontainer\r\n * @param {Object} svgContainer\r\n * @param {string} style\r\n */\nexports.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer, style) {\n if (height != 0) {\n if (height < 0) {\n height *= -1;\n y -= height;\n }\n var rect = exports.getSVGElement('rect', JSONcontainer, svgContainer);\n rect.setAttributeNS(null, \"x\", x - 0.5 * width);\n rect.setAttributeNS(null, \"y\", y);\n rect.setAttributeNS(null, \"width\", width);\n rect.setAttributeNS(null, \"height\", height);\n rect.setAttributeNS(null, \"class\", className);\n if (style) {\n rect.setAttributeNS(null, \"style\", style);\n }\n }\n};\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.printStyle = undefined;\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\n\nvar errorFound = false;\nvar allOptions = void 0;\nvar printStyle = 'background: #FFeeee; color: #dd0000';\n/**\r\n * Used to validate options.\r\n */\n\nvar Validator = function () {\n /**\r\n * @ignore\r\n */\n function Validator() {\n (0, _classCallCheck3['default'])(this, Validator);\n }\n\n /**\r\n * Main function to be called\r\n * @param {Object} options\r\n * @param {Object} referenceOptions\r\n * @param {Object} subObject\r\n * @returns {boolean}\r\n * @static\r\n */\n\n\n (0, _createClass3['default'])(Validator, null, [{\n key: 'validate',\n value: function validate(options, referenceOptions, subObject) {\n errorFound = false;\n allOptions = referenceOptions;\n var usedOptions = referenceOptions;\n if (subObject !== undefined) {\n usedOptions = referenceOptions[subObject];\n }\n Validator.parse(options, usedOptions, []);\n return errorFound;\n }\n\n /**\r\n * Will traverse an object recursively and check every value\r\n * @param {Object} options\r\n * @param {Object} referenceOptions\r\n * @param {array} path | where to look for the actual option\r\n * @static\r\n */\n\n }, {\n key: 'parse',\n value: function parse(options, referenceOptions, path) {\n for (var option in options) {\n if (options.hasOwnProperty(option)) {\n Validator.check(option, options, referenceOptions, path);\n }\n }\n }\n\n /**\r\n * Check every value. If the value is an object, call the parse function on that object.\r\n * @param {string} option\r\n * @param {Object} options\r\n * @param {Object} referenceOptions\r\n * @param {array} path | where to look for the actual option\r\n * @static\r\n */\n\n }, {\n key: 'check',\n value: function check(option, options, referenceOptions, path) {\n if (referenceOptions[option] === undefined && referenceOptions.__any__ === undefined) {\n Validator.getSuggestion(option, referenceOptions, path);\n return;\n }\n\n var referenceOption = option;\n var is_object = true;\n\n if (referenceOptions[option] === undefined && referenceOptions.__any__ !== undefined) {\n // NOTE: This only triggers if the __any__ is in the top level of the options object.\n // THAT'S A REALLY BAD PLACE TO ALLOW IT!!!!\n // TODO: Examine if needed, remove if possible\n\n // __any__ is a wildcard. Any value is accepted and will be further analysed by reference.\n referenceOption = '__any__';\n\n // if the any-subgroup is not a predefined object in the configurator,\n // we do not look deeper into the object.\n is_object = Validator.getType(options[option]) === 'object';\n } else {\n // Since all options in the reference are objects, we can check whether \n // they are supposed to be the object to look for the __type__ field.\n // if this is an object, we check if the correct type has been supplied to account for shorthand options.\n }\n\n var refOptionObj = referenceOptions[referenceOption];\n if (is_object && refOptionObj.__type__ !== undefined) {\n refOptionObj = refOptionObj.__type__;\n }\n\n Validator.checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path);\n }\n\n /**\r\n *\r\n * @param {string} option | the option property\r\n * @param {Object} options | The supplied options object\r\n * @param {Object} referenceOptions | The reference options containing all options and their allowed formats\r\n * @param {string} referenceOption | Usually this is the same as option, except when handling an __any__ tag.\r\n * @param {string} refOptionObj | This is the type object from the reference options\r\n * @param {Array} path | where in the object is the option\r\n * @static\r\n */\n\n }, {\n key: 'checkFields',\n value: function checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path) {\n var log = function log(message) {\n console.log('%c' + message + Validator.printLocation(path, option), printStyle);\n };\n\n var optionType = Validator.getType(options[option]);\n var refOptionType = refOptionObj[optionType];\n\n if (refOptionType !== undefined) {\n // if the type is correct, we check if it is supposed to be one of a few select values\n if (Validator.getType(refOptionType) === 'array' && refOptionType.indexOf(options[option]) === -1) {\n log('Invalid option detected in \"' + option + '\".' + ' Allowed values are:' + Validator.print(refOptionType) + ' not \"' + options[option] + '\". ');\n errorFound = true;\n } else if (optionType === 'object' && referenceOption !== \"__any__\") {\n path = util.copyAndExtendArray(path, option);\n Validator.parse(options[option], referenceOptions[referenceOption], path);\n }\n } else if (refOptionObj['any'] === undefined) {\n // type of the field is incorrect and the field cannot be any\n log('Invalid type received for \"' + option + '\". Expected: ' + Validator.print((0, _keys2['default'])(refOptionObj)) + '. Received [' + optionType + '] \"' + options[option] + '\"');\n errorFound = true;\n }\n }\n\n /**\r\n *\r\n * @param {Object|boolean|number|string|Array.<number>|Date|Node|Moment|undefined|null} object\r\n * @returns {string}\r\n * @static\r\n */\n\n }, {\n key: 'getType',\n value: function getType(object) {\n var type = typeof object === 'undefined' ? 'undefined' : (0, _typeof3['default'])(object);\n\n if (type === 'object') {\n if (object === null) {\n return 'null';\n }\n if (object instanceof Boolean) {\n return 'boolean';\n }\n if (object instanceof Number) {\n return 'number';\n }\n if (object instanceof String) {\n return 'string';\n }\n if (Array.isArray(object)) {\n return 'array';\n }\n if (object instanceof Date) {\n return 'date';\n }\n if (object.nodeType !== undefined) {\n return 'dom';\n }\n if (object._isAMomentObject === true) {\n return 'moment';\n }\n return 'object';\n } else if (type === 'number') {\n return 'number';\n } else if (type === 'boolean') {\n return 'boolean';\n } else if (type === 'string') {\n return 'string';\n } else if (type === undefined) {\n return 'undefined';\n }\n return type;\n }\n\n /**\r\n * @param {string} option\r\n * @param {Object} options\r\n * @param {Array.<string>} path\r\n * @static\r\n */\n\n }, {\n key: 'getSuggestion',\n value: function getSuggestion(option, options, path) {\n var localSearch = Validator.findInOptions(option, options, path, false);\n var globalSearch = Validator.findInOptions(option, allOptions, [], true);\n\n var localSearchThreshold = 8;\n var globalSearchThreshold = 4;\n\n var msg = void 0;\n if (localSearch.indexMatch !== undefined) {\n msg = ' in ' + Validator.printLocation(localSearch.path, option, '') + 'Perhaps it was incomplete? Did you mean: \"' + localSearch.indexMatch + '\"?\\n\\n';\n } else if (globalSearch.distance <= globalSearchThreshold && localSearch.distance > globalSearch.distance) {\n msg = ' in ' + Validator.printLocation(localSearch.path, option, '') + 'Perhaps it was misplaced? Matching option found at: ' + Validator.printLocation(globalSearch.path, globalSearch.closestMatch, '');\n } else if (localSearch.distance <= localSearchThreshold) {\n msg = '. Did you mean \"' + localSearch.closestMatch + '\"?' + Validator.printLocation(localSearch.path, option);\n } else {\n msg = '. Did you mean one of these: ' + Validator.print((0, _keys2['default'])(options)) + Validator.printLocation(path, option);\n }\n\n console.log('%cUnknown option detected: \"' + option + '\"' + msg, printStyle);\n errorFound = true;\n }\n\n /**\r\n * traverse the options in search for a match.\r\n * @param {string} option\r\n * @param {Object} options\r\n * @param {Array} path | where to look for the actual option\r\n * @param {boolean} [recursive=false]\r\n * @returns {{closestMatch: string, path: Array, distance: number}}\r\n * @static\r\n */\n\n }, {\n key: 'findInOptions',\n value: function findInOptions(option, options, path) {\n var recursive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n var min = 1e9;\n var closestMatch = '';\n var closestMatchPath = [];\n var lowerCaseOption = option.toLowerCase();\n var indexMatch = undefined;\n for (var op in options) {\n // eslint-disable-line guard-for-in\n var distance = void 0;\n if (options[op].__type__ !== undefined && recursive === true) {\n var result = Validator.findInOptions(option, options[op], util.copyAndExtendArray(path, op));\n if (min > result.distance) {\n closestMatch = result.closestMatch;\n closestMatchPath = result.path;\n min = result.distance;\n indexMatch = result.indexMatch;\n }\n } else {\n if (op.toLowerCase().indexOf(lowerCaseOption) !== -1) {\n indexMatch = op;\n }\n distance = Validator.levenshteinDistance(option, op);\n if (min > distance) {\n closestMatch = op;\n closestMatchPath = util.copyArray(path);\n min = distance;\n }\n }\n }\n return { closestMatch: closestMatch, path: closestMatchPath, distance: min, indexMatch: indexMatch };\n }\n\n /**\r\n * @param {Array.<string>} path\r\n * @param {Object} option\r\n * @param {string} prefix\r\n * @returns {String}\r\n * @static\r\n */\n\n }, {\n key: 'printLocation',\n value: function printLocation(path, option) {\n var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Problem value found at: \\n';\n\n var str = '\\n\\n' + prefix + 'options = {\\n';\n for (var i = 0; i < path.length; i++) {\n for (var j = 0; j < i + 1; j++) {\n str += ' ';\n }\n str += path[i] + ': {\\n';\n }\n for (var _j = 0; _j < path.length + 1; _j++) {\n str += ' ';\n }\n str += option + '\\n';\n for (var _i = 0; _i < path.length + 1; _i++) {\n for (var _j2 = 0; _j2 < path.length - _i; _j2++) {\n str += ' ';\n }\n str += '}\\n';\n }\n return str + '\\n\\n';\n }\n\n /**\r\n * @param {Object} options\r\n * @returns {String}\r\n * @static\r\n */\n\n }, {\n key: 'print',\n value: function print(options) {\n return (0, _stringify2['default'])(options).replace(/(\\\")|(\\[)|(\\])|(,\"__type__\")/g, \"\").replace(/(\\,)/g, ', ');\n }\n\n /**\r\n * Compute the edit distance between the two given strings\r\n * http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#JavaScript\r\n *\r\n * Copyright (c) 2011 Andrei Mackenzie\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n *\r\n * @param {string} a\r\n * @param {string} b\r\n * @returns {Array.<Array.<number>>}}\r\n * @static\r\n */\n\n }, {\n key: 'levenshteinDistance',\n value: function levenshteinDistance(a, b) {\n if (a.length === 0) return b.length;\n if (b.length === 0) return a.length;\n\n var matrix = [];\n\n // increment along the first column of each row\n var i;\n for (i = 0; i <= b.length; i++) {\n matrix[i] = [i];\n }\n\n // increment each column in the first row\n var j;\n for (j = 0; j <= a.length; j++) {\n matrix[0][j] = j;\n }\n\n // Fill in the rest of the matrix\n for (i = 1; i <= b.length; i++) {\n for (j = 1; j <= a.length; j++) {\n if (b.charAt(i - 1) == a.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution\n Math.min(matrix[i][j - 1] + 1, // insertion\n matrix[i - 1][j] + 1)); // deletion\n }\n }\n }\n\n return matrix[b.length][a.length];\n }\n }]);\n return Validator;\n}();\n\nexports['default'] = Validator;\nexports.printStyle = printStyle;\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar util = __webpack_require__(2);\n\n/**\r\n * Prototype for visual components\r\n * @param {{dom: Object, domProps: Object, emitter: Emitter, range: Range}} [body]\r\n * @param {Object} [options]\r\n */\nfunction Component(body, options) {\n // eslint-disable-line no-unused-vars\n this.options = null;\n this.props = null;\n}\n\n/**\r\n * Set options for the component. The new options will be merged into the\r\n * current options.\r\n * @param {Object} options\r\n */\nComponent.prototype.setOptions = function (options) {\n if (options) {\n util.extend(this.options, options);\n }\n};\n\n/**\r\n * Repaint the component\r\n * @return {boolean} Returns true if the component is resized\r\n */\nComponent.prototype.redraw = function () {\n // should be implemented by the component\n return false;\n};\n\n/**\r\n * Destroy the component. Cleanup DOM and event listeners\r\n */\nComponent.prototype.destroy = function () {\n // should be implemented by the component\n};\n\n/**\r\n * Test whether the component is resized since the last time _isResized() was\r\n * called.\r\n * @return {Boolean} Returns true if the component is resized\r\n * @protected\r\n */\nComponent.prototype._isResized = function () {\n var resized = this.props._previousWidth !== this.props.width || this.props._previousHeight !== this.props.height;\n\n this.props._previousWidth = this.props.width;\n this.props._previousHeight = this.props.height;\n\n return resized;\n};\n\nmodule.exports = Component;\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(18);\nvar core = __webpack_require__(7);\nvar ctx = __webpack_require__(80);\nvar hide = __webpack_require__(26);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && key in exports) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(160), __esModule: true };\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(27);\nvar IE8_DOM_DEFINE = __webpack_require__(81);\nvar toPrimitive = __webpack_require__(53);\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(21) ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(28)(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\r\n * The Base class for all Nodes.\r\n */\nvar NodeBase = function () {\n /**\r\n * @param {Object} options\r\n * @param {Object} body\r\n * @param {Label} labelModule\r\n */\n function NodeBase(options, body, labelModule) {\n (0, _classCallCheck3['default'])(this, NodeBase);\n\n this.body = body;\n this.labelModule = labelModule;\n this.setOptions(options);\n this.top = undefined;\n this.left = undefined;\n this.height = undefined;\n this.width = undefined;\n this.radius = undefined;\n this.margin = undefined;\n this.refreshNeeded = true;\n this.boundingBox = { top: 0, left: 0, right: 0, bottom: 0 };\n }\n\n /**\r\n *\r\n * @param {Object} options\r\n */\n\n\n (0, _createClass3['default'])(NodeBase, [{\n key: 'setOptions',\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\r\n *\r\n * @param {Label} labelModule\r\n * @private\r\n */\n\n }, {\n key: '_setMargins',\n value: function _setMargins(labelModule) {\n this.margin = {};\n if (this.options.margin) {\n if ((0, _typeof3['default'])(this.options.margin) == 'object') {\n this.margin.top = this.options.margin.top;\n this.margin.right = this.options.margin.right;\n this.margin.bottom = this.options.margin.bottom;\n this.margin.left = this.options.margin.left;\n } else {\n this.margin.top = this.options.margin;\n this.margin.right = this.options.margin;\n this.margin.bottom = this.options.margin;\n this.margin.left = this.options.margin;\n }\n }\n labelModule.adjustSizes(this.margin);\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {number} angle\r\n * @returns {number}\r\n * @private\r\n */\n\n }, {\n key: '_distanceToBorder',\n value: function _distanceToBorder(ctx, angle) {\n var borderWidth = this.options.borderWidth;\n this.resize(ctx);\n return Math.min(Math.abs(this.width / 2 / Math.cos(angle)), Math.abs(this.height / 2 / Math.sin(angle))) + borderWidth;\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'enableShadow',\n value: function enableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = values.shadowColor;\n ctx.shadowBlur = values.shadowSize;\n ctx.shadowOffsetX = values.shadowX;\n ctx.shadowOffsetY = values.shadowY;\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'disableShadow',\n value: function disableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = 'rgba(0,0,0,0)';\n ctx.shadowBlur = 0;\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'enableBorderDashes',\n value: function enableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n var dashes = values.borderDashes;\n if (dashes === true) {\n dashes = [5, 15];\n }\n ctx.setLineDash(dashes);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'disableBorderDashes',\n value: function disableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n ctx.setLineDash([0]);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\r\n * Determine if the shape of a node needs to be recalculated.\r\n *\r\n * @param {boolean} selected\r\n * @param {boolean} hover\r\n * @returns {boolean}\r\n * @protected\r\n */\n\n }, {\n key: 'needsRefresh',\n value: function needsRefresh(selected, hover) {\n if (this.refreshNeeded === true) {\n // This is probably not the best location to reset this member.\n // However, in the current logic, it is the most convenient one.\n this.refreshNeeded = false;\n return true;\n }\n\n return this.width === undefined || this.labelModule.differentState(selected, hover);\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'initContextForDraw',\n value: function initContextForDraw(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n\n ctx.lineWidth = Math.min(this.width, borderWidth);\n ctx.strokeStyle = values.borderColor;\n ctx.fillStyle = values.color;\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'performStroke',\n value: function performStroke(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n\n //draw dashed border if enabled, save and restore is required for firefox not to crash on unix.\n ctx.save();\n // if borders are zero width, they will be drawn with width 1 by default. This prevents that\n if (borderWidth > 0) {\n this.enableBorderDashes(ctx, values);\n //draw the border\n ctx.stroke();\n //disable dashed border for other elements\n this.disableBorderDashes(ctx, values);\n }\n ctx.restore();\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'performFill',\n value: function performFill(ctx, values) {\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n // draw the background\n ctx.fill();\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n\n this.performStroke(ctx, values);\n }\n\n /**\r\n *\r\n * @param {number} margin\r\n * @private\r\n */\n\n }, {\n key: '_addBoundingBoxMargin',\n value: function _addBoundingBoxMargin(margin) {\n this.boundingBox.left -= margin;\n this.boundingBox.top -= margin;\n this.boundingBox.bottom += margin;\n this.boundingBox.right += margin;\n }\n\n /**\r\n * Actual implementation of this method call.\r\n *\r\n * Doing it like this makes it easier to override\r\n * in the child classes.\r\n *\r\n * @param {number} x width\r\n * @param {number} y height\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {boolean} selected\r\n * @param {boolean} hover\r\n * @private\r\n */\n\n }, {\n key: '_updateBoundingBox',\n value: function _updateBoundingBox(x, y, ctx, selected, hover) {\n if (ctx !== undefined) {\n this.resize(ctx, selected, hover);\n }\n\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n this.boundingBox.left = this.left;\n this.boundingBox.top = this.top;\n this.boundingBox.bottom = this.top + this.height;\n this.boundingBox.right = this.left + this.width;\n }\n\n /**\r\n * Default implementation of this method call.\r\n * This acts as a stub which can be overridden.\r\n *\r\n * @param {number} x width\r\n * @param {number} y height\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {boolean} selected\r\n * @param {boolean} hover\r\n */\n\n }, {\n key: 'updateBoundingBox',\n value: function updateBoundingBox(x, y, ctx, selected, hover) {\n this._updateBoundingBox(x, y, ctx, selected, hover);\n }\n\n /**\r\n * Determine the dimensions to use for nodes with an internal label\r\n *\r\n * Currently, these are: Circle, Ellipse, Database, Box\r\n * The other nodes have external labels, and will not call this method\r\n *\r\n * If there is no label, decent default values are supplied.\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {boolean} [selected]\r\n * @param {boolean} [hover]\r\n * @returns {{width:number, height:number}}\r\n */\n\n }, {\n key: 'getDimensionsFromLabel',\n value: function getDimensionsFromLabel(ctx, selected, hover) {\n // NOTE: previously 'textSize' was not put in 'this' for Ellipse\n // TODO: examine the consequences.\n this.textSize = this.labelModule.getTextSize(ctx, selected, hover);\n var width = this.textSize.width;\n var height = this.textSize.height;\n\n var DEFAULT_SIZE = 14;\n if (width === 0) {\n // This happens when there is no label text set\n width = DEFAULT_SIZE; // use a decent default\n height = DEFAULT_SIZE; // if width zero, then height also always zero\n }\n\n return { width: width, height: height };\n }\n }]);\n return NodeBase;\n}();\n\nexports['default'] = NodeBase;\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _getPrototypeOf = __webpack_require__(3);\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = __webpack_require__(4);\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = __webpack_require__(5);\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _NodeBase2 = __webpack_require__(23);\n\nvar _NodeBase3 = _interopRequireDefault(_NodeBase2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\r\n * Base class for constructing Node/Cluster Shapes.\r\n *\r\n * @extends NodeBase\r\n */\nvar ShapeBase = function (_NodeBase) {\n (0, _inherits3['default'])(ShapeBase, _NodeBase);\n\n /**\r\n * @param {Object} options\r\n * @param {Object} body\r\n * @param {Label} labelModule\r\n */\n function ShapeBase(options, body, labelModule) {\n (0, _classCallCheck3['default'])(this, ShapeBase);\n return (0, _possibleConstructorReturn3['default'])(this, (ShapeBase.__proto__ || (0, _getPrototypeOf2['default'])(ShapeBase)).call(this, options, body, labelModule));\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {boolean} [selected]\r\n * @param {boolean} [hover]\r\n * @param {Object} [values={size: this.options.size}]\r\n */\n\n\n (0, _createClass3['default'])(ShapeBase, [{\n key: 'resize',\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var values = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : { size: this.options.size };\n\n if (this.needsRefresh(selected, hover)) {\n this.labelModule.getTextSize(ctx, selected, hover);\n var size = 2 * values.size;\n this.width = size;\n this.height = size;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {string} shape\r\n * @param {number} sizeMultiplier - Unused! TODO: Remove next major release\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {boolean} selected\r\n * @param {boolean} hover\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n * @private\r\n */\n\n }, {\n key: '_drawShape',\n value: function _drawShape(ctx, shape, sizeMultiplier, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover, values);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n this.initContextForDraw(ctx, values);\n ctx[shape](x, y, values.size);\n this.performFill(ctx, values);\n\n if (this.options.label !== undefined) {\n // Need to call following here in order to ensure value for `this.labelModule.size.height`\n this.labelModule.calculateLabelSize(ctx, selected, hover, x, y, 'hanging');\n var yLabel = y + 0.5 * this.height + 0.5 * this.labelModule.size.height;\n this.labelModule.draw(ctx, x, yLabel, selected, hover, 'hanging');\n }\n\n this.updateBoundingBox(x, y);\n }\n\n /**\r\n *\r\n * @param {number} x\r\n * @param {number} y\r\n */\n\n }, {\n key: 'updateBoundingBox',\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelModule.size.height);\n }\n }\n }]);\n return ShapeBase;\n}(_NodeBase3['default']);\n\nexports['default'] = ShapeBase;\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(78);\nvar defined = __webpack_require__(51);\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(20);\nvar createDesc = __webpack_require__(39);\nmodule.exports = __webpack_require__(21) ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(32);\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(138), __esModule: true };\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _isIterable2 = __webpack_require__(188);\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = __webpack_require__(77);\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(84);\nvar enumBugKeys = __webpack_require__(58);\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * @prototype Point3d\r\n * @param {number} [x]\r\n * @param {number} [y]\r\n * @param {number} [z]\r\n */\nfunction Point3d(x, y, z) {\n this.x = x !== undefined ? x : 0;\n this.y = y !== undefined ? y : 0;\n this.z = z !== undefined ? z : 0;\n}\n\n/**\r\n * Subtract the two provided points, returns a-b\r\n * @param {Point3d} a\r\n * @param {Point3d} b\r\n * @return {Point3d} a-b\r\n */\nPoint3d.subtract = function (a, b) {\n var sub = new Point3d();\n sub.x = a.x - b.x;\n sub.y = a.y - b.y;\n sub.z = a.z - b.z;\n return sub;\n};\n\n/**\r\n * Add the two provided points, returns a+b\r\n * @param {Point3d} a\r\n * @param {Point3d} b\r\n * @return {Point3d} a+b\r\n */\nPoint3d.add = function (a, b) {\n var sum = new Point3d();\n sum.x = a.x + b.x;\n sum.y = a.y + b.y;\n sum.z = a.z + b.z;\n return sum;\n};\n\n/**\r\n * Calculate the average of two 3d points\r\n * @param {Point3d} a\r\n * @param {Point3d} b\r\n * @return {Point3d} The average, (a+b)/2\r\n */\nPoint3d.avg = function (a, b) {\n return new Point3d((a.x + b.x) / 2, (a.y + b.y) / 2, (a.z + b.z) / 2);\n};\n\n/**\r\n * Calculate the cross product of the two provided points, returns axb\r\n * Documentation: http://en.wikipedia.org/wiki/Cross_product\r\n * @param {Point3d} a\r\n * @param {Point3d} b\r\n * @return {Point3d} cross product axb\r\n */\nPoint3d.crossProduct = function (a, b) {\n var crossproduct = new Point3d();\n\n crossproduct.x = a.y * b.z - a.z * b.y;\n crossproduct.y = a.z * b.x - a.x * b.z;\n crossproduct.z = a.x * b.y - a.y * b.x;\n\n return crossproduct;\n};\n\n/**\r\n * Rtrieve the length of the vector (or the distance from this point to the origin\r\n * @return {number} length\r\n */\nPoint3d.prototype.length = function () {\n return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n};\n\nmodule.exports = Point3d;\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\r\n/**\r\n * Created by Alex on 11/6/2014.\r\n */\r\n\r\n// https://github.com/umdjs/umd/blob/master/returnExports.js#L40-L60\r\n// if the module has no dependencies, the above pattern can be simplified to\r\n(function (root, factory) {\r\n if (true) {\r\n // AMD. Register as an anonymous module.\r\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n } else if (typeof exports === 'object') {\r\n // Node. Does not work with strict CommonJS, but\r\n // only CommonJS-like environments that support module.exports,\r\n // like Node.\r\n module.exports = factory();\r\n } else {\r\n // Browser globals (root is window)\r\n root.keycharm = factory();\r\n }\r\n}(this, function () {\r\n\r\n function keycharm(options) {\r\n var preventDefault = options && options.preventDefault || false;\r\n\r\n var container = options && options.container || window;\r\n\r\n var _exportFunctions = {};\r\n var _bound = {keydown:{}, keyup:{}};\r\n var _keys = {};\r\n var i;\r\n\r\n // a - z\r\n for (i = 97; i <= 122; i++) {_keys[String.fromCharCode(i)] = {code:65 + (i - 97), shift: false};}\r\n // A - Z\r\n for (i = 65; i <= 90; i++) {_keys[String.fromCharCode(i)] = {code:i, shift: true};}\r\n // 0 - 9\r\n for (i = 0; i <= 9; i++) {_keys['' + i] = {code:48 + i, shift: false};}\r\n // F1 - F12\r\n for (i = 1; i <= 12; i++) {_keys['F' + i] = {code:111 + i, shift: false};}\r\n // num0 - num9\r\n for (i = 0; i <= 9; i++) {_keys['num' + i] = {code:96 + i, shift: false};}\r\n\r\n // numpad misc\r\n _keys['num*'] = {code:106, shift: false};\r\n _keys['num+'] = {code:107, shift: false};\r\n _keys['num-'] = {code:109, shift: false};\r\n _keys['num/'] = {code:111, shift: false};\r\n _keys['num.'] = {code:110, shift: false};\r\n // arrows\r\n _keys['left'] = {code:37, shift: false};\r\n _keys['up'] = {code:38, shift: false};\r\n _keys['right'] = {code:39, shift: false};\r\n _keys['down'] = {code:40, shift: false};\r\n // extra keys\r\n _keys['space'] = {code:32, shift: false};\r\n _keys['enter'] = {code:13, shift: false};\r\n _keys['shift'] = {code:16, shift: undefined};\r\n _keys['esc'] = {code:27, shift: false};\r\n _keys['backspace'] = {code:8, shift: false};\r\n _keys['tab'] = {code:9, shift: false};\r\n _keys['ctrl'] = {code:17, shift: false};\r\n _keys['alt'] = {code:18, shift: false};\r\n _keys['delete'] = {code:46, shift: false};\r\n _keys['pageup'] = {code:33, shift: false};\r\n _keys['pagedown'] = {code:34, shift: false};\r\n // symbols\r\n _keys['='] = {code:187, shift: false};\r\n _keys['-'] = {code:189, shift: false};\r\n _keys[']'] = {code:221, shift: false};\r\n _keys['['] = {code:219, shift: false};\r\n\r\n\r\n\r\n var down = function(event) {handleEvent(event,'keydown');};\r\n var up = function(event) {handleEvent(event,'keyup');};\r\n\r\n // handle the actualy bound key with the event\r\n var handleEvent = function(event,type) {\r\n if (_bound[type][event.keyCode] !== undefined) {\r\n var bound = _bound[type][event.keyCode];\r\n for (var i = 0; i < bound.length; i++) {\r\n if (bound[i].shift === undefined) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == true && event.shiftKey == true) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == false && event.shiftKey == false) {\r\n bound[i].fn(event);\r\n }\r\n }\r\n\r\n if (preventDefault == true) {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n // bind a key to a callback\r\n _exportFunctions.bind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (_bound[type][_keys[key].code] === undefined) {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n _bound[type][_keys[key].code].push({fn:callback, shift:_keys[key].shift});\r\n };\r\n\r\n\r\n // bind all keys to a call back (demo purposes)\r\n _exportFunctions.bindAll = function(callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n _exportFunctions.bind(key,callback,type);\r\n }\r\n }\r\n };\r\n\r\n // get the key label from an event\r\n _exportFunctions.getKey = function(event) {\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n if (event.shiftKey == true && _keys[key].shift == true && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.shiftKey == false && _keys[key].shift == false && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.keyCode == _keys[key].code && key == 'shift') {\r\n return key;\r\n }\r\n }\r\n }\r\n return \"unknown key, currently not supported\";\r\n };\r\n\r\n // unbind either a specific callback from a key or all of them (by leaving callback undefined)\r\n _exportFunctions.unbind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (callback !== undefined) {\r\n var newBindings = [];\r\n var bound = _bound[type][_keys[key].code];\r\n if (bound !== undefined) {\r\n for (var i = 0; i < bound.length; i++) {\r\n if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) {\r\n newBindings.push(_bound[type][_keys[key].code][i]);\r\n }\r\n }\r\n }\r\n _bound[type][_keys[key].code] = newBindings;\r\n }\r\n else {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n };\r\n\r\n // reset all bound variables.\r\n _exportFunctions.reset = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n };\r\n\r\n // unbind all listeners and reset all variables.\r\n _exportFunctions.destroy = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n container.removeEventListener('keydown', down, true);\r\n container.removeEventListener('keyup', up, true);\r\n };\r\n\r\n // create listeners.\r\n container.addEventListener('keydown',down,true);\r\n container.addEventListener('keyup',up,true);\r\n\r\n // return the public functions.\r\n return _exportFunctions;\r\n }\r\n\r\n return keycharm;\r\n}));\r\n\r\n\r\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * used in Core to convert the options into a volatile variable\r\n * \r\n * @param {function} moment\r\n * @param {Object} body\r\n * @param {Array | Object} hiddenDates\r\n * @returns {number}\r\n */\nexports.convertHiddenOptions = function (moment, body, hiddenDates) {\n if (hiddenDates && !Array.isArray(hiddenDates)) {\n return exports.convertHiddenOptions(moment, body, [hiddenDates]);\n }\n\n body.hiddenDates = [];\n if (hiddenDates) {\n if (Array.isArray(hiddenDates) == true) {\n for (var i = 0; i < hiddenDates.length; i++) {\n if (hiddenDates[i].repeat === undefined) {\n var dateItem = {};\n dateItem.start = moment(hiddenDates[i].start).toDate().valueOf();\n dateItem.end = moment(hiddenDates[i].end).toDate().valueOf();\n body.hiddenDates.push(dateItem);\n }\n }\n body.hiddenDates.sort(function (a, b) {\n return a.start - b.start;\n }); // sort by start time\n }\n }\n};\n\n/**\r\n * create new entrees for the repeating hidden dates\r\n *\r\n * @param {function} moment\r\n * @param {Object} body\r\n * @param {Array | Object} hiddenDates\r\n * @returns {null}\r\n */\nexports.updateHiddenDates = function (moment, body, hiddenDates) {\n if (hiddenDates && !Array.isArray(hiddenDates)) {\n return exports.updateHiddenDates(moment, body, [hiddenDates]);\n }\n\n if (hiddenDates && body.domProps.centerContainer.width !== undefined) {\n exports.convertHiddenOptions(moment, body, hiddenDates);\n\n var start = moment(body.range.start);\n var end = moment(body.range.end);\n\n var totalRange = body.range.end - body.range.start;\n var pixelTime = totalRange / body.domProps.centerContainer.width;\n\n for (var i = 0; i < hiddenDates.length; i++) {\n if (hiddenDates[i].repeat !== undefined) {\n var startDate = moment(hiddenDates[i].start);\n var endDate = moment(hiddenDates[i].end);\n\n if (startDate._d == \"Invalid Date\") {\n throw new Error(\"Supplied start date is not valid: \" + hiddenDates[i].start);\n }\n if (endDate._d == \"Invalid Date\") {\n throw new Error(\"Supplied end date is not valid: \" + hiddenDates[i].end);\n }\n\n var duration = endDate - startDate;\n if (duration >= 4 * pixelTime) {\n\n var offset = 0;\n var runUntil = end.clone();\n switch (hiddenDates[i].repeat) {\n case \"daily\":\n // case of time\n if (startDate.day() != endDate.day()) {\n offset = 1;\n }\n startDate.dayOfYear(start.dayOfYear());\n startDate.year(start.year());\n startDate.subtract(7, 'days');\n\n endDate.dayOfYear(start.dayOfYear());\n endDate.year(start.year());\n endDate.subtract(7 - offset, 'days');\n\n runUntil.add(1, 'weeks');\n break;\n case \"weekly\":\n var dayOffset = endDate.diff(startDate, 'days');\n var day = startDate.day();\n\n // set the start date to the range.start\n startDate.date(start.date());\n startDate.month(start.month());\n startDate.year(start.year());\n endDate = startDate.clone();\n\n // force\n startDate.day(day);\n endDate.day(day);\n endDate.add(dayOffset, 'days');\n\n startDate.subtract(1, 'weeks');\n endDate.subtract(1, 'weeks');\n\n runUntil.add(1, 'weeks');\n break;\n case \"monthly\":\n if (startDate.month() != endDate.month()) {\n offset = 1;\n }\n startDate.month(start.month());\n startDate.year(start.year());\n startDate.subtract(1, 'months');\n\n endDate.month(start.month());\n endDate.year(start.year());\n endDate.subtract(1, 'months');\n endDate.add(offset, 'months');\n\n runUntil.add(1, 'months');\n break;\n case \"yearly\":\n if (startDate.year() != endDate.year()) {\n offset = 1;\n }\n startDate.year(start.year());\n startDate.subtract(1, 'years');\n endDate.year(start.year());\n endDate.subtract(1, 'years');\n endDate.add(offset, 'years');\n\n runUntil.add(1, 'years');\n break;\n default:\n console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\", hiddenDates[i].repeat);\n return;\n }\n while (startDate < runUntil) {\n body.hiddenDates.push({ start: startDate.valueOf(), end: endDate.valueOf() });\n switch (hiddenDates[i].repeat) {\n case \"daily\":\n startDate.add(1, 'days');\n endDate.add(1, 'days');\n break;\n case \"weekly\":\n startDate.add(1, 'weeks');\n endDate.add(1, 'weeks');\n break;\n case \"monthly\":\n startDate.add(1, 'months');\n endDate.add(1, 'months');\n break;\n case \"yearly\":\n startDate.add(1, 'y');\n endDate.add(1, 'y');\n break;\n default:\n console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\", hiddenDates[i].repeat);\n return;\n }\n }\n body.hiddenDates.push({ start: startDate.valueOf(), end: endDate.valueOf() });\n }\n }\n }\n // remove duplicates, merge where possible\n exports.removeDuplicates(body);\n // ensure the new positions are not on hidden dates\n var startHidden = exports.isHidden(body.range.start, body.hiddenDates);\n var endHidden = exports.isHidden(body.range.end, body.hiddenDates);\n var rangeStart = body.range.start;\n var rangeEnd = body.range.end;\n if (startHidden.hidden == true) {\n rangeStart = body.range.startToFront == true ? startHidden.startDate - 1 : startHidden.endDate + 1;\n }\n if (endHidden.hidden == true) {\n rangeEnd = body.range.endToFront == true ? endHidden.startDate - 1 : endHidden.endDate + 1;\n }\n if (startHidden.hidden == true || endHidden.hidden == true) {\n body.range._applyRange(rangeStart, rangeEnd);\n }\n }\n};\n\n/**\r\n * remove duplicates from the hidden dates list. Duplicates are evil. They mess everything up.\r\n * Scales with N^2\r\n *\r\n * @param {Object} body\r\n */\nexports.removeDuplicates = function (body) {\n var hiddenDates = body.hiddenDates;\n var safeDates = [];\n for (var i = 0; i < hiddenDates.length; i++) {\n for (var j = 0; j < hiddenDates.length; j++) {\n if (i != j && hiddenDates[j].remove != true && hiddenDates[i].remove != true) {\n // j inside i\n if (hiddenDates[j].start >= hiddenDates[i].start && hiddenDates[j].end <= hiddenDates[i].end) {\n hiddenDates[j].remove = true;\n }\n // j start inside i\n else if (hiddenDates[j].start >= hiddenDates[i].start && hiddenDates[j].start <= hiddenDates[i].end) {\n hiddenDates[i].end = hiddenDates[j].end;\n hiddenDates[j].remove = true;\n }\n // j end inside i\n else if (hiddenDates[j].end >= hiddenDates[i].start && hiddenDates[j].end <= hiddenDates[i].end) {\n hiddenDates[i].start = hiddenDates[j].start;\n hiddenDates[j].remove = true;\n }\n }\n }\n }\n\n for (i = 0; i < hiddenDates.length; i++) {\n if (hiddenDates[i].remove !== true) {\n safeDates.push(hiddenDates[i]);\n }\n }\n\n body.hiddenDates = safeDates;\n body.hiddenDates.sort(function (a, b) {\n return a.start - b.start;\n }); // sort by start time\n};\n\nexports.printDates = function (dates) {\n for (var i = 0; i < dates.length; i++) {\n console.log(i, new Date(dates[i].start), new Date(dates[i].end), dates[i].start, dates[i].end, dates[i].remove);\n }\n};\n\n/**\r\n * Used in TimeStep to avoid the hidden times.\r\n * @param {function} moment\r\n * @param {TimeStep} timeStep\r\n * @param {Date} previousTime\r\n */\nexports.stepOverHiddenDates = function (moment, timeStep, previousTime) {\n var stepInHidden = false;\n var currentValue = timeStep.current.valueOf();\n for (var i = 0; i < timeStep.hiddenDates.length; i++) {\n var startDate = timeStep.hiddenDates[i].start;\n var endDate = timeStep.hiddenDates[i].end;\n if (currentValue >= startDate && currentValue < endDate) {\n stepInHidden = true;\n break;\n }\n }\n\n if (stepInHidden == true && currentValue < timeStep._end.valueOf() && currentValue != previousTime) {\n var prevValue = moment(previousTime);\n var newValue = moment(endDate);\n //check if the next step should be major\n if (prevValue.year() != newValue.year()) {\n timeStep.switchedYear = true;\n } else if (prevValue.month() != newValue.month()) {\n timeStep.switchedMonth = true;\n } else if (prevValue.dayOfYear() != newValue.dayOfYear()) {\n timeStep.switchedDay = true;\n }\n\n timeStep.current = newValue;\n }\n};\n\n///**\n// * Used in TimeStep to avoid the hidden times.\n// * @param timeStep\n// * @param previousTime\n// */\n//exports.checkFirstStep = function(timeStep) {\n// var stepInHidden = false;\n// var currentValue = timeStep.current.valueOf();\n// for (var i = 0; i < timeStep.hiddenDates.length; i++) {\n// var startDate = timeStep.hiddenDates[i].start;\n// var endDate = timeStep.hiddenDates[i].end;\n// if (currentValue >= startDate && currentValue < endDate) {\n// stepInHidden = true;\n// break;\n// }\n// }\n//\n// if (stepInHidden == true && currentValue <= timeStep._end.valueOf()) {\n// var newValue = moment(endDate);\n// timeStep.current = newValue.toDate();\n// }\n//};\n\n/**\r\n * replaces the Core toScreen methods\r\n *\r\n * @param {vis.Core} Core\r\n * @param {Date} time\r\n * @param {number} width\r\n * @returns {number}\r\n */\nexports.toScreen = function (Core, time, width) {\n var conversion;\n if (Core.body.hiddenDates.length == 0) {\n conversion = Core.range.conversion(width);\n return (time.valueOf() - conversion.offset) * conversion.scale;\n } else {\n var hidden = exports.isHidden(time, Core.body.hiddenDates);\n if (hidden.hidden == true) {\n time = hidden.startDate;\n }\n\n var duration = exports.getHiddenDurationBetween(Core.body.hiddenDates, Core.range.start, Core.range.end);\n if (time < Core.range.start) {\n conversion = Core.range.conversion(width, duration);\n var hiddenBeforeStart = exports.getHiddenDurationBeforeStart(Core.body.hiddenDates, time, conversion.offset);\n time = Core.options.moment(time).toDate().valueOf();\n time = time + hiddenBeforeStart;\n return -(conversion.offset - time.valueOf()) * conversion.scale;\n } else if (time > Core.range.end) {\n var rangeAfterEnd = { start: Core.range.start, end: time };\n time = exports.correctTimeForHidden(Core.options.moment, Core.body.hiddenDates, rangeAfterEnd, time);\n conversion = Core.range.conversion(width, duration);\n return (time.valueOf() - conversion.offset) * conversion.scale;\n } else {\n time = exports.correctTimeForHidden(Core.options.moment, Core.body.hiddenDates, Core.range, time);\n conversion = Core.range.conversion(width, duration);\n return (time.valueOf() - conversion.offset) * conversion.scale;\n }\n }\n};\n\n/**\r\n * Replaces the core toTime methods\r\n *\r\n * @param {vis.Core} Core\r\n * @param {number} x\r\n * @param {number} width\r\n * @returns {Date}\r\n */\nexports.toTime = function (Core, x, width) {\n if (Core.body.hiddenDates.length == 0) {\n var conversion = Core.range.conversion(width);\n return new Date(x / conversion.scale + conversion.offset);\n } else {\n var hiddenDuration = exports.getHiddenDurationBetween(Core.body.hiddenDates, Core.range.start, Core.range.end);\n var totalDuration = Core.range.end - Core.range.start - hiddenDuration;\n var partialDuration = totalDuration * x / width;\n var accumulatedHiddenDuration = exports.getAccumulatedHiddenDuration(Core.body.hiddenDates, Core.range, partialDuration);\n\n return new Date(accumulatedHiddenDuration + partialDuration + Core.range.start);\n }\n};\n\n/**\r\n * Support function\r\n *\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @param {number} start\r\n * @param {number} end\r\n * @returns {number}\r\n */\nexports.getHiddenDurationBetween = function (hiddenDates, start, end) {\n var duration = 0;\n for (var i = 0; i < hiddenDates.length; i++) {\n var startDate = hiddenDates[i].start;\n var endDate = hiddenDates[i].end;\n // if time after the cutout, and the\n if (startDate >= start && endDate < end) {\n duration += endDate - startDate;\n }\n }\n return duration;\n};\n\n/**\r\n * Support function\r\n *\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @param {number} start\r\n * @param {number} end\r\n * @returns {number}\r\n */\nexports.getHiddenDurationBeforeStart = function (hiddenDates, start, end) {\n var duration = 0;\n for (var i = 0; i < hiddenDates.length; i++) {\n var startDate = hiddenDates[i].start;\n var endDate = hiddenDates[i].end;\n\n if (startDate >= start && endDate <= end) {\n duration += endDate - startDate;\n }\n }\n return duration;\n};\n\n/**\r\n * Support function\r\n * @param {function} moment\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @param {{start: number, end: number}} range\r\n * @param {Date} time\r\n * @returns {number}\r\n */\nexports.correctTimeForHidden = function (moment, hiddenDates, range, time) {\n time = moment(time).toDate().valueOf();\n time -= exports.getHiddenDurationBefore(moment, hiddenDates, range, time);\n return time;\n};\n\nexports.getHiddenDurationBefore = function (moment, hiddenDates, range, time) {\n var timeOffset = 0;\n time = moment(time).toDate().valueOf();\n\n for (var i = 0; i < hiddenDates.length; i++) {\n var startDate = hiddenDates[i].start;\n var endDate = hiddenDates[i].end;\n // if time after the cutout, and the\n if (startDate >= range.start && endDate < range.end) {\n if (time >= endDate) {\n timeOffset += endDate - startDate;\n }\n }\n }\n return timeOffset;\n};\n\n/**\r\n * sum the duration from start to finish, including the hidden duration,\r\n * until the required amount has been reached, return the accumulated hidden duration\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @param {{start: number, end: number}} range\r\n * @param {number} [requiredDuration=0]\r\n * @returns {number}\r\n */\nexports.getAccumulatedHiddenDuration = function (hiddenDates, range, requiredDuration) {\n var hiddenDuration = 0;\n var duration = 0;\n var previousPoint = range.start;\n //exports.printDates(hiddenDates)\n for (var i = 0; i < hiddenDates.length; i++) {\n var startDate = hiddenDates[i].start;\n var endDate = hiddenDates[i].end;\n // if time after the cutout, and the\n if (startDate >= range.start && endDate < range.end) {\n duration += startDate - previousPoint;\n previousPoint = endDate;\n if (duration >= requiredDuration) {\n break;\n } else {\n hiddenDuration += endDate - startDate;\n }\n }\n }\n\n return hiddenDuration;\n};\n\n/**\r\n * used to step over to either side of a hidden block. Correction is disabled on tablets, might be set to true\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @param {Date} time\r\n * @param {number} direction\r\n * @param {boolean} correctionEnabled\r\n * @returns {Date|number}\r\n */\nexports.snapAwayFromHidden = function (hiddenDates, time, direction, correctionEnabled) {\n var isHidden = exports.isHidden(time, hiddenDates);\n if (isHidden.hidden == true) {\n if (direction < 0) {\n if (correctionEnabled == true) {\n return isHidden.startDate - (isHidden.endDate - time) - 1;\n } else {\n return isHidden.startDate - 1;\n }\n } else {\n if (correctionEnabled == true) {\n return isHidden.endDate + (time - isHidden.startDate) + 1;\n } else {\n return isHidden.endDate + 1;\n }\n }\n } else {\n return time;\n }\n};\n\n/**\r\n * Check if a time is hidden\r\n *\r\n * @param {Date} time\r\n * @param {Array.<{start: Window.start, end: *}>} hiddenDates\r\n * @returns {{hidden: boolean, startDate: Window.start, endDate: *}}\r\n */\nexports.isHidden = function (time, hiddenDates) {\n for (var i = 0; i < hiddenDates.length; i++) {\n var startDate = hiddenDates[i].start;\n var endDate = hiddenDates[i].end;\n\n if (time >= startDate && time < endDate) {\n // if the start is entering a hidden zone\n return { hidden: true, startDate: startDate, endDate: endDate };\n }\n }\n return { hidden: false, startDate: startDate, endDate: endDate };\n};\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * Register a touch event, taking place before a gesture\r\n * @param {Hammer} hammer A hammer instance\r\n * @param {function} callback Callback, called as callback(event)\r\n */\nexports.onTouch = function (hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFirst) {\n callback(event);\n }\n };\n\n hammer.on('hammer.input', callback.inputHandler);\n};\n\n/**\r\n * Register a release event, taking place after a gesture\r\n * @param {Hammer} hammer A hammer instance\r\n * @param {function} callback Callback, called as callback(event)\r\n * @returns {*}\r\n */\nexports.onRelease = function (hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFinal) {\n callback(event);\n }\n };\n\n return hammer.on('hammer.input', callback.inputHandler);\n};\n\n/**\r\n * Unregister a touch event, taking place before a gesture\r\n * @param {Hammer} hammer A hammer instance\r\n * @param {function} callback Callback, called as callback(event)\r\n */\nexports.offTouch = function (hammer, callback) {\n hammer.off('hammer.input', callback.inputHandler);\n};\n\n/**\r\n * Unregister a release event, taking place before a gesture\r\n * @param {Hammer} hammer A hammer instance\r\n * @param {function} callback Callback, called as callback(event)\r\n */\nexports.offRelease = exports.offTouch;\n\n/**\r\n * Hack the PinchRecognizer such that it doesn't prevent default behavior\r\n * for vertical panning.\r\n *\r\n * Yeah ... this is quite a hack ... see https://github.com/hammerjs/hammer.js/issues/932\r\n *\r\n * @param {Hammer.Pinch} pinchRecognizer\r\n * @return {Hammer.Pinch} returns the pinchRecognizer\r\n */\nexports.disablePreventDefaultVertically = function (pinchRecognizer) {\n var TOUCH_ACTION_PAN_Y = 'pan-y';\n\n pinchRecognizer.getTouchAction = function () {\n // default method returns [TOUCH_ACTION_NONE]\n return [TOUCH_ACTION_PAN_Y];\n };\n\n return pinchRecognizer;\n};\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Hammer = __webpack_require__(10);\nvar util = __webpack_require__(2);\nvar moment = __webpack_require__(9);\n\n/**\r\n * @constructor Item\r\n * @param {Object} data Object containing (optional) parameters type,\r\n * start, end, content, group, className.\r\n * @param {{toScreen: function, toTime: function}} conversion\r\n * Conversion functions from time to screen and vice versa\r\n * @param {Object} options Configuration options\r\n * // TODO: describe available options\r\n */\nfunction Item(data, conversion, options) {\n this.id = null;\n this.parent = null;\n this.data = data;\n this.dom = null;\n this.conversion = conversion || {};\n this.options = options || {};\n this.selected = false;\n this.displayed = false;\n this.groupShowing = true;\n this.dirty = true;\n\n this.top = null;\n this.right = null;\n this.left = null;\n this.width = null;\n this.height = null;\n\n this.editable = null;\n this._updateEditStatus();\n}\n\nItem.prototype.stack = true;\n\n/**\r\n * Select current item\r\n */\nItem.prototype.select = function () {\n this.selected = true;\n this.dirty = true;\n if (this.displayed) this.redraw();\n};\n\n/**\r\n * Unselect current item\r\n */\nItem.prototype.unselect = function () {\n this.selected = false;\n this.dirty = true;\n if (this.displayed) this.redraw();\n};\n\n/**\r\n * Set data for the item. Existing data will be updated. The id should not\r\n * be changed. When the item is displayed, it will be redrawn immediately.\r\n * @param {Object} data\r\n */\nItem.prototype.setData = function (data) {\n var groupChanged = data.group != undefined && this.data.group != data.group;\n if (groupChanged && this.parent != null) {\n this.parent.itemSet._moveToGroup(this, data.group);\n }\n\n if (this.parent) {\n this.parent.stackDirty = true;\n }\n\n var subGroupChanged = data.subgroup != undefined && this.data.subgroup != data.subgroup;\n if (subGroupChanged && this.parent != null) {\n this.parent.changeSubgroup(this, this.data.subgroup, data.subgroup);\n }\n\n this.data = data;\n this._updateEditStatus();\n this.dirty = true;\n if (this.displayed) this.redraw();\n};\n\n/**\r\n * Set a parent for the item\r\n * @param {Group} parent\r\n */\nItem.prototype.setParent = function (parent) {\n if (this.displayed) {\n this.hide();\n this.parent = parent;\n if (this.parent) {\n this.show();\n }\n } else {\n this.parent = parent;\n }\n};\n\n/**\r\n * Check whether this item is visible inside given range\r\n * @param {vis.Range} range with a timestamp for start and end\r\n * @returns {boolean} True if visible\r\n */\nItem.prototype.isVisible = function (range) {\n // eslint-disable-line no-unused-vars\n return false;\n};\n\n/**\r\n * Show the Item in the DOM (when not already visible)\r\n * @return {Boolean} changed\r\n */\nItem.prototype.show = function () {\n return false;\n};\n\n/**\r\n * Hide the Item from the DOM (when visible)\r\n * @return {Boolean} changed\r\n */\nItem.prototype.hide = function () {\n return false;\n};\n\n/**\r\n * Repaint the item\r\n */\nItem.prototype.redraw = function () {\n // should be implemented by the item\n};\n\n/**\r\n * Reposition the Item horizontally\r\n */\nItem.prototype.repositionX = function () {\n // should be implemented by the item\n};\n\n/**\r\n * Reposition the Item vertically\r\n */\nItem.prototype.repositionY = function () {\n // should be implemented by the item\n};\n\n/**\r\n * Repaint a drag area on the center of the item when the item is selected\r\n * @protected\r\n */\nItem.prototype._repaintDragCenter = function () {\n if (this.selected && this.options.editable.updateTime && !this.dom.dragCenter) {\n var me = this;\n // create and show drag area\n var dragCenter = document.createElement('div');\n dragCenter.className = 'vis-drag-center';\n dragCenter.dragCenterItem = this;\n var hammer = new Hammer(dragCenter);\n\n hammer.on('tap', function (event) {\n me.parent.itemSet.body.emitter.emit('click', {\n event: event,\n item: me.id\n });\n });\n hammer.on('doubletap', function (event) {\n event.stopPropagation();\n me.parent.itemSet._onUpdateItem(me);\n me.parent.itemSet.body.emitter.emit('doubleClick', {\n event: event,\n item: me.id\n });\n });\n\n if (this.dom.box) {\n if (this.dom.dragLeft) {\n this.dom.box.insertBefore(dragCenter, this.dom.dragLeft);\n } else {\n this.dom.box.appendChild(dragCenter);\n }\n } else if (this.dom.point) {\n this.dom.point.appendChild(dragCenter);\n }\n\n this.dom.dragCenter = dragCenter;\n } else if (!this.selected && this.dom.dragCenter) {\n // delete drag area\n if (this.dom.dragCenter.parentNode) {\n this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter);\n }\n this.dom.dragCenter = null;\n }\n};\n\n/**\r\n * Repaint a delete button on the top right of the item when the item is selected\r\n * @param {HTMLElement} anchor\r\n * @protected\r\n */\nItem.prototype._repaintDeleteButton = function (anchor) {\n var editable = (this.options.editable.overrideItems || this.editable == null) && this.options.editable.remove || !this.options.editable.overrideItems && this.editable != null && this.editable.remove;\n\n if (this.selected && editable && !this.dom.deleteButton) {\n // create and show button\n var me = this;\n\n var deleteButton = document.createElement('div');\n\n if (this.options.rtl) {\n deleteButton.className = 'vis-delete-rtl';\n } else {\n deleteButton.className = 'vis-delete';\n }\n deleteButton.title = 'Delete this item';\n\n // TODO: be able to destroy the delete button\n new Hammer(deleteButton).on('tap', function (event) {\n event.stopPropagation();\n me.parent.removeFromDataSet(me);\n });\n\n anchor.appendChild(deleteButton);\n this.dom.deleteButton = deleteButton;\n } else if (!this.selected && this.dom.deleteButton) {\n // remove button\n if (this.dom.deleteButton.parentNode) {\n this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton);\n }\n this.dom.deleteButton = null;\n }\n};\n\n/**\r\n * Repaint a onChange tooltip on the top right of the item when the item is selected\r\n * @param {HTMLElement} anchor\r\n * @protected\r\n */\nItem.prototype._repaintOnItemUpdateTimeTooltip = function (anchor) {\n if (!this.options.tooltipOnItemUpdateTime) return;\n\n var editable = (this.options.editable.updateTime || this.data.editable === true) && this.data.editable !== false;\n\n if (this.selected && editable && !this.dom.onItemUpdateTimeTooltip) {\n var onItemUpdateTimeTooltip = document.createElement('div');\n\n onItemUpdateTimeTooltip.className = 'vis-onUpdateTime-tooltip';\n anchor.appendChild(onItemUpdateTimeTooltip);\n this.dom.onItemUpdateTimeTooltip = onItemUpdateTimeTooltip;\n } else if (!this.selected && this.dom.onItemUpdateTimeTooltip) {\n // remove button\n if (this.dom.onItemUpdateTimeTooltip.parentNode) {\n this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip);\n }\n this.dom.onItemUpdateTimeTooltip = null;\n }\n\n // position onChange tooltip\n if (this.dom.onItemUpdateTimeTooltip) {\n\n // only show when editing\n this.dom.onItemUpdateTimeTooltip.style.visibility = this.parent.itemSet.touchParams.itemIsDragging ? 'visible' : 'hidden';\n\n // position relative to item's content\n if (this.options.rtl) {\n this.dom.onItemUpdateTimeTooltip.style.right = this.dom.content.style.right;\n } else {\n this.dom.onItemUpdateTimeTooltip.style.left = this.dom.content.style.left;\n }\n\n // position above or below the item depending on the item's position in the window\n var tooltipOffset = 50; // TODO: should be tooltip height (depends on template)\n var scrollTop = this.parent.itemSet.body.domProps.scrollTop;\n\n // TODO: this.top for orientation:true is actually the items distance from the bottom... \n // (should be this.bottom)\n var itemDistanceFromTop;\n if (this.options.orientation.item == 'top') {\n itemDistanceFromTop = this.top;\n } else {\n itemDistanceFromTop = this.parent.height - this.top - this.height;\n }\n var isCloseToTop = itemDistanceFromTop + this.parent.top - tooltipOffset < -scrollTop;\n\n if (isCloseToTop) {\n this.dom.onItemUpdateTimeTooltip.style.bottom = \"\";\n this.dom.onItemUpdateTimeTooltip.style.top = this.height + 2 + \"px\";\n } else {\n this.dom.onItemUpdateTimeTooltip.style.top = \"\";\n this.dom.onItemUpdateTimeTooltip.style.bottom = this.height + 2 + \"px\";\n }\n\n // handle tooltip content\n var content;\n var templateFunction;\n\n if (this.options.tooltipOnItemUpdateTime && this.options.tooltipOnItemUpdateTime.template) {\n templateFunction = this.options.tooltipOnItemUpdateTime.template.bind(this);\n content = templateFunction(this.data);\n } else {\n content = 'start: ' + moment(this.data.start).format('MM/DD/YYYY hh:mm');\n if (this.data.end) {\n content += '<br> end: ' + moment(this.data.end).format('MM/DD/YYYY hh:mm');\n }\n }\n this.dom.onItemUpdateTimeTooltip.innerHTML = content;\n }\n};\n\n/**\r\n * Set HTML contents for the item\r\n * @param {Element} element HTML element to fill with the contents\r\n * @private\r\n */\nItem.prototype._updateContents = function (element) {\n var content;\n var changed;\n var templateFunction;\n var itemVisibleFrameContent;\n var visibleFrameTemplateFunction;\n var itemData = this.parent.itemSet.itemsData.get(this.id); // get a clone of the data from the dataset\n\n var frameElement = this.dom.box || this.dom.point;\n var itemVisibleFrameContentElement = frameElement.getElementsByClassName('vis-item-visible-frame')[0];\n\n if (this.options.visibleFrameTemplate) {\n visibleFrameTemplateFunction = this.options.visibleFrameTemplate.bind(this);\n itemVisibleFrameContent = visibleFrameTemplateFunction(itemData, frameElement);\n } else {\n itemVisibleFrameContent = '';\n }\n\n if (itemVisibleFrameContentElement) {\n if (itemVisibleFrameContent instanceof Object && !(itemVisibleFrameContent instanceof Element)) {\n visibleFrameTemplateFunction(itemData, itemVisibleFrameContentElement);\n } else {\n changed = this._contentToString(this.itemVisibleFrameContent) !== this._contentToString(itemVisibleFrameContent);\n if (changed) {\n // only replace the content when changed\n if (itemVisibleFrameContent instanceof Element) {\n itemVisibleFrameContentElement.innerHTML = '';\n itemVisibleFrameContentElement.appendChild(itemVisibleFrameContent);\n } else if (itemVisibleFrameContent != undefined) {\n itemVisibleFrameContentElement.innerHTML = itemVisibleFrameContent;\n } else {\n if (!(this.data.type == 'background' && this.data.content === undefined)) {\n throw new Error('Property \"content\" missing in item ' + this.id);\n }\n }\n\n this.itemVisibleFrameContent = itemVisibleFrameContent;\n }\n }\n }\n\n if (this.options.template) {\n templateFunction = this.options.template.bind(this);\n content = templateFunction(itemData, element, this.data);\n } else {\n content = this.data.content;\n }\n\n if (content instanceof Object && !(content instanceof Element)) {\n templateFunction(itemData, element);\n } else {\n changed = this._contentToString(this.content) !== this._contentToString(content);\n if (changed) {\n // only replace the content when changed\n if (content instanceof Element) {\n element.innerHTML = '';\n element.appendChild(content);\n } else if (content != undefined) {\n element.innerHTML = content;\n } else {\n if (!(this.data.type == 'background' && this.data.content === undefined)) {\n throw new Error('Property \"content\" missing in item ' + this.id);\n }\n }\n this.content = content;\n }\n }\n};\n\n/**\r\n * Process dataAttributes timeline option and set as data- attributes on dom.content\r\n * @param {Element} element HTML element to which the attributes will be attached\r\n * @private\r\n */\nItem.prototype._updateDataAttributes = function (element) {\n if (this.options.dataAttributes && this.options.dataAttributes.length > 0) {\n var attributes = [];\n\n if (Array.isArray(this.options.dataAttributes)) {\n attributes = this.options.dataAttributes;\n } else if (this.options.dataAttributes == 'all') {\n attributes = (0, _keys2['default'])(this.data);\n } else {\n return;\n }\n\n for (var i = 0; i < attributes.length; i++) {\n var name = attributes[i];\n var value = this.data[name];\n\n if (value != null) {\n element.setAttribute('data-' + name, value);\n } else {\n element.removeAttribute('data-' + name);\n }\n }\n }\n};\n\n/**\r\n * Update custom styles of the element\r\n * @param {Element} element\r\n * @private\r\n */\nItem.prototype._updateStyle = function (element) {\n // remove old styles\n if (this.style) {\n util.removeCssText(element, this.style);\n this.style = null;\n }\n\n // append new styles\n if (this.data.style) {\n util.addCssText(element, this.data.style);\n this.style = this.data.style;\n }\n};\n\n/**\r\n * Stringify the items contents\r\n * @param {string | Element | undefined} content\r\n * @returns {string | undefined}\r\n * @private\r\n */\nItem.prototype._contentToString = function (content) {\n if (typeof content === 'string') return content;\n if (content && 'outerHTML' in content) return content.outerHTML;\n return content;\n};\n\n/**\r\n * Update the editability of this item.\r\n */\nItem.prototype._updateEditStatus = function () {\n if (this.options) {\n if (typeof this.options.editable === 'boolean') {\n this.editable = {\n updateTime: this.options.editable,\n updateGroup: this.options.editable,\n remove: this.options.editable\n };\n } else if ((0, _typeof3['default'])(this.options.editable) === 'object') {\n this.editable = {};\n util.selectiveExtend(['updateTime', 'updateGroup', 'remove'], this.editable, this.options.editable);\n }\n }\n // Item data overrides, except if options.editable.overrideItems is set.\n if (!this.options || !this.options.editable || this.options.editable.overrideItems !== true) {\n if (this.data) {\n if (typeof this.data.editable === 'boolean') {\n this.editable = {\n updateTime: this.data.editable,\n updateGroup: this.data.editable,\n remove: this.data.editable\n };\n } else if ((0, _typeof3['default'])(this.data.editable) === 'object') {\n // TODO: in vis.js 5.0, we should change this to not reset options from the timeline configuration.\n // Basically just remove the next line...\n this.editable = {};\n util.selectiveExtend(['updateTime', 'updateGroup', 'remove'], this.editable, this.data.editable);\n }\n }\n }\n};\n\n/**\r\n * Return the width of the item left from its start date\r\n * @return {number}\r\n */\nItem.prototype.getWidthLeft = function () {\n return 0;\n};\n\n/**\r\n * Return the width of the item right from the max of its start and end date\r\n * @return {number}\r\n */\nItem.prototype.getWidthRight = function () {\n return 0;\n};\n\n/**\r\n * Return the title of the item\r\n * @return {string | undefined}\r\n */\nItem.prototype.getTitle = function () {\n return this.data.title;\n};\n\nmodule.exports = Item;\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(51);\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports) {\n\nexports.f = {}.propertyIsEnumerable;\n\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * A queue\r\n * @param {Object} options\r\n * Available options:\r\n * - delay: number When provided, the queue will be flushed\r\n * automatically after an inactivity of this delay\r\n * in milliseconds.\r\n * Default value is null.\r\n * - max: number When the queue exceeds the given maximum number\r\n * of entries, the queue is flushed automatically.\r\n * Default value of max is Infinity.\r\n * @constructor Queue\r\n */\nfunction Queue(options) {\n // options\n this.delay = null;\n this.max = Infinity;\n\n // properties\n this._queue = [];\n this._timeout = null;\n this._extended = null;\n\n this.setOptions(options);\n}\n\n/**\r\n * Update the configuration of the queue\r\n * @param {Object} options\r\n * Available options:\r\n * - delay: number When provided, the queue will be flushed\r\n * automatically after an inactivity of this delay\r\n * in milliseconds.\r\n * Default value is null.\r\n * - max: number When the queue exceeds the given maximum number\r\n * of entries, the queue is flushed automatically.\r\n * Default value of max is Infinity.\r\n */\nQueue.prototype.setOptions = function (options) {\n if (options && typeof options.delay !== 'undefined') {\n this.delay = options.delay;\n }\n if (options && typeof options.max !== 'undefined') {\n this.max = options.max;\n }\n\n this._flushIfNeeded();\n};\n\n/**\r\n * Extend an object with queuing functionality.\r\n * The object will be extended with a function flush, and the methods provided\r\n * in options.replace will be replaced with queued ones.\r\n * @param {Object} object\r\n * @param {Object} options\r\n * Available options:\r\n * - replace: Array.<string>\r\n * A list with method names of the methods\r\n * on the object to be replaced with queued ones.\r\n * - delay: number When provided, the queue will be flushed\r\n * automatically after an inactivity of this delay\r\n * in milliseconds.\r\n * Default value is null.\r\n * - max: number When the queue exceeds the given maximum number\r\n * of entries, the queue is flushed automatically.\r\n * Default value of max is Infinity.\r\n * @return {Queue} Returns the created queue\r\n */\nQueue.extend = function (object, options) {\n var queue = new Queue(options);\n\n if (object.flush !== undefined) {\n throw new Error('Target object already has a property flush');\n }\n object.flush = function () {\n queue.flush();\n };\n\n var methods = [{\n name: 'flush',\n original: undefined\n }];\n\n if (options && options.replace) {\n for (var i = 0; i < options.replace.length; i++) {\n var name = options.replace[i];\n methods.push({\n name: name,\n original: object[name]\n });\n queue.replace(object, name);\n }\n }\n\n queue._extended = {\n object: object,\n methods: methods\n };\n\n return queue;\n};\n\n/**\r\n * Destroy the queue. The queue will first flush all queued actions, and in\r\n * case it has extended an object, will restore the original object.\r\n */\nQueue.prototype.destroy = function () {\n this.flush();\n\n if (this._extended) {\n var object = this._extended.object;\n var methods = this._extended.methods;\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n if (method.original) {\n object[method.name] = method.original;\n } else {\n delete object[method.name];\n }\n }\n this._extended = null;\n }\n};\n\n/**\r\n * Replace a method on an object with a queued version\r\n * @param {Object} object Object having the method\r\n * @param {string} method The method name\r\n */\nQueue.prototype.replace = function (object, method) {\n var me = this;\n var original = object[method];\n if (!original) {\n throw new Error('Method ' + method + ' undefined');\n }\n\n object[method] = function () {\n // create an Array with the arguments\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args[i] = arguments[i];\n }\n\n // add this call to the queue\n me.queue({\n args: args,\n fn: original,\n context: this\n });\n };\n};\n\n/**\r\n * Queue a call\r\n * @param {function | {fn: function, args: Array} | {fn: function, args: Array, context: Object}} entry\r\n */\nQueue.prototype.queue = function (entry) {\n if (typeof entry === 'function') {\n this._queue.push({ fn: entry });\n } else {\n this._queue.push(entry);\n }\n\n this._flushIfNeeded();\n};\n\n/**\r\n * Check whether the queue needs to be flushed\r\n * @private\r\n */\nQueue.prototype._flushIfNeeded = function () {\n // flush when the maximum is exceeded.\n if (this._queue.length > this.max) {\n this.flush();\n }\n\n // flush after a period of inactivity when a delay is configured\n clearTimeout(this._timeout);\n if (this.queue.length > 0 && typeof this.delay === 'number') {\n var me = this;\n this._timeout = setTimeout(function () {\n me.flush();\n }, this.delay);\n }\n};\n\n/**\r\n * Flush all queued calls\r\n */\nQueue.prototype.flush = function () {\n while (this._queue.length > 0) {\n var entry = this._queue.shift();\n entry.fn.apply(entry.context || entry.fn, entry.args || []);\n }\n};\n\nmodule.exports = Queue;\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports) {\n\n\n/**\n * Expose `Emitter`.\n */\n\nmodule.exports = Emitter;\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks[event] = this._callbacks[event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n var self = this;\n this._callbacks = this._callbacks || {};\n\n function on() {\n self.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks[event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks[event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks[event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks[event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar Component = __webpack_require__(16);\nvar TimeStep = __webpack_require__(66);\nvar DateUtil = __webpack_require__(36);\nvar moment = __webpack_require__(9);\n\n/**\r\n * A horizontal time axis\r\n * @param {{dom: Object, domProps: Object, emitter: Emitter, range: Range}} body\r\n * @param {Object} [options] See TimeAxis.setOptions for the available\r\n * options.\r\n * @constructor TimeAxis\r\n * @extends Component\r\n */\nfunction TimeAxis(body, options) {\n this.dom = {\n foreground: null,\n lines: [],\n majorTexts: [],\n minorTexts: [],\n redundant: {\n lines: [],\n majorTexts: [],\n minorTexts: []\n }\n };\n this.props = {\n range: {\n start: 0,\n end: 0,\n minimumStep: 0\n },\n lineTop: 0\n };\n\n this.defaultOptions = {\n orientation: {\n axis: 'bottom'\n }, // axis orientation: 'top' or 'bottom'\n showMinorLabels: true,\n showMajorLabels: true,\n maxMinorChars: 7,\n format: TimeStep.FORMAT,\n moment: moment,\n timeAxis: null\n };\n this.options = util.extend({}, this.defaultOptions);\n\n this.body = body;\n\n // create the HTML DOM\n this._create();\n\n this.setOptions(options);\n}\n\nTimeAxis.prototype = new Component();\n\n/**\r\n * Set options for the TimeAxis.\r\n * Parameters will be merged in current options.\r\n * @param {Object} options Available options:\r\n * {string} [orientation.axis]\r\n * {boolean} [showMinorLabels]\r\n * {boolean} [showMajorLabels]\r\n */\nTimeAxis.prototype.setOptions = function (options) {\n if (options) {\n // copy all options that we know\n util.selectiveExtend(['showMinorLabels', 'showMajorLabels', 'maxMinorChars', 'hiddenDates', 'timeAxis', 'moment', 'rtl'], this.options, options);\n\n // deep copy the format options\n util.selectiveDeepExtend(['format'], this.options, options);\n\n if ('orientation' in options) {\n if (typeof options.orientation === 'string') {\n this.options.orientation.axis = options.orientation;\n } else if ((0, _typeof3['default'])(options.orientation) === 'object' && 'axis' in options.orientation) {\n this.options.orientation.axis = options.orientation.axis;\n }\n }\n\n // apply locale to moment.js\n // TODO: not so nice, this is applied globally to moment.js\n if ('locale' in options) {\n if (typeof moment.locale === 'function') {\n // moment.js 2.8.1+\n moment.locale(options.locale);\n } else {\n moment.lang(options.locale);\n }\n }\n }\n};\n\n/**\r\n * Create the HTML DOM for the TimeAxis\r\n */\nTimeAxis.prototype._create = function () {\n this.dom.foreground = document.createElement('div');\n this.dom.background = document.createElement('div');\n\n this.dom.foreground.className = 'vis-time-axis vis-foreground';\n this.dom.background.className = 'vis-time-axis vis-background';\n};\n\n/**\r\n * Destroy the TimeAxis\r\n */\nTimeAxis.prototype.destroy = function () {\n // remove from DOM\n if (this.dom.foreground.parentNode) {\n this.dom.foreground.parentNode.removeChild(this.dom.foreground);\n }\n if (this.dom.background.parentNode) {\n this.dom.background.parentNode.removeChild(this.dom.background);\n }\n\n this.body = null;\n};\n\n/**\r\n * Repaint the component\r\n * @return {boolean} Returns true if the component is resized\r\n */\nTimeAxis.prototype.redraw = function () {\n var props = this.props;\n var foreground = this.dom.foreground;\n var background = this.dom.background;\n\n // determine the correct parent DOM element (depending on option orientation)\n var parent = this.options.orientation.axis == 'top' ? this.body.dom.top : this.body.dom.bottom;\n var parentChanged = foreground.parentNode !== parent;\n\n // calculate character width and height\n this._calculateCharSize();\n\n // TODO: recalculate sizes only needed when parent is resized or options is changed\n var showMinorLabels = this.options.showMinorLabels && this.options.orientation.axis !== 'none';\n var showMajorLabels = this.options.showMajorLabels && this.options.orientation.axis !== 'none';\n\n // determine the width and height of the elemens for the axis\n props.minorLabelHeight = showMinorLabels ? props.minorCharHeight : 0;\n props.majorLabelHeight = showMajorLabels ? props.majorCharHeight : 0;\n props.height = props.minorLabelHeight + props.majorLabelHeight;\n props.width = foreground.offsetWidth;\n\n props.minorLineHeight = this.body.domProps.root.height - props.majorLabelHeight - (this.options.orientation.axis == 'top' ? this.body.domProps.bottom.height : this.body.domProps.top.height);\n props.minorLineWidth = 1; // TODO: really calculate width\n props.majorLineHeight = props.minorLineHeight + props.majorLabelHeight;\n props.majorLineWidth = 1; // TODO: really calculate width\n\n // take foreground and background offline while updating (is almost twice as fast)\n var foregroundNextSibling = foreground.nextSibling;\n var backgroundNextSibling = background.nextSibling;\n foreground.parentNode && foreground.parentNode.removeChild(foreground);\n background.parentNode && background.parentNode.removeChild(background);\n\n foreground.style.height = this.props.height + 'px';\n\n this._repaintLabels();\n\n // put DOM online again (at the same place)\n if (foregroundNextSibling) {\n parent.insertBefore(foreground, foregroundNextSibling);\n } else {\n parent.appendChild(foreground);\n }\n if (backgroundNextSibling) {\n this.body.dom.backgroundVertical.insertBefore(background, backgroundNextSibling);\n } else {\n this.body.dom.backgroundVertical.appendChild(background);\n }\n return this._isResized() || parentChanged;\n};\n\n/**\r\n * Repaint major and minor text labels and vertical grid lines\r\n * @private\r\n */\nTimeAxis.prototype._repaintLabels = function () {\n var orientation = this.options.orientation.axis;\n\n // calculate range and step (step such that we have space for 7 characters per label)\n var start = util.convert(this.body.range.start, 'Number');\n var end = util.convert(this.body.range.end, 'Number');\n var timeLabelsize = this.body.util.toTime((this.props.minorCharWidth || 10) * this.options.maxMinorChars).valueOf();\n var minimumStep = timeLabelsize - DateUtil.getHiddenDurationBefore(this.options.moment, this.body.hiddenDates, this.body.range, timeLabelsize);\n minimumStep -= this.body.util.toTime(0).valueOf();\n\n var step = new TimeStep(new Date(start), new Date(end), minimumStep, this.body.hiddenDates, this.options);\n step.setMoment(this.options.moment);\n if (this.options.format) {\n step.setFormat(this.options.format);\n }\n if (this.options.timeAxis) {\n step.setScale(this.options.timeAxis);\n }\n this.step = step;\n\n // Move all DOM elements to a \"redundant\" list, where they\n // can be picked for re-use, and clear the lists with lines and texts.\n // At the end of the function _repaintLabels, left over elements will be cleaned up\n var dom = this.dom;\n dom.redundant.lines = dom.lines;\n dom.redundant.majorTexts = dom.majorTexts;\n dom.redundant.minorTexts = dom.minorTexts;\n dom.lines = [];\n dom.majorTexts = [];\n dom.minorTexts = [];\n\n var current; // eslint-disable-line no-unused-vars\n var next;\n var x;\n var xNext;\n var isMajor;\n var nextIsMajor; // eslint-disable-line no-unused-vars\n var showMinorGrid;\n var width = 0,\n prevWidth;\n var line;\n var labelMinor;\n var xFirstMajorLabel = undefined;\n var count = 0;\n var MAX = 1000;\n var className;\n\n step.start();\n next = step.getCurrent();\n xNext = this.body.util.toScreen(next);\n while (step.hasNext() && count < MAX) {\n count++;\n\n isMajor = step.isMajor();\n className = step.getClassName();\n labelMinor = step.getLabelMinor();\n\n current = next;\n x = xNext;\n\n step.next();\n next = step.getCurrent();\n nextIsMajor = step.isMajor();\n xNext = this.body.util.toScreen(next);\n\n prevWidth = width;\n width = xNext - x;\n switch (step.scale) {\n case 'week':\n showMinorGrid = true;break;\n default:\n showMinorGrid = width >= prevWidth * 0.4;break; // prevent displaying of the 31th of the month on a scale of 5 days\n }\n\n if (this.options.showMinorLabels && showMinorGrid) {\n var label = this._repaintMinorText(x, labelMinor, orientation, className);\n label.style.width = width + 'px'; // set width to prevent overflow\n }\n\n if (isMajor && this.options.showMajorLabels) {\n if (x > 0) {\n if (xFirstMajorLabel == undefined) {\n xFirstMajorLabel = x;\n }\n label = this._repaintMajorText(x, step.getLabelMajor(), orientation, className);\n }\n line = this._repaintMajorLine(x, width, orientation, className);\n } else {\n // minor line\n if (showMinorGrid) {\n line = this._repaintMinorLine(x, width, orientation, className);\n } else {\n if (line) {\n // adjust the width of the previous grid\n line.style.width = parseInt(line.style.width) + width + 'px';\n }\n }\n }\n }\n\n if (count === MAX && !warnedForOverflow) {\n console.warn('Something is wrong with the Timeline scale. Limited drawing of grid lines to ' + MAX + ' lines.');\n warnedForOverflow = true;\n }\n\n // create a major label on the left when needed\n if (this.options.showMajorLabels) {\n var leftTime = this.body.util.toTime(0),\n leftText = step.getLabelMajor(leftTime),\n widthText = leftText.length * (this.props.majorCharWidth || 10) + 10; // upper bound estimation\n\n if (xFirstMajorLabel == undefined || widthText < xFirstMajorLabel) {\n this._repaintMajorText(0, leftText, orientation, className);\n }\n }\n\n // Cleanup leftover DOM elements from the redundant list\n util.forEach(this.dom.redundant, function (arr) {\n while (arr.length) {\n var elem = arr.pop();\n if (elem && elem.parentNode) {\n elem.parentNode.removeChild(elem);\n }\n }\n });\n};\n\n/**\r\n * Create a minor label for the axis at position x\r\n * @param {number} x\r\n * @param {string} text\r\n * @param {string} orientation \"top\" or \"bottom\" (default)\r\n * @param {string} className\r\n * @return {Element} Returns the HTML element of the created label\r\n * @private\r\n */\nTimeAxis.prototype._repaintMinorText = function (x, text, orientation, className) {\n // reuse redundant label\n var label = this.dom.redundant.minorTexts.shift();\n\n if (!label) {\n // create new label\n var content = document.createTextNode('');\n label = document.createElement('div');\n label.appendChild(content);\n this.dom.foreground.appendChild(label);\n }\n this.dom.minorTexts.push(label);\n label.innerHTML = text;\n\n label.style.top = orientation == 'top' ? this.props.majorLabelHeight + 'px' : '0';\n\n if (this.options.rtl) {\n label.style.left = \"\";\n label.style.right = x + 'px';\n } else {\n label.style.left = x + 'px';\n }\n label.className = 'vis-text vis-minor ' + className;\n //label.title = title; // TODO: this is a heavy operation\n\n return label;\n};\n\n/**\r\n * Create a Major label for the axis at position x\r\n * @param {number} x\r\n * @param {string} text\r\n * @param {string} orientation \"top\" or \"bottom\" (default)\r\n * @param {string} className\r\n * @return {Element} Returns the HTML element of the created label\r\n * @private\r\n */\nTimeAxis.prototype._repaintMajorText = function (x, text, orientation, className) {\n // reuse redundant label\n var label = this.dom.redundant.majorTexts.shift();\n\n if (!label) {\n // create label\n var content = document.createElement('div');\n label = document.createElement('div');\n label.appendChild(content);\n this.dom.foreground.appendChild(label);\n }\n\n label.childNodes[0].innerHTML = text;\n label.className = 'vis-text vis-major ' + className;\n //label.title = title; // TODO: this is a heavy operation\n\n label.style.top = orientation == 'top' ? '0' : this.props.minorLabelHeight + 'px';\n if (this.options.rtl) {\n label.style.left = \"\";\n label.style.right = x + 'px';\n } else {\n label.style.left = x + 'px';\n }\n\n this.dom.majorTexts.push(label);\n return label;\n};\n\n/**\r\n * Create a minor line for the axis at position x\r\n * @param {number} x\r\n * @param {number} width\r\n * @param {string} orientation \"top\" or \"bottom\" (default)\r\n * @param {string} className\r\n * @return {Element} Returns the created line\r\n * @private\r\n */\nTimeAxis.prototype._repaintMinorLine = function (x, width, orientation, className) {\n // reuse redundant line\n var line = this.dom.redundant.lines.shift();\n if (!line) {\n // create vertical line\n line = document.createElement('div');\n this.dom.background.appendChild(line);\n }\n this.dom.lines.push(line);\n\n var props = this.props;\n if (orientation == 'top') {\n line.style.top = props.majorLabelHeight + 'px';\n } else {\n line.style.top = this.body.domProps.top.height + 'px';\n }\n line.style.height = props.minorLineHeight + 'px';\n if (this.options.rtl) {\n line.style.left = \"\";\n line.style.right = x - props.minorLineWidth / 2 + 'px';\n line.className = 'vis-grid vis-vertical-rtl vis-minor ' + className;\n } else {\n line.style.left = x - props.minorLineWidth / 2 + 'px';\n line.className = 'vis-grid vis-vertical vis-minor ' + className;\n }\n line.style.width = width + 'px';\n\n return line;\n};\n\n/**\r\n * Create a Major line for the axis at position x\r\n * @param {number} x\r\n * @param {number} width\r\n * @param {string} orientation \"top\" or \"bottom\" (default)\r\n * @param {string} className\r\n * @return {Element} Returns the created line\r\n * @private\r\n */\nTimeAxis.prototype._repaintMajorLine = function (x, width, orientation, className) {\n // reuse redundant line\n var line = this.dom.redundant.lines.shift();\n if (!line) {\n // create vertical line\n line = document.createElement('div');\n this.dom.background.appendChild(line);\n }\n this.dom.lines.push(line);\n\n var props = this.props;\n if (orientation == 'top') {\n line.style.top = '0';\n } else {\n line.style.top = this.body.domProps.top.height + 'px';\n }\n\n if (this.options.rtl) {\n line.style.left = \"\";\n line.style.right = x - props.majorLineWidth / 2 + 'px';\n line.className = 'vis-grid vis-vertical-rtl vis-major ' + className;\n } else {\n line.style.left = x - props.majorLineWidth / 2 + 'px';\n line.className = 'vis-grid vis-vertical vis-major ' + className;\n }\n\n line.style.height = props.majorLineHeight + 'px';\n line.style.width = width + 'px';\n\n return line;\n};\n\n/**\r\n * Determine the size of text on the axis (both major and minor axis).\r\n * The size is calculated only once and then cached in this.props.\r\n * @private\r\n */\nTimeAxis.prototype._calculateCharSize = function () {\n // Note: We calculate char size with every redraw. Size may change, for\n // example when any of the timelines parents had display:none for example.\n\n // determine the char width and height on the minor axis\n if (!this.dom.measureCharMinor) {\n this.dom.measureCharMinor = document.createElement('DIV');\n this.dom.measureCharMinor.className = 'vis-text vis-minor vis-measure';\n this.dom.measureCharMinor.style.position = 'absolute';\n\n this.dom.measureCharMinor.appendChild(document.createTextNode('0'));\n this.dom.foreground.appendChild(this.dom.measureCharMinor);\n }\n this.props.minorCharHeight = this.dom.measureCharMinor.clientHeight;\n this.props.minorCharWidth = this.dom.measureCharMinor.clientWidth;\n\n // determine the char width and height on the major axis\n if (!this.dom.measureCharMajor) {\n this.dom.measureCharMajor = document.createElement('DIV');\n this.dom.measureCharMajor.className = 'vis-text vis-major vis-measure';\n this.dom.measureCharMajor.style.position = 'absolute';\n\n this.dom.measureCharMajor.appendChild(document.createTextNode('0'));\n this.dom.foreground.appendChild(this.dom.measureCharMajor);\n }\n this.props.majorCharHeight = this.dom.measureCharMajor.clientHeight;\n this.props.majorCharWidth = this.dom.measureCharMajor.clientWidth;\n};\n\nvar warnedForOverflow = false;\n\nmodule.exports = TimeAxis;\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar Hammer = __webpack_require__(10);\nvar util = __webpack_require__(2);\nvar Component = __webpack_require__(16);\nvar moment = __webpack_require__(9);\nvar locales = __webpack_require__(98);\n\n/**\r\n * A custom time bar\r\n * @param {{range: Range, dom: Object}} body\r\n * @param {Object} [options] Available parameters:\r\n * {number | string} id\r\n * {string} locales\r\n * {string} locale\r\n * @constructor CustomTime\r\n * @extends Component\r\n */\nfunction CustomTime(body, options) {\n this.body = body;\n\n // default options\n this.defaultOptions = {\n moment: moment,\n locales: locales,\n locale: 'en',\n id: undefined,\n title: undefined\n };\n this.options = util.extend({}, this.defaultOptions);\n\n if (options && options.time) {\n this.customTime = options.time;\n } else {\n this.customTime = new Date();\n }\n\n this.eventParams = {}; // stores state parameters while dragging the bar\n\n this.setOptions(options);\n\n // create the DOM\n this._create();\n}\n\nCustomTime.prototype = new Component();\n\n/**\r\n * Set options for the component. Options will be merged in current options.\r\n * @param {Object} options Available parameters:\r\n * {number | string} id\r\n * {string} locales\r\n * {string} locale\r\n */\nCustomTime.prototype.setOptions = function (options) {\n if (options) {\n // copy all options that we know\n util.selectiveExtend(['moment', 'locale', 'locales', 'id'], this.options, options);\n }\n};\n\n/**\r\n * Create the DOM for the custom time\r\n * @private\r\n */\nCustomTime.prototype._create = function () {\n var bar = document.createElement('div');\n bar['custom-time'] = this;\n bar.className = 'vis-custom-time ' + (this.options.id || '');\n bar.style.position = 'absolute';\n bar.style.top = '0px';\n bar.style.height = '100%';\n this.bar = bar;\n\n var drag = document.createElement('div');\n drag.style.position = 'relative';\n drag.style.top = '0px';\n drag.style.left = '-10px';\n drag.style.height = '100%';\n drag.style.width = '20px';\n\n /**\r\n *\r\n * @param {WheelEvent} e\r\n */\n function onMouseWheel(e) {\n this.body.range._onMouseWheel(e);\n }\n\n if (drag.addEventListener) {\n // IE9, Chrome, Safari, Opera\n drag.addEventListener(\"mousewheel\", onMouseWheel.bind(this), false);\n // Firefox\n drag.addEventListener(\"DOMMouseScroll\", onMouseWheel.bind(this), false);\n } else {\n // IE 6/7/8\n drag.attachEvent(\"onmousewheel\", onMouseWheel.bind(this));\n }\n\n bar.appendChild(drag);\n // attach event listeners\n this.hammer = new Hammer(drag);\n this.hammer.on('panstart', this._onDragStart.bind(this));\n this.hammer.on('panmove', this._onDrag.bind(this));\n this.hammer.on('panend', this._onDragEnd.bind(this));\n this.hammer.get('pan').set({ threshold: 5, direction: Hammer.DIRECTION_HORIZONTAL });\n};\n\n/**\r\n * Destroy the CustomTime bar\r\n */\nCustomTime.prototype.destroy = function () {\n this.hide();\n\n this.hammer.destroy();\n this.hammer = null;\n\n this.body = null;\n};\n\n/**\r\n * Repaint the component\r\n * @return {boolean} Returns true if the component is resized\r\n */\nCustomTime.prototype.redraw = function () {\n var parent = this.body.dom.backgroundVertical;\n if (this.bar.parentNode != parent) {\n // attach to the dom\n if (this.bar.parentNode) {\n this.bar.parentNode.removeChild(this.bar);\n }\n parent.appendChild(this.bar);\n }\n\n var x = this.body.util.toScreen(this.customTime);\n\n var locale = this.options.locales[this.options.locale];\n if (!locale) {\n if (!this.warned) {\n console.log('WARNING: options.locales[\\'' + this.options.locale + '\\'] not found. See http://visjs.org/docs/timeline/#Localization');\n this.warned = true;\n }\n locale = this.options.locales['en']; // fall back on english when not available\n }\n\n var title = this.options.title;\n // To hide the title completely use empty string ''.\n if (title === undefined) {\n title = locale.time + ': ' + this.options.moment(this.customTime).format('dddd, MMMM Do YYYY, H:mm:ss');\n title = title.charAt(0).toUpperCase() + title.substring(1);\n } else if (typeof title === \"function\") {\n title = title.call(this.customTime);\n }\n\n this.bar.style.left = x + 'px';\n this.bar.title = title;\n\n return false;\n};\n\n/**\r\n * Remove the CustomTime from the DOM\r\n */\nCustomTime.prototype.hide = function () {\n // remove the line from the DOM\n if (this.bar.parentNode) {\n this.bar.parentNode.removeChild(this.bar);\n }\n};\n\n/**\r\n * Set custom time.\r\n * @param {Date | number | string} time\r\n */\nCustomTime.prototype.setCustomTime = function (time) {\n this.customTime = util.convert(time, 'Date');\n this.redraw();\n};\n\n/**\r\n * Retrieve the current custom time.\r\n * @return {Date} customTime\r\n */\nCustomTime.prototype.getCustomTime = function () {\n return new Date(this.customTime.valueOf());\n};\n\n/**\r\n * Set custom title.\r\n * @param {Date | number | string} title\r\n */\nCustomTime.prototype.setCustomTitle = function (title) {\n this.options.title = title;\n};\n\n/**\r\n * Start moving horizontally\r\n * @param {Event} event\r\n * @private\r\n */\nCustomTime.prototype._onDragStart = function (event) {\n this.eventParams.dragging = true;\n this.eventParams.customTime = this.customTime;\n\n event.stopPropagation();\n};\n\n/**\r\n * Perform moving operating.\r\n * @param {Event} event\r\n * @private\r\n */\nCustomTime.prototype._onDrag = function (event) {\n if (!this.eventParams.dragging) return;\n\n var x = this.body.util.toScreen(this.eventParams.customTime) + event.deltaX;\n var time = this.body.util.toTime(x);\n\n this.setCustomTime(time);\n\n // fire a timechange event\n this.body.emitter.emit('timechange', {\n id: this.options.id,\n time: new Date(this.customTime.valueOf()),\n event: event\n });\n\n event.stopPropagation();\n};\n\n/**\r\n * Stop moving operating.\r\n * @param {Event} event\r\n * @private\r\n */\nCustomTime.prototype._onDragEnd = function (event) {\n if (!this.eventParams.dragging) return;\n\n // fire a timechanged event\n this.body.emitter.emit('timechanged', {\n id: this.options.id,\n time: new Date(this.customTime.valueOf()),\n event: event\n });\n\n event.stopPropagation();\n};\n\n/**\r\n * Find a custom time from an event target:\r\n * searches for the attribute 'custom-time' in the event target's element tree\r\n * @param {Event} event\r\n * @return {CustomTime | null} customTime\r\n */\nCustomTime.customTimeFromTarget = function (event) {\n var target = event.target;\n while (target) {\n if (target.hasOwnProperty('custom-time')) {\n return target['custom-time'];\n }\n target = target.parentNode;\n }\n\n return null;\n};\n\nmodule.exports = CustomTime;\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\n\nvar Label = __webpack_require__(117)['default'];\nvar ComponentUtil = __webpack_require__(48)['default'];\nvar Box = __webpack_require__(193)['default'];\nvar Circle = __webpack_require__(200)['default'];\nvar CircularImage = __webpack_require__(201)['default'];\nvar Database = __webpack_require__(202)['default'];\nvar Diamond = __webpack_require__(203)['default'];\nvar Dot = __webpack_require__(204)['default'];\nvar Ellipse = __webpack_require__(205)['default'];\nvar Icon = __webpack_require__(206)['default'];\nvar Image = __webpack_require__(207)['default'];\nvar Square = __webpack_require__(208)['default'];\nvar Hexagon = __webpack_require__(209)['default'];\nvar Star = __webpack_require__(210)['default'];\nvar Text = __webpack_require__(211)['default'];\nvar Triangle = __webpack_require__(212)['default'];\nvar TriangleDown = __webpack_require__(213)['default'];\n\nvar _require = __webpack_require__(15),\n printStyle = _require.printStyle;\n\n/**\r\n * A node. A node can be connected to other nodes via one or multiple edges.\r\n */\n\n\nvar Node = function () {\n /**\r\n *\r\n * @param {object} options An object containing options for the node. All\r\n * options are optional, except for the id.\r\n * {number} id Id of the node. Required\r\n * {string} label Text label for the node\r\n * {number} x Horizontal position of the node\r\n * {number} y Vertical position of the node\r\n * {string} shape Node shape\r\n * {string} image An image url\r\n * {string} title A title text, can be HTML\r\n * {anytype} group A group name or number\r\n *\r\n * @param {Object} body Shared state of current network instance\r\n * @param {Network.Images} imagelist A list with images. Only needed when the node has an image\r\n * @param {Groups} grouplist A list with groups. Needed for retrieving group options\r\n * @param {Object} globalOptions Current global node options; these serve as defaults for the node instance\r\n * @param {Object} defaultOptions Global default options for nodes; note that this is also the prototype\r\n * for parameter `globalOptions`.\r\n */\n function Node(options, body, imagelist, grouplist, globalOptions, defaultOptions) {\n (0, _classCallCheck3['default'])(this, Node);\n\n this.options = util.bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n\n this.edges = []; // all edges connected to this node\n\n // set defaults for the options\n this.id = undefined;\n this.imagelist = imagelist;\n this.grouplist = grouplist;\n\n // state options\n this.x = undefined;\n this.y = undefined;\n this.baseSize = this.options.size;\n this.baseFontSize = this.options.font.size;\n this.predefinedPosition = false; // used to check if initial fit should just take the range or approximate\n this.selected = false;\n this.hover = false;\n\n this.labelModule = new Label(this.body, this.options, false /* Not edge label */);\n this.setOptions(options);\n }\n\n /**\r\n * Attach a edge to the node\r\n * @param {Edge} edge\r\n */\n\n\n (0, _createClass3['default'])(Node, [{\n key: 'attachEdge',\n value: function attachEdge(edge) {\n if (this.edges.indexOf(edge) === -1) {\n this.edges.push(edge);\n }\n }\n\n /**\r\n * Detach a edge from the node\r\n *\r\n * @param {Edge} edge\r\n */\n\n }, {\n key: 'detachEdge',\n value: function detachEdge(edge) {\n var index = this.edges.indexOf(edge);\n if (index != -1) {\n this.edges.splice(index, 1);\n }\n }\n\n /**\r\n * Set or overwrite options for the node\r\n *\r\n * @param {Object} options an object with options\r\n * @returns {null|boolean}\r\n */\n\n }, {\n key: 'setOptions',\n value: function setOptions(options) {\n var currentShape = this.options.shape;\n if (!options) {\n return; // Note that the return value will be 'undefined'! This is OK.\n }\n\n // basic options\n if (options.id !== undefined) {\n this.id = options.id;\n }\n\n if (this.id === undefined) {\n throw new Error(\"Node must have an id\");\n }\n\n Node.checkMass(options, this.id);\n\n // set these options locally\n // clear x and y positions\n if (options.x !== undefined) {\n if (options.x === null) {\n this.x = undefined;this.predefinedPosition = false;\n } else {\n this.x = parseInt(options.x);this.predefinedPosition = true;\n }\n }\n if (options.y !== undefined) {\n if (options.y === null) {\n this.y = undefined;this.predefinedPosition = false;\n } else {\n this.y = parseInt(options.y);this.predefinedPosition = true;\n }\n }\n if (options.size !== undefined) {\n this.baseSize = options.size;\n }\n if (options.value !== undefined) {\n options.value = parseFloat(options.value);\n }\n\n // this transforms all shorthands into fully defined options\n Node.parseOptions(this.options, options, true, this.globalOptions, this.grouplist);\n\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = ComponentUtil.choosify('node', pile);\n\n this._load_images();\n this.updateLabelModule(options);\n this.updateShape(currentShape);\n\n return options.hidden !== undefined || options.physics !== undefined;\n }\n\n /**\r\n * Load the images from the options, for the nodes that need them.\r\n *\r\n * TODO: The imageObj members should be moved to CircularImageBase.\r\n * It's the only place where they are required.\r\n *\r\n * @private\r\n */\n\n }, {\n key: '_load_images',\n value: function _load_images() {\n // Don't bother loading for nodes without images\n if (this.options.shape !== 'circularImage' && this.options.shape !== 'image') {\n return;\n }\n\n if (this.options.image === undefined) {\n throw new Error(\"Option image must be defined for node type '\" + this.options.shape + \"'\");\n }\n\n if (this.imagelist === undefined) {\n throw new Error(\"Internal Error: No images provided\");\n }\n\n if (typeof this.options.image === 'string') {\n this.imageObj = this.imagelist.load(this.options.image, this.options.brokenImage, this.id);\n } else {\n if (this.options.image.unselected === undefined) {\n throw new Error(\"No unselected image provided\");\n }\n\n this.imageObj = this.imagelist.load(this.options.image.unselected, this.options.brokenImage, this.id);\n\n if (this.options.image.selected !== undefined) {\n this.imageObjAlt = this.imagelist.load(this.options.image.selected, this.options.brokenImage, this.id);\n } else {\n this.imageObjAlt = undefined;\n }\n }\n }\n\n /**\r\n * Copy group option values into the node options.\r\n *\r\n * The group options override the global node options, so the copy of group options\r\n * must happen *after* the global node options have been set.\r\n *\r\n * This method must also be called also if the global node options have changed and the group options did not.\r\n *\r\n * @param {Object} parentOptions\r\n * @param {Object} newOptions new values for the options, currently only passed in for check\r\n * @param {Object} groupList\r\n */\n\n }, {\n key: 'getFormattingValues',\n\n\n /**\r\n *\r\n * @returns {{color: *, borderWidth: *, borderColor: *, size: *, borderDashes: (boolean|Array|allOptions.nodes.shapeProperties.borderDashes|{boolean, array}), borderRadius: (number|allOptions.nodes.shapeProperties.borderRadius|{number}|Array), shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *}}\r\n */\n value: function getFormattingValues() {\n var values = {\n color: this.options.color.background,\n borderWidth: this.options.borderWidth,\n borderColor: this.options.color.border,\n size: this.options.size,\n borderDashes: this.options.shapeProperties.borderDashes,\n borderRadius: this.options.shapeProperties.borderRadius,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n values.borderWidth *= 2;\n values.color = this.options.color.highlight.background;\n values.borderColor = this.options.color.highlight.border;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n values.color = this.options.color.hover.background;\n values.borderColor = this.options.color.hover.border;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === 'function') {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n }\n return values;\n }\n\n /**\r\n *\r\n * @param {Object} options\r\n */\n\n }, {\n key: 'updateLabelModule',\n value: function updateLabelModule(options) {\n if (this.options.label === undefined || this.options.label === null) {\n this.options.label = '';\n }\n\n Node.updateGroupOptions(this.options, options, this.grouplist);\n\n //\n // Note:The prototype chain for this.options is:\n //\n // this.options -> NodesHandler.options -> NodesHandler.defaultOptions\n // (also: this.globalOptions)\n //\n // Note that the prototypes are mentioned explicitly in the pile list below;\n // WE DON'T WANT THE ORDER OF THE PROTOTYPES!!!! At least, not for font handling of labels.\n // This is a good indication that the prototype usage of options is deficient.\n //\n var currentGroup = this.grouplist.get(this.options.group, false);\n var pile = [options, // new options\n this.options, // current node options, see comment above for prototype\n currentGroup, // group options, if any\n this.globalOptions, // Currently set global node options\n this.defaultOptions // Default global node options\n ];\n this.labelModule.update(this.options, pile);\n\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\r\n *\r\n * @param {string} currentShape\r\n */\n\n }, {\n key: 'updateShape',\n value: function updateShape(currentShape) {\n if (currentShape === this.options.shape && this.shape) {\n this.shape.setOptions(this.options, this.imageObj, this.imageObjAlt);\n } else {\n // choose draw method depending on the shape\n switch (this.options.shape) {\n case 'box':\n this.shape = new Box(this.options, this.body, this.labelModule);\n break;\n case 'circle':\n this.shape = new Circle(this.options, this.body, this.labelModule);\n break;\n case 'circularImage':\n this.shape = new CircularImage(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case 'database':\n this.shape = new Database(this.options, this.body, this.labelModule);\n break;\n case 'diamond':\n this.shape = new Diamond(this.options, this.body, this.labelModule);\n break;\n case 'dot':\n this.shape = new Dot(this.options, this.body, this.labelModule);\n break;\n case 'ellipse':\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n case 'icon':\n this.shape = new Icon(this.options, this.body, this.labelModule);\n break;\n case 'image':\n this.shape = new Image(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case 'square':\n this.shape = new Square(this.options, this.body, this.labelModule);\n break;\n case 'hexagon':\n this.shape = new Hexagon(this.options, this.body, this.labelModule);\n break;\n case 'star':\n this.shape = new Star(this.options, this.body, this.labelModule);\n break;\n case 'text':\n this.shape = new Text(this.options, this.body, this.labelModule);\n break;\n case 'triangle':\n this.shape = new Triangle(this.options, this.body, this.labelModule);\n break;\n case 'triangleDown':\n this.shape = new TriangleDown(this.options, this.body, this.labelModule);\n break;\n default:\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n }\n }\n this.needsRefresh();\n }\n\n /**\r\n * select this node\r\n */\n\n }, {\n key: 'select',\n value: function select() {\n this.selected = true;\n this.needsRefresh();\n }\n\n /**\r\n * unselect this node\r\n */\n\n }, {\n key: 'unselect',\n value: function unselect() {\n this.selected = false;\n this.needsRefresh();\n }\n\n /**\r\n * Reset the calculated size of the node, forces it to recalculate its size\r\n */\n\n }, {\n key: 'needsRefresh',\n value: function needsRefresh() {\n this.shape.refreshNeeded = true;\n }\n\n /**\r\n * get the title of this node.\r\n * @return {string} title The title of the node, or undefined when no title\r\n * has been set.\r\n */\n\n }, {\n key: 'getTitle',\n value: function getTitle() {\n return this.options.title;\n }\n\n /**\r\n * Calculate the distance to the border of the Node\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {number} angle Angle in radians\r\n * @returns {number} distance Distance to the border in pixels\r\n */\n\n }, {\n key: 'distanceToBorder',\n value: function distanceToBorder(ctx, angle) {\n return this.shape.distanceToBorder(ctx, angle);\n }\n\n /**\r\n * Check if this node has a fixed x and y position\r\n * @return {boolean} true if fixed, false if not\r\n */\n\n }, {\n key: 'isFixed',\n value: function isFixed() {\n return this.options.fixed.x && this.options.fixed.y;\n }\n\n /**\r\n * check if this node is selecte\r\n * @return {boolean} selected True if node is selected, else false\r\n */\n\n }, {\n key: 'isSelected',\n value: function isSelected() {\n return this.selected;\n }\n\n /**\r\n * Retrieve the value of the node. Can be undefined\r\n * @return {number} value\r\n */\n\n }, {\n key: 'getValue',\n value: function getValue() {\n return this.options.value;\n }\n\n /**\r\n * Get the current dimensions of the label\r\n *\r\n * @return {rect}\r\n */\n\n }, {\n key: 'getLabelSize',\n value: function getLabelSize() {\n return this.labelModule.size();\n }\n\n /**\r\n * Adjust the value range of the node. The node will adjust it's size\r\n * based on its value.\r\n * @param {number} min\r\n * @param {number} max\r\n * @param {number} total\r\n */\n\n }, {\n key: 'setValueRange',\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var sizeDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.size = this.options.scaling.min + scale * sizeDiff;\n } else {\n this.options.size = this.baseSize;\n this.options.font.size = this.baseFontSize;\n }\n\n this.updateLabelModule();\n }\n\n /**\r\n * Draw this node in the given canvas\r\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\r\n * @param {CanvasRenderingContext2D} ctx\r\n */\n\n }, {\n key: 'draw',\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n this.shape.draw(ctx, this.x, this.y, this.selected, this.hover, values);\n }\n\n /**\r\n * Update the bounding box of the shape\r\n * @param {CanvasRenderingContext2D} ctx\r\n */\n\n }, {\n key: 'updateBoundingBox',\n value: function updateBoundingBox(ctx) {\n this.shape.updateBoundingBox(this.x, this.y, ctx);\n }\n\n /**\r\n * Recalculate the size of this node in the given canvas\r\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\r\n * @param {CanvasRenderingContext2D} ctx\r\n */\n\n }, {\n key: 'resize',\n value: function resize(ctx) {\n var values = this.getFormattingValues();\n this.shape.resize(ctx, this.selected, this.hover, values);\n }\n\n /**\r\n * Determine all visual elements of this node instance, in which the given\r\n * point falls within the bounding shape.\r\n *\r\n * @param {point} point\r\n * @returns {Array.<nodeClickItem|nodeLabelClickItem>} list with the items which are on the point\r\n */\n\n }, {\n key: 'getItemsOnPoint',\n value: function getItemsOnPoint(point) {\n var ret = [];\n\n if (this.labelModule.visible()) {\n if (ComponentUtil.pointInRect(this.labelModule.getSize(), point)) {\n ret.push({ nodeId: this.id, labelId: 0 });\n }\n }\n\n if (ComponentUtil.pointInRect(this.shape.boundingBox, point)) {\n ret.push({ nodeId: this.id });\n }\n\n return ret;\n }\n\n /**\r\n * Check if this object is overlapping with the provided object\r\n * @param {Object} obj an object with parameters left, top, right, bottom\r\n * @return {boolean} True if location is located on node\r\n */\n\n }, {\n key: 'isOverlappingWith',\n value: function isOverlappingWith(obj) {\n return this.shape.left < obj.right && this.shape.left + this.shape.width > obj.left && this.shape.top < obj.bottom && this.shape.top + this.shape.height > obj.top;\n }\n\n /**\r\n * Check if this object is overlapping with the provided object\r\n * @param {Object} obj an object with parameters left, top, right, bottom\r\n * @return {boolean} True if location is located on node\r\n */\n\n }, {\n key: 'isBoundingBoxOverlappingWith',\n value: function isBoundingBoxOverlappingWith(obj) {\n return this.shape.boundingBox.left < obj.right && this.shape.boundingBox.right > obj.left && this.shape.boundingBox.top < obj.bottom && this.shape.boundingBox.bottom > obj.top;\n }\n\n /**\r\n * Check valid values for mass\r\n *\r\n * The mass may not be negative or zero. If it is, reset to 1\r\n *\r\n * @param {object} options\r\n * @param {Node.id} id\r\n * @static\r\n */\n\n }], [{\n key: 'updateGroupOptions',\n value: function updateGroupOptions(parentOptions, newOptions, groupList) {\n if (groupList === undefined) return; // No groups, nothing to do\n\n var group = parentOptions.group;\n\n // paranoia: the selected group is already merged into node options, check.\n if (newOptions !== undefined && newOptions.group !== undefined && group !== newOptions.group) {\n throw new Error(\"updateGroupOptions: group values in options don't match.\");\n }\n\n var hasGroup = typeof group === 'number' || typeof group === 'string' && group != '';\n if (!hasGroup) return; // current node has no group, no need to merge\n\n var groupObj = groupList.get(group);\n\n // Skip merging of group font options into parent; these are required to be distinct for labels\n // TODO: It might not be a good idea either to merge the rest of the options, investigate this. \n util.selectiveNotDeepExtend(['font'], parentOptions, groupObj);\n\n // the color object needs to be completely defined.\n // Since groups can partially overwrite the colors, we parse it again, just in case.\n parentOptions.color = util.parseColor(parentOptions.color);\n }\n\n /**\r\n * This process all possible shorthands in the new options and makes sure that the parentOptions are fully defined.\r\n * Static so it can also be used by the handler.\r\n *\r\n * @param {Object} parentOptions\r\n * @param {Object} newOptions\r\n * @param {boolean} [allowDeletion=false]\r\n * @param {Object} [globalOptions={}]\r\n * @param {Object} [groupList]\r\n * @static\r\n */\n\n }, {\n key: 'parseOptions',\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var groupList = arguments[4];\n\n\n var fields = ['color', 'fixed', 'shadow'];\n util.selectiveNotDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n\n Node.checkMass(newOptions);\n\n // merge the shadow options into the parent.\n util.mergeOptions(parentOptions, newOptions, 'shadow', globalOptions);\n\n // individual shape newOptions\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var parsedColor = util.parseColor(newOptions.color);\n util.fillIfDefined(parentOptions.color, parsedColor);\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = util.bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n // handle the fixed options\n if (newOptions.fixed !== undefined && newOptions.fixed !== null) {\n if (typeof newOptions.fixed === 'boolean') {\n parentOptions.fixed.x = newOptions.fixed;\n parentOptions.fixed.y = newOptions.fixed;\n } else {\n if (newOptions.fixed.x !== undefined && typeof newOptions.fixed.x === 'boolean') {\n parentOptions.fixed.x = newOptions.fixed.x;\n }\n if (newOptions.fixed.y !== undefined && typeof newOptions.fixed.y === 'boolean') {\n parentOptions.fixed.y = newOptions.fixed.y;\n }\n }\n }\n\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = util.bridgeObject(globalOptions.font); // set the object back to the global options\n }\n\n Node.updateGroupOptions(parentOptions, newOptions, groupList);\n\n // handle the scaling options, specifically the label part\n if (newOptions.scaling !== undefined) {\n util.mergeOptions(parentOptions.scaling, newOptions.scaling, 'label', globalOptions.scaling);\n }\n }\n }, {\n key: 'checkMass',\n value: function checkMass(options, id) {\n if (options.mass !== undefined && options.mass <= 0) {\n var strId = '';\n if (id !== undefined) {\n strId = ' in node id: ' + id;\n }\n console.log('%cNegative or zero mass disallowed' + strId + ', setting mass to 1.', printStyle);\n options.mass = 1;\n }\n }\n }]);\n return Node;\n}();\n\nexports['default'] = Node;\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\r\n * Definitions for param's in jsdoc.\r\n * These are more or less global within Network. Putting them here until I can figure out\r\n * where to really put them\r\n * \r\n * @typedef {string|number} Id\r\n * @typedef {Id} NodeId\r\n * @typedef {Id} EdgeId\r\n * @typedef {Id} LabelId\r\n *\r\n * @typedef {{x: number, y: number}} point\r\n * @typedef {{left: number, top: number, width: number, height: number}} rect\r\n * @typedef {{x: number, y:number, angle: number}} rotationPoint\r\n * - point to rotate around and the angle in radians to rotate. angle == 0 means no rotation\r\n * @typedef {{nodeId:NodeId}} nodeClickItem\r\n * @typedef {{nodeId:NodeId, labelId:LabelId}} nodeLabelClickItem\r\n * @typedef {{edgeId:EdgeId}} edgeClickItem\r\n * @typedef {{edgeId:EdgeId, labelId:LabelId}} edgeLabelClickItem\r\n */\n\nvar util = __webpack_require__(2);\n\n/**\r\n * Helper functions for components\r\n * @class\r\n */\n\nvar ComponentUtil = function () {\n function ComponentUtil() {\n (0, _classCallCheck3['default'])(this, ComponentUtil);\n }\n\n (0, _createClass3['default'])(ComponentUtil, null, [{\n key: 'choosify',\n\n /**\r\n * Determine values to use for (sub)options of 'chosen'.\r\n *\r\n * This option is either a boolean or an object whose values should be examined further.\r\n * The relevant structures are:\r\n *\r\n * - chosen: <boolean value>\r\n * - chosen: { subOption: <boolean or function> }\r\n *\r\n * Where subOption is 'node', 'edge' or 'label'.\r\n *\r\n * The intention of this method appears to be to set a specific priority to the options;\r\n * Since most properties are either bridged or merged into the local options objects, there\r\n * is not much point in handling them separately.\r\n * TODO: examine if 'most' in previous sentence can be replaced with 'all'. In that case, we\r\n * should be able to get rid of this method.\r\n *\r\n * @param {string} subOption option within object 'chosen' to consider; either 'node', 'edge' or 'label'\r\n * @param {Object} pile array of options objects to consider\r\n * \r\n * @return {boolean|function} value for passed subOption of 'chosen' to use\r\n */\n value: function choosify(subOption, pile) {\n // allowed values for subOption\n var allowed = ['node', 'edge', 'label'];\n var value = true;\n\n var chosen = util.topMost(pile, 'chosen');\n if (typeof chosen === 'boolean') {\n value = chosen;\n } else if ((typeof chosen === 'undefined' ? 'undefined' : (0, _typeof3['default'])(chosen)) === 'object') {\n if (allowed.indexOf(subOption) === -1) {\n throw new Error('choosify: subOption \\'' + subOption + '\\' should be one of ' + \"'\" + allowed.join(\"', '\") + \"'\");\n }\n\n var chosenEdge = util.topMost(pile, ['chosen', subOption]);\n if (typeof chosenEdge === 'boolean' || typeof chosenEdge === 'function') {\n value = chosenEdge;\n }\n }\n\n return value;\n }\n\n /**\r\n * Check if the point falls within the given rectangle.\r\n *\r\n * @param {rect} rect\r\n * @param {point} point\r\n * @param {rotationPoint} [rotationPoint] if specified, the rotation that applies to the rectangle.\r\n * @returns {boolean} true if point within rectangle, false otherwise\r\n * @static\r\n */\n\n }, {\n key: 'pointInRect',\n value: function pointInRect(rect, point, rotationPoint) {\n if (rect.width <= 0 || rect.height <= 0) {\n return false; // early out\n }\n\n if (rotationPoint !== undefined) {\n // Rotate the point the same amount as the rectangle\n var tmp = {\n x: point.x - rotationPoint.x,\n y: point.y - rotationPoint.y\n };\n\n if (rotationPoint.angle !== 0) {\n // In order to get the coordinates the same, you need to \n // rotate in the reverse direction\n var angle = -rotationPoint.angle;\n\n var tmp2 = {\n x: Math.cos(angle) * tmp.x - Math.sin(angle) * tmp.y,\n y: Math.sin(angle) * tmp.x + Math.cos(angle) * tmp.y\n };\n point = tmp2;\n } else {\n point = tmp;\n }\n\n // Note that if a rotation is specified, the rectangle coordinates\n // are **not* the full canvas coordinates. They are relative to the\n // rotationPoint. Hence, the point coordinates need not be translated\n // back in this case.\n }\n\n var right = rect.x + rect.width;\n var bottom = rect.y + rect.width;\n\n return rect.left < point.x && right > point.x && rect.top < point.y && bottom > point.y;\n }\n\n /**\r\n * Check if given value is acceptable as a label text.\r\n *\r\n * @param {*} text value to check; can be anything at this point\r\n * @returns {boolean} true if valid label value, false otherwise\r\n */\n\n }, {\n key: 'isValidLabel',\n value: function isValidLabel(text) {\n // Note that this is quite strict: types that *might* be converted to string are disallowed\n return typeof text === 'string' && text !== '';\n }\n }]);\n return ComponentUtil;\n}();\n\nexports['default'] = ComponentUtil;\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(125);\nvar global = __webpack_require__(18);\nvar hide = __webpack_require__(26);\nvar Iterators = __webpack_require__(31);\nvar TO_STRING_TAG = __webpack_require__(13)('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports) {\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports) {\n\nmodule.exports = true;\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(32);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(27);\nvar dPs = __webpack_require__(130);\nvar enumBugKeys = __webpack_require__(58);\nvar IE_PROTO = __webpack_require__(56)('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(82)('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(134).appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports) {\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(57)('keys');\nvar uid = __webpack_require__(40);\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(18);\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function (key) {\n return store[key] || (store[key] = {});\n};\n\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar def = __webpack_require__(20).f;\nvar has = __webpack_require__(22);\nvar TAG = __webpack_require__(13)('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $at = __webpack_require__(135)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n__webpack_require__(79)(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports.f = __webpack_require__(13);\n\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(18);\nvar core = __webpack_require__(7);\nvar LIBRARY = __webpack_require__(52);\nvar wksExt = __webpack_require__(61);\nvar defineProperty = __webpack_require__(20).f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports) {\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar moment = __webpack_require__(9);\nvar Component = __webpack_require__(16);\nvar DateUtil = __webpack_require__(36);\n\n/**\r\n * A Range controls a numeric range with a start and end value.\r\n * The Range adjusts the range based on mouse events or programmatic changes,\r\n * and triggers events when the range is changing or has been changed.\r\n * @param {{dom: Object, domProps: Object, emitter: Emitter}} body\r\n * @param {Object} [options] See description at Range.setOptions\r\n * @constructor Range\r\n * @extends Component\r\n */\nfunction Range(body, options) {\n var now = moment().hours(0).minutes(0).seconds(0).milliseconds(0);\n var start = now.clone().add(-3, 'days').valueOf();\n var end = now.clone().add(3, 'days').valueOf();\n this.millisecondsPerPixelCache = undefined;\n\n if (options === undefined) {\n this.start = start;\n this.end = end;\n } else {\n this.start = options.start || start;\n this.end = options.end || end;\n }\n\n this.rolling = false;\n\n this.body = body;\n this.deltaDifference = 0;\n this.scaleOffset = 0;\n this.startToFront = false;\n this.endToFront = true;\n\n // default options\n this.defaultOptions = {\n rtl: false,\n start: null,\n end: null,\n moment: moment,\n direction: 'horizontal', // 'horizontal' or 'vertical'\n moveable: true,\n zoomable: true,\n min: null,\n max: null,\n zoomMin: 10, // milliseconds\n zoomMax: 1000 * 60 * 60 * 24 * 365 * 10000, // milliseconds\n rollingMode: {\n follow: false,\n offset: 0.5\n }\n };\n this.options = util.extend({}, this.defaultOptions);\n this.props = {\n touch: {}\n };\n this.animationTimer = null;\n\n // drag listeners for dragging\n this.body.emitter.on('panstart', this._onDragStart.bind(this));\n this.body.emitter.on('panmove', this._onDrag.bind(this));\n this.body.emitter.on('panend', this._onDragEnd.bind(this));\n\n // mouse wheel for zooming\n this.body.emitter.on('mousewheel', this._onMouseWheel.bind(this));\n\n // pinch to zoom\n this.body.emitter.on('touch', this._onTouch.bind(this));\n this.body.emitter.on('pinch', this._onPinch.bind(this));\n\n // on click of rolling mode button\n this.body.dom.rollingModeBtn.addEventListener('click', this.startRolling.bind(this));\n\n this.setOptions(options);\n}\n\nRange.prototype = new Component();\n\n/**\r\n * Set options for the range controller\r\n * @param {Object} options Available options:\r\n * {number | Date | String} start Start date for the range\r\n * {number | Date | String} end End date for the range\r\n * {number} min Minimum value for start\r\n * {number} max Maximum value for end\r\n * {number} zoomMin Set a minimum value for\r\n * (end - start).\r\n * {number} zoomMax Set a maximum value for\r\n * (end - start).\r\n * {boolean} moveable Enable moving of the range\r\n * by dragging. True by default\r\n * {boolean} zoomable Enable zooming of the range\r\n * by pinching/scrolling. True by default\r\n */\nRange.prototype.setOptions = function (options) {\n if (options) {\n // copy the options that we know\n var fields = ['animation', 'direction', 'min', 'max', 'zoomMin', 'zoomMax', 'moveable', 'zoomable', 'moment', 'activate', 'hiddenDates', 'zoomKey', 'rtl', 'showCurrentTime', 'rollingMode', 'horizontalScroll'];\n util.selectiveExtend(fields, this.options, options);\n\n if (options.rollingMode && options.rollingMode.follow) {\n this.startRolling();\n }\n if ('start' in options || 'end' in options) {\n // apply a new range. both start and end are optional\n this.setRange(options.start, options.end);\n }\n }\n};\n\n/**\r\n * Test whether direction has a valid value\r\n * @param {string} direction 'horizontal' or 'vertical'\r\n */\nfunction validateDirection(direction) {\n if (direction != 'horizontal' && direction != 'vertical') {\n throw new TypeError('Unknown direction \"' + direction + '\". ' + 'Choose \"horizontal\" or \"vertical\".');\n }\n}\n\n/**\r\n * Start auto refreshing the current time bar\r\n */\nRange.prototype.startRolling = function () {\n var me = this;\n\n /**\r\n * Updates the current time.\r\n */\n function update() {\n me.stopRolling();\n me.rolling = true;\n\n var interval = me.end - me.start;\n var t = util.convert(new Date(), 'Date').valueOf();\n\n var start = t - interval * me.options.rollingMode.offset;\n var end = t + interval * (1 - me.options.rollingMode.offset);\n\n var options = {\n animation: false\n };\n me.setRange(start, end, options);\n\n // determine interval to refresh\n var scale = me.conversion(me.body.domProps.center.width).scale;\n interval = 1 / scale / 10;\n if (interval < 30) interval = 30;\n if (interval > 1000) interval = 1000;\n\n me.body.dom.rollingModeBtn.style.visibility = \"hidden\";\n // start a renderTimer to adjust for the new time\n me.currentTimeTimer = setTimeout(update, interval);\n }\n\n update();\n};\n\n/**\r\n * Stop auto refreshing the current time bar\r\n */\nRange.prototype.stopRolling = function () {\n if (this.currentTimeTimer !== undefined) {\n clearTimeout(this.currentTimeTimer);\n this.rolling = false;\n this.body.dom.rollingModeBtn.style.visibility = \"visible\";\n }\n};\n\n/**\r\n * Set a new start and end range\r\n * @param {Date | number | string} [start]\r\n * @param {Date | number | string} [end]\r\n * @param {Object} options Available options:\r\n * {boolean | {duration: number, easingFunction: string}} [animation=false]\r\n * If true, the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * {boolean} [byUser=false]\r\n * {Event} event Mouse event\r\n * @param {Function} callback a callback function to be executed at the end of this function \r\n * @param {Function} frameCallback a callback function executed each frame of the range animation.\r\n * The callback will be passed three parameters:\r\n * {number} easeCoefficient an easing coefficent\r\n * {boolean} willDraw If true the caller will redraw after the callback completes\r\n * {boolean} done If true then animation is ending after the current frame\r\n */\n\nRange.prototype.setRange = function (start, end, options, callback, frameCallback) {\n if (!options) {\n options = {};\n }\n if (options.byUser !== true) {\n options.byUser = false;\n }\n var me = this;\n var finalStart = start != undefined ? util.convert(start, 'Date').valueOf() : null;\n var finalEnd = end != undefined ? util.convert(end, 'Date').valueOf() : null;\n this._cancelAnimation();\n this.millisecondsPerPixelCache = undefined;\n\n if (options.animation) {\n // true or an Object\n var initStart = this.start;\n var initEnd = this.end;\n var duration = (0, _typeof3['default'])(options.animation) === 'object' && 'duration' in options.animation ? options.animation.duration : 500;\n var easingName = (0, _typeof3['default'])(options.animation) === 'object' && 'easingFunction' in options.animation ? options.animation.easingFunction : 'easeInOutQuad';\n var easingFunction = util.easingFunctions[easingName];\n if (!easingFunction) {\n throw new Error('Unknown easing function ' + (0, _stringify2['default'])(easingName) + '. ' + 'Choose from: ' + (0, _keys2['default'])(util.easingFunctions).join(', '));\n }\n\n var initTime = new Date().valueOf();\n var anyChanged = false;\n\n var next = function next() {\n if (!me.props.touch.dragging) {\n var now = new Date().valueOf();\n var time = now - initTime;\n var ease = easingFunction(time / duration);\n var done = time > duration;\n var s = done || finalStart === null ? finalStart : initStart + (finalStart - initStart) * ease;\n var e = done || finalEnd === null ? finalEnd : initEnd + (finalEnd - initEnd) * ease;\n\n changed = me._applyRange(s, e);\n DateUtil.updateHiddenDates(me.options.moment, me.body, me.options.hiddenDates);\n anyChanged = anyChanged || changed;\n\n var params = {\n start: new Date(me.start),\n end: new Date(me.end),\n byUser: options.byUser,\n event: options.event\n };\n\n if (frameCallback) {\n frameCallback(ease, changed, done);\n }\n\n if (changed) {\n me.body.emitter.emit('rangechange', params);\n }\n\n if (done) {\n if (anyChanged) {\n me.body.emitter.emit('rangechanged', params);\n if (callback) {\n return callback();\n }\n }\n } else {\n // animate with as high as possible frame rate, leave 20 ms in between\n // each to prevent the browser from blocking\n me.animationTimer = setTimeout(next, 20);\n }\n }\n };\n\n return next();\n } else {\n var changed = this._applyRange(finalStart, finalEnd);\n DateUtil.updateHiddenDates(this.options.moment, this.body, this.options.hiddenDates);\n if (changed) {\n var params = {\n start: new Date(this.start),\n end: new Date(this.end),\n byUser: options.byUser,\n event: options.event\n };\n\n this.body.emitter.emit('rangechange', params);\n clearTimeout(me.timeoutID);\n me.timeoutID = setTimeout(function () {\n me.body.emitter.emit('rangechanged', params);\n }, 200);\n if (callback) {\n return callback();\n }\n }\n }\n};\n\n/**\r\n * Get the number of milliseconds per pixel.\r\n *\r\n * @returns {undefined|number}\r\n */\nRange.prototype.getMillisecondsPerPixel = function () {\n if (this.millisecondsPerPixelCache === undefined) {\n this.millisecondsPerPixelCache = (this.end - this.start) / this.body.dom.center.clientWidth;\n }\n return this.millisecondsPerPixelCache;\n};\n\n/**\r\n * Stop an animation\r\n * @private\r\n */\nRange.prototype._cancelAnimation = function () {\n if (this.animationTimer) {\n clearTimeout(this.animationTimer);\n this.animationTimer = null;\n }\n};\n\n/**\r\n * Set a new start and end range. This method is the same as setRange, but\r\n * does not trigger a range change and range changed event, and it returns\r\n * true when the range is changed\r\n * @param {number} [start]\r\n * @param {number} [end]\r\n * @return {boolean} changed\r\n * @private\r\n */\nRange.prototype._applyRange = function (start, end) {\n var newStart = start != null ? util.convert(start, 'Date').valueOf() : this.start,\n newEnd = end != null ? util.convert(end, 'Date').valueOf() : this.end,\n max = this.options.max != null ? util.convert(this.options.max, 'Date').valueOf() : null,\n min = this.options.min != null ? util.convert(this.options.min, 'Date').valueOf() : null,\n diff;\n\n // check for valid number\n if (isNaN(newStart) || newStart === null) {\n throw new Error('Invalid start \"' + start + '\"');\n }\n if (isNaN(newEnd) || newEnd === null) {\n throw new Error('Invalid end \"' + end + '\"');\n }\n\n // prevent end < start\n if (newEnd < newStart) {\n newEnd = newStart;\n }\n\n // prevent start < min\n if (min !== null) {\n if (newStart < min) {\n diff = min - newStart;\n newStart += diff;\n newEnd += diff;\n\n // prevent end > max\n if (max != null) {\n if (newEnd > max) {\n newEnd = max;\n }\n }\n }\n }\n\n // prevent end > max\n if (max !== null) {\n if (newEnd > max) {\n diff = newEnd - max;\n newStart -= diff;\n newEnd -= diff;\n\n // prevent start < min\n if (min != null) {\n if (newStart < min) {\n newStart = min;\n }\n }\n }\n }\n\n // prevent (end-start) < zoomMin\n if (this.options.zoomMin !== null) {\n var zoomMin = parseFloat(this.options.zoomMin);\n if (zoomMin < 0) {\n zoomMin = 0;\n }\n if (newEnd - newStart < zoomMin) {\n // compensate for a scale of 0.5 ms\n var compensation = 0.5;\n if (this.end - this.start === zoomMin && newStart >= this.start - compensation && newEnd <= this.end) {\n // ignore this action, we are already zoomed to the minimum\n newStart = this.start;\n newEnd = this.end;\n } else {\n // zoom to the minimum\n diff = zoomMin - (newEnd - newStart);\n newStart -= diff / 2;\n newEnd += diff / 2;\n }\n }\n }\n\n // prevent (end-start) > zoomMax\n if (this.options.zoomMax !== null) {\n var zoomMax = parseFloat(this.options.zoomMax);\n if (zoomMax < 0) {\n zoomMax = 0;\n }\n\n if (newEnd - newStart > zoomMax) {\n if (this.end - this.start === zoomMax && newStart < this.start && newEnd > this.end) {\n // ignore this action, we are already zoomed to the maximum\n newStart = this.start;\n newEnd = this.end;\n } else {\n // zoom to the maximum\n diff = newEnd - newStart - zoomMax;\n newStart += diff / 2;\n newEnd -= diff / 2;\n }\n }\n }\n\n var changed = this.start != newStart || this.end != newEnd;\n\n // if the new range does NOT overlap with the old range, emit checkRangedItems to avoid not showing ranged items (ranged meaning has end time, not necessarily of type Range)\n if (!(newStart >= this.start && newStart <= this.end || newEnd >= this.start && newEnd <= this.end) && !(this.start >= newStart && this.start <= newEnd || this.end >= newStart && this.end <= newEnd)) {\n this.body.emitter.emit('checkRangedItems');\n }\n\n this.start = newStart;\n this.end = newEnd;\n return changed;\n};\n\n/**\r\n * Retrieve the current range.\r\n * @return {Object} An object with start and end properties\r\n */\nRange.prototype.getRange = function () {\n return {\n start: this.start,\n end: this.end\n };\n};\n\n/**\r\n * Calculate the conversion offset and scale for current range, based on\r\n * the provided width\r\n * @param {number} width\r\n * @param {number} [totalHidden=0]\r\n * @returns {{offset: number, scale: number}} conversion\r\n */\nRange.prototype.conversion = function (width, totalHidden) {\n return Range.conversion(this.start, this.end, width, totalHidden);\n};\n\n/**\r\n * Static method to calculate the conversion offset and scale for a range,\r\n * based on the provided start, end, and width\r\n * @param {number} start\r\n * @param {number} end\r\n * @param {number} width\r\n * @param {number} [totalHidden=0]\r\n * @returns {{offset: number, scale: number}} conversion\r\n */\nRange.conversion = function (start, end, width, totalHidden) {\n if (totalHidden === undefined) {\n totalHidden = 0;\n }\n if (width != 0 && end - start != 0) {\n return {\n offset: start,\n scale: width / (end - start - totalHidden)\n };\n } else {\n return {\n offset: 0,\n scale: 1\n };\n }\n};\n\n/**\r\n * Start dragging horizontally or vertically\r\n * @param {Event} event\r\n * @private\r\n */\nRange.prototype._onDragStart = function (event) {\n this.deltaDifference = 0;\n this.previousDelta = 0;\n\n // only allow dragging when configured as movable\n if (!this.options.moveable) return;\n\n // only start dragging when the mouse is inside the current range\n if (!this._isInsideRange(event)) return;\n\n // refuse to drag when we where pinching to prevent the timeline make a jump\n // when releasing the fingers in opposite order from the touch screen\n if (!this.props.touch.allowDragging) return;\n\n this.stopRolling();\n\n this.props.touch.start = this.start;\n this.props.touch.end = this.end;\n this.props.touch.dragging = true;\n\n if (this.body.dom.root) {\n this.body.dom.root.style.cursor = 'move';\n }\n};\n\n/**\r\n * Perform dragging operation\r\n * @param {Event} event\r\n * @private\r\n */\nRange.prototype._onDrag = function (event) {\n if (!event) return;\n\n if (!this.props.touch.dragging) return;\n\n // only allow dragging when configured as movable\n if (!this.options.moveable) return;\n\n // TODO: this may be redundant in hammerjs2\n // refuse to drag when we where pinching to prevent the timeline make a jump\n // when releasing the fingers in opposite order from the touch screen\n if (!this.props.touch.allowDragging) return;\n\n var direction = this.options.direction;\n validateDirection(direction);\n var delta = direction == 'horizontal' ? event.deltaX : event.deltaY;\n delta -= this.deltaDifference;\n var interval = this.props.touch.end - this.props.touch.start;\n\n // normalize dragging speed if cutout is in between.\n var duration = DateUtil.getHiddenDurationBetween(this.body.hiddenDates, this.start, this.end);\n interval -= duration;\n\n var width = direction == 'horizontal' ? this.body.domProps.center.width : this.body.domProps.center.height;\n var diffRange;\n if (this.options.rtl) {\n diffRange = delta / width * interval;\n } else {\n diffRange = -delta / width * interval;\n }\n\n var newStart = this.props.touch.start + diffRange;\n var newEnd = this.props.touch.end + diffRange;\n\n // snapping times away from hidden zones\n var safeStart = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newStart, this.previousDelta - delta, true);\n var safeEnd = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newEnd, this.previousDelta - delta, true);\n if (safeStart != newStart || safeEnd != newEnd) {\n this.deltaDifference += delta;\n this.props.touch.start = safeStart;\n this.props.touch.end = safeEnd;\n this._onDrag(event);\n return;\n }\n\n this.previousDelta = delta;\n this._applyRange(newStart, newEnd);\n\n var startDate = new Date(this.start);\n var endDate = new Date(this.end);\n\n // fire a rangechange event\n this.body.emitter.emit('rangechange', {\n start: startDate,\n end: endDate,\n byUser: true,\n event: event\n });\n\n // fire a panmove event\n this.body.emitter.emit('panmove');\n};\n\n/**\r\n * Stop dragging operation\r\n * @param {event} event\r\n * @private\r\n */\nRange.prototype._onDragEnd = function (event) {\n if (!this.props.touch.dragging) return;\n\n // only allow dragging when configured as movable\n if (!this.options.moveable) return;\n\n // TODO: this may be redundant in hammerjs2\n // refuse to drag when we where pinching to prevent the timeline make a jump\n // when releasing the fingers in opposite order from the touch screen\n if (!this.props.touch.allowDragging) return;\n\n this.props.touch.dragging = false;\n if (this.body.dom.root) {\n this.body.dom.root.style.cursor = 'auto';\n }\n\n // fire a rangechanged event\n this.body.emitter.emit('rangechanged', {\n start: new Date(this.start),\n end: new Date(this.end),\n byUser: true,\n event: event\n });\n};\n\n/**\r\n * Event handler for mouse wheel event, used to zoom\r\n * Code from http://adomas.org/javascript-mouse-wheel/\r\n * @param {Event} event\r\n * @private\r\n */\nRange.prototype._onMouseWheel = function (event) {\n // retrieve delta\n var delta = 0;\n if (event.wheelDelta) {\n /* IE/Opera. */\n delta = event.wheelDelta / 120;\n } else if (event.detail) {\n /* Mozilla case. */\n // In Mozilla, sign of delta is different than in IE.\n // Also, delta is multiple of 3.\n delta = -event.detail / 3;\n }\n\n // don't allow zoom when the according key is pressed and the zoomKey option or not zoomable but movable\n if (this.options.zoomKey && !event[this.options.zoomKey] && this.options.zoomable || !this.options.zoomable && this.options.moveable) {\n return;\n }\n\n // only allow zooming when configured as zoomable and moveable\n if (!(this.options.zoomable && this.options.moveable)) return;\n\n // only zoom when the mouse is inside the current range\n if (!this._isInsideRange(event)) return;\n\n // If delta is nonzero, handle it.\n // Basically, delta is now positive if wheel was scrolled up,\n // and negative, if wheel was scrolled down.\n if (delta) {\n // perform the zoom action. Delta is normally 1 or -1\n\n // adjust a negative delta such that zooming in with delta 0.1\n // equals zooming out with a delta -0.1\n var scale;\n if (delta < 0) {\n scale = 1 - delta / 5;\n } else {\n scale = 1 / (1 + delta / 5);\n }\n\n // calculate center, the date to zoom around\n var pointerDate;\n if (this.rolling) {\n pointerDate = this.start + (this.end - this.start) * this.options.rollingMode.offset;\n } else {\n var pointer = this.getPointer({ x: event.clientX, y: event.clientY }, this.body.dom.center);\n pointerDate = this._pointerToDate(pointer);\n }\n this.zoom(scale, pointerDate, delta, event);\n\n // Prevent default actions caused by mouse wheel\n // (else the page and timeline both scroll)\n event.preventDefault();\n }\n};\n\n/**\r\n * Start of a touch gesture\r\n * @param {Event} event\r\n * @private\r\n */\nRange.prototype._onTouch = function (event) {\n // eslint-disable-line no-unused-vars\n this.props.touch.start = this.start;\n this.props.touch.end = this.end;\n this.props.touch.allowDragging = true;\n this.props.touch.center = null;\n this.scaleOffset = 0;\n this.deltaDifference = 0;\n // Disable the browser default handling of this event.\n util.preventDefault(event);\n};\n\n/**\r\n * Handle pinch event\r\n * @param {Event} event\r\n * @private\r\n */\nRange.prototype._onPinch = function (event) {\n // only allow zooming when configured as zoomable and moveable\n if (!(this.options.zoomable && this.options.moveable)) return;\n\n // Disable the browser default handling of this event.\n util.preventDefault(event);\n\n this.props.touch.allowDragging = false;\n\n if (!this.props.touch.center) {\n this.props.touch.center = this.getPointer(event.center, this.body.dom.center);\n }\n\n this.stopRolling();\n\n var scale = 1 / (event.scale + this.scaleOffset);\n var centerDate = this._pointerToDate(this.props.touch.center);\n\n var hiddenDuration = DateUtil.getHiddenDurationBetween(this.body.hiddenDates, this.start, this.end);\n var hiddenDurationBefore = DateUtil.getHiddenDurationBefore(this.options.moment, this.body.hiddenDates, this, centerDate);\n var hiddenDurationAfter = hiddenDuration - hiddenDurationBefore;\n\n // calculate new start and end\n var newStart = centerDate - hiddenDurationBefore + (this.props.touch.start - (centerDate - hiddenDurationBefore)) * scale;\n var newEnd = centerDate + hiddenDurationAfter + (this.props.touch.end - (centerDate + hiddenDurationAfter)) * scale;\n\n // snapping times away from hidden zones\n this.startToFront = 1 - scale <= 0; // used to do the right auto correction with periodic hidden times\n this.endToFront = scale - 1 <= 0; // used to do the right auto correction with periodic hidden times\n\n var safeStart = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newStart, 1 - scale, true);\n var safeEnd = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newEnd, scale - 1, true);\n if (safeStart != newStart || safeEnd != newEnd) {\n this.props.touch.start = safeStart;\n this.props.touch.end = safeEnd;\n this.scaleOffset = 1 - event.scale;\n newStart = safeStart;\n newEnd = safeEnd;\n }\n\n var options = {\n animation: false,\n byUser: true,\n event: event\n };\n this.setRange(newStart, newEnd, options);\n\n this.startToFront = false; // revert to default\n this.endToFront = true; // revert to default\n};\n\n/**\r\n * Test whether the mouse from a mouse event is inside the visible window,\r\n * between the current start and end date\r\n * @param {Object} event\r\n * @return {boolean} Returns true when inside the visible window\r\n * @private\r\n */\nRange.prototype._isInsideRange = function (event) {\n // calculate the time where the mouse is, check whether inside\n // and no scroll action should happen.\n var clientX = event.center ? event.center.x : event.clientX;\n var x;\n if (this.options.rtl) {\n x = clientX - util.getAbsoluteLeft(this.body.dom.centerContainer);\n } else {\n x = util.getAbsoluteRight(this.body.dom.centerContainer) - clientX;\n }\n var time = this.body.util.toTime(x);\n\n return time >= this.start && time <= this.end;\n};\n\n/**\r\n * Helper function to calculate the center date for zooming\r\n * @param {{x: number, y: number}} pointer\r\n * @return {number} date\r\n * @private\r\n */\nRange.prototype._pointerToDate = function (pointer) {\n var conversion;\n var direction = this.options.direction;\n\n validateDirection(direction);\n\n if (direction == 'horizontal') {\n return this.body.util.toTime(pointer.x).valueOf();\n } else {\n var height = this.body.domProps.center.height;\n conversion = this.conversion(height);\n return pointer.y / conversion.scale + conversion.offset;\n }\n};\n\n/**\r\n * Get the pointer location relative to the location of the dom element\r\n * @param {{x: number, y: number}} touch\r\n * @param {Element} element HTML DOM element\r\n * @return {{x: number, y: number}} pointer\r\n * @private\r\n */\nRange.prototype.getPointer = function (touch, element) {\n if (this.options.rtl) {\n return {\n x: util.getAbsoluteRight(element) - touch.x,\n y: touch.y - util.getAbsoluteTop(element)\n };\n } else {\n return {\n x: touch.x - util.getAbsoluteLeft(element),\n y: touch.y - util.getAbsoluteTop(element)\n };\n }\n};\n\n/**\r\n * Zoom the range the given scale in or out. Start and end date will\r\n * be adjusted, and the timeline will be redrawn. You can optionally give a\r\n * date around which to zoom.\r\n * For example, try scale = 0.9 or 1.1\r\n * @param {number} scale Scaling factor. Values above 1 will zoom out,\r\n * values below 1 will zoom in.\r\n * @param {number} [center] Value representing a date around which will\r\n * be zoomed.\r\n * @param {number} delta\r\n * @param {Event} event\r\n */\nRange.prototype.zoom = function (scale, center, delta, event) {\n // if centerDate is not provided, take it half between start Date and end Date\n if (center == null) {\n center = (this.start + this.end) / 2;\n }\n\n var hiddenDuration = DateUtil.getHiddenDurationBetween(this.body.hiddenDates, this.start, this.end);\n var hiddenDurationBefore = DateUtil.getHiddenDurationBefore(this.options.moment, this.body.hiddenDates, this, center);\n var hiddenDurationAfter = hiddenDuration - hiddenDurationBefore;\n\n // calculate new start and end\n var newStart = center - hiddenDurationBefore + (this.start - (center - hiddenDurationBefore)) * scale;\n var newEnd = center + hiddenDurationAfter + (this.end - (center + hiddenDurationAfter)) * scale;\n\n // snapping times away from hidden zones\n this.startToFront = delta > 0 ? false : true; // used to do the right autocorrection with periodic hidden times\n this.endToFront = -delta > 0 ? false : true; // used to do the right autocorrection with periodic hidden times\n var safeStart = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newStart, delta, true);\n var safeEnd = DateUtil.snapAwayFromHidden(this.body.hiddenDates, newEnd, -delta, true);\n if (safeStart != newStart || safeEnd != newEnd) {\n newStart = safeStart;\n newEnd = safeEnd;\n }\n\n var options = {\n animation: false,\n byUser: true,\n event: event\n };\n this.setRange(newStart, newEnd, options);\n\n this.startToFront = false; // revert to default\n this.endToFront = true; // revert to default\n};\n\n/**\r\n * Move the range with a given delta to the left or right. Start and end\r\n * value will be adjusted. For example, try delta = 0.1 or -0.1\r\n * @param {number} delta Moving amount. Positive value will move right,\r\n * negative value will move left\r\n */\nRange.prototype.move = function (delta) {\n // zoom start Date and end Date relative to the centerDate\n var diff = this.end - this.start;\n\n // apply new values\n var newStart = this.start + diff * delta;\n var newEnd = this.end + diff * delta;\n\n // TODO: reckon with min and max range\n\n this.start = newStart;\n this.end = newEnd;\n};\n\n/**\r\n * Move the range to a new center point\r\n * @param {number} moveTo New center point of the range\r\n */\nRange.prototype.moveTo = function (moveTo) {\n var center = (this.start + this.end) / 2;\n\n var diff = center - moveTo;\n\n // calculate new start and end\n var newStart = this.start - diff;\n var newEnd = this.end - diff;\n\n var options = {\n animation: false,\n byUser: true,\n event: null\n };\n this.setRange(newStart, newEnd, options);\n};\n\nmodule.exports = Range;\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Emitter = __webpack_require__(44);\nvar Hammer = __webpack_require__(10);\nvar hammerUtil = __webpack_require__(37);\nvar util = __webpack_require__(2);\nvar TimeAxis = __webpack_require__(45);\nvar Activator = __webpack_require__(97);\nvar DateUtil = __webpack_require__(36);\nvar CustomTime = __webpack_require__(46);\n\n/**\r\n * Create a timeline visualization\r\n * @constructor Core\r\n */\nfunction Core() {}\n\n// turn Core into an event emitter\nEmitter(Core.prototype);\n\n/**\r\n * Create the main DOM for the Core: a root panel containing left, right,\r\n * top, bottom, content, and background panel.\r\n * @param {Element} container The container element where the Core will\r\n * be attached.\r\n * @protected\r\n */\nCore.prototype._create = function (container) {\n this.dom = {};\n\n this.dom.container = container;\n\n this.dom.root = document.createElement('div');\n this.dom.background = document.createElement('div');\n this.dom.backgroundVertical = document.createElement('div');\n this.dom.backgroundHorizontal = document.createElement('div');\n this.dom.centerContainer = document.createElement('div');\n this.dom.leftContainer = document.createElement('div');\n this.dom.rightContainer = document.createElement('div');\n this.dom.center = document.createElement('div');\n this.dom.left = document.createElement('div');\n this.dom.right = document.createElement('div');\n this.dom.top = document.createElement('div');\n this.dom.bottom = document.createElement('div');\n this.dom.shadowTop = document.createElement('div');\n this.dom.shadowBottom = document.createElement('div');\n this.dom.shadowTopLeft = document.createElement('div');\n this.dom.shadowBottomLeft = document.createElement('div');\n this.dom.shadowTopRight = document.createElement('div');\n this.dom.shadowBottomRight = document.createElement('div');\n this.dom.rollingModeBtn = document.createElement('div');\n\n this.dom.root.className = 'vis-timeline';\n this.dom.background.className = 'vis-panel vis-background';\n this.dom.backgroundVertical.className = 'vis-panel vis-background vis-vertical';\n this.dom.backgroundHorizontal.className = 'vis-panel vis-background vis-horizontal';\n this.dom.centerContainer.className = 'vis-panel vis-center';\n this.dom.leftContainer.className = 'vis-panel vis-left';\n this.dom.rightContainer.className = 'vis-panel vis-right';\n this.dom.top.className = 'vis-panel vis-top';\n this.dom.bottom.className = 'vis-panel vis-bottom';\n this.dom.left.className = 'vis-content';\n this.dom.center.className = 'vis-content';\n this.dom.right.className = 'vis-content';\n this.dom.shadowTop.className = 'vis-shadow vis-top';\n this.dom.shadowBottom.className = 'vis-shadow vis-bottom';\n this.dom.shadowTopLeft.className = 'vis-shadow vis-top';\n this.dom.shadowBottomLeft.className = 'vis-shadow vis-bottom';\n this.dom.shadowTopRight.className = 'vis-shadow vis-top';\n this.dom.shadowBottomRight.className = 'vis-shadow vis-bottom';\n this.dom.rollingModeBtn.className = 'vis-rolling-mode-btn';\n\n this.dom.root.appendChild(this.dom.background);\n this.dom.root.appendChild(this.dom.backgroundVertical);\n this.dom.root.appendChild(this.dom.backgroundHorizontal);\n this.dom.root.appendChild(this.dom.centerContainer);\n this.dom.root.appendChild(this.dom.leftContainer);\n this.dom.root.appendChild(this.dom.rightContainer);\n this.dom.root.appendChild(this.dom.top);\n this.dom.root.appendChild(this.dom.bottom);\n this.dom.root.appendChild(this.dom.bottom);\n this.dom.root.appendChild(this.dom.rollingModeBtn);\n\n this.dom.centerContainer.appendChild(this.dom.center);\n this.dom.leftContainer.appendChild(this.dom.left);\n this.dom.rightContainer.appendChild(this.dom.right);\n this.dom.centerContainer.appendChild(this.dom.shadowTop);\n this.dom.centerContainer.appendChild(this.dom.shadowBottom);\n this.dom.leftContainer.appendChild(this.dom.shadowTopLeft);\n this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft);\n this.dom.rightContainer.appendChild(this.dom.shadowTopRight);\n this.dom.rightContainer.appendChild(this.dom.shadowBottomRight);\n\n // size properties of each of the panels\n this.props = {\n root: {},\n background: {},\n centerContainer: {},\n leftContainer: {},\n rightContainer: {},\n center: {},\n left: {},\n right: {},\n top: {},\n bottom: {},\n border: {},\n scrollTop: 0,\n scrollTopMin: 0\n };\n\n this.on('rangechange', function () {\n if (this.initialDrawDone === true) {\n this._redraw();\n }\n }.bind(this));\n this.on('rangechanged', function () {\n if (!this.initialRangeChangeDone) {\n this.initialRangeChangeDone = true;\n }\n }.bind(this));\n this.on('touch', this._onTouch.bind(this));\n this.on('panmove', this._onDrag.bind(this));\n\n var me = this;\n this._origRedraw = this._redraw.bind(this);\n this._redraw = util.throttle(this._origRedraw);\n\n this.on('_change', function (properties) {\n if (me.itemSet && me.itemSet.initialItemSetDrawn && properties && properties.queue == true) {\n me._redraw();\n } else {\n me._origRedraw();\n }\n });\n\n // create event listeners for all interesting events, these events will be\n // emitted via emitter\n this.hammer = new Hammer(this.dom.root);\n var pinchRecognizer = this.hammer.get('pinch').set({ enable: true });\n hammerUtil.disablePreventDefaultVertically(pinchRecognizer);\n this.hammer.get('pan').set({ threshold: 5, direction: Hammer.DIRECTION_HORIZONTAL });\n this.listeners = {};\n\n var events = ['tap', 'doubletap', 'press', 'pinch', 'pan', 'panstart', 'panmove', 'panend'\n // TODO: cleanup\n //'touch', 'pinch',\n //'tap', 'doubletap', 'hold',\n //'dragstart', 'drag', 'dragend',\n //'mousewheel', 'DOMMouseScroll' // DOMMouseScroll is needed for Firefox\n ];\n events.forEach(function (type) {\n var listener = function listener(event) {\n if (me.isActive()) {\n me.emit(type, event);\n }\n };\n me.hammer.on(type, listener);\n me.listeners[type] = listener;\n });\n\n // emulate a touch event (emitted before the start of a pan, pinch, tap, or press)\n hammerUtil.onTouch(this.hammer, function (event) {\n me.emit('touch', event);\n }.bind(this));\n\n // emulate a release event (emitted after a pan, pinch, tap, or press)\n hammerUtil.onRelease(this.hammer, function (event) {\n me.emit('release', event);\n }.bind(this));\n\n /**\r\n *\r\n * @param {WheelEvent} event\r\n */\n function onMouseWheel(event) {\n if (this.isActive()) {\n this.emit('mousewheel', event);\n }\n\n // deltaX and deltaY normalization from jquery.mousewheel.js\n var deltaX = 0;\n var deltaY = 0;\n\n // Old school scrollwheel delta\n if ('detail' in event) {\n deltaY = event.detail * -1;\n }\n if ('wheelDelta' in event) {\n deltaY = event.wheelDelta;\n }\n if ('wheelDeltaY' in event) {\n deltaY = event.wheelDeltaY;\n }\n if ('wheelDeltaX' in event) {\n deltaX = event.wheelDeltaX * -1;\n }\n\n // Firefox < 17 horizontal scrolling related to DOMMouseScroll event\n if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n deltaX = deltaY * -1;\n deltaY = 0;\n }\n\n // New school wheel delta (wheel event)\n if ('deltaY' in event) {\n deltaY = event.deltaY * -1;\n }\n if ('deltaX' in event) {\n deltaX = event.deltaX;\n }\n\n // prevent scrolling when zoomKey defined or activated\n if (!this.options.zoomKey || event[this.options.zoomKey]) return;\n\n // Prevent default actions caused by mouse wheel\n // (else the page and timeline both scroll)\n event.preventDefault();\n\n if (this.options.verticalScroll && Math.abs(deltaY) >= Math.abs(deltaX)) {\n var current = this.props.scrollTop;\n var adjusted = current + deltaY;\n\n if (this.isActive()) {\n this._setScrollTop(adjusted);\n this._redraw();\n this.emit('scroll', event);\n }\n } else if (this.options.horizontalScroll) {\n var delta = Math.abs(deltaX) >= Math.abs(deltaY) ? deltaX : deltaY;\n\n // calculate a single scroll jump relative to the range scale\n var diff = delta / 120 * (this.range.end - this.range.start) / 20;\n // calculate new start and end\n var newStart = this.range.start + diff;\n var newEnd = this.range.end + diff;\n\n var options = {\n animation: false,\n byUser: true,\n event: event\n };\n this.range.setRange(newStart, newEnd, options);\n }\n }\n\n if (this.dom.centerContainer.addEventListener) {\n // IE9, Chrome, Safari, Opera\n this.dom.centerContainer.addEventListener(\"mousewheel\", onMouseWheel.bind(this), false);\n // Firefox\n this.dom.centerContainer.addEventListener(\"DOMMouseScroll\", onMouseWheel.bind(this), false);\n } else {\n // IE 6/7/8\n this.dom.centerContainer.attachEvent(\"onmousewheel\", onMouseWheel.bind(this));\n }\n\n /**\r\n *\r\n * @param {scroll} event\r\n */\n function onMouseScrollSide(event) {\n if (!me.options.verticalScroll) return;\n event.preventDefault();\n if (me.isActive()) {\n var adjusted = -event.target.scrollTop;\n me._setScrollTop(adjusted);\n me._redraw();\n me.emit('scrollSide', event);\n }\n }\n\n this.dom.left.parentNode.addEventListener('scroll', onMouseScrollSide.bind(this));\n this.dom.right.parentNode.addEventListener('scroll', onMouseScrollSide.bind(this));\n\n var itemAddedToTimeline = false;\n\n /**\r\n *\r\n * @param {dragover} event\r\n * @returns {boolean}\r\n */\n function handleDragOver(event) {\n if (event.preventDefault) {\n event.preventDefault(); // Necessary. Allows us to drop.\n }\n\n // make sure your target is a vis element\n if (!event.target.className.indexOf(\"vis\") > -1) return;\n\n // make sure only one item is added every time you're over the timeline\n if (itemAddedToTimeline) return;\n\n event.dataTransfer.dropEffect = 'move';\n itemAddedToTimeline = true;\n return false;\n }\n\n /**\r\n *\r\n * @param {drop} event\r\n * @returns {boolean}\r\n */\n function handleDrop(event) {\n // prevent redirect to blank page - Firefox\n if (event.preventDefault) {\n event.preventDefault();\n }\n if (event.stopPropagation) {\n event.stopPropagation();\n }\n // return when dropping non-vis items\n try {\n var itemData = JSON.parse(event.dataTransfer.getData(\"text\"));\n if (!itemData || !itemData.content) return;\n } catch (err) {\n return false;\n }\n\n itemAddedToTimeline = false;\n event.center = {\n x: event.clientX,\n y: event.clientY\n };\n\n if (itemData.target !== 'item') {\n me.itemSet._onAddItem(event);\n } else {\n me.itemSet._onDropObjectOnItem(event);\n }\n me.emit('drop', me.getEventProperties(event));\n return false;\n }\n\n this.dom.center.addEventListener('dragover', handleDragOver.bind(this), false);\n this.dom.center.addEventListener('drop', handleDrop.bind(this), false);\n\n this.customTimes = [];\n\n // store state information needed for touch events\n this.touch = {};\n\n this.redrawCount = 0;\n this.initialDrawDone = false;\n this.initialRangeChangeDone = false;\n\n // attach the root panel to the provided container\n if (!container) throw new Error('No container provided');\n container.appendChild(this.dom.root);\n};\n\n/**\r\n * Set options. Options will be passed to all components loaded in the Timeline.\r\n * @param {Object} [options]\r\n * {String} orientation\r\n * Vertical orientation for the Timeline,\r\n * can be 'bottom' (default) or 'top'.\r\n * {string | number} width\r\n * Width for the timeline, a number in pixels or\r\n * a css string like '1000px' or '75%'. '100%' by default.\r\n * {string | number} height\r\n * Fixed height for the Timeline, a number in pixels or\r\n * a css string like '400px' or '75%'. If undefined,\r\n * The Timeline will automatically size such that\r\n * its contents fit.\r\n * {string | number} minHeight\r\n * Minimum height for the Timeline, a number in pixels or\r\n * a css string like '400px' or '75%'.\r\n * {string | number} maxHeight\r\n * Maximum height for the Timeline, a number in pixels or\r\n * a css string like '400px' or '75%'.\r\n * {number | Date | string} start\r\n * Start date for the visible window\r\n * {number | Date | string} end\r\n * End date for the visible window\r\n */\nCore.prototype.setOptions = function (options) {\n if (options) {\n // copy the known options\n var fields = ['width', 'height', 'minHeight', 'maxHeight', 'autoResize', 'start', 'end', 'clickToUse', 'dataAttributes', 'hiddenDates', 'locale', 'locales', 'moment', 'rtl', 'zoomKey', 'horizontalScroll', 'verticalScroll'];\n util.selectiveExtend(fields, this.options, options);\n\n this.dom.rollingModeBtn.style.visibility = 'hidden';\n\n if (this.options.rtl) {\n this.dom.container.style.direction = \"rtl\";\n this.dom.backgroundVertical.className = 'vis-panel vis-background vis-vertical-rtl';\n }\n\n if (this.options.verticalScroll) {\n if (this.options.rtl) {\n this.dom.rightContainer.className = 'vis-panel vis-right vis-vertical-scroll';\n } else {\n this.dom.leftContainer.className = 'vis-panel vis-left vis-vertical-scroll';\n }\n }\n\n if ((0, _typeof3['default'])(this.options.orientation) !== 'object') {\n this.options.orientation = { item: undefined, axis: undefined };\n }\n if ('orientation' in options) {\n if (typeof options.orientation === 'string') {\n this.options.orientation = {\n item: options.orientation,\n axis: options.orientation\n };\n } else if ((0, _typeof3['default'])(options.orientation) === 'object') {\n if ('item' in options.orientation) {\n this.options.orientation.item = options.orientation.item;\n }\n if ('axis' in options.orientation) {\n this.options.orientation.axis = options.orientation.axis;\n }\n }\n }\n\n if (this.options.orientation.axis === 'both') {\n if (!this.timeAxis2) {\n var timeAxis2 = this.timeAxis2 = new TimeAxis(this.body);\n timeAxis2.setOptions = function (options) {\n var _options = options ? util.extend({}, options) : {};\n _options.orientation = 'top'; // override the orientation option, always top\n TimeAxis.prototype.setOptions.call(timeAxis2, _options);\n };\n this.components.push(timeAxis2);\n }\n } else {\n if (this.timeAxis2) {\n var index = this.components.indexOf(this.timeAxis2);\n if (index !== -1) {\n this.components.splice(index, 1);\n }\n this.timeAxis2.destroy();\n this.timeAxis2 = null;\n }\n }\n\n // if the graph2d's drawPoints is a function delegate the callback to the onRender property\n if (typeof options.drawPoints == 'function') {\n options.drawPoints = {\n onRender: options.drawPoints\n };\n }\n\n if ('hiddenDates' in this.options) {\n DateUtil.convertHiddenOptions(this.options.moment, this.body, this.options.hiddenDates);\n }\n\n if ('clickToUse' in options) {\n if (options.clickToUse) {\n if (!this.activator) {\n this.activator = new Activator(this.dom.root);\n }\n } else {\n if (this.activator) {\n this.activator.destroy();\n delete this.activator;\n }\n }\n }\n\n if ('showCustomTime' in options) {\n throw new Error('Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])');\n }\n\n // enable/disable autoResize\n this._initAutoResize();\n }\n\n // propagate options to all components\n this.components.forEach(function (component) {\n return component.setOptions(options);\n });\n\n // enable/disable configure\n if ('configure' in options) {\n if (!this.configurator) {\n this.configurator = this._createConfigurator();\n }\n\n this.configurator.setOptions(options.configure);\n\n // collect the settings of all components, and pass them to the configuration system\n var appliedOptions = util.deepExtend({}, this.options);\n this.components.forEach(function (component) {\n util.deepExtend(appliedOptions, component.options);\n });\n this.configurator.setModuleOptions({ global: appliedOptions });\n }\n\n this._redraw();\n};\n\n/**\r\n * Returns true when the Timeline is active.\r\n * @returns {boolean}\r\n */\nCore.prototype.isActive = function () {\n return !this.activator || this.activator.active;\n};\n\n/**\r\n * Destroy the Core, clean up all DOM elements and event listeners.\r\n */\nCore.prototype.destroy = function () {\n // unbind datasets\n this.setItems(null);\n this.setGroups(null);\n\n // remove all event listeners\n this.off();\n\n // stop checking for changed size\n this._stopAutoResize();\n\n // remove from DOM\n if (this.dom.root.parentNode) {\n this.dom.root.parentNode.removeChild(this.dom.root);\n }\n this.dom = null;\n\n // remove Activator\n if (this.activator) {\n this.activator.destroy();\n delete this.activator;\n }\n\n // cleanup hammer touch events\n for (var event in this.listeners) {\n if (this.listeners.hasOwnProperty(event)) {\n delete this.listeners[event];\n }\n }\n this.listeners = null;\n this.hammer = null;\n\n // give all components the opportunity to cleanup\n this.components.forEach(function (component) {\n return component.destroy();\n });\n\n this.body = null;\n};\n\n/**\r\n * Set a custom time bar\r\n * @param {Date} time\r\n * @param {number} [id=undefined] Optional id of the custom time bar to be adjusted.\r\n */\nCore.prototype.setCustomTime = function (time, id) {\n var customTimes = this.customTimes.filter(function (component) {\n return id === component.options.id;\n });\n\n if (customTimes.length === 0) {\n throw new Error('No custom time bar found with id ' + (0, _stringify2['default'])(id));\n }\n\n if (customTimes.length > 0) {\n customTimes[0].setCustomTime(time);\n }\n};\n\n/**\r\n * Retrieve the current custom time.\r\n * @param {number} [id=undefined] Id of the custom time bar.\r\n * @return {Date | undefined} customTime\r\n */\nCore.prototype.getCustomTime = function (id) {\n var customTimes = this.customTimes.filter(function (component) {\n return component.options.id === id;\n });\n\n if (customTimes.length === 0) {\n throw new Error('No custom time bar found with id ' + (0, _stringify2['default'])(id));\n }\n return customTimes[0].getCustomTime();\n};\n\n/**\r\n * Set a custom title for the custom time bar.\r\n * @param {string} [title] Custom title\r\n * @param {number} [id=undefined] Id of the custom time bar.\r\n * @returns {*}\r\n */\nCore.prototype.setCustomTimeTitle = function (title, id) {\n var customTimes = this.customTimes.filter(function (component) {\n return component.options.id === id;\n });\n\n if (customTimes.length === 0) {\n throw new Error('No custom time bar found with id ' + (0, _stringify2['default'])(id));\n }\n if (customTimes.length > 0) {\n return customTimes[0].setCustomTitle(title);\n }\n};\n\n/**\r\n * Retrieve meta information from an event.\r\n * Should be overridden by classes extending Core\r\n * @param {Event} event\r\n * @return {Object} An object with related information.\r\n */\nCore.prototype.getEventProperties = function (event) {\n return { event: event };\n};\n\n/**\r\n * Add custom vertical bar\r\n * @param {Date | string | number} [time] A Date, unix timestamp, or\r\n * ISO date string. Time point where\r\n * the new bar should be placed.\r\n * If not provided, `new Date()` will\r\n * be used.\r\n * @param {number | string} [id=undefined] Id of the new bar. Optional\r\n * @return {number | string} Returns the id of the new bar\r\n */\nCore.prototype.addCustomTime = function (time, id) {\n var timestamp = time !== undefined ? util.convert(time, 'Date').valueOf() : new Date();\n\n var exists = this.customTimes.some(function (customTime) {\n return customTime.options.id === id;\n });\n if (exists) {\n throw new Error('A custom time with id ' + (0, _stringify2['default'])(id) + ' already exists');\n }\n\n var customTime = new CustomTime(this.body, util.extend({}, this.options, {\n time: timestamp,\n id: id\n }));\n\n this.customTimes.push(customTime);\n this.components.push(customTime);\n this._redraw();\n\n return id;\n};\n\n/**\r\n * Remove previously added custom bar\r\n * @param {int} id ID of the custom bar to be removed\r\n * [at]returns {boolean} True if the bar exists and is removed, false otherwise\r\n */\nCore.prototype.removeCustomTime = function (id) {\n var customTimes = this.customTimes.filter(function (bar) {\n return bar.options.id === id;\n });\n\n if (customTimes.length === 0) {\n throw new Error('No custom time bar found with id ' + (0, _stringify2['default'])(id));\n }\n\n customTimes.forEach(function (customTime) {\n this.customTimes.splice(this.customTimes.indexOf(customTime), 1);\n this.components.splice(this.components.indexOf(customTime), 1);\n customTime.destroy();\n }.bind(this));\n};\n\n/**\r\n * Get the id's of the currently visible items.\r\n * @returns {Array} The ids of the visible items\r\n */\nCore.prototype.getVisibleItems = function () {\n return this.itemSet && this.itemSet.getVisibleItems() || [];\n};\n\n/**\r\n * Set Core window such that it fits all items\r\n * @param {Object} [options] Available options:\r\n * `animation: boolean | {duration: number, easingFunction: string}`\r\n * If true (default), the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * @param {function} [callback] a callback funtion to be executed at the end of this function\r\n */\nCore.prototype.fit = function (options, callback) {\n var range = this.getDataRange();\n\n // skip range set if there is no min and max date\n if (range.min === null && range.max === null) {\n return;\n }\n\n // apply a margin of 1% left and right of the data\n var interval = range.max - range.min;\n var min = new Date(range.min.valueOf() - interval * 0.01);\n var max = new Date(range.max.valueOf() + interval * 0.01);\n var animation = options && options.animation !== undefined ? options.animation : true;\n this.range.setRange(min, max, { animation: animation }, callback);\n};\n\n/**\r\n * Calculate the data range of the items start and end dates\r\n * [at]returns {{min: [Date], max: [Date]}}\r\n * @protected\r\n */\nCore.prototype.getDataRange = function () {\n // must be implemented by Timeline and Graph2d\n throw new Error('Cannot invoke abstract method getDataRange');\n};\n\n/**\r\n * Set the visible window. Both parameters are optional, you can change only\r\n * start or only end. Syntax:\r\n *\r\n * TimeLine.setWindow(start, end)\r\n * TimeLine.setWindow(start, end, options)\r\n * TimeLine.setWindow(range)\r\n *\r\n * Where start and end can be a Date, number, or string, and range is an\r\n * object with properties start and end.\r\n *\r\n * @param {Date | number | string | Object} [start] Start date of visible window\r\n * @param {Date | number | string} [end] End date of visible window\r\n * @param {Object} [options] Available options:\r\n * `animation: boolean | {duration: number, easingFunction: string}`\r\n * If true (default), the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * @param {function} [callback] a callback funtion to be executed at the end of this function\r\n */\nCore.prototype.setWindow = function (start, end, options, callback) {\n if (typeof arguments[2] == \"function\") {\n callback = arguments[2];\n options = {};\n }\n var animation;\n var range;\n if (arguments.length == 1) {\n range = arguments[0];\n animation = range.animation !== undefined ? range.animation : true;\n this.range.setRange(range.start, range.end, { animation: animation });\n } else if (arguments.length == 2 && typeof arguments[1] == \"function\") {\n range = arguments[0];\n callback = arguments[1];\n animation = range.animation !== undefined ? range.animation : true;\n this.range.setRange(range.start, range.end, { animation: animation }, callback);\n } else {\n animation = options && options.animation !== undefined ? options.animation : true;\n this.range.setRange(start, end, { animation: animation }, callback);\n }\n};\n\n/**\r\n * Move the window such that given time is centered on screen.\r\n * @param {Date | number | string} time\r\n * @param {Object} [options] Available options:\r\n * `animation: boolean | {duration: number, easingFunction: string}`\r\n * If true (default), the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * @param {function} [callback] a callback funtion to be executed at the end of this function\r\n */\nCore.prototype.moveTo = function (time, options, callback) {\n if (typeof arguments[1] == \"function\") {\n callback = arguments[1];\n options = {};\n }\n var interval = this.range.end - this.range.start;\n var t = util.convert(time, 'Date').valueOf();\n\n var start = t - interval / 2;\n var end = t + interval / 2;\n var animation = options && options.animation !== undefined ? options.animation : true;\n\n this.range.setRange(start, end, { animation: animation }, callback);\n};\n\n/**\r\n * Get the visible window\r\n * @return {{start: Date, end: Date}} Visible range\r\n */\nCore.prototype.getWindow = function () {\n var range = this.range.getRange();\n return {\n start: new Date(range.start),\n end: new Date(range.end)\n };\n};\n\n/**\r\n * Zoom in the window such that given time is centered on screen.\r\n * @param {number} percentage - must be between [0..1]\r\n * @param {Object} [options] Available options:\r\n * `animation: boolean | {duration: number, easingFunction: string}`\r\n * If true (default), the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * @param {function} [callback] a callback funtion to be executed at the end of this function\r\n */\nCore.prototype.zoomIn = function (percentage, options, callback) {\n if (!percentage || percentage < 0 || percentage > 1) return;\n if (typeof arguments[1] == \"function\") {\n callback = arguments[1];\n options = {};\n }\n var range = this.getWindow();\n var start = range.start.valueOf();\n var end = range.end.valueOf();\n var interval = end - start;\n var newInterval = interval / (1 + percentage);\n var distance = (interval - newInterval) / 2;\n var newStart = start + distance;\n var newEnd = end - distance;\n\n this.setWindow(newStart, newEnd, options, callback);\n};\n\n/**\r\n * Zoom out the window such that given time is centered on screen.\r\n * @param {number} percentage - must be between [0..1]\r\n * @param {Object} [options] Available options:\r\n * `animation: boolean | {duration: number, easingFunction: string}`\r\n * If true (default), the range is animated\r\n * smoothly to the new window. An object can be\r\n * provided to specify duration and easing function.\r\n * Default duration is 500 ms, and default easing\r\n * function is 'easeInOutQuad'.\r\n * @param {function} [callback] a callback funtion to be executed at the end of this function\r\n */\nCore.prototype.zoomOut = function (percentage, options, callback) {\n if (!percentage || percentage < 0 || percentage > 1) return;\n if (typeof arguments[1] == \"function\") {\n callback = arguments[1];\n options = {};\n }\n var range = this.getWindow();\n var start = range.start.valueOf();\n var end = range.end.valueOf();\n var interval = end - start;\n var newStart = start - interval * percentage / 2;\n var newEnd = end + interval * percentage / 2;\n\n this.setWindow(newStart, newEnd, options, callback);\n};\n\n/**\r\n * Force a redraw. Can be overridden by implementations of Core\r\n *\r\n * Note: this function will be overridden on construction with a trottled version\r\n */\nCore.prototype.redraw = function () {\n this._redraw();\n};\n\n/**\r\n * Redraw for internal use. Redraws all components. See also the public\r\n * method redraw.\r\n * @protected\r\n */\nCore.prototype._redraw = function () {\n this.redrawCount++;\n var resized = false;\n var options = this.options;\n var props = this.props;\n var dom = this.dom;\n\n if (!dom || !dom.container || dom.root.offsetWidth == 0) return; // when destroyed, or invisible\n\n DateUtil.updateHiddenDates(this.options.moment, this.body, this.options.hiddenDates);\n\n // update class names\n if (options.orientation == 'top') {\n util.addClassName(dom.root, 'vis-top');\n util.removeClassName(dom.root, 'vis-bottom');\n } else {\n util.removeClassName(dom.root, 'vis-top');\n util.addClassName(dom.root, 'vis-bottom');\n }\n\n // update root width and height options\n dom.root.style.maxHeight = util.option.asSize(options.maxHeight, '');\n dom.root.style.minHeight = util.option.asSize(options.minHeight, '');\n dom.root.style.width = util.option.asSize(options.width, '');\n\n // calculate border widths\n props.border.left = (dom.centerContainer.offsetWidth - dom.centerContainer.clientWidth) / 2;\n props.border.right = props.border.left;\n props.border.top = (dom.centerContainer.offsetHeight - dom.centerContainer.clientHeight) / 2;\n props.border.bottom = props.border.top;\n props.borderRootHeight = dom.root.offsetHeight - dom.root.clientHeight;\n props.borderRootWidth = dom.root.offsetWidth - dom.root.clientWidth;\n\n // workaround for a bug in IE: the clientWidth of an element with\n // a height:0px and overflow:hidden is not calculated and always has value 0\n if (dom.centerContainer.clientHeight === 0) {\n props.border.left = props.border.top;\n props.border.right = props.border.left;\n }\n if (dom.root.clientHeight === 0) {\n props.borderRootWidth = props.borderRootHeight;\n }\n\n // calculate the heights. If any of the side panels is empty, we set the height to\n // minus the border width, such that the border will be invisible\n props.center.height = dom.center.offsetHeight;\n props.left.height = dom.left.offsetHeight;\n props.right.height = dom.right.offsetHeight;\n props.top.height = dom.top.clientHeight || -props.border.top;\n props.bottom.height = dom.bottom.clientHeight || -props.border.bottom;\n\n // TODO: compensate borders when any of the panels is empty.\n\n // apply auto height\n // TODO: only calculate autoHeight when needed (else we cause an extra reflow/repaint of the DOM)\n var contentHeight = Math.max(props.left.height, props.center.height, props.right.height);\n var autoHeight = props.top.height + contentHeight + props.bottom.height + props.borderRootHeight + props.border.top + props.border.bottom;\n dom.root.style.height = util.option.asSize(options.height, autoHeight + 'px');\n\n // calculate heights of the content panels\n props.root.height = dom.root.offsetHeight;\n props.background.height = props.root.height - props.borderRootHeight;\n var containerHeight = props.root.height - props.top.height - props.bottom.height - props.borderRootHeight;\n props.centerContainer.height = containerHeight;\n props.leftContainer.height = containerHeight;\n props.rightContainer.height = props.leftContainer.height;\n\n // calculate the widths of the panels\n props.root.width = dom.root.offsetWidth;\n props.background.width = props.root.width - props.borderRootWidth;\n\n if (!this.initialDrawDone) {\n props.scrollbarWidth = util.getScrollBarWidth();\n }\n\n if (options.verticalScroll) {\n if (options.rtl) {\n props.left.width = dom.leftContainer.clientWidth || -props.border.left;\n props.right.width = dom.rightContainer.clientWidth + props.scrollbarWidth || -props.border.right;\n } else {\n props.left.width = dom.leftContainer.clientWidth + props.scrollbarWidth || -props.border.left;\n props.right.width = dom.rightContainer.clientWidth || -props.border.right;\n }\n } else {\n props.left.width = dom.leftContainer.clientWidth || -props.border.left;\n props.right.width = dom.rightContainer.clientWidth || -props.border.right;\n }\n\n this._setDOM();\n\n // update the scrollTop, feasible range for the offset can be changed\n // when the height of the Core or of the contents of the center changed\n var offset = this._updateScrollTop();\n\n // reposition the scrollable contents\n if (options.orientation.item != 'top') {\n offset += Math.max(props.centerContainer.height - props.center.height - props.border.top - props.border.bottom, 0);\n }\n dom.center.style.top = offset + 'px';\n\n // show shadows when vertical scrolling is available\n var visibilityTop = props.scrollTop == 0 ? 'hidden' : '';\n var visibilityBottom = props.scrollTop == props.scrollTopMin ? 'hidden' : '';\n dom.shadowTop.style.visibility = visibilityTop;\n dom.shadowBottom.style.visibility = visibilityBottom;\n dom.shadowTopLeft.style.visibility = visibilityTop;\n dom.shadowBottomLeft.style.visibility = visibilityBottom;\n dom.shadowTopRight.style.visibility = visibilityTop;\n dom.shadowBottomRight.style.visibility = visibilityBottom;\n\n if (options.verticalScroll) {\n dom.rightContainer.className = 'vis-panel vis-right vis-vertical-scroll';\n dom.leftContainer.className = 'vis-panel vis-left vis-vertical-scroll';\n\n dom.shadowTopRight.style.visibility = \"hidden\";\n dom.shadowBottomRight.style.visibility = \"hidden\";\n dom.shadowTopLeft.style.visibility = \"hidden\";\n dom.shadowBottomLeft.style.visibility = \"hidden\";\n\n dom.left.style.top = '0px';\n dom.right.style.top = '0px';\n }\n\n if (!options.verticalScroll || props.center.height < props.centerContainer.height) {\n dom.left.style.top = offset + 'px';\n dom.right.style.top = offset + 'px';\n dom.rightContainer.className = dom.rightContainer.className.replace(new RegExp('(?:^|\\\\s)' + 'vis-vertical-scroll' + '(?:\\\\s|$)'), ' ');\n dom.leftContainer.className = dom.leftContainer.className.replace(new RegExp('(?:^|\\\\s)' + 'vis-vertical-scroll' + '(?:\\\\s|$)'), ' ');\n props.left.width = dom.leftContainer.clientWidth || -props.border.left;\n props.right.width = dom.rightContainer.clientWidth || -props.border.right;\n this._setDOM();\n }\n\n // enable/disable vertical panning\n var contentsOverflow = props.center.height > props.centerContainer.height;\n this.hammer.get('pan').set({\n direction: contentsOverflow ? Hammer.DIRECTION_ALL : Hammer.DIRECTION_HORIZONTAL\n });\n\n // redraw all components\n this.components.forEach(function (component) {\n resized = component.redraw() || resized;\n });\n var MAX_REDRAW = 5;\n if (resized) {\n if (this.redrawCount < MAX_REDRAW) {\n this.body.emitter.emit('_change');\n return;\n } else {\n console.log('WARNING: infinite loop in redraw?');\n }\n } else {\n this.redrawCount = 0;\n }\n\n //Emit public 'changed' event for UI updates, see issue #1592\n this.body.emitter.emit(\"changed\");\n};\n\nCore.prototype._setDOM = function () {\n var props = this.props;\n var dom = this.dom;\n\n props.leftContainer.width = props.left.width;\n props.rightContainer.width = props.right.width;\n var centerWidth = props.root.width - props.left.width - props.right.width - props.borderRootWidth;\n props.center.width = centerWidth;\n props.centerContainer.width = centerWidth;\n props.top.width = centerWidth;\n props.bottom.width = centerWidth;\n\n // resize the panels\n dom.background.style.height = props.background.height + 'px';\n dom.backgroundVertical.style.height = props.background.height + 'px';\n dom.backgroundHorizontal.style.height = props.centerContainer.height + 'px';\n dom.centerContainer.style.height = props.centerContainer.height + 'px';\n dom.leftContainer.style.height = props.leftContainer.height + 'px';\n dom.rightContainer.style.height = props.rightContainer.height + 'px';\n\n dom.background.style.width = props.background.width + 'px';\n dom.backgroundVertical.style.width = props.centerContainer.width + 'px';\n dom.backgroundHorizontal.style.width = props.background.width + 'px';\n dom.centerContainer.style.width = props.center.width + 'px';\n dom.top.style.width = props.top.width + 'px';\n dom.bottom.style.width = props.bottom.width + 'px';\n\n // reposition the panels\n dom.background.style.left = '0';\n dom.background.style.top = '0';\n dom.backgroundVertical.style.left = props.left.width + props.border.left + 'px';\n dom.backgroundVertical.style.top = '0';\n dom.backgroundHorizontal.style.left = '0';\n dom.backgroundHorizontal.style.top = props.top.height + 'px';\n dom.centerContainer.style.left = props.left.width + 'px';\n dom.centerContainer.style.top = props.top.height + 'px';\n dom.leftContainer.style.left = '0';\n dom.leftContainer.style.top = props.top.height + 'px';\n dom.rightContainer.style.left = props.left.width + props.center.width + 'px';\n dom.rightContainer.style.top = props.top.height + 'px';\n dom.top.style.left = props.left.width + 'px';\n dom.top.style.top = '0';\n dom.bottom.style.left = props.left.width + 'px';\n dom.bottom.style.top = props.top.height + props.centerContainer.height + 'px';\n dom.center.style.left = '0';\n dom.left.style.left = '0';\n dom.right.style.left = '0';\n};\n\n// TODO: deprecated since version 1.1.0, remove some day\nCore.prototype.repaint = function () {\n throw new Error('Function repaint is deprecated. Use redraw instead.');\n};\n\n/**\r\n * Set a current time. This can be used for example to ensure that a client's\r\n * time is synchronized with a shared server time.\r\n * Only applicable when option `showCurrentTime` is true.\r\n * @param {Date | string | number} time A Date, unix timestamp, or\r\n * ISO date string.\r\n */\nCore.prototype.setCurrentTime = function (time) {\n if (!this.currentTime) {\n throw new Error('Option showCurrentTime must be true');\n }\n\n this.currentTime.setCurrentTime(time);\n};\n\n/**\r\n * Get the current time.\r\n * Only applicable when option `showCurrentTime` is true.\r\n * @return {Date} Returns the current time.\r\n */\nCore.prototype.getCurrentTime = function () {\n if (!this.currentTime) {\n throw new Error('Option showCurrentTime must be true');\n }\n\n return this.currentTime.getCurrentTime();\n};\n\n/**\r\n * Convert a position on screen (pixels) to a datetime\r\n * @param {int} x Position on the screen in pixels\r\n * @return {Date} time The datetime the corresponds with given position x\r\n * @protected\r\n */\n// TODO: move this function to Range\nCore.prototype._toTime = function (x) {\n return DateUtil.toTime(this, x, this.props.center.width);\n};\n\n/**\r\n * Convert a position on the global screen (pixels) to a datetime\r\n * @param {int} x Position on the screen in pixels\r\n * @return {Date} time The datetime the corresponds with given position x\r\n * @protected\r\n */\n// TODO: move this function to Range\nCore.prototype._toGlobalTime = function (x) {\n return DateUtil.toTime(this, x, this.props.root.width);\n //var conversion = this.range.conversion(this.props.root.width);\n //return new Date(x / conversion.scale + conversion.offset);\n};\n\n/**\r\n * Convert a datetime (Date object) into a position on the screen\r\n * @param {Date} time A date\r\n * @return {int} x The position on the screen in pixels which corresponds\r\n * with the given date.\r\n * @protected\r\n */\n// TODO: move this function to Range\nCore.prototype._toScreen = function (time) {\n return DateUtil.toScreen(this, time, this.props.center.width);\n};\n\n/**\r\n * Convert a datetime (Date object) into a position on the root\r\n * This is used to get the pixel density estimate for the screen, not the center panel\r\n * @param {Date} time A date\r\n * @return {int} x The position on root in pixels which corresponds\r\n * with the given date.\r\n * @protected\r\n */\n// TODO: move this function to Range\nCore.prototype._toGlobalScreen = function (time) {\n return DateUtil.toScreen(this, time, this.props.root.width);\n //var conversion = this.range.conversion(this.props.root.width);\n //return (time.valueOf() - conversion.offset) * conversion.scale;\n};\n\n/**\r\n * Initialize watching when option autoResize is true\r\n * @private\r\n */\nCore.prototype._initAutoResize = function () {\n if (this.options.autoResize == true) {\n this._startAutoResize();\n } else {\n this._stopAutoResize();\n }\n};\n\n/**\r\n * Watch for changes in the size of the container. On resize, the Panel will\r\n * automatically redraw itself.\r\n * @private\r\n */\nCore.prototype._startAutoResize = function () {\n var me = this;\n\n this._stopAutoResize();\n\n this._onResize = function () {\n if (me.options.autoResize != true) {\n // stop watching when the option autoResize is changed to false\n me._stopAutoResize();\n return;\n }\n\n if (me.dom.root) {\n // check whether the frame is resized\n // Note: we compare offsetWidth here, not clientWidth. For some reason,\n // IE does not restore the clientWidth from 0 to the actual width after\n // changing the timeline's container display style from none to visible\n if (me.dom.root.offsetWidth != me.props.lastWidth || me.dom.root.offsetHeight != me.props.lastHeight) {\n me.props.lastWidth = me.dom.root.offsetWidth;\n me.props.lastHeight = me.dom.root.offsetHeight;\n me.props.scrollbarWidth = util.getScrollBarWidth();\n\n me.body.emitter.emit('_change');\n }\n }\n };\n\n // add event listener to window resize\n util.addEventListener(window, 'resize', this._onResize);\n\n //Prevent initial unnecessary redraw\n if (me.dom.root) {\n me.props.lastWidth = me.dom.root.offsetWidth;\n me.props.lastHeight = me.dom.root.offsetHeight;\n }\n\n this.watchTimer = setInterval(this._onResize, 1000);\n};\n\n/**\r\n * Stop watching for a resize of the frame.\r\n * @private\r\n */\nCore.prototype._stopAutoResize = function () {\n if (this.watchTimer) {\n clearInterval(this.watchTimer);\n this.watchTimer = undefined;\n }\n\n // remove event listener on window.resize\n if (this._onResize) {\n util.removeEventListener(window, 'resize', this._onResize);\n this._onResize = null;\n }\n};\n\n/**\r\n * Start moving the timeline vertically\r\n * @param {Event} event\r\n * @private\r\n */\nCore.prototype._onTouch = function (event) {\n // eslint-disable-line no-unused-vars\n this.touch.allowDragging = true;\n this.touch.initialScrollTop = this.props.scrollTop;\n};\n\n/**\r\n * Start moving the timeline vertically\r\n * @param {Event} event\r\n * @private\r\n */\nCore.prototype._onPinch = function (event) {\n // eslint-disable-line no-unused-vars\n this.touch.allowDragging = false;\n};\n\n/**\r\n * Move the timeline vertically\r\n * @param {Event} event\r\n * @private\r\n */\nCore.prototype._onDrag = function (event) {\n if (!event) return;\n // refuse to drag when we where pinching to prevent the timeline make a jump\n // when releasing the fingers in opposite order from the touch screen\n if (!this.touch.allowDragging) return;\n\n var delta = event.deltaY;\n\n var oldScrollTop = this._getScrollTop();\n var newScrollTop = this._setScrollTop(this.touch.initialScrollTop + delta);\n\n if (this.options.verticalScroll) {\n this.dom.left.parentNode.scrollTop = -this.props.scrollTop;\n this.dom.right.parentNode.scrollTop = -this.props.scrollTop;\n }\n\n if (newScrollTop != oldScrollTop) {\n this.emit(\"verticalDrag\");\n }\n};\n\n/**\r\n * Apply a scrollTop\r\n * @param {number} scrollTop\r\n * @returns {number} scrollTop Returns the applied scrollTop\r\n * @private\r\n */\nCore.prototype._setScrollTop = function (scrollTop) {\n this.props.scrollTop = scrollTop;\n this._updateScrollTop();\n return this.props.scrollTop;\n};\n\n/**\r\n * Update the current scrollTop when the height of the containers has been changed\r\n * @returns {number} scrollTop Returns the applied scrollTop\r\n * @private\r\n */\nCore.prototype._updateScrollTop = function () {\n // recalculate the scrollTopMin\n var scrollTopMin = Math.min(this.props.centerContainer.height - this.props.center.height, 0); // is negative or zero\n if (scrollTopMin != this.props.scrollTopMin) {\n // in case of bottom orientation, change the scrollTop such that the contents\n // do not move relative to the time axis at the bottom\n if (this.options.orientation.item != 'top') {\n this.props.scrollTop += scrollTopMin - this.props.scrollTopMin;\n }\n this.props.scrollTopMin = scrollTopMin;\n }\n\n // limit the scrollTop to the feasible scroll range\n if (this.props.scrollTop > 0) this.props.scrollTop = 0;\n if (this.props.scrollTop < scrollTopMin) this.props.scrollTop = scrollTopMin;\n\n if (this.options.verticalScroll) {\n this.dom.left.parentNode.scrollTop = -this.props.scrollTop;\n this.dom.right.parentNode.scrollTop = -this.props.scrollTop;\n }\n\n return this.props.scrollTop;\n};\n\n/**\r\n * Get the current scrollTop\r\n * @returns {number} scrollTop\r\n * @private\r\n */\nCore.prototype._getScrollTop = function () {\n return this.props.scrollTop;\n};\n\n/**\r\n * Load a configurator\r\n * [at]returns {Object}\r\n * @private\r\n */\nCore.prototype._createConfigurator = function () {\n throw new Error('Cannot invoke abstract method _createConfigurator');\n};\n\nmodule.exports = Core;\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar moment = __webpack_require__(9);\nvar DateUtil = __webpack_require__(36);\nvar util = __webpack_require__(2);\n\n/**\r\n * The class TimeStep is an iterator for dates. You provide a start date and an\r\n * end date. The class itself determines the best scale (step size) based on the\r\n * provided start Date, end Date, and minimumStep.\r\n *\r\n * If minimumStep is provided, the step size is chosen as close as possible\r\n * to the minimumStep but larger than minimumStep. If minimumStep is not\r\n * provided, the scale is set to 1 DAY.\r\n * The minimumStep should correspond with the onscreen size of about 6 characters\r\n *\r\n * Alternatively, you can set a scale by hand.\r\n * After creation, you can initialize the class by executing first(). Then you\r\n * can iterate from the start date to the end date via next(). You can check if\r\n * the end date is reached with the function hasNext(). After each step, you can\r\n * retrieve the current date via getCurrent().\r\n * The TimeStep has scales ranging from milliseconds, seconds, minutes, hours,\r\n * days, to years.\r\n *\r\n * Version: 1.2\r\n *\r\n * @param {Date} [start] The start date, for example new Date(2010, 9, 21)\r\n * or new Date(2010, 9, 21, 23, 45, 00)\r\n * @param {Date} [end] The end date\r\n * @param {number} [minimumStep] Optional. Minimum step size in milliseconds\r\n * @param {Date|Array.<Date>} [hiddenDates] Optional.\r\n * @param {{showMajorLabels: boolean}} [options] Optional.\r\n * @constructor TimeStep\r\n */\nfunction TimeStep(start, end, minimumStep, hiddenDates, options) {\n this.moment = moment;\n\n // variables\n this.current = this.moment();\n this._start = this.moment();\n this._end = this.moment();\n\n this.autoScale = true;\n this.scale = 'day';\n this.step = 1;\n\n // initialize the range\n this.setRange(start, end, minimumStep);\n\n // hidden Dates options\n this.switchedDay = false;\n this.switchedMonth = false;\n this.switchedYear = false;\n if (Array.isArray(hiddenDates)) {\n this.hiddenDates = hiddenDates;\n } else if (hiddenDates != undefined) {\n this.hiddenDates = [hiddenDates];\n } else {\n this.hiddenDates = [];\n }\n\n this.format = TimeStep.FORMAT; // default formatting\n this.options = options ? options : {};\n}\n\n// Time formatting\nTimeStep.FORMAT = {\n minorLabels: {\n millisecond: 'SSS',\n second: 's',\n minute: 'HH:mm',\n hour: 'HH:mm',\n weekday: 'ddd D',\n day: 'D',\n week: 'w',\n month: 'MMM',\n year: 'YYYY'\n },\n majorLabels: {\n millisecond: 'HH:mm:ss',\n second: 'D MMMM HH:mm',\n minute: 'ddd D MMMM',\n hour: 'ddd D MMMM',\n weekday: 'MMMM YYYY',\n day: 'MMMM YYYY',\n week: 'MMMM YYYY',\n month: 'YYYY',\n year: ''\n }\n};\n\n/**\r\n * Set custom constructor function for moment. Can be used to set dates\r\n * to UTC or to set a utcOffset.\r\n * @param {function} moment\r\n */\nTimeStep.prototype.setMoment = function (moment) {\n this.moment = moment;\n\n // update the date properties, can have a new utcOffset\n this.current = this.moment(this.current.valueOf());\n this._start = this.moment(this._start.valueOf());\n this._end = this.moment(this._end.valueOf());\n};\n\n/**\r\n * Set custom formatting for the minor an major labels of the TimeStep.\r\n * Both `minorLabels` and `majorLabels` are an Object with properties:\r\n * 'millisecond', 'second', 'minute', 'hour', 'weekday', 'day', 'week', 'month', 'year'.\r\n * @param {{minorLabels: Object, majorLabels: Object}} format\r\n */\nTimeStep.prototype.setFormat = function (format) {\n var defaultFormat = util.deepExtend({}, TimeStep.FORMAT);\n this.format = util.deepExtend(defaultFormat, format);\n};\n\n/**\r\n * Set a new range\r\n * If minimumStep is provided, the step size is chosen as close as possible\r\n * to the minimumStep but larger than minimumStep. If minimumStep is not\r\n * provided, the scale is set to 1 DAY.\r\n * The minimumStep should correspond with the onscreen size of about 6 characters\r\n * @param {Date} [start] The start date and time.\r\n * @param {Date} [end] The end date and time.\r\n * @param {int} [minimumStep] Optional. Minimum step size in milliseconds\r\n */\nTimeStep.prototype.setRange = function (start, end, minimumStep) {\n if (!(start instanceof Date) || !(end instanceof Date)) {\n throw \"No legal start or end date in method setRange\";\n }\n\n this._start = start != undefined ? this.moment(start.valueOf()) : new Date();\n this._end = end != undefined ? this.moment(end.valueOf()) : new Date();\n\n if (this.autoScale) {\n this.setMinimumStep(minimumStep);\n }\n};\n\n/**\r\n * Set the range iterator to the start date.\r\n */\nTimeStep.prototype.start = function () {\n this.current = this._start.clone();\n this.roundToMinor();\n};\n\n/**\r\n * Round the current date to the first minor date value\r\n * This must be executed once when the current date is set to start Date\r\n */\nTimeStep.prototype.roundToMinor = function () {\n // round to floor\n // to prevent year & month scales rounding down to the first day of week we perform this separately\n if (this.scale == 'week') {\n this.current.weekday(0);\n }\n // IMPORTANT: we have no breaks in this switch! (this is no bug)\n // noinspection FallThroughInSwitchStatementJS\n switch (this.scale) {\n case 'year':\n this.current.year(this.step * Math.floor(this.current.year() / this.step));\n this.current.month(0);\n case 'month':\n this.current.date(1); // eslint-disable-line no-fallthrough\n case 'week': // eslint-disable-line no-fallthrough\n case 'day': // eslint-disable-line no-fallthrough\n case 'weekday':\n this.current.hours(0); // eslint-disable-line no-fallthrough\n case 'hour':\n this.current.minutes(0); // eslint-disable-line no-fallthrough\n case 'minute':\n this.current.seconds(0); // eslint-disable-line no-fallthrough\n case 'second':\n this.current.milliseconds(0); // eslint-disable-line no-fallthrough\n //case 'millisecond': // nothing to do for milliseconds\n }\n\n if (this.step != 1) {\n // round down to the first minor value that is a multiple of the current step size\n switch (this.scale) {\n case 'millisecond':\n this.current.subtract(this.current.milliseconds() % this.step, 'milliseconds');break;\n case 'second':\n this.current.subtract(this.current.seconds() % this.step, 'seconds');break;\n case 'minute':\n this.current.subtract(this.current.minutes() % this.step, 'minutes');break;\n case 'hour':\n this.current.subtract(this.current.hours() % this.step, 'hours');break;\n case 'weekday': // intentional fall through\n case 'day':\n this.current.subtract((this.current.date() - 1) % this.step, 'day');break;\n case 'week':\n this.current.subtract(this.current.week() % this.step, 'week');break;\n case 'month':\n this.current.subtract(this.current.month() % this.step, 'month');break;\n case 'year':\n this.current.subtract(this.current.year() % this.step, 'year');break;\n default:\n break;\n }\n }\n};\n\n/**\r\n * Check if the there is a next step\r\n * @return {boolean} true if the current date has not passed the end date\r\n */\nTimeStep.prototype.hasNext = function () {\n return this.current.valueOf() <= this._end.valueOf();\n};\n\n/**\r\n * Do the next step\r\n */\nTimeStep.prototype.next = function () {\n var prev = this.current.valueOf();\n\n // Two cases, needed to prevent issues with switching daylight savings\n // (end of March and end of October)\n switch (this.scale) {\n case 'millisecond':\n this.current.add(this.step, 'millisecond');break;\n case 'second':\n this.current.add(this.step, 'second');break;\n case 'minute':\n this.current.add(this.step, 'minute');break;\n case 'hour':\n this.current.add(this.step, 'hour');\n\n if (this.current.month() < 6) {\n this.current.subtract(this.current.hours() % this.step, 'hour');\n } else {\n if (this.current.hours() % this.step !== 0) {\n this.current.add(this.step - this.current.hours() % this.step, 'hour');\n }\n }\n break;\n case 'weekday': // intentional fall through\n case 'day':\n this.current.add(this.step, 'day');break;\n case 'week':\n if (this.current.weekday() !== 0) {\n // we had a month break not correlating with a week's start before\n this.current.weekday(0); // switch back to week cycles\n this.current.add(this.step, 'week');\n } else if (this.options.showMajorLabels === false) {\n this.current.add(this.step, 'week'); // the default case\n } else {\n // first day of the week\n var nextWeek = this.current.clone();\n nextWeek.add(1, 'week');\n if (nextWeek.isSame(this.current, 'month')) {\n // is the first day of the next week in the same month?\n this.current.add(this.step, 'week'); // the default case\n } else {\n // inject a step at each first day of the month\n this.current.add(this.step, 'week');\n this.current.date(1);\n }\n }\n break;\n case 'month':\n this.current.add(this.step, 'month');break;\n case 'year':\n this.current.add(this.step, 'year');break;\n default:\n break;\n }\n\n if (this.step != 1) {\n // round down to the correct major value\n switch (this.scale) {\n case 'millisecond':\n if (this.current.milliseconds() > 0 && this.current.milliseconds() < this.step) this.current.milliseconds(0);break;\n case 'second':\n if (this.current.seconds() > 0 && this.current.seconds() < this.step) this.current.seconds(0);break;\n case 'minute':\n if (this.current.minutes() > 0 && this.current.minutes() < this.step) this.current.minutes(0);break;\n case 'hour':\n if (this.current.hours() > 0 && this.current.hours() < this.step) this.current.hours(0);break;\n case 'weekday': // intentional fall through\n case 'day':\n if (this.current.date() < this.step + 1) this.current.date(1);break;\n case 'week':\n if (this.current.week() < this.step) this.current.week(1);break; // week numbering starts at 1, not 0\n case 'month':\n if (this.current.month() < this.step) this.current.month(0);break;\n case 'year':\n break; // nothing to do for year\n default:\n break;\n }\n }\n\n // safety mechanism: if current time is still unchanged, move to the end\n if (this.current.valueOf() == prev) {\n this.current = this._end.clone();\n }\n\n // Reset switches for year, month and day. Will get set to true where appropriate in DateUtil.stepOverHiddenDates\n this.switchedDay = false;\n this.switchedMonth = false;\n this.switchedYear = false;\n\n DateUtil.stepOverHiddenDates(this.moment, this, prev);\n};\n\n/**\r\n * Get the current datetime\r\n * @return {Moment} current The current date\r\n */\nTimeStep.prototype.getCurrent = function () {\n return this.current;\n};\n\n/**\r\n * Set a custom scale. Autoscaling will be disabled.\r\n * For example setScale('minute', 5) will result\r\n * in minor steps of 5 minutes, and major steps of an hour.\r\n *\r\n * @param {{scale: string, step: number}} params\r\n * An object containing two properties:\r\n * - A string 'scale'. Choose from 'millisecond', 'second',\r\n * 'minute', 'hour', 'weekday', 'day', 'week', 'month', 'year'.\r\n * - A number 'step'. A step size, by default 1.\r\n * Choose for example 1, 2, 5, or 10.\r\n */\nTimeStep.prototype.setScale = function (params) {\n if (params && typeof params.scale == 'string') {\n this.scale = params.scale;\n this.step = params.step > 0 ? params.step : 1;\n this.autoScale = false;\n }\n};\n\n/**\r\n * Enable or disable autoscaling\r\n * @param {boolean} enable If true, autoascaling is set true\r\n */\nTimeStep.prototype.setAutoScale = function (enable) {\n this.autoScale = enable;\n};\n\n/**\r\n * Automatically determine the scale that bests fits the provided minimum step\r\n * @param {number} [minimumStep] The minimum step size in milliseconds\r\n */\nTimeStep.prototype.setMinimumStep = function (minimumStep) {\n if (minimumStep == undefined) {\n return;\n }\n\n //var b = asc + ds;\n\n var stepYear = 1000 * 60 * 60 * 24 * 30 * 12;\n var stepMonth = 1000 * 60 * 60 * 24 * 30;\n var stepDay = 1000 * 60 * 60 * 24;\n var stepHour = 1000 * 60 * 60;\n var stepMinute = 1000 * 60;\n var stepSecond = 1000;\n var stepMillisecond = 1;\n\n // find the smallest step that is larger than the provided minimumStep\n if (stepYear * 1000 > minimumStep) {\n this.scale = 'year';this.step = 1000;\n }\n if (stepYear * 500 > minimumStep) {\n this.scale = 'year';this.step = 500;\n }\n if (stepYear * 100 > minimumStep) {\n this.scale = 'year';this.step = 100;\n }\n if (stepYear * 50 > minimumStep) {\n this.scale = 'year';this.step = 50;\n }\n if (stepYear * 10 > minimumStep) {\n this.scale = 'year';this.step = 10;\n }\n if (stepYear * 5 > minimumStep) {\n this.scale = 'year';this.step = 5;\n }\n if (stepYear > minimumStep) {\n this.scale = 'year';this.step = 1;\n }\n if (stepMonth * 3 > minimumStep) {\n this.scale = 'month';this.step = 3;\n }\n if (stepMonth > minimumStep) {\n this.scale = 'month';this.step = 1;\n }\n if (stepDay * 5 > minimumStep) {\n this.scale = 'day';this.step = 5;\n }\n if (stepDay * 2 > minimumStep) {\n this.scale = 'day';this.step = 2;\n }\n if (stepDay > minimumStep) {\n this.scale = 'day';this.step = 1;\n }\n if (stepDay / 2 > minimumStep) {\n this.scale = 'weekday';this.step = 1;\n }\n if (stepHour * 4 > minimumStep) {\n this.scale = 'hour';this.step = 4;\n }\n if (stepHour > minimumStep) {\n this.scale = 'hour';this.step = 1;\n }\n if (stepMinute * 15 > minimumStep) {\n this.scale = 'minute';this.step = 15;\n }\n if (stepMinute * 10 > minimumStep) {\n this.scale = 'minute';this.step = 10;\n }\n if (stepMinute * 5 > minimumStep) {\n this.scale = 'minute';this.step = 5;\n }\n if (stepMinute > minimumStep) {\n this.scale = 'minute';this.step = 1;\n }\n if (stepSecond * 15 > minimumStep) {\n this.scale = 'second';this.step = 15;\n }\n if (stepSecond * 10 > minimumStep) {\n this.scale = 'second';this.step = 10;\n }\n if (stepSecond * 5 > minimumStep) {\n this.scale = 'second';this.step = 5;\n }\n if (stepSecond > minimumStep) {\n this.scale = 'second';this.step = 1;\n }\n if (stepMillisecond * 200 > minimumStep) {\n this.scale = 'millisecond';this.step = 200;\n }\n if (stepMillisecond * 100 > minimumStep) {\n this.scale = 'millisecond';this.step = 100;\n }\n if (stepMillisecond * 50 > minimumStep) {\n this.scale = 'millisecond';this.step = 50;\n }\n if (stepMillisecond * 10 > minimumStep) {\n this.scale = 'millisecond';this.step = 10;\n }\n if (stepMillisecond * 5 > minimumStep) {\n this.scale = 'millisecond';this.step = 5;\n }\n if (stepMillisecond > minimumStep) {\n this.scale = 'millisecond';this.step = 1;\n }\n};\n\n/**\r\n * Snap a date to a rounded value.\r\n * The snap intervals are dependent on the current scale and step.\r\n * Static function\r\n * @param {Date} date the date to be snapped.\r\n * @param {string} scale Current scale, can be 'millisecond', 'second',\r\n * 'minute', 'hour', 'weekday, 'day', 'week', 'month', 'year'.\r\n * @param {number} step Current step (1, 2, 4, 5, ...\r\n * @return {Date} snappedDate\r\n */\nTimeStep.snap = function (date, scale, step) {\n var clone = moment(date);\n\n if (scale == 'year') {\n var year = clone.year() + Math.round(clone.month() / 12);\n clone.year(Math.round(year / step) * step);\n clone.month(0);\n clone.date(0);\n clone.hours(0);\n clone.minutes(0);\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'month') {\n if (clone.date() > 15) {\n clone.date(1);\n clone.add(1, 'month');\n // important: first set Date to 1, after that change the month.\n } else {\n clone.date(1);\n }\n\n clone.hours(0);\n clone.minutes(0);\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'week') {\n if (clone.weekday() > 2) {\n // doing it the momentjs locale aware way\n clone.weekday(0);\n clone.add(1, 'week');\n } else {\n clone.weekday(0);\n }\n\n clone.hours(0);\n clone.minutes(0);\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'day') {\n //noinspection FallthroughInSwitchStatementJS\n switch (step) {\n case 5:\n case 2:\n clone.hours(Math.round(clone.hours() / 24) * 24);break;\n default:\n clone.hours(Math.round(clone.hours() / 12) * 12);break;\n }\n clone.minutes(0);\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'weekday') {\n //noinspection FallthroughInSwitchStatementJS\n switch (step) {\n case 5:\n case 2:\n clone.hours(Math.round(clone.hours() / 12) * 12);break;\n default:\n clone.hours(Math.round(clone.hours() / 6) * 6);break;\n }\n clone.minutes(0);\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'hour') {\n switch (step) {\n case 4:\n clone.minutes(Math.round(clone.minutes() / 60) * 60);break;\n default:\n clone.minutes(Math.round(clone.minutes() / 30) * 30);break;\n }\n clone.seconds(0);\n clone.milliseconds(0);\n } else if (scale == 'minute') {\n //noinspection FallthroughInSwitchStatementJS\n switch (step) {\n case 15:\n case 10:\n clone.minutes(Math.round(clone.minutes() / 5) * 5);\n clone.seconds(0);\n break;\n case 5:\n clone.seconds(Math.round(clone.seconds() / 60) * 60);break;\n default:\n clone.seconds(Math.round(clone.seconds() / 30) * 30);break;\n }\n clone.milliseconds(0);\n } else if (scale == 'second') {\n //noinspection FallthroughInSwitchStatementJS\n switch (step) {\n case 15:\n case 10:\n clone.seconds(Math.round(clone.seconds() / 5) * 5);\n clone.milliseconds(0);\n break;\n case 5:\n clone.milliseconds(Math.round(clone.milliseconds() / 1000) * 1000);break;\n default:\n clone.milliseconds(Math.round(clone.milliseconds() / 500) * 500);break;\n }\n } else if (scale == 'millisecond') {\n var _step = step > 5 ? step / 2 : 1;\n clone.milliseconds(Math.round(clone.milliseconds() / _step) * _step);\n }\n\n return clone;\n};\n\n/**\r\n * Check if the current value is a major value (for example when the step\r\n * is DAY, a major value is each first day of the MONTH)\r\n * @return {boolean} true if current date is major, else false.\r\n */\nTimeStep.prototype.isMajor = function () {\n if (this.switchedYear == true) {\n switch (this.scale) {\n case 'year':\n case 'month':\n case 'week':\n case 'weekday':\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'millisecond':\n return true;\n default:\n return false;\n }\n } else if (this.switchedMonth == true) {\n switch (this.scale) {\n case 'week':\n case 'weekday':\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'millisecond':\n return true;\n default:\n return false;\n }\n } else if (this.switchedDay == true) {\n switch (this.scale) {\n case 'millisecond':\n case 'second':\n case 'minute':\n case 'hour':\n return true;\n default:\n return false;\n }\n }\n\n var date = this.moment(this.current);\n switch (this.scale) {\n case 'millisecond':\n return date.milliseconds() == 0;\n case 'second':\n return date.seconds() == 0;\n case 'minute':\n return date.hours() == 0 && date.minutes() == 0;\n case 'hour':\n return date.hours() == 0;\n case 'weekday': // intentional fall through\n case 'day':\n return date.date() == 1;\n case 'week':\n return date.date() == 1;\n case 'month':\n return date.month() == 0;\n case 'year':\n return false;\n default:\n return false;\n }\n};\n\n/**\r\n * Returns formatted text for the minor axislabel, depending on the current\r\n * date and the scale. For example when scale is MINUTE, the current time is\r\n * formatted as \"hh:mm\".\r\n * @param {Date} [date=this.current] custom date. if not provided, current date is taken\r\n * @returns {String}\r\n */\nTimeStep.prototype.getLabelMinor = function (date) {\n if (date == undefined) {\n date = this.current;\n }\n if (date instanceof Date) {\n date = this.moment(date);\n }\n\n if (typeof this.format.minorLabels === \"function\") {\n return this.format.minorLabels(date, this.scale, this.step);\n }\n\n var format = this.format.minorLabels[this.scale];\n // noinspection FallThroughInSwitchStatementJS\n switch (this.scale) {\n case 'week':\n if (this.isMajor() && date.weekday() !== 0) {\n return \"\";\n }\n default:\n // eslint-disable-line no-fallthrough\n return format && format.length > 0 ? this.moment(date).format(format) : '';\n }\n};\n\n/**\r\n * Returns formatted text for the major axis label, depending on the current\r\n * date and the scale. For example when scale is MINUTE, the major scale is\r\n * hours, and the hour will be formatted as \"hh\".\r\n * @param {Date} [date=this.current] custom date. if not provided, current date is taken\r\n * @returns {String}\r\n */\nTimeStep.prototype.getLabelMajor = function (date) {\n if (date == undefined) {\n date = this.current;\n }\n if (date instanceof Date) {\n date = this.moment(date);\n }\n\n if (typeof this.format.majorLabels === \"function\") {\n return this.format.majorLabels(date, this.scale, this.step);\n }\n\n var format = this.format.majorLabels[this.scale];\n return format && format.length > 0 ? this.moment(date).format(format) : '';\n};\n\nTimeStep.prototype.getClassName = function () {\n var _moment = this.moment;\n var m = this.moment(this.current);\n var current = m.locale ? m.locale('en') : m.lang('en'); // old versions of moment have .lang() function\n var step = this.step;\n var classNames = [];\n\n /**\r\n *\r\n * @param {number} value\r\n * @returns {String}\r\n */\n function even(value) {\n return value / step % 2 == 0 ? ' vis-even' : ' vis-odd';\n }\n\n /**\r\n *\r\n * @param {Date} date\r\n * @returns {String}\r\n */\n function today(date) {\n if (date.isSame(new Date(), 'day')) {\n return ' vis-today';\n }\n if (date.isSame(_moment().add(1, 'day'), 'day')) {\n return ' vis-tomorrow';\n }\n if (date.isSame(_moment().add(-1, 'day'), 'day')) {\n return ' vis-yesterday';\n }\n return '';\n }\n\n /**\r\n *\r\n * @param {Date} date\r\n * @returns {String}\r\n */\n function currentWeek(date) {\n return date.isSame(new Date(), 'week') ? ' vis-current-week' : '';\n }\n\n /**\r\n *\r\n * @param {Date} date\r\n * @returns {String}\r\n */\n function currentMonth(date) {\n return date.isSame(new Date(), 'month') ? ' vis-current-month' : '';\n }\n\n /**\r\n *\r\n * @param {Date} date\r\n * @returns {String}\r\n */\n function currentYear(date) {\n return date.isSame(new Date(), 'year') ? ' vis-current-year' : '';\n }\n\n switch (this.scale) {\n case 'millisecond':\n classNames.push(today(current));\n classNames.push(even(current.milliseconds()));\n break;\n case 'second':\n classNames.push(today(current));\n classNames.push(even(current.seconds()));\n break;\n case 'minute':\n classNames.push(today(current));\n classNames.push(even(current.minutes()));\n break;\n case 'hour':\n classNames.push('vis-h' + current.hours() + (this.step == 4 ? '-h' + (current.hours() + 4) : ''));\n classNames.push(today(current));\n classNames.push(even(current.hours()));\n break;\n case 'weekday':\n classNames.push('vis-' + current.format('dddd').toLowerCase());\n classNames.push(today(current));\n classNames.push(currentWeek(current));\n classNames.push(even(current.date()));\n break;\n case 'day':\n classNames.push('vis-day' + current.date());\n classNames.push('vis-' + current.format('MMMM').toLowerCase());\n classNames.push(today(current));\n classNames.push(currentMonth(current));\n classNames.push(this.step <= 2 ? today(current) : '');\n classNames.push(this.step <= 2 ? 'vis-' + current.format('dddd').toLowerCase() : '');\n classNames.push(even(current.date() - 1));\n break;\n case 'week':\n classNames.push('vis-week' + current.format('w'));\n classNames.push(currentWeek(current));\n classNames.push(even(current.week()));\n break;\n case 'month':\n classNames.push('vis-' + current.format('MMMM').toLowerCase());\n classNames.push(currentMonth(current));\n classNames.push(even(current.month()));\n break;\n case 'year':\n classNames.push('vis-year' + current.year());\n classNames.push(currentYear(current));\n classNames.push(even(current.year()));\n break;\n }\n return classNames.filter(String).join(\" \");\n};\n\nmodule.exports = TimeStep;\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar util = __webpack_require__(2);\nvar Component = __webpack_require__(16);\nvar moment = __webpack_require__(9);\nvar locales = __webpack_require__(98);\n\n/**\r\n * A current time bar\r\n * @param {{range: Range, dom: Object, domProps: Object}} body\r\n * @param {Object} [options] Available parameters:\r\n * {Boolean} [showCurrentTime]\r\n * @constructor CurrentTime\r\n * @extends Component\r\n */\nfunction CurrentTime(body, options) {\n this.body = body;\n\n // default options\n this.defaultOptions = {\n rtl: false,\n showCurrentTime: true,\n\n moment: moment,\n locales: locales,\n locale: 'en'\n };\n this.options = util.extend({}, this.defaultOptions);\n this.offset = 0;\n\n this._create();\n\n this.setOptions(options);\n}\n\nCurrentTime.prototype = new Component();\n\n/**\r\n * Create the HTML DOM for the current time bar\r\n * @private\r\n */\nCurrentTime.prototype._create = function () {\n var bar = document.createElement('div');\n bar.className = 'vis-current-time';\n bar.style.position = 'absolute';\n bar.style.top = '0px';\n bar.style.height = '100%';\n\n this.bar = bar;\n};\n\n/**\r\n * Destroy the CurrentTime bar\r\n */\nCurrentTime.prototype.destroy = function () {\n this.options.showCurrentTime = false;\n this.redraw(); // will remove the bar from the DOM and stop refreshing\n\n this.body = null;\n};\n\n/**\r\n * Set options for the component. Options will be merged in current options.\r\n * @param {Object} options Available parameters:\r\n * {boolean} [showCurrentTime]\r\n */\nCurrentTime.prototype.setOptions = function (options) {\n if (options) {\n // copy all options that we know\n util.selectiveExtend(['rtl', 'showCurrentTime', 'moment', 'locale', 'locales'], this.options, options);\n }\n};\n\n/**\r\n * Repaint the component\r\n * @return {boolean} Returns true if the component is resized\r\n */\nCurrentTime.prototype.redraw = function () {\n if (this.options.showCurrentTime) {\n var parent = this.body.dom.backgroundVertical;\n if (this.bar.parentNode != parent) {\n // attach to the dom\n if (this.bar.parentNode) {\n this.bar.parentNode.removeChild(this.bar);\n }\n parent.appendChild(this.bar);\n\n this.start();\n }\n\n var now = this.options.moment(new Date().valueOf() + this.offset);\n var x = this.body.util.toScreen(now);\n\n var locale = this.options.locales[this.options.locale];\n if (!locale) {\n if (!this.warned) {\n console.log('WARNING: options.locales[\\'' + this.options.locale + '\\'] not found. See http://visjs.org/docs/timeline/#Localization');\n this.warned = true;\n }\n locale = this.options.locales['en']; // fall back on english when not available\n }\n var title = locale.current + ' ' + locale.time + ': ' + now.format('dddd, MMMM Do YYYY, H:mm:ss');\n title = title.charAt(0).toUpperCase() + title.substring(1);\n\n if (this.options.rtl) {\n this.bar.style.right = x + 'px';\n } else {\n this.bar.style.left = x + 'px';\n }\n this.bar.title = title;\n } else {\n // remove the line from the DOM\n if (this.bar.parentNode) {\n this.bar.parentNode.removeChild(this.bar);\n }\n this.stop();\n }\n\n return false;\n};\n\n/**\r\n * Start auto refreshing the current time bar\r\n */\nCurrentTime.prototype.start = function () {\n var me = this;\n\n /**\r\n * Updates the current time.\r\n */\n function update() {\n me.stop();\n\n // determine interval to refresh\n var scale = me.body.range.conversion(me.body.domProps.center.width).scale;\n var interval = 1 / scale / 10;\n if (interval < 30) interval = 30;\n if (interval > 1000) interval = 1000;\n\n me.redraw();\n me.body.emitter.emit('currentTimeTick');\n\n // start a renderTimer to adjust for the new time\n me.currentTimeTimer = setTimeout(update, interval);\n }\n\n update();\n};\n\n/**\r\n * Stop auto refreshing the current time bar\r\n */\nCurrentTime.prototype.stop = function () {\n if (this.currentTimeTimer !== undefined) {\n clearTimeout(this.currentTimeTimer);\n delete this.currentTimeTimer;\n }\n};\n\n/**\r\n * Set a current time. This can be used for example to ensure that a client's\r\n * time is synchronized with a shared server time.\r\n * @param {Date | string | number} time A Date, unix timestamp, or\r\n * ISO date string.\r\n */\nCurrentTime.prototype.setCurrentTime = function (time) {\n var t = util.convert(time, 'Date').valueOf();\n var now = new Date().valueOf();\n this.offset = t - now;\n this.redraw();\n};\n\n/**\r\n * Get the current time.\r\n * @return {Date} Returns the current time.\r\n */\nCurrentTime.prototype.getCurrentTime = function () {\n return new Date(new Date().valueOf() + this.offset);\n};\n\nmodule.exports = CurrentTime;\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _keys = __webpack_require__(8);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar stack = __webpack_require__(100);\n\n/**\r\n * @param {number | string} groupId\r\n * @param {Object} data\r\n * @param {ItemSet} itemSet\r\n * @constructor Group\r\n */\nfunction Group(groupId, data, itemSet) {\n this.groupId = groupId;\n this.subgroups = {};\n this.subgroupStack = {};\n this.subgroupStackAll = false;\n this.doInnerStack = false;\n this.subgroupIndex = 0;\n this.subgroupOrderer = data && data.subgroupOrder;\n this.itemSet = itemSet;\n this.isVisible = null;\n this.stackDirty = true; // if true, items will be restacked on next redraw\n\n if (data && data.nestedGroups) {\n this.nestedGroups = data.nestedGroups;\n if (data.showNested == false) {\n this.showNested = false;\n } else {\n this.showNested = true;\n }\n }\n\n if (data && data.subgroupStack) {\n if (typeof data.subgroupStack === \"boolean\") {\n this.doInnerStack = data.subgroupStack;\n this.subgroupStackAll = data.subgroupStack;\n } else {\n // We might be doing stacking on specific sub groups, but only\n // if at least one is set to do stacking\n for (var key in data.subgroupStack) {\n this.subgroupStack[key] = data.subgroupStack[key];\n this.doInnerStack = this.doInnerStack || data.subgroupStack[key];\n }\n }\n }\n\n this.nestedInGroup = null;\n\n this.dom = {};\n this.props = {\n label: {\n width: 0,\n height: 0\n }\n };\n this.className = null;\n\n this.items = {}; // items filtered by groupId of this group\n this.visibleItems = []; // items currently visible in window\n this.itemsInRange = []; // items currently in range\n this.orderedItems = {\n byStart: [],\n byEnd: []\n };\n this.checkRangedItems = false; // needed to refresh the ranged items if the window is programatically changed with NO overlap.\n var me = this;\n this.itemSet.body.emitter.on(\"checkRangedItems\", function () {\n me.checkRangedItems = true;\n });\n\n this._create();\n\n this.setData(data);\n}\n\n/**\r\n * Create DOM elements for the group\r\n * @private\r\n */\nGroup.prototype._create = function () {\n var label = document.createElement('div');\n if (this.itemSet.options.groupEditable.order) {\n label.className = 'vis-label draggable';\n } else {\n label.className = 'vis-label';\n }\n this.dom.label = label;\n\n var inner = document.createElement('div');\n inner.className = 'vis-inner';\n label.appendChild(inner);\n this.dom.inner = inner;\n\n var foreground = document.createElement('div');\n foreground.className = 'vis-group';\n foreground['timeline-group'] = this;\n this.dom.foreground = foreground;\n\n this.dom.background = document.createElement('div');\n this.dom.background.className = 'vis-group';\n\n this.dom.axis = document.createElement('div');\n this.dom.axis.className = 'vis-group';\n\n // create a hidden marker to detect when the Timelines container is attached\n // to the DOM, or the style of a parent of the Timeline is changed from\n // display:none is changed to visible.\n this.dom.marker = document.createElement('div');\n this.dom.marker.style.visibility = 'hidden';\n this.dom.marker.style.position = 'absolute';\n this.dom.marker.innerHTML = '';\n this.dom.background.appendChild(this.dom.marker);\n};\n\n/**\r\n * Set the group data for this group\r\n * @param {Object} data Group data, can contain properties content and className\r\n */\nGroup.prototype.setData = function (data) {\n // update contents\n var content;\n var templateFunction;\n\n if (this.itemSet.options && this.itemSet.options.groupTemplate) {\n templateFunction = this.itemSet.options.groupTemplate.bind(this);\n content = templateFunction(data, this.dom.inner);\n } else {\n content = data && data.content;\n }\n\n if (content instanceof Element) {\n this.dom.inner.appendChild(content);\n while (this.dom.inner.firstChild) {\n this.dom.inner.removeChild(this.dom.inner.firstChild);\n }\n this.dom.inner.appendChild(content);\n } else if (content instanceof Object) {\n templateFunction(data, this.dom.inner);\n } else if (content !== undefined && content !== null) {\n this.dom.inner.innerHTML = content;\n } else {\n this.dom.inner.innerHTML = this.groupId || ''; // groupId can be null\n }\n\n // update title\n this.dom.label.title = data && data.title || '';\n if (!this.dom.inner.firstChild) {\n util.addClassName(this.dom.inner, 'vis-hidden');\n } else {\n util.removeClassName(this.dom.inner, 'vis-hidden');\n }\n\n if (data && data.nestedGroups) {\n if (!this.nestedGroups || this.nestedGroups != data.nestedGroups) {\n this.nestedGroups = data.nestedGroups;\n }\n\n if (data.showNested !== undefined || this.showNested === undefined) {\n if (data.showNested == false) {\n this.showNested = false;\n } else {\n this.showNested = true;\n }\n }\n\n util.addClassName(this.dom.label, 'vis-nesting-group');\n var collapsedDirClassName = this.itemSet.options.rtl ? 'collapsed-rtl' : 'collapsed';\n if (this.showNested) {\n util.removeClassName(this.dom.label, collapsedDirClassName);\n util.addClassName(this.dom.label, 'expanded');\n } else {\n util.removeClassName(this.dom.label, 'expanded');\n util.addClassName(this.dom.label, collapsedDirClassName);\n }\n } else if (this.nestedGroups) {\n this.nestedGroups = null;\n collapsedDirClassName = this.itemSet.options.rtl ? 'collapsed-rtl' : 'collapsed';\n util.removeClassName(this.dom.label, collapsedDirClassName);\n util.removeClassName(this.dom.label, 'expanded');\n util.removeClassName(this.dom.label, 'vis-nesting-group');\n }\n\n if (data && data.nestedInGroup) {\n util.addClassName(this.dom.label, 'vis-nested-group');\n if (this.itemSet.options && this.itemSet.options.rtl) {\n this.dom.inner.style.paddingRight = '30px';\n } else {\n this.dom.inner.style.paddingLeft = '30px';\n }\n }\n\n // update className\n var className = data && data.className || null;\n if (className != this.className) {\n if (this.className) {\n util.removeClassName(this.dom.label, this.className);\n util.removeClassName(this.dom.foreground, this.className);\n util.removeClassName(this.dom.background, this.className);\n util.removeClassName(this.dom.axis, this.className);\n }\n util.addClassName(this.dom.label, className);\n util.addClassName(this.dom.foreground, className);\n util.addClassName(this.dom.background, className);\n util.addClassName(this.dom.axis, className);\n this.className = className;\n }\n\n // update style\n if (this.style) {\n util.removeCssText(this.dom.label, this.style);\n this.style = null;\n }\n if (data && data.style) {\n util.addCssText(this.dom.label, data.style);\n this.style = data.style;\n }\n};\n\n/**\r\n * Get the width of the group label\r\n * @return {number} width\r\n */\nGroup.prototype.getLabelWidth = function () {\n return this.props.label.width;\n};\n\nGroup.prototype._didMarkerHeightChange = function () {\n var markerHeight = this.dom.marker.clientHeight;\n if (markerHeight != this.lastMarkerHeight) {\n this.lastMarkerHeight = markerHeight;\n var redrawQueue = {};\n var redrawQueueLength = 0;\n\n util.forEach(this.items, function (item, key) {\n item.dirty = true;\n if (item.displayed) {\n var returnQueue = true;\n redrawQueue[key] = item.redraw(returnQueue);\n redrawQueueLength = redrawQueue[key].length;\n }\n });\n\n var needRedraw = redrawQueueLength > 0;\n if (needRedraw) {\n // redraw all regular items\n for (var i = 0; i < redrawQueueLength; i++) {\n util.forEach(redrawQueue, function (fns) {\n fns[i]();\n });\n }\n }\n return true;\n }\n};\n\nGroup.prototype._calculateGroupSizeAndPosition = function () {\n var offsetTop = this.dom.foreground.offsetTop;\n var offsetLeft = this.dom.foreground.offsetLeft;\n var offsetWidth = this.dom.foreground.offsetWidth;\n this.top = offsetTop;\n this.right = offsetLeft;\n this.width = offsetWidth;\n};\n\nGroup.prototype._redrawItems = function (forceRestack, lastIsVisible, margin, range) {\n var restack = forceRestack || this.stackDirty || this.isVisible && !lastIsVisible;\n\n // if restacking, reposition visible items vertically\n if (restack) {\n var visibleSubgroups = {};\n var subgroup = null;\n\n if (typeof this.itemSet.options.order === 'function') {\n // a custom order function\n // brute force restack of all items\n\n // show all items\n var me = this;\n var limitSize = false;\n\n var redrawQueue = {};\n var redrawQueueLength = 0;\n\n util.forEach(this.items, function (item, key) {\n if (!item.displayed) {\n var returnQueue = true;\n redrawQueue[key] = item.redraw(returnQueue);\n redrawQueueLength = redrawQueue[key].length;\n me.visibleItems.push(item);\n }\n });\n\n var needRedraw = redrawQueueLength > 0;\n if (needRedraw) {\n // redraw all regular items\n for (var i = 0; i < redrawQueueLength; i++) {\n util.forEach(redrawQueue, function (fns) {\n fns[i]();\n });\n }\n }\n\n util.forEach(this.items, function (item) {\n item.repositionX(limitSize);\n });\n\n if (this.doInnerStack && this.itemSet.options.stackSubgroups) {\n // Order the items within each subgroup\n for (subgroup in this.subgroups) {\n visibleSubgroups[subgroup] = this.subgroups[subgroup].items.slice().sort(function (a, b) {\n return me.itemSet.options.order(a.data, b.data);\n });\n }\n\n stack.stackSubgroupsWithInnerStack(visibleSubgroups, margin, this.subgroups);\n } else {\n // order all items and force a restacking\n var customOrderedItems = this.orderedItems.byStart.slice().sort(function (a, b) {\n return me.itemSet.options.order(a.data, b.data);\n });\n stack.stack(customOrderedItems, margin, true /* restack=true */);\n }\n\n this.visibleItems = this._updateItemsInRange(this.orderedItems, this.visibleItems, range);\n } else {\n // no custom order function, lazy stacking\n this.visibleItems = this._updateItemsInRange(this.orderedItems, this.visibleItems, range);\n\n if (this.itemSet.options.stack) {\n if (this.doInnerStack && this.itemSet.options.stackSubgroups) {\n for (subgroup in this.subgroups) {\n visibleSubgroups[subgroup] = this.subgroups[subgroup].items;\n }\n\n stack.stackSubgroupsWithInnerStack(visibleSubgroups, margin, this.subgroups);\n } else {\n // TODO: ugly way to access options...\n stack.stack(this.visibleItems, margin, true /* restack=true */);\n }\n } else {\n // no stacking\n stack.nostack(this.visibleItems, margin, this.subgroups, this.itemSet.options.stackSubgroups);\n }\n }\n\n this.stackDirty = false;\n }\n};\n\nGroup.prototype._didResize = function (resized, height) {\n resized = util.updateProperty(this, 'height', height) || resized;\n // recalculate size of label\n var labelWidth = this.dom.inner.clientWidth;\n var labelHeight = this.dom.inner.clientHeight;\n resized = util.updateProperty(this.props.label, 'width', labelWidth) || resized;\n resized = util.updateProperty(this.props.label, 'height', labelHeight) || resized;\n return resized;\n};\n\nGroup.prototype._applyGroupHeight = function (height) {\n this.dom.background.style.height = height + 'px';\n this.dom.foreground.style.height = height + 'px';\n this.dom.label.style.height = height + 'px';\n};\n\n// update vertical position of items after they are re-stacked and the height of the group is calculated\nGroup.prototype._updateItemsVerticalPosition = function (margin) {\n for (var i = 0, ii = this.visibleItems.length; i < ii; i++) {\n var item = this.visibleItems[i];\n item.repositionY(margin);\n if (!this.isVisible && this.groupId != \"__background__\") {\n if (item.displayed) item.hide();\n }\n }\n};\n\n/**\r\n * Repaint this group\r\n * @param {{start: number, end: number}} range\r\n * @param {{item: {horizontal: number, vertical: number}, axis: number}} margin\r\n * @param {boolean} [forceRestack=false] Force restacking of all items\r\n * @param {boolean} [returnQueue=false] return the queue or if the group resized\r\n * @return {boolean} Returns true if the group is resized or the redraw queue if returnQueue=true\r\n */\nGroup.prototype.redraw = function (range, margin, forceRestack, returnQueue) {\n var resized = false;\n var lastIsVisible = this.isVisible;\n var height;\n\n var queue = [\n // force recalculation of the height of the items when the marker height changed\n // (due to the Timeline being attached to the DOM or changed from display:none to visible)\n function () {\n forceRestack = this._didMarkerHeightChange.bind(this);\n }.bind(this),\n\n // recalculate the height of the subgroups\n this._updateSubGroupHeights.bind(this, margin),\n\n // calculate actual size and position\n this._calculateGroupSizeAndPosition.bind(this),\n\n // check if group is visible\n function () {\n this.isVisible = this._isGroupVisible.bind(this)(range, margin);\n }.bind(this),\n\n // redraw Items if needed\n function () {\n this._redrawItems.bind(this)(forceRestack, lastIsVisible, margin, range);\n }.bind(this),\n\n // update subgroups\n this._updateSubgroupsSizes.bind(this),\n\n // recalculate the height of the group\n function () {\n height = this._calculateHeight.bind(this)(margin);\n }.bind(this),\n\n // calculate actual size and position again\n this._calculateGroupSizeAndPosition.bind(this),\n\n // check if resized\n function () {\n resized = this._didResize.bind(this)(resized, height);\n }.bind(this),\n\n // apply group height\n function () {\n this._applyGroupHeight.bind(this)(height);\n }.bind(this),\n\n // update vertical position of items after they are re-stacked and the height of the group is calculated\n function () {\n this._updateItemsVerticalPosition.bind(this)(margin);\n }.bind(this), function () {\n if (!this.isVisible && this.height) {\n resized = false;\n }\n return resized;\n }];\n\n if (returnQueue) {\n return queue;\n } else {\n var result;\n queue.forEach(function (fn) {\n result = fn();\n });\n return result;\n }\n};\n\n/**\r\n * recalculate the height of the subgroups\r\n *\r\n * @param {{item: vis.Item}} margin\r\n * @private\r\n */\nGroup.prototype._updateSubGroupHeights = function (margin) {\n if ((0, _keys2['default'])(this.subgroups).length > 0) {\n var me = this;\n\n this.resetSubgroups();\n\n util.forEach(this.visibleItems, function (item) {\n if (item.data.subgroup !== undefined) {\n me.subgroups[item.data.subgroup].height = Math.max(me.subgroups[item.data.subgroup].height, item.height + margin.item.vertical);\n me.subgroups[item.data.subgroup].visible = true;\n }\n });\n }\n};\n\n/**\r\n * check if group is visible\r\n *\r\n * @param {vis.Range} range\r\n * @param {{axis: vis.DataAxis}} margin\r\n * @returns {boolean} is visible\r\n * @private\r\n */\nGroup.prototype._isGroupVisible = function (range, margin) {\n return this.top <= range.body.domProps.centerContainer.height - range.body.domProps.scrollTop + margin.axis && this.top + this.height + margin.axis >= -range.body.domProps.scrollTop;\n};\n\n/**\r\n * recalculate the height of the group\r\n * @param {{item: {horizontal: number, vertical: number}, axis: number}} margin\r\n * @returns {number} Returns the height\r\n * @private\r\n */\nGroup.prototype._calculateHeight = function (margin) {\n // recalculate the height of the group\n var height;\n var itemsInRange = this.visibleItems;\n if (itemsInRange.length > 0) {\n var min = itemsInRange[0].top;\n var max = itemsInRange[0].top + itemsInRange[0].height;\n util.forEach(itemsInRange, function (item) {\n min = Math.min(min, item.top);\n max = Math.max(max, item.top + item.height);\n });\n if (min > margin.axis) {\n // there is an empty gap between the lowest item and the axis\n var offset = min - margin.axis;\n max -= offset;\n util.forEach(itemsInRange, function (item) {\n item.top -= offset;\n });\n }\n height = max + margin.item.vertical / 2;\n } else {\n height = 0;\n }\n height = Math.max(height, this.props.label.height);\n\n return height;\n};\n\n/**\r\n * Show this group: attach to the DOM\r\n */\nGroup.prototype.show = function () {\n if (!this.dom.label.parentNode) {\n this.itemSet.dom.labelSet.appendChild(this.dom.label);\n }\n\n if (!this.dom.foreground.parentNode) {\n this.itemSet.dom.foreground.appendChild(this.dom.foreground);\n }\n\n if (!this.dom.background.parentNode) {\n this.itemSet.dom.background.appendChild(this.dom.background);\n }\n\n if (!this.dom.axis.parentNode) {\n this.itemSet.dom.axis.appendChild(this.dom.axis);\n }\n};\n\n/**\r\n * Hide this group: remove from the DOM\r\n */\nGroup.prototype.hide = function () {\n var label = this.dom.label;\n if (label.parentNode) {\n label.parentNode.removeChild(label);\n }\n\n var foreground = this.dom.foreground;\n if (foreground.parentNode) {\n foreground.parentNode.removeChild(foreground);\n }\n\n var background = this.dom.background;\n if (background.parentNode) {\n background.parentNode.removeChild(background);\n }\n\n var axis = this.dom.axis;\n if (axis.parentNode) {\n axis.parentNode.removeChild(axis);\n }\n};\n\n/**\r\n * Add an item to the group\r\n * @param {Item} item\r\n */\nGroup.prototype.add = function (item) {\n this.items[item.id] = item;\n item.setParent(this);\n this.stackDirty = true;\n // add to\n if (item.data.subgroup !== undefined) {\n this._addToSubgroup(item);\n this.orderSubgroups();\n }\n\n if (this.visibleItems.indexOf(item) == -1) {\n var range = this.itemSet.body.range; // TODO: not nice accessing the range like this\n this._checkIfVisible(item, this.visibleItems, range);\n }\n};\n\nGroup.prototype._addToSubgroup = function (item, subgroupId) {\n subgroupId = subgroupId || item.data.subgroup;\n if (subgroupId != undefined && this.subgroups[subgroupId] === undefined) {\n this.subgroups[subgroupId] = {\n height: 0,\n top: 0,\n start: item.data.start,\n end: item.data.end || item.data.start,\n visible: false,\n index: this.subgroupIndex,\n items: [],\n stack: this.subgroupStackAll || this.subgroupStack[subgroupId] || false\n };\n this.subgroupIndex++;\n }\n\n if (new Date(item.data.start) < new Date(this.subgroups[subgroupId].start)) {\n this.subgroups[subgroupId].start = item.data.start;\n }\n\n var itemEnd = item.data.end || item.data.start;\n if (new Date(itemEnd) > new Date(this.subgroups[subgroupId].end)) {\n this.subgroups[subgroupId].end = itemEnd;\n }\n\n this.subgroups[subgroupId].items.push(item);\n};\n\nGroup.prototype._updateSubgroupsSizes = function () {\n var me = this;\n if (me.subgroups) {\n for (var subgroup in me.subgroups) {\n var initialEnd = me.subgroups[subgroup].items[0].data.end || me.subgroups[subgroup].items[0].data.start;\n var newStart = me.subgroups[subgroup].items[0].data.start;\n var newEnd = initialEnd - 1;\n\n me.subgroups[subgroup].items.forEach(function (item) {\n if (new Date(item.data.start) < new Date(newStart)) {\n newStart = item.data.start;\n }\n\n var itemEnd = item.data.end || item.data.start;\n if (new Date(itemEnd) > new Date(newEnd)) {\n newEnd = itemEnd;\n }\n });\n\n me.subgroups[subgroup].start = newStart;\n me.subgroups[subgroup].end = new Date(newEnd - 1); // -1 to compensate for colliding end to start subgroups;\n }\n }\n};\n\nGroup.prototype.orderSubgroups = function () {\n if (this.subgroupOrderer !== undefined) {\n var sortArray = [];\n var subgroup;\n if (typeof this.subgroupOrderer == 'string') {\n for (subgroup in this.subgroups) {\n sortArray.push({ subgroup: subgroup, sortField: this.subgroups[subgroup].items[0].data[this.subgroupOrderer] });\n }\n sortArray.sort(function (a, b) {\n return a.sortField - b.sortField;\n });\n } else if (typeof this.subgroupOrderer == 'function') {\n for (subgroup in this.subgroups) {\n sortArray.push(this.subgroups[subgroup].items[0].data);\n }\n sortArray.sort(this.subgroupOrderer);\n }\n\n if (sortArray.length > 0) {\n for (var i = 0; i < sortArray.length; i++) {\n this.subgroups[sortArray[i].subgroup].index = i;\n }\n }\n }\n};\n\nGroup.prototype.resetSubgroups = function () {\n for (var subgroup in this.subgroups) {\n if (this.subgroups.hasOwnProperty(subgroup)) {\n this.subgroups[subgroup].visible = false;\n this.subgroups[subgroup].height = 0;\n }\n }\n};\n\n/**\r\n * Remove an item from the group\r\n * @param {Item} item\r\n */\nGroup.prototype.remove = function (item) {\n delete this.items[item.id];\n item.setParent(null);\n this.stackDirty = true;\n\n // remove from visible items\n var index = this.visibleItems.indexOf(item);\n if (index != -1) this.visibleItems.splice(index, 1);\n\n if (item.data.subgroup !== undefined) {\n this._removeFromSubgroup(item);\n this.orderSubgroups();\n }\n};\n\nGroup.prototype._removeFromSubgroup = function (item, subgroupId) {\n subgroupId = subgroupId || item.data.subgroup;\n if (subgroupId != undefined) {\n var subgroup = this.subgroups[subgroupId];\n if (subgroup) {\n var itemIndex = subgroup.items.indexOf(item);\n // Check the item is actually in this subgroup. How should items not in the group be handled?\n if (itemIndex >= 0) {\n subgroup.items.splice(itemIndex, 1);\n if (!subgroup.items.length) {\n delete this.subgroups[subgroupId];\n } else {\n this._updateSubgroupsSizes();\n }\n }\n }\n }\n};\n\n/**\r\n * Remove an item from the corresponding DataSet\r\n * @param {Item} item\r\n */\nGroup.prototype.removeFromDataSet = function (item) {\n this.itemSet.removeItem(item.id);\n};\n\n/**\r\n * Reorder the items\r\n */\nGroup.prototype.order = function () {\n var array = util.toArray(this.items);\n var startArray = [];\n var endArray = [];\n\n for (var i = 0; i < array.length; i++) {\n if (array[i].data.end !== undefined) {\n endArray.push(array[i]);\n }\n startArray.push(array[i]);\n }\n this.orderedItems = {\n byStart: startArray,\n byEnd: endArray\n };\n\n stack.orderByStart(this.orderedItems.byStart);\n stack.orderByEnd(this.orderedItems.byEnd);\n};\n\n/**\r\n * Update the visible items\r\n * @param {{byStart: Item[], byEnd: Item[]}} orderedItems All items ordered by start date and by end date\r\n * @param {Item[]} oldVisibleItems The previously visible items.\r\n * @param {{start: number, end: number}} range Visible range\r\n * @return {Item[]} visibleItems The new visible items.\r\n * @private\r\n */\nGroup.prototype._updateItemsInRange = function (orderedItems, oldVisibleItems, range) {\n var visibleItems = [];\n var visibleItemsLookup = {}; // we keep this to quickly look up if an item already exists in the list without using indexOf on visibleItems\n\n var interval = (range.end - range.start) / 4;\n var lowerBound = range.start - interval;\n var upperBound = range.end + interval;\n\n // this function is used to do the binary search.\n var searchFunction = function searchFunction(value) {\n if (value < lowerBound) {\n return -1;\n } else if (value <= upperBound) {\n return 0;\n } else {\n return 1;\n }\n };\n\n // first check if the items that were in view previously are still in view.\n // IMPORTANT: this handles the case for the items with startdate before the window and enddate after the window!\n // also cleans up invisible items.\n if (oldVisibleItems.length > 0) {\n for (var i = 0; i < oldVisibleItems.length; i++) {\n this._checkIfVisibleWithReference(oldVisibleItems[i], visibleItems, visibleItemsLookup, range);\n }\n }\n\n // we do a binary search for the items that have only start values.\n var initialPosByStart = util.binarySearchCustom(orderedItems.byStart, searchFunction, 'data', 'start');\n\n // trace the visible items from the inital start pos both ways until an invisible item is found, we only look at the start values.\n this._traceVisible(initialPosByStart, orderedItems.byStart, visibleItems, visibleItemsLookup, function (item) {\n return item.data.start < lowerBound || item.data.start > upperBound;\n });\n\n // if the window has changed programmatically without overlapping the old window, the ranged items with start < lowerBound and end > upperbound are not shown.\n // We therefore have to brute force check all items in the byEnd list\n if (this.checkRangedItems == true) {\n this.checkRangedItems = false;\n for (i = 0; i < orderedItems.byEnd.length; i++) {\n this._checkIfVisibleWithReference(orderedItems.byEnd[i], visibleItems, visibleItemsLookup, range);\n }\n } else {\n // we do a binary search for the items that have defined end times.\n var initialPosByEnd = util.binarySearchCustom(orderedItems.byEnd, searchFunction, 'data', 'end');\n\n // trace the visible items from the inital start pos both ways until an invisible item is found, we only look at the end values.\n this._traceVisible(initialPosByEnd, orderedItems.byEnd, visibleItems, visibleItemsLookup, function (item) {\n return item.data.end < lowerBound || item.data.end > upperBound;\n });\n }\n\n var redrawQueue = {};\n var redrawQueueLength = 0;\n\n for (i = 0; i < visibleItems.length; i++) {\n var item = visibleItems[i];\n if (!item.displayed) {\n var returnQueue = true;\n redrawQueue[i] = item.redraw(returnQueue);\n redrawQueueLength = redrawQueue[i].length;\n }\n }\n\n var needRedraw = redrawQueueLength > 0;\n if (needRedraw) {\n // redraw all regular items\n for (var j = 0; j < redrawQueueLength; j++) {\n util.forEach(redrawQueue, function (fns) {\n fns[j]();\n });\n }\n }\n\n for (i = 0; i < visibleItems.length; i++) {\n visibleItems[i].repositionX();\n }\n return visibleItems;\n};\n\nGroup.prototype._traceVisible = function (initialPos, items, visibleItems, visibleItemsLookup, breakCondition) {\n if (initialPos != -1) {\n var i, item;\n for (i = initialPos; i >= 0; i--) {\n item = items[i];\n if (breakCondition(item)) {\n break;\n } else {\n if (visibleItemsLookup[item.id] === undefined) {\n visibleItemsLookup[item.id] = true;\n visibleItems.push(item);\n }\n }\n }\n\n for (i = initialPos + 1; i < items.length; i++) {\n item = items[i];\n if (breakCondition(item)) {\n break;\n } else {\n if (visibleItemsLookup[item.id] === undefined) {\n visibleItemsLookup[item.id] = true;\n visibleItems.push(item);\n }\n }\n }\n }\n};\n\n/**\r\n * this function is very similar to the _checkIfInvisible() but it does not\r\n * return booleans, hides the item if it should not be seen and always adds to\r\n * the visibleItems.\r\n * this one is for brute forcing and hiding.\r\n *\r\n * @param {Item} item\r\n * @param {Array} visibleItems\r\n * @param {{start:number, end:number}} range\r\n * @private\r\n */\nGroup.prototype._checkIfVisible = function (item, visibleItems, range) {\n if (item.isVisible(range)) {\n if (!item.displayed) item.show();\n // reposition item horizontally\n item.repositionX();\n visibleItems.push(item);\n } else {\n if (item.displayed) item.hide();\n }\n};\n\n/**\r\n * this function is very similar to the _checkIfInvisible() but it does not\r\n * return booleans, hides the item if it should not be seen and always adds to\r\n * the visibleItems.\r\n * this one is for brute forcing and hiding.\r\n *\r\n * @param {Item} item\r\n * @param {Array.<vis.Item>} visibleItems\r\n * @param {Object<number, boolean>} visibleItemsLookup\r\n * @param {{start:number, end:number}} range\r\n * @private\r\n */\nGroup.prototype._checkIfVisibleWithReference = function (item, visibleItems, visibleItemsLookup, range) {\n if (item.isVisible(range)) {\n if (visibleItemsLookup[item.id] === undefined) {\n visibleItemsLookup[item.id] = true;\n visibleItems.push(item);\n }\n } else {\n if (item.displayed) item.hide();\n }\n};\n\nGroup.prototype.changeSubgroup = function (item, oldSubgroup, newSubgroup) {\n this._removeFromSubgroup(item, oldSubgroup);\n this._addToSubgroup(item, newSubgroup);\n this.orderSubgroups();\n};\n\nmodule.exports = Group;\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _create = __webpack_require__(29);\n\nvar _create2 = _interopRequireDefault(_create);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Group = __webpack_require__(68);\n\n/**\r\n * @constructor BackgroundGroup\r\n * @param {number | string} groupId\r\n * @param {Object} data\r\n * @param {ItemSet} itemSet\r\n * @extends Group\r\n */\nfunction BackgroundGroup(groupId, data, itemSet) {\n Group.call(this, groupId, data, itemSet);\n\n this.width = 0;\n this.height = 0;\n this.top = 0;\n this.left = 0;\n}\n\nBackgroundGroup.prototype = (0, _create2['default'])(Group.prototype);\n\n/**\r\n * Repaint this group\r\n * @param {{start: number, end: number}} range\r\n * @param {{item: {horizontal: number, vertical: number}, axis: number}} margin\r\n * @param {boolean} [forceRestack=false] Force restacking of all items\r\n * @return {boolean} Returns true if the group is resized\r\n */\nBackgroundGroup.prototype.redraw = function (range, margin, forceRestack) {\n // eslint-disable-line no-unused-vars\n var resized = false;\n\n this.visibleItems = this._updateItemsInRange(this.orderedItems, this.visibleItems, range);\n\n // calculate actual size\n this.width = this.dom.background.offsetWidth;\n\n // apply new height (just always zero for BackgroundGroup\n this.dom.background.style.height = '0';\n\n // update vertical position of items after they are re-stacked and the height of the group is calculated\n for (var i = 0, ii = this.visibleItems.length; i < ii; i++) {\n var item = this.visibleItems[i];\n item.repositionY(margin);\n }\n\n return resized;\n};\n\n/**\r\n * Show this group: attach to the DOM\r\n */\nBackgroundGroup.prototype.show = function () {\n if (!this.dom.background.parentNode) {\n this.itemSet.dom.background.appendChild(this.dom.background);\n }\n};\n\nmodule.exports = BackgroundGroup;\n\n/***/ }),\n/* 70 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar Item = __webpack_require__(38);\n\n/**\r\n * @constructor RangeItem\r\n * @extends Item\r\n * @param {Object} data Object containing parameters start, end\r\n * content, className.\r\n * @param {{toScreen: function, toTime: function}} conversion\r\n * Conversion functions from time to screen and vice versa\r\n * @param {Object} [options] Configuration options\r\n * // TODO: describe options\r\n */\nfunction RangeItem(data, conversion, options) {\n this.props = {\n content: {\n width: 0\n }\n };\n this.overflow = false; // if contents can overflow (css styling), this flag is set to true\n this.options = options;\n // validate data\n if (data) {\n if (data.start == undefined) {\n throw new Error('Property \"start\" missing in item ' + data.id);\n }\n if (data.end == undefined) {\n throw new Error('Property \"end\" missing in item ' + data.id);\n }\n }\n\n Item.call(this, data, conversion, options);\n}\n\nRangeItem.prototype = new Item(null, null, null);\n\nRangeItem.prototype.baseClassName = 'vis-item vis-range';\n\n/**\r\n * Check whether this item is visible inside given range\r\n *\r\n * @param {vis.Range} range with a timestamp for start and end\r\n * @returns {boolean} True if visible\r\n */\nRangeItem.prototype.isVisible = function (range) {\n // determine visibility\n return this.data.start < range.end && this.data.end > range.start;\n};\n\nRangeItem.prototype._createDomElement = function () {\n if (!this.dom) {\n // create DOM\n this.dom = {};\n\n // background box\n this.dom.box = document.createElement('div');\n // className is updated in redraw()\n\n // frame box (to prevent the item contents from overflowing)\n this.dom.frame = document.createElement('div');\n this.dom.frame.className = 'vis-item-overflow';\n this.dom.box.appendChild(this.dom.frame);\n\n // visible frame box (showing the frame that is always visible)\n this.dom.visibleFrame = document.createElement('div');\n this.dom.visibleFrame.className = 'vis-item-visible-frame';\n this.dom.box.appendChild(this.dom.visibleFrame);\n\n // contents box\n this.dom.content = document.createElement('div');\n this.dom.content.className = 'vis-item-content';\n this.dom.frame.appendChild(this.dom.content);\n\n // attach this item as attribute\n this.dom.box['timeline-item'] = this;\n\n this.dirty = true;\n }\n};\n\nRangeItem.prototype._appendDomElement = function () {\n if (!this.parent) {\n throw new Error('Cannot redraw item: no parent attached');\n }\n if (!this.dom.box.parentNode) {\n var foreground = this.parent.dom.foreground;\n if (!foreground) {\n throw new Error('Cannot redraw item: parent has no foreground container element');\n }\n foreground.appendChild(this.dom.box);\n }\n this.displayed = true;\n};\n\nRangeItem.prototype._updateDirtyDomComponents = function () {\n // update dirty DOM. An item is marked dirty when:\n // - the item is not yet rendered\n // - the item's data is changed\n // - the item is selected/deselected\n if (this.dirty) {\n this._updateContents(this.dom.content);\n this._updateDataAttributes(this.dom.box);\n this._updateStyle(this.dom.box);\n\n var editable = this.editable.updateTime || this.editable.updateGroup;\n\n // update class\n var className = (this.data.className ? ' ' + this.data.className : '') + (this.selected ? ' vis-selected' : '') + (editable ? ' vis-editable' : ' vis-readonly');\n this.dom.box.className = this.baseClassName + className;\n\n // turn off max-width to be able to calculate the real width\n // this causes an extra browser repaint/reflow, but so be it\n this.dom.content.style.maxWidth = 'none';\n }\n};\n\nRangeItem.prototype._getDomComponentsSizes = function () {\n // determine from css whether this box has overflow\n this.overflow = window.getComputedStyle(this.dom.frame).overflow !== 'hidden';\n return {\n content: {\n width: this.dom.content.offsetWidth\n },\n box: {\n height: this.dom.box.offsetHeight\n }\n };\n};\n\nRangeItem.prototype._updateDomComponentsSizes = function (sizes) {\n this.props.content.width = sizes.content.width;\n this.height = sizes.box.height;\n this.dom.content.style.maxWidth = '';\n this.dirty = false;\n};\n\nRangeItem.prototype._repaintDomAdditionals = function () {\n this._repaintOnItemUpdateTimeTooltip(this.dom.box);\n this._repaintDeleteButton(this.dom.box);\n this._repaintDragCenter();\n this._repaintDragLeft();\n this._repaintDragRight();\n};\n\n/**\r\n * Repaint the item\r\n * @param {boolean} [returnQueue=false] return the queue\r\n * @return {boolean} the redraw queue if returnQueue=true\r\n */\nRangeItem.prototype.redraw = function (returnQueue) {\n var sizes;\n var queue = [\n // create item DOM\n this._createDomElement.bind(this),\n\n // append DOM to parent DOM\n this._appendDomElement.bind(this),\n\n // update dirty DOM \n this._updateDirtyDomComponents.bind(this), function () {\n if (this.dirty) {\n sizes = this._getDomComponentsSizes.bind(this)();\n }\n }.bind(this), function () {\n if (this.dirty) {\n this._updateDomComponentsSizes.bind(this)(sizes);\n }\n }.bind(this),\n\n // repaint DOM additionals\n this._repaintDomAdditionals.bind(this)];\n\n if (returnQueue) {\n return queue;\n } else {\n var result;\n queue.forEach(function (fn) {\n result = fn();\n });\n return result;\n }\n};\n\n/**\r\n * Show the item in the DOM (when not already visible). The items DOM will\r\n * be created when needed.\r\n */\nRangeItem.prototype.show = function () {\n if (!this.displayed) {\n this.redraw();\n }\n};\n\n/**\r\n * Hide the item from the DOM (when visible)\r\n */\nRangeItem.prototype.hide = function () {\n if (this.displayed) {\n var box = this.dom.box;\n\n if (box.parentNode) {\n box.parentNode.removeChild(box);\n }\n\n this.displayed = false;\n }\n};\n\n/**\r\n * Reposition the item horizontally\r\n * @param {boolean} [limitSize=true] If true (default), the width of the range\r\n * item will be limited, as the browser cannot\r\n * display very wide divs. This means though\r\n * that the applied left and width may\r\n * not correspond to the ranges start and end\r\n * @Override\r\n */\nRangeItem.prototype.repositionX = function (limitSize) {\n var parentWidth = this.parent.width;\n var start = this.conversion.toScreen(this.data.start);\n var end = this.conversion.toScreen(this.data.end);\n var align = this.data.align === undefined ? this.options.align : this.data.align;\n var contentStartPosition;\n var contentWidth;\n\n // limit the width of the range, as browsers cannot draw very wide divs\n // unless limitSize: false is explicitly set in item data\n if (this.data.limitSize !== false && (limitSize === undefined || limitSize === true)) {\n if (start < -parentWidth) {\n start = -parentWidth;\n }\n if (end > 2 * parentWidth) {\n end = 2 * parentWidth;\n }\n }\n\n // add 0.5 to compensate floating-point values rounding\n var boxWidth = Math.max(end - start + 0.5, 1);\n\n if (this.overflow) {\n if (this.options.rtl) {\n this.right = start;\n } else {\n this.left = start;\n }\n this.width = boxWidth + this.props.content.width;\n contentWidth = this.props.content.width;\n\n // Note: The calculation of width is an optimistic calculation, giving\n // a width which will not change when moving the Timeline\n // So no re-stacking needed, which is nicer for the eye;\n } else {\n if (this.options.rtl) {\n this.right = start;\n } else {\n this.left = start;\n }\n this.width = boxWidth;\n contentWidth = Math.min(end - start, this.props.content.width);\n }\n\n if (this.options.rtl) {\n this.dom.box.style.right = this.right + 'px';\n } else {\n this.dom.box.style.left = this.left + 'px';\n }\n this.dom.box.style.width = boxWidth + 'px';\n\n switch (align) {\n case 'left':\n if (this.options.rtl) {\n this.dom.content.style.right = '0';\n } else {\n this.dom.content.style.left = '0';\n }\n break;\n\n case 'right':\n if (this.options.rtl) {\n this.dom.content.style.right = Math.max(boxWidth - contentWidth, 0) + 'px';\n } else {\n this.dom.content.style.left = Math.max(boxWidth - contentWidth, 0) + 'px';\n }\n break;\n\n case 'center':\n if (this.options.rtl) {\n this.dom.content.style.right = Math.max((boxWidth - contentWidth) / 2, 0) + 'px';\n } else {\n this.dom.content.style.left = Math.max((boxWidth - contentWidth) / 2, 0) + 'px';\n }\n\n break;\n\n default:\n // 'auto'\n // when range exceeds left of the window, position the contents at the left of the visible area\n if (this.overflow) {\n if (end > 0) {\n contentStartPosition = Math.max(-start, 0);\n } else {\n contentStartPosition = -contentWidth; // ensure it's not visible anymore\n }\n } else {\n if (start < 0) {\n contentStartPosition = -start;\n } else {\n contentStartPosition = 0;\n }\n }\n if (this.options.rtl) {\n this.dom.content.style.right = contentStartPosition + 'px';\n } else {\n this.dom.content.style.left = contentStartPosition + 'px';\n this.dom.content.style.width = 'calc(100% - ' + contentStartPosition + 'px)';\n }\n }\n};\n\n/**\r\n * Reposition the item vertically\r\n * @Override\r\n */\nRangeItem.prototype.repositionY = function () {\n var orientation = this.options.orientation.item;\n var box = this.dom.box;\n\n if (orientation == 'top') {\n box.style.top = this.top + 'px';\n } else {\n box.style.top = this.parent.height - this.top - this.height + 'px';\n }\n};\n\n/**\r\n * Repaint a drag area on the left side of the range when the range is selected\r\n * @protected\r\n */\nRangeItem.prototype._repaintDragLeft = function () {\n if ((this.selected || this.options.itemsAlwaysDraggable.range) && this.options.editable.updateTime && !this.dom.dragLeft) {\n // create and show drag area\n var dragLeft = document.createElement('div');\n dragLeft.className = 'vis-drag-left';\n dragLeft.dragLeftItem = this;\n\n this.dom.box.appendChild(dragLeft);\n this.dom.dragLeft = dragLeft;\n } else if (!this.selected && !this.options.itemsAlwaysDraggable.range && this.dom.dragLeft) {\n // delete drag area\n if (this.dom.dragLeft.parentNode) {\n this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft);\n }\n this.dom.dragLeft = null;\n }\n};\n\n/**\r\n * Repaint a drag area on the right side of the range when the range is selected\r\n * @protected\r\n */\nRangeItem.prototype._repaintDragRight = function () {\n if ((this.selected || this.options.itemsAlwaysDraggable.range) && this.options.editable.updateTime && !this.dom.dragRight) {\n // create and show drag area\n var dragRight = document.createElement('div');\n dragRight.className = 'vis-drag-right';\n dragRight.dragRightItem = this;\n\n this.dom.box.appendChild(dragRight);\n this.dom.dragRight = dragRight;\n } else if (!this.selected && !this.options.itemsAlwaysDraggable.range && this.dom.dragRight) {\n // delete drag area\n if (this.dom.dragRight.parentNode) {\n this.dom.dragRight.parentNode.removeChild(this.dom.dragRight);\n }\n this.dom.dragRight = null;\n }\n};\n\nmodule.exports = RangeItem;\n\n/***/ }),\n/* 71 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\n\nvar ColorPicker = __webpack_require__(179)['default'];\n\n/**\r\n * The way this works is for all properties of this.possible options, you can supply the property name in any form to list the options.\r\n * Boolean options are recognised as Boolean\r\n * Number options should be written as array: [default value, min value, max value, stepsize]\r\n * Colors should be written as array: ['color', '#ffffff']\r\n * Strings with should be written as array: [option1, option2, option3, ..]\r\n *\r\n * The options are matched with their counterparts in each of the modules and the values used in the configuration are\r\n */\n\nvar Configurator = function () {\n /**\r\n * @param {Object} parentModule | the location where parentModule.setOptions() can be called\r\n * @param {Object} defaultContainer | the default container of the module\r\n * @param {Object} configureOptions | the fully configured and predefined options set found in allOptions.js\r\n * @param {number} pixelRatio | canvas pixel ratio\r\n */\n function Configurator(parentModule, defaultContainer, configureOptions) {\n var pixelRatio = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n (0, _classCallCheck3['default'])(this, Configurator);\n\n this.parent = parentModule;\n this.changedOptions = [];\n this.container = defaultContainer;\n this.allowCreation = false;\n\n this.options = {};\n this.initialized = false;\n this.popupCounter = 0;\n this.defaultOptions = {\n enabled: false,\n filter: true,\n container: undefined,\n showButton: true\n };\n util.extend(this.options, this.defaultOptions);\n\n this.configureOptions = configureOptions;\n this.moduleOptions = {};\n this.domElements = [];\n this.popupDiv = {};\n this.popupLimit = 5;\n this.popupHistory = {};\n this.colorPicker = new ColorPicker(pixelRatio);\n this.wrapper = undefined;\n }\n\n /**\r\n * refresh all options.\r\n * Because all modules parse their options by themselves, we just use their options. We copy them here.\r\n *\r\n * @param {Object} options\r\n */\n\n\n (0, _createClass3['default'])(Configurator, [{\n key: 'setOptions',\n value: function setOptions(options) {\n if (options !== undefined) {\n // reset the popup history because the indices may have been changed.\n this.popupHistory = {};\n this._removePopup();\n\n var enabled = true;\n if (typeof options === 'string') {\n this.options.filter = options;\n } else if (options instanceof Array) {\n this.options.filter = options.join();\n } else if ((typeof options === 'undefined' ? 'undefined' : (0, _typeof3['default'])(options)) === 'object') {\n if (options.container !== undefined) {\n this.options.container = options.container;\n }\n if (options.filter !== undefined) {\n this.options.filter = options.filter;\n }\n if (options.showButton !== undefined) {\n this.options.showButton = options.showButton;\n }\n if (options.enabled !== undefined) {\n enabled = options.enabled;\n }\n } else if (typeof options === 'boolean') {\n this.options.filter = true;\n enabled = options;\n } else if (typeof options === 'function') {\n this.options.filter = options;\n enabled = true;\n }\n if (this.options.filter === false) {\n enabled = false;\n }\n\n this.options.enabled = enabled;\n }\n this._clean();\n }\n\n /**\r\n *\r\n * @param {Object} moduleOptions\r\n */\n\n }, {\n key: 'setModuleOptions',\n value: function setModuleOptions(moduleOptions) {\n this.moduleOptions = moduleOptions;\n if (this.options.enabled === true) {\n this._clean();\n if (this.options.container !== undefined) {\n this.container = this.options.container;\n }\n this._create();\n }\n }\n\n /**\r\n * Create all DOM elements\r\n * @private\r\n */\n\n }, {\n key: '_create',\n value: function _create() {\n var _this = this;\n\n this._clean();\n this.changedOptions = [];\n\n var filter = this.options.filter;\n var counter = 0;\n var show = false;\n for (var option in this.configureOptions) {\n if (this.configureOptions.hasOwnProperty(option)) {\n this.allowCreation = false;\n show = false;\n if (typeof filter === 'function') {\n show = filter(option, []);\n show = show || this._handleObject(this.configureOptions[option], [option], true);\n } else if (filter === true || filter.indexOf(option) !== -1) {\n show = true;\n }\n\n if (show !== false) {\n this.allowCreation = true;\n\n // linebreak between categories\n if (counter > 0) {\n this._makeItem([]);\n }\n // a header for the category\n this._makeHeader(option);\n\n // get the sub options\n this._handleObject(this.configureOptions[option], [option]);\n }\n counter++;\n }\n }\n\n if (this.options.showButton === true) {\n var generateButton = document.createElement('div');\n generateButton.className = 'vis-configuration vis-config-button';\n generateButton.innerHTML = 'generate options';\n generateButton.onclick = function () {\n _this._printOptions();\n };\n generateButton.onmouseover = function () {\n generateButton.className = 'vis-configuration vis-config-button hover';\n };\n generateButton.onmouseout = function () {\n generateButton.className = 'vis-configuration vis-config-button';\n };\n\n this.optionsContainer = document.createElement('div');\n this.optionsContainer.className = 'vis-configuration vis-config-option-container';\n\n this.domElements.push(this.optionsContainer);\n this.domElements.push(generateButton);\n }\n\n this._push();\n //~ this.colorPicker.insertTo(this.container);\n }\n\n /**\r\n * draw all DOM elements on the screen\r\n * @private\r\n */\n\n }, {\n key: '_push',\n value: function _push() {\n this.wrapper = document.createElement('div');\n this.wrapper.className = 'vis-configuration-wrapper';\n this.container.appendChild(this.wrapper);\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.appendChild(this.domElements[i]);\n }\n\n this._showPopupIfNeeded();\n }\n\n /**\r\n * delete all DOM elements\r\n * @private\r\n */\n\n }, {\n key: '_clean',\n value: function _clean() {\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.removeChild(this.domElements[i]);\n }\n\n if (this.wrapper !== undefined) {\n this.container.removeChild(this.wrapper);\n this.wrapper = undefined;\n }\n this.domElements = [];\n\n this._removePopup();\n }\n\n /**\r\n * get the value from the actualOptions if it exists\r\n * @param {array} path | where to look for the actual option\r\n * @returns {*}\r\n * @private\r\n */\n\n }, {\n key: '_getValue',\n value: function _getValue(path) {\n var base = this.moduleOptions;\n for (var i = 0; i < path.length; i++) {\n if (base[path[i]] !== undefined) {\n base = base[path[i]];\n } else {\n base = undefined;\n break;\n }\n }\n return base;\n }\n\n /**\r\n * all option elements are wrapped in an item\r\n * @param {Array} path | where to look for the actual option\r\n * @param {Array.<Element>} domElements\r\n * @returns {number}\r\n * @private\r\n */\n\n }, {\n key: '_makeItem',\n value: function _makeItem(path) {\n if (this.allowCreation === true) {\n var item = document.createElement('div');\n item.className = 'vis-configuration vis-config-item vis-config-s' + path.length;\n\n for (var _len = arguments.length, domElements = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n domElements[_key - 1] = arguments[_key];\n }\n\n domElements.forEach(function (element) {\n item.appendChild(element);\n });\n this.domElements.push(item);\n return this.domElements.length;\n }\n return 0;\n }\n\n /**\r\n * header for major subjects\r\n * @param {string} name\r\n * @private\r\n */\n\n }, {\n key: '_makeHeader',\n value: function _makeHeader(name) {\n var div = document.createElement('div');\n div.className = 'vis-configuration vis-config-header';\n div.innerHTML = name;\n this._makeItem([], div);\n }\n\n /**\r\n * make a label, if it is an object label, it gets different styling.\r\n * @param {string} name\r\n * @param {array} path | where to look for the actual option\r\n * @param {string} objectLabel\r\n * @returns {HTMLElement}\r\n * @private\r\n */\n\n }, {\n key: '_makeLabel',\n value: function _makeLabel(name, path) {\n var objectLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var div = document.createElement('div');\n div.className = 'vis-configuration vis-config-label vis-config-s' + path.length;\n if (objectLabel === true) {\n div.innerHTML = '<i><b>' + name + ':</b></i>';\n } else {\n div.innerHTML = name + ':';\n }\n return div;\n }\n\n /**\r\n * make a dropdown list for multiple possible string optoins\r\n * @param {Array.<number>} arr\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_makeDropdown',\n value: function _makeDropdown(arr, value, path) {\n var select = document.createElement('select');\n select.className = 'vis-configuration vis-config-select';\n var selectedValue = 0;\n if (value !== undefined) {\n if (arr.indexOf(value) !== -1) {\n selectedValue = arr.indexOf(value);\n }\n }\n\n for (var i = 0; i < arr.length; i++) {\n var option = document.createElement('option');\n option.value = arr[i];\n if (i === selectedValue) {\n option.selected = 'selected';\n }\n option.innerHTML = arr[i];\n select.appendChild(option);\n }\n\n var me = this;\n select.onchange = function () {\n me._update(this.value, path);\n };\n\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, select);\n }\n\n /**\r\n * make a range object for numeric options\r\n * @param {Array.<number>} arr\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_makeRange',\n value: function _makeRange(arr, value, path) {\n var defaultValue = arr[0];\n var min = arr[1];\n var max = arr[2];\n var step = arr[3];\n var range = document.createElement('input');\n range.className = 'vis-configuration vis-config-range';\n try {\n range.type = 'range'; // not supported on IE9\n range.min = min;\n range.max = max;\n }\n // TODO: Add some error handling and remove this lint exception\n catch (err) {} // eslint-disable-line no-empty\n range.step = step;\n\n // set up the popup settings in case they are needed.\n var popupString = '';\n var popupValue = 0;\n\n if (value !== undefined) {\n var factor = 1.20;\n if (value < 0 && value * factor < min) {\n range.min = Math.ceil(value * factor);\n popupValue = range.min;\n popupString = 'range increased';\n } else if (value / factor < min) {\n range.min = Math.ceil(value / factor);\n popupValue = range.min;\n popupString = 'range increased';\n }\n if (value * factor > max && max !== 1) {\n range.max = Math.ceil(value * factor);\n popupValue = range.max;\n popupString = 'range increased';\n }\n range.value = value;\n } else {\n range.value = defaultValue;\n }\n\n var input = document.createElement('input');\n input.className = 'vis-configuration vis-config-rangeinput';\n input.value = range.value;\n\n var me = this;\n range.onchange = function () {\n input.value = this.value;me._update(Number(this.value), path);\n };\n range.oninput = function () {\n input.value = this.value;\n };\n\n var label = this._makeLabel(path[path.length - 1], path);\n var itemIndex = this._makeItem(path, label, range, input);\n\n // if a popup is needed AND it has not been shown for this value, show it.\n if (popupString !== '' && this.popupHistory[itemIndex] !== popupValue) {\n this.popupHistory[itemIndex] = popupValue;\n this._setupPopup(popupString, itemIndex);\n }\n }\n\n /**\r\n * prepare the popup\r\n * @param {string} string\r\n * @param {number} index\r\n * @private\r\n */\n\n }, {\n key: '_setupPopup',\n value: function _setupPopup(string, index) {\n var _this2 = this;\n\n if (this.initialized === true && this.allowCreation === true && this.popupCounter < this.popupLimit) {\n var div = document.createElement(\"div\");\n div.id = \"vis-configuration-popup\";\n div.className = \"vis-configuration-popup\";\n div.innerHTML = string;\n div.onclick = function () {\n _this2._removePopup();\n };\n this.popupCounter += 1;\n this.popupDiv = { html: div, index: index };\n }\n }\n\n /**\r\n * remove the popup from the dom\r\n * @private\r\n */\n\n }, {\n key: '_removePopup',\n value: function _removePopup() {\n if (this.popupDiv.html !== undefined) {\n this.popupDiv.html.parentNode.removeChild(this.popupDiv.html);\n clearTimeout(this.popupDiv.hideTimeout);\n clearTimeout(this.popupDiv.deleteTimeout);\n this.popupDiv = {};\n }\n }\n\n /**\r\n * Show the popup if it is needed.\r\n * @private\r\n */\n\n }, {\n key: '_showPopupIfNeeded',\n value: function _showPopupIfNeeded() {\n var _this3 = this;\n\n if (this.popupDiv.html !== undefined) {\n var correspondingElement = this.domElements[this.popupDiv.index];\n var rect = correspondingElement.getBoundingClientRect();\n this.popupDiv.html.style.left = rect.left + \"px\";\n this.popupDiv.html.style.top = rect.top - 30 + \"px\"; // 30 is the height;\n document.body.appendChild(this.popupDiv.html);\n this.popupDiv.hideTimeout = setTimeout(function () {\n _this3.popupDiv.html.style.opacity = 0;\n }, 1500);\n this.popupDiv.deleteTimeout = setTimeout(function () {\n _this3._removePopup();\n }, 1800);\n }\n }\n\n /**\r\n * make a checkbox for boolean options.\r\n * @param {number} defaultValue\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_makeCheckbox',\n value: function _makeCheckbox(defaultValue, value, path) {\n var checkbox = document.createElement('input');\n checkbox.type = 'checkbox';\n checkbox.className = 'vis-configuration vis-config-checkbox';\n checkbox.checked = defaultValue;\n if (value !== undefined) {\n checkbox.checked = value;\n if (value !== defaultValue) {\n if ((typeof defaultValue === 'undefined' ? 'undefined' : (0, _typeof3['default'])(defaultValue)) === 'object') {\n if (value !== defaultValue.enabled) {\n this.changedOptions.push({ path: path, value: value });\n }\n } else {\n this.changedOptions.push({ path: path, value: value });\n }\n }\n }\n\n var me = this;\n checkbox.onchange = function () {\n me._update(this.checked, path);\n };\n\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\r\n * make a text input field for string options.\r\n * @param {number} defaultValue\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_makeTextInput',\n value: function _makeTextInput(defaultValue, value, path) {\n var checkbox = document.createElement('input');\n checkbox.type = 'text';\n checkbox.className = 'vis-configuration vis-config-text';\n checkbox.value = value;\n if (value !== defaultValue) {\n this.changedOptions.push({ path: path, value: value });\n }\n\n var me = this;\n checkbox.onchange = function () {\n me._update(this.value, path);\n };\n\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\r\n * make a color field with a color picker for color fields\r\n * @param {Array.<number>} arr\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_makeColorField',\n value: function _makeColorField(arr, value, path) {\n var _this4 = this;\n\n var defaultColor = arr[1];\n var div = document.createElement('div');\n value = value === undefined ? defaultColor : value;\n\n if (value !== 'none') {\n div.className = 'vis-configuration vis-config-colorBlock';\n div.style.backgroundColor = value;\n } else {\n div.className = 'vis-configuration vis-config-colorBlock none';\n }\n\n value = value === undefined ? defaultColor : value;\n div.onclick = function () {\n _this4._showColorPicker(value, div, path);\n };\n\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, div);\n }\n\n /**\r\n * used by the color buttons to call the color picker.\r\n * @param {number} value\r\n * @param {HTMLElement} div\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_showColorPicker',\n value: function _showColorPicker(value, div, path) {\n var _this5 = this;\n\n // clear the callback from this div\n div.onclick = function () {};\n\n this.colorPicker.insertTo(div);\n this.colorPicker.show();\n\n this.colorPicker.setColor(value);\n this.colorPicker.setUpdateCallback(function (color) {\n var colorString = 'rgba(' + color.r + ',' + color.g + ',' + color.b + ',' + color.a + ')';\n div.style.backgroundColor = colorString;\n _this5._update(colorString, path);\n });\n\n // on close of the colorpicker, restore the callback.\n this.colorPicker.setCloseCallback(function () {\n div.onclick = function () {\n _this5._showColorPicker(value, div, path);\n };\n });\n }\n\n /**\r\n * parse an object and draw the correct items\r\n * @param {Object} obj\r\n * @param {array} [path=[]] | where to look for the actual option\r\n * @param {boolean} [checkOnly=false]\r\n * @returns {boolean}\r\n * @private\r\n */\n\n }, {\n key: '_handleObject',\n value: function _handleObject(obj) {\n var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var checkOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var show = false;\n var filter = this.options.filter;\n var visibleInSet = false;\n for (var subObj in obj) {\n if (obj.hasOwnProperty(subObj)) {\n show = true;\n var item = obj[subObj];\n var newPath = util.copyAndExtendArray(path, subObj);\n if (typeof filter === 'function') {\n show = filter(subObj, path);\n\n // if needed we must go deeper into the object.\n if (show === false) {\n if (!(item instanceof Array) && typeof item !== 'string' && typeof item !== 'boolean' && item instanceof Object) {\n this.allowCreation = false;\n show = this._handleObject(item, newPath, true);\n this.allowCreation = checkOnly === false;\n }\n }\n }\n\n if (show !== false) {\n visibleInSet = true;\n var value = this._getValue(newPath);\n\n if (item instanceof Array) {\n this._handleArray(item, value, newPath);\n } else if (typeof item === 'string') {\n this._makeTextInput(item, value, newPath);\n } else if (typeof item === 'boolean') {\n this._makeCheckbox(item, value, newPath);\n } else if (item instanceof Object) {\n // collapse the physics options that are not enabled\n var draw = true;\n if (path.indexOf('physics') !== -1) {\n if (this.moduleOptions.physics.solver !== subObj) {\n draw = false;\n }\n }\n\n if (draw === true) {\n // initially collapse options with an disabled enabled option.\n if (item.enabled !== undefined) {\n var enabledPath = util.copyAndExtendArray(newPath, 'enabled');\n var enabledValue = this._getValue(enabledPath);\n if (enabledValue === true) {\n var label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n } else {\n this._makeCheckbox(item, enabledValue, newPath);\n }\n } else {\n var _label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, _label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n }\n }\n } else {\n console.error('dont know how to handle', item, subObj, newPath);\n }\n }\n }\n }\n return visibleInSet;\n }\n\n /**\r\n * handle the array type of option\r\n * @param {Array.<number>} arr\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_handleArray',\n value: function _handleArray(arr, value, path) {\n if (typeof arr[0] === 'string' && arr[0] === 'color') {\n this._makeColorField(arr, value, path);\n if (arr[1] !== value) {\n this.changedOptions.push({ path: path, value: value });\n }\n } else if (typeof arr[0] === 'string') {\n this._makeDropdown(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({ path: path, value: value });\n }\n } else if (typeof arr[0] === 'number') {\n this._makeRange(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({ path: path, value: Number(value) });\n }\n }\n }\n\n /**\r\n * called to update the network with the new settings.\r\n * @param {number} value\r\n * @param {array} path | where to look for the actual option\r\n * @private\r\n */\n\n }, {\n key: '_update',\n value: function _update(value, path) {\n var options = this._constructOptions(value, path);\n\n if (this.parent.body && this.parent.body.emitter && this.parent.body.emitter.emit) {\n this.parent.body.emitter.emit(\"configChange\", options);\n }\n this.initialized = true;\n this.parent.setOptions(options);\n }\n\n /**\r\n *\r\n * @param {string|Boolean} value\r\n * @param {Array.<string>} path\r\n * @param {{}} optionsObj\r\n * @returns {{}}\r\n * @private\r\n */\n\n }, {\n key: '_constructOptions',\n value: function _constructOptions(value, path) {\n var optionsObj = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var pointer = optionsObj;\n\n // when dropdown boxes can be string or boolean, we typecast it into correct types\n value = value === 'true' ? true : value;\n value = value === 'false' ? false : value;\n\n for (var i = 0; i < path.length; i++) {\n if (path[i] !== 'global') {\n if (pointer[path[i]] === undefined) {\n pointer[path[i]] = {};\n }\n if (i !== path.length - 1) {\n pointer = pointer[path[i]];\n } else {\n pointer[path[i]] = value;\n }\n }\n }\n return optionsObj;\n }\n\n /**\r\n * @private\r\n */\n\n }, {\n key: '_printOptions',\n value: function _printOptions() {\n var options = this.getOptions();\n this.optionsContainer.innerHTML = '<pre>var options = ' + (0, _stringify2['default'])(options, null, 2) + '</pre>';\n }\n\n /**\r\n *\r\n * @returns {{}} options\r\n */\n\n }, {\n key: 'getOptions',\n value: function getOptions() {\n var options = {};\n for (var i = 0; i < this.changedOptions.length; i++) {\n this._constructOptions(this.changedOptions[i].value, this.changedOptions[i].path, options);\n }\n return options;\n }\n }]);\n return Configurator;\n}();\n\nexports['default'] = Configurator;\n\n/***/ }),\n/* 72 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar DOMutil = __webpack_require__(14);\n\n/**\r\n *\r\n * @param {number | string} groupId\r\n * @param {Object} options // TODO: Describe options\r\n *\r\n * @constructor Points\r\n */\nfunction Points(groupId, options) {} // eslint-disable-line no-unused-vars\n\n\n/**\r\n * draw the data points\r\n *\r\n * @param {Array} dataset\r\n * @param {GraphGroup} group\r\n * @param {Object} framework | SVG DOM element\r\n * @param {number} [offset]\r\n */\nPoints.draw = function (dataset, group, framework, offset) {\n offset = offset || 0;\n var callback = getCallback(framework, group);\n\n for (var i = 0; i < dataset.length; i++) {\n if (!callback) {\n // draw the point the simple way.\n DOMutil.drawPoint(dataset[i].screen_x + offset, dataset[i].screen_y, getGroupTemplate(group), framework.svgElements, framework.svg, dataset[i].label);\n } else {\n var callbackResult = callback(dataset[i], group); // result might be true, false or an object\n if (callbackResult === true || (typeof callbackResult === 'undefined' ? 'undefined' : (0, _typeof3['default'])(callbackResult)) === 'object') {\n DOMutil.drawPoint(dataset[i].screen_x + offset, dataset[i].screen_y, getGroupTemplate(group, callbackResult), framework.svgElements, framework.svg, dataset[i].label);\n }\n }\n }\n};\n\nPoints.drawIcon = function (group, x, y, iconWidth, iconHeight, framework) {\n var fillHeight = iconHeight * 0.5;\n\n var outline = DOMutil.getSVGElement(\"rect\", framework.svgElements, framework.svg);\n outline.setAttributeNS(null, \"x\", x);\n outline.setAttributeNS(null, \"y\", y - fillHeight);\n outline.setAttributeNS(null, \"width\", iconWidth);\n outline.setAttributeNS(null, \"height\", 2 * fillHeight);\n outline.setAttributeNS(null, \"class\", \"vis-outline\");\n\n //Don't call callback on icon\n DOMutil.drawPoint(x + 0.5 * iconWidth, y, getGroupTemplate(group), framework.svgElements, framework.svg);\n};\n\n/**\r\n *\r\n * @param {vis.Group} group\r\n * @param {any} callbackResult\r\n * @returns {{style: *, styles: (*|string), size: *, className: *}}\r\n */\nfunction getGroupTemplate(group, callbackResult) {\n callbackResult = typeof callbackResult === 'undefined' ? {} : callbackResult;\n return {\n style: callbackResult.style || group.options.drawPoints.style,\n styles: callbackResult.styles || group.options.drawPoints.styles,\n size: callbackResult.size || group.options.drawPoints.size,\n className: callbackResult.className || group.className\n };\n}\n\n/**\r\n *\r\n * @param {Object} framework | SVG DOM element\r\n * @param {vis.Group} group\r\n * @returns {function}\r\n */\nfunction getCallback(framework, group) {\n var callback = undefined;\n // check for the graph2d onRender\n if (framework.options && framework.options.drawPoints && framework.options.drawPoints.onRender && typeof framework.options.drawPoints.onRender == 'function') {\n callback = framework.options.drawPoints.onRender;\n }\n\n // override it with the group onRender if defined\n if (group.group.options && group.group.options.drawPoints && group.group.options.drawPoints.onRender && typeof group.group.options.drawPoints.onRender == 'function') {\n callback = group.group.options.drawPoints.onRender;\n }\n return callback;\n}\n\nmodule.exports = Points;\n\n/***/ }),\n/* 73 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _getPrototypeOf = __webpack_require__(3);\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = __webpack_require__(4);\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = __webpack_require__(5);\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _NodeBase2 = __webpack_require__(23);\n\nvar _NodeBase3 = _interopRequireDefault(_NodeBase2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\r\n * NOTE: This is a bad base class\r\n *\r\n * Child classes are:\r\n *\r\n * Image - uses *only* image methods\r\n * Circle - uses *only* _drawRawCircle\r\n * CircleImage - uses all\r\n *\r\n * TODO: Refactor, move _drawRawCircle to different module, derive Circle from NodeBase\r\n * Rename this to ImageBase\r\n * Consolidate common code in Image and CircleImage to base class\r\n *\r\n * @extends NodeBase\r\n */\nvar CircleImageBase = function (_NodeBase) {\n (0, _inherits3['default'])(CircleImageBase, _NodeBase);\n\n /**\r\n * @param {Object} options\r\n * @param {Object} body\r\n * @param {Label} labelModule\r\n */\n function CircleImageBase(options, body, labelModule) {\n (0, _classCallCheck3['default'])(this, CircleImageBase);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (CircleImageBase.__proto__ || (0, _getPrototypeOf2['default'])(CircleImageBase)).call(this, options, body, labelModule));\n\n _this.labelOffset = 0;\n _this.selected = false;\n return _this;\n }\n\n /**\r\n *\r\n * @param {Object} options\r\n * @param {Object} [imageObj]\r\n * @param {Object} [imageObjAlt]\r\n */\n\n\n (0, _createClass3['default'])(CircleImageBase, [{\n key: 'setOptions',\n value: function setOptions(options, imageObj, imageObjAlt) {\n this.options = options;\n\n if (!(imageObj === undefined && imageObjAlt === undefined)) {\n this.setImages(imageObj, imageObjAlt);\n }\n }\n\n /**\r\n * Set the images for this node.\r\n *\r\n * The images can be updated after the initial setting of options;\r\n * therefore, this method needs to be reentrant. \r\n *\r\n * For correct working in error cases, it is necessary to properly set\r\n * field 'nodes.brokenImage' in the options.\r\n *\r\n * @param {Image} imageObj required; main image to show for this node\r\n * @param {Image|undefined} imageObjAlt optional; image to show when node is selected\r\n */\n\n }, {\n key: 'setImages',\n value: function setImages(imageObj, imageObjAlt) {\n if (imageObjAlt && this.selected) {\n this.imageObj = imageObjAlt;\n this.imageObjAlt = imageObj;\n } else {\n this.imageObj = imageObj;\n this.imageObjAlt = imageObjAlt;\n }\n }\n\n /**\r\n * Set selection and switch between the base and the selected image.\r\n *\r\n * Do the switch only if imageObjAlt exists.\r\n *\r\n * @param {boolean} selected value of new selected state for current node\r\n */\n\n }, {\n key: 'switchImages',\n value: function switchImages(selected) {\n var selection_changed = selected && !this.selected || !selected && this.selected;\n this.selected = selected; // Remember new selection\n\n if (this.imageObjAlt !== undefined && selection_changed) {\n var imageTmp = this.imageObj;\n this.imageObj = this.imageObjAlt;\n this.imageObjAlt = imageTmp;\n }\n }\n\n /**\r\n * Adjust the node dimensions for a loaded image.\r\n *\r\n * Pre: this.imageObj is valid\r\n */\n\n }, {\n key: '_resizeImage',\n value: function _resizeImage() {\n var width, height;\n\n if (this.options.shapeProperties.useImageSize === false) {\n // Use the size property\n var ratio_width = 1;\n var ratio_height = 1;\n\n // Only calculate the proper ratio if both width and height not zero\n if (this.imageObj.width && this.imageObj.height) {\n if (this.imageObj.width > this.imageObj.height) {\n ratio_width = this.imageObj.width / this.imageObj.height;\n } else {\n ratio_height = this.imageObj.height / this.imageObj.width;\n }\n }\n\n width = this.options.size * 2 * ratio_width;\n height = this.options.size * 2 * ratio_height;\n } else {\n // Use the image size\n width = this.imageObj.width;\n height = this.imageObj.height;\n }\n\n this.width = width;\n this.height = height;\n this.radius = 0.5 * this.width;\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {number} x width\r\n * @param {number} y height\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n * @private\r\n */\n\n }, {\n key: '_drawRawCircle',\n value: function _drawRawCircle(ctx, x, y, values) {\n this.initContextForDraw(ctx, values);\n ctx.circle(x, y, values.size);\n this.performFill(ctx, values);\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n * @private\r\n */\n\n }, {\n key: '_drawImageAtPosition',\n value: function _drawImageAtPosition(ctx, values) {\n if (this.imageObj.width != 0) {\n // draw the image\n ctx.globalAlpha = 1.0;\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n\n var factor = 1;\n if (this.options.shapeProperties.interpolation === true) {\n factor = this.imageObj.width / this.width / this.body.view.scale;\n }\n\n this.imageObj.drawImageAtPosition(ctx, factor, this.left, this.top, this.width, this.height);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {number} x width\r\n * @param {number} y height\r\n * @param {boolean} selected\r\n * @param {boolean} hover\r\n * @private\r\n */\n\n }, {\n key: '_drawImageLabel',\n value: function _drawImageLabel(ctx, x, y, selected, hover) {\n var yLabel;\n var offset = 0;\n\n if (this.height !== undefined) {\n offset = this.height * 0.5;\n var labelDimensions = this.labelModule.getTextSize(ctx, selected, hover);\n if (labelDimensions.lineCount >= 1) {\n offset += labelDimensions.height / 2;\n }\n }\n\n yLabel = y + offset;\n\n if (this.options.label) {\n this.labelOffset = offset;\n }\n this.labelModule.draw(ctx, x, yLabel, selected, hover, 'hanging');\n }\n }]);\n return CircleImageBase;\n}(_NodeBase3['default']);\n\nexports['default'] = CircleImageBase;\n\n/***/ }),\n/* 74 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _stringify = __webpack_require__(19);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _create = __webpack_require__(29);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar util = __webpack_require__(2);\nvar Label = __webpack_require__(117)['default'];\nvar ComponentUtil = __webpack_require__(48)['default'];\nvar CubicBezierEdge = __webpack_require__(215)['default'];\nvar BezierEdgeDynamic = __webpack_require__(217)['default'];\nvar BezierEdgeStatic = __webpack_require__(218)['default'];\nvar StraightEdge = __webpack_require__(219)['default'];\n\n/**\r\n * An edge connects two nodes and has a specific direction.\r\n */\n\nvar Edge = function () {\n /**\r\n * @param {Object} options values specific to this edge, must contain at least 'from' and 'to'\r\n * @param {Object} body shared state from Network instance\r\n * @param {Object} globalOptions options from the EdgesHandler instance\r\n * @param {Object} defaultOptions default options from the EdgeHandler instance. Value and reference are constant\r\n */\n function Edge(options, body, globalOptions, defaultOptions) {\n (0, _classCallCheck3['default'])(this, Edge);\n\n if (body === undefined) {\n throw new Error(\"No body provided\");\n }\n\n // Since globalOptions is constant in values as well as reference,\n // Following needs to be done only once.\n\n this.options = util.bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n\n // initialize variables\n this.id = undefined;\n this.fromId = undefined;\n this.toId = undefined;\n this.selected = false;\n this.hover = false;\n this.labelDirty = true;\n\n this.baseWidth = this.options.width;\n this.baseFontSize = this.options.font.size;\n\n this.from = undefined; // a node\n this.to = undefined; // a node\n\n this.edgeType = undefined;\n\n this.connected = false;\n\n this.labelModule = new Label(this.body, this.options, true /* It's an edge label */);\n this.setOptions(options);\n }\n\n /**\r\n * Set or overwrite options for the edge\r\n * @param {Object} options an object with options\r\n * @returns {null|boolean} null if no options, boolean if date changed\r\n */\n\n\n (0, _createClass3['default'])(Edge, [{\n key: 'setOptions',\n value: function setOptions(options) {\n if (!options) {\n return;\n }\n\n Edge.parseOptions(this.options, options, true, this.globalOptions);\n\n if (options.id !== undefined) {\n this.id = options.id;\n }\n if (options.from !== undefined) {\n this.fromId = options.from;\n }\n if (options.to !== undefined) {\n this.toId = options.to;\n }\n if (options.title !== undefined) {\n this.title = options.title;\n }\n if (options.value !== undefined) {\n options.value = parseFloat(options.value);\n }\n\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = ComponentUtil.choosify('edge', pile);\n\n // update label Module\n this.updateLabelModule(options);\n\n var dataChanged = this.updateEdgeType();\n\n // if anything has been updates, reset the selection width and the hover width\n this._setInteractionWidths();\n\n // A node is connected when it has a from and to node that both exist in the network.body.nodes.\n this.connect();\n\n if (options.hidden !== undefined || options.physics !== undefined) {\n dataChanged = true;\n }\n\n return dataChanged;\n }\n\n /**\r\n *\r\n * @param {Object} parentOptions\r\n * @param {Object} newOptions\r\n * @param {boolean} [allowDeletion=false]\r\n * @param {Object} [globalOptions={}]\r\n * @param {boolean} [copyFromGlobals=false]\r\n */\n\n }, {\n key: 'getFormattingValues',\n\n\n /**\r\n *\r\n * @returns {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}}\r\n */\n value: function getFormattingValues() {\n var toArrow = this.options.arrows.to === true || this.options.arrows.to.enabled === true;\n var fromArrow = this.options.arrows.from === true || this.options.arrows.from.enabled === true;\n var middleArrow = this.options.arrows.middle === true || this.options.arrows.middle.enabled === true;\n var inheritsColor = this.options.color.inherit;\n var values = {\n toArrow: toArrow,\n toArrowScale: this.options.arrows.to.scaleFactor,\n toArrowType: this.options.arrows.to.type,\n middleArrow: middleArrow,\n middleArrowScale: this.options.arrows.middle.scaleFactor,\n middleArrowType: this.options.arrows.middle.type,\n fromArrow: fromArrow,\n fromArrowScale: this.options.arrows.from.scaleFactor,\n fromArrowType: this.options.arrows.from.type,\n arrowStrikethrough: this.options.arrowStrikethrough,\n color: inheritsColor ? undefined : this.options.color.color,\n inheritsColor: inheritsColor,\n opacity: this.options.color.opacity,\n hidden: this.options.hidden,\n length: this.options.length,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y,\n dashes: this.options.dashes,\n width: this.options.width\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n var selectedWidth = this.options.selectionWidth;\n if (typeof selectedWidth === 'function') {\n values.width = selectedWidth(values.width);\n } else if (typeof selectedWidth === 'number') {\n values.width += selectedWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.highlight;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n var hoverWidth = this.options.hoverWidth;\n if (typeof hoverWidth === 'function') {\n values.width = hoverWidth(values.width);\n } else if (typeof hoverWidth === 'number') {\n values.width += hoverWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.hover;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === 'function') {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.color !== undefined) {\n values.inheritsColor = false;\n }\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n }\n return values;\n }\n\n /**\r\n * update the options in the label module\r\n *\r\n * @param {Object} options\r\n */\n\n }, {\n key: 'updateLabelModule',\n value: function updateLabelModule(options) {\n var pile = [options, this.options, this.globalOptions, // Currently set global edge options\n this.defaultOptions];\n\n this.labelModule.update(this.options, pile);\n\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\r\n * update the edge type, set the options\r\n * @returns {boolean}\r\n */\n\n }, {\n key: 'updateEdgeType',\n value: function updateEdgeType() {\n var smooth = this.options.smooth;\n var dataChanged = false;\n var changeInType = true;\n if (this.edgeType !== undefined) {\n if (this.edgeType instanceof BezierEdgeDynamic && smooth.enabled === true && smooth.type === 'dynamic' || this.edgeType instanceof CubicBezierEdge && smooth.enabled === true && smooth.type === 'cubicBezier' || this.edgeType instanceof BezierEdgeStatic && smooth.enabled === true && smooth.type !== 'dynamic' && smooth.type !== 'cubicBezier' || this.edgeType instanceof StraightEdge && smooth.type.enabled === false) {\n changeInType = false;\n }\n if (changeInType === true) {\n dataChanged = this.cleanup();\n }\n }\n if (changeInType === true) {\n if (smooth.enabled === true) {\n if (smooth.type === 'dynamic') {\n dataChanged = true;\n this.edgeType = new BezierEdgeDynamic(this.options, this.body, this.labelModule);\n } else if (smooth.type === 'cubicBezier') {\n this.edgeType = new CubicBezierEdge(this.options, this.body, this.labelModule);\n } else {\n this.edgeType = new BezierEdgeStatic(this.options, this.body, this.labelModule);\n }\n } else {\n this.edgeType = new StraightEdge(this.options, this.body, this.labelModule);\n }\n } else {\n // if nothing changes, we just set the options.\n this.edgeType.setOptions(this.options);\n }\n return dataChanged;\n }\n\n /**\r\n * Connect an edge to its nodes\r\n */\n\n }, {\n key: 'connect',\n value: function connect() {\n this.disconnect();\n\n this.from = this.body.nodes[this.fromId] || undefined;\n this.to = this.body.nodes[this.toId] || undefined;\n this.connected = this.from !== undefined && this.to !== undefined;\n\n if (this.connected === true) {\n this.from.attachEdge(this);\n this.to.attachEdge(this);\n } else {\n if (this.from) {\n this.from.detachEdge(this);\n }\n if (this.to) {\n this.to.detachEdge(this);\n }\n }\n\n this.edgeType.connect();\n }\n\n /**\r\n * Disconnect an edge from its nodes\r\n */\n\n }, {\n key: 'disconnect',\n value: function disconnect() {\n if (this.from) {\n this.from.detachEdge(this);\n this.from = undefined;\n }\n if (this.to) {\n this.to.detachEdge(this);\n this.to = undefined;\n }\n\n this.connected = false;\n }\n\n /**\r\n * get the title of this edge.\r\n * @return {string} title The title of the edge, or undefined when no title\r\n * has been set.\r\n */\n\n }, {\n key: 'getTitle',\n value: function getTitle() {\n return this.title;\n }\n\n /**\r\n * check if this node is selecte\r\n * @return {boolean} selected True if node is selected, else false\r\n */\n\n }, {\n key: 'isSelected',\n value: function isSelected() {\n return this.selected;\n }\n\n /**\r\n * Retrieve the value of the edge. Can be undefined\r\n * @return {number} value\r\n */\n\n }, {\n key: 'getValue',\n value: function getValue() {\n return this.options.value;\n }\n\n /**\r\n * Adjust the value range of the edge. The edge will adjust it's width\r\n * based on its value.\r\n * @param {number} min\r\n * @param {number} max\r\n * @param {number} total\r\n */\n\n }, {\n key: 'setValueRange',\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var widthDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.width = this.options.scaling.min + scale * widthDiff;\n } else {\n this.options.width = this.baseWidth;\n this.options.font.size = this.baseFontSize;\n }\n\n this._setInteractionWidths();\n this.updateLabelModule();\n }\n\n /**\r\n *\r\n * @private\r\n */\n\n }, {\n key: '_setInteractionWidths',\n value: function _setInteractionWidths() {\n if (typeof this.options.hoverWidth === 'function') {\n this.edgeType.hoverWidth = this.options.hoverWidth(this.options.width);\n } else {\n this.edgeType.hoverWidth = this.options.hoverWidth + this.options.width;\n }\n if (typeof this.options.selectionWidth === 'function') {\n this.edgeType.selectionWidth = this.options.selectionWidth(this.options.width);\n } else {\n this.edgeType.selectionWidth = this.options.selectionWidth + this.options.width;\n }\n }\n\n /**\r\n * Redraw a edge\r\n * Draw this edge in the given canvas\r\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\r\n * @param {CanvasRenderingContext2D} ctx\r\n */\n\n }, {\n key: 'draw',\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n if (values.hidden) {\n return;\n }\n\n // get the via node from the edge type\n var viaNode = this.edgeType.getViaNode();\n var arrowData = {};\n\n // restore edge targets to defaults\n this.edgeType.fromPoint = this.edgeType.from;\n this.edgeType.toPoint = this.edgeType.to;\n\n // from and to arrows give a different end point for edges. we set them here\n if (values.fromArrow) {\n arrowData.from = this.edgeType.getArrowData(ctx, 'from', viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;\n }\n if (values.toArrow) {\n arrowData.to = this.edgeType.getArrowData(ctx, 'to', viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;\n }\n\n // the middle arrow depends on the line, which can depend on the to and from arrows so we do this one lastly.\n if (values.middleArrow) {\n arrowData.middle = this.edgeType.getArrowData(ctx, 'middle', viaNode, this.selected, this.hover, values);\n }\n\n // draw everything\n this.edgeType.drawLine(ctx, values, this.selected, this.hover, viaNode);\n this.drawArrows(ctx, arrowData, values);\n this.drawLabel(ctx, viaNode);\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {Object} arrowData\r\n * @param {{toArrow: boolean, toArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), toArrowType: *, middleArrow: boolean, middleArrowScale: (number|allOptions.edges.arrows.middle.scaleFactor|{number}|Array), middleArrowType: (allOptions.edges.arrows.middle.type|{string}|string|*), fromArrow: boolean, fromArrowScale: (allOptions.edges.arrows.to.scaleFactor|{number}|allOptions.edges.arrows.middle.scaleFactor|allOptions.edges.arrows.from.scaleFactor|Array|number), fromArrowType: *, arrowStrikethrough: (*|boolean|allOptions.edges.arrowStrikethrough|{boolean}), color: undefined, inheritsColor: (string|string|string|allOptions.edges.color.inherit|{string, boolean}|Array|*), opacity: *, hidden: *, length: *, shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *, dashes: (*|boolean|Array|allOptions.edges.dashes|{boolean, array}), width: *}} values\r\n */\n\n }, {\n key: 'drawArrows',\n value: function drawArrows(ctx, arrowData, values) {\n if (values.fromArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.from);\n }\n if (values.middleArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.middle);\n }\n if (values.toArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.to);\n }\n }\n\n /**\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {Node} viaNode\r\n */\n\n }, {\n key: 'drawLabel',\n value: function drawLabel(ctx, viaNode) {\n if (this.options.label !== undefined) {\n // set style\n var node1 = this.from;\n var node2 = this.to;\n\n if (this.labelModule.differentState(this.selected, this.hover)) {\n this.labelModule.getTextSize(ctx, this.selected, this.hover);\n }\n\n if (node1.id != node2.id) {\n this.labelModule.pointToSelf = false;\n var point = this.edgeType.getPoint(0.5, viaNode);\n ctx.save();\n\n var rotationPoint = this._getRotation(ctx);\n if (rotationPoint.angle != 0) {\n ctx.translate(rotationPoint.x, rotationPoint.y);\n ctx.rotate(rotationPoint.angle);\n }\n\n // draw the label\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n\n /*\r\n // Useful debug code: draw a border around the label\r\n // This should **not** be enabled in production!\r\n var size = this.labelModule.getSize();; // ;; intentional so lint catches it\r\n ctx.strokeStyle = \"#ff0000\";\r\n ctx.strokeRect(size.left, size.top, size.width, size.height);\r\n // End debug code\r\n */\n\n ctx.restore();\n } else {\n // Ignore the orientations.\n this.labelModule.pointToSelf = true;\n var x, y;\n var radius = this.options.selfReferenceSize;\n if (node1.shape.width > node1.shape.height) {\n x = node1.x + node1.shape.width * 0.5;\n y = node1.y - radius;\n } else {\n x = node1.x + radius;\n y = node1.y - node1.shape.height * 0.5;\n }\n point = this._pointOnCircle(x, y, radius, 0.125);\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n }\n }\n }\n\n /**\r\n * Determine all visual elements of this edge instance, in which the given\r\n * point falls within the bounding shape.\r\n *\r\n * @param {point} point\r\n * @returns {Array.<edgeClickItem|edgeLabelClickItem>} list with the items which are on the point\r\n */\n\n }, {\n key: 'getItemsOnPoint',\n value: function getItemsOnPoint(point) {\n var ret = [];\n\n if (this.labelModule.visible()) {\n var rotationPoint = this._getRotation();\n if (ComponentUtil.pointInRect(this.labelModule.getSize(), point, rotationPoint)) {\n ret.push({ edgeId: this.id, labelId: 0 });\n }\n }\n\n var obj = {\n left: point.x,\n top: point.y\n };\n\n if (this.isOverlappingWith(obj)) {\n ret.push({ edgeId: this.id });\n }\n\n return ret;\n }\n\n /**\r\n * Check if this object is overlapping with the provided object\r\n * @param {Object} obj an object with parameters left, top\r\n * @return {boolean} True if location is located on the edge\r\n */\n\n }, {\n key: 'isOverlappingWith',\n value: function isOverlappingWith(obj) {\n if (this.connected) {\n var distMax = 10;\n var xFrom = this.from.x;\n var yFrom = this.from.y;\n var xTo = this.to.x;\n var yTo = this.to.y;\n var xObj = obj.left;\n var yObj = obj.top;\n\n var dist = this.edgeType.getDistanceToEdge(xFrom, yFrom, xTo, yTo, xObj, yObj);\n\n return dist < distMax;\n } else {\n return false;\n }\n }\n\n /** \r\n * Determine the rotation point, if any.\r\n *\r\n * @param {CanvasRenderingContext2D} [ctx] if passed, do a recalculation of the label size\r\n * @returns {rotationPoint} the point to rotate around and the angle in radians to rotate\r\n * @private\r\n */\n\n }, {\n key: '_getRotation',\n value: function _getRotation(ctx) {\n var viaNode = this.edgeType.getViaNode();\n var point = this.edgeType.getPoint(0.5, viaNode);\n\n if (ctx !== undefined) {\n this.labelModule.calculateLabelSize(ctx, this.selected, this.hover, point.x, point.y);\n }\n\n var ret = {\n x: point.x,\n y: this.labelModule.size.yLine,\n angle: 0\n };\n\n if (!this.labelModule.visible()) {\n return ret; // Don't even bother doing the atan2, there's nothing to draw\n }\n\n if (this.options.font.align === \"horizontal\") {\n return ret; // No need to calculate angle\n }\n\n var dy = this.from.y - this.to.y;\n var dx = this.from.x - this.to.x;\n var angle = Math.atan2(dy, dx); // radians\n\n // rotate so that label is readable\n if (angle < -1 && dx < 0 || angle > 0 && dx < 0) {\n angle += Math.PI;\n }\n ret.angle = angle;\n\n return ret;\n }\n\n /**\r\n * Get a point on a circle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @param {number} percentage Value between 0 (line start) and 1 (line end)\r\n * @return {Object} point\r\n * @private\r\n */\n\n }, {\n key: '_pointOnCircle',\n value: function _pointOnCircle(x, y, radius, percentage) {\n var angle = percentage * 2 * Math.PI;\n return {\n x: x + radius * Math.cos(angle),\n y: y - radius * Math.sin(angle)\n };\n }\n\n /**\r\n * Sets selected state to true\r\n */\n\n }, {\n key: 'select',\n value: function select() {\n this.selected = true;\n }\n\n /**\r\n * Sets selected state to false\r\n */\n\n }, {\n key: 'unselect',\n value: function unselect() {\n this.selected = false;\n }\n\n /**\r\n * cleans all required things on delete\r\n * @returns {*}\r\n */\n\n }, {\n key: 'cleanup',\n value: function cleanup() {\n return this.edgeType.cleanup();\n }\n\n /**\r\n * Remove edge from the list and perform necessary cleanup.\r\n */\n\n }, {\n key: 'remove',\n value: function remove() {\n this.cleanup();\n this.disconnect();\n delete this.body.edges[this.id];\n }\n\n /**\r\n * Check if both connecting nodes exist\r\n * @returns {boolean}\r\n */\n\n }, {\n key: 'endPointsValid',\n value: function endPointsValid() {\n return this.body.nodes[this.fromId] !== undefined && this.body.nodes[this.toId] !== undefined;\n }\n }], [{\n key: 'parseOptions',\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var copyFromGlobals = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n var fields = ['arrowStrikethrough', 'id', 'from', 'hidden', 'hoverWidth', 'labelHighlightBold', 'length', 'line', 'opacity', 'physics', 'scaling', 'selectionWidth', 'selfReferenceSize', 'to', 'title', 'value', 'width', 'font', 'chosen', 'widthConstraint'];\n\n // only deep extend the items in the field array. These do not have shorthand.\n util.selectiveDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n\n // Only copy label if it's a legal value.\n if (ComponentUtil.isValidLabel(newOptions.label)) {\n parentOptions.label = newOptions.label;\n } else {\n parentOptions.label = undefined;\n }\n\n util.mergeOptions(parentOptions, newOptions, 'smooth', globalOptions);\n util.mergeOptions(parentOptions, newOptions, 'shadow', globalOptions);\n\n if (newOptions.dashes !== undefined && newOptions.dashes !== null) {\n parentOptions.dashes = newOptions.dashes;\n } else if (allowDeletion === true && newOptions.dashes === null) {\n parentOptions.dashes = (0, _create2['default'])(globalOptions.dashes); // this sets the pointer of the option back to the global option.\n }\n\n // set the scaling newOptions\n if (newOptions.scaling !== undefined && newOptions.scaling !== null) {\n if (newOptions.scaling.min !== undefined) {\n parentOptions.scaling.min = newOptions.scaling.min;\n }\n if (newOptions.scaling.max !== undefined) {\n parentOptions.scaling.max = newOptions.scaling.max;\n }\n util.mergeOptions(parentOptions.scaling, newOptions.scaling, 'label', globalOptions.scaling);\n } else if (allowDeletion === true && newOptions.scaling === null) {\n parentOptions.scaling = (0, _create2['default'])(globalOptions.scaling); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for arrows\n if (newOptions.arrows !== undefined && newOptions.arrows !== null) {\n if (typeof newOptions.arrows === 'string') {\n var arrows = newOptions.arrows.toLowerCase();\n parentOptions.arrows.to.enabled = arrows.indexOf(\"to\") != -1;\n parentOptions.arrows.middle.enabled = arrows.indexOf(\"middle\") != -1;\n parentOptions.arrows.from.enabled = arrows.indexOf(\"from\") != -1;\n } else if ((0, _typeof3['default'])(newOptions.arrows) === 'object') {\n util.mergeOptions(parentOptions.arrows, newOptions.arrows, 'to', globalOptions.arrows);\n util.mergeOptions(parentOptions.arrows, newOptions.arrows, 'middle', globalOptions.arrows);\n util.mergeOptions(parentOptions.arrows, newOptions.arrows, 'from', globalOptions.arrows);\n } else {\n throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\" + (0, _stringify2['default'])(newOptions.arrows));\n }\n } else if (allowDeletion === true && newOptions.arrows === null) {\n parentOptions.arrows = (0, _create2['default'])(globalOptions.arrows); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for color\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var fromColor = newOptions.color;\n var toColor = parentOptions.color;\n\n // If passed, fill in values from default options - required in the case of no prototype bridging\n if (copyFromGlobals) {\n util.deepExtend(toColor, globalOptions.color, false, allowDeletion);\n } else {\n // Clear local properties - need to do it like this in order to retain prototype bridges\n for (var i in toColor) {\n if (toColor.hasOwnProperty(i)) {\n delete toColor[i];\n }\n }\n }\n\n if (util.isString(toColor)) {\n toColor.color = toColor;\n toColor.highlight = toColor;\n toColor.hover = toColor;\n toColor.inherit = false;\n if (fromColor.opacity === undefined) {\n toColor.opacity = 1.0; // set default\n }\n } else {\n var colorsDefined = false;\n if (fromColor.color !== undefined) {\n toColor.color = fromColor.color;colorsDefined = true;\n }\n if (fromColor.highlight !== undefined) {\n toColor.highlight = fromColor.highlight;colorsDefined = true;\n }\n if (fromColor.hover !== undefined) {\n toColor.hover = fromColor.hover;colorsDefined = true;\n }\n if (fromColor.inherit !== undefined) {\n toColor.inherit = fromColor.inherit;\n }\n if (fromColor.opacity !== undefined) {\n toColor.opacity = Math.min(1, Math.max(0, fromColor.opacity));\n }\n\n if (colorsDefined === true) {\n toColor.inherit = false;\n } else {\n if (toColor.inherit === undefined) {\n toColor.inherit = 'from'; // Set default\n }\n }\n }\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = util.bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = util.bridgeObject(globalOptions.font); // set the object back to the global options\n }\n }\n }]);\n return Edge;\n}();\n\nexports['default'] = Edge;\n\n/***/ }),\n/* 75 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _getPrototypeOf = __webpack_require__(3);\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = __webpack_require__(4);\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = __webpack_require__(5);\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _EdgeBase2 = __webpack_require__(118);\n\nvar _EdgeBase3 = _interopRequireDefault(_EdgeBase2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\r\n * The Base Class for all Bezier edges. Bezier curves are used to model smooth\r\n * gradual curves in paths between nodes.\r\n *\r\n * @extends EdgeBase\r\n */\nvar BezierEdgeBase = function (_EdgeBase) {\n (0, _inherits3['default'])(BezierEdgeBase, _EdgeBase);\n\n /**\r\n * @param {Object} options\r\n * @param {Object} body\r\n * @param {Label} labelModule\r\n */\n function BezierEdgeBase(options, body, labelModule) {\n (0, _classCallCheck3['default'])(this, BezierEdgeBase);\n return (0, _possibleConstructorReturn3['default'])(this, (BezierEdgeBase.__proto__ || (0, _getPrototypeOf2['default'])(BezierEdgeBase)).call(this, options, body, labelModule));\n }\n\n /**\r\n * This function uses binary search to look for the point where the bezier curve crosses the border of the node.\r\n *\r\n * @param {Node} nearNode\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {Node} viaNode\r\n * @returns {*}\r\n * @private\r\n */\n\n\n (0, _createClass3['default'])(BezierEdgeBase, [{\n key: '_findBorderPositionBezier',\n value: function _findBorderPositionBezier(nearNode, ctx) {\n var viaNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this._getViaCoordinates();\n\n var maxIterations = 10;\n var iteration = 0;\n var low = 0;\n var high = 1;\n var pos, angle, distanceToBorder, distanceToPoint, difference;\n var threshold = 0.2;\n var node = this.to;\n var from = false;\n if (nearNode.id === this.from.id) {\n node = this.from;\n from = true;\n }\n\n while (low <= high && iteration < maxIterations) {\n var middle = (low + high) * 0.5;\n\n pos = this.getPoint(middle, viaNode);\n angle = Math.atan2(node.y - pos.y, node.x - pos.x);\n distanceToBorder = node.distanceToBorder(ctx, angle);\n distanceToPoint = Math.sqrt(Math.pow(pos.x - node.x, 2) + Math.pow(pos.y - node.y, 2));\n difference = distanceToBorder - distanceToPoint;\n if (Math.abs(difference) < threshold) {\n break; // found\n } else if (difference < 0) {\n // distance to nodes is larger than distance to border --> t needs to be bigger if we're looking at the to node.\n if (from === false) {\n low = middle;\n } else {\n high = middle;\n }\n } else {\n if (from === false) {\n high = middle;\n } else {\n low = middle;\n }\n }\n\n iteration++;\n }\n pos.t = middle;\n\n return pos;\n }\n\n /**\r\n * Calculate the distance between a point (x3,y3) and a line segment from\r\n * (x1,y1) to (x2,y2).\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n * @param {number} x1 from x\r\n * @param {number} y1 from y\r\n * @param {number} x2 to x\r\n * @param {number} y2 to y\r\n * @param {number} x3 point to check x\r\n * @param {number} y3 point to check y\r\n * @param {Node} via\r\n * @returns {number}\r\n * @private\r\n */\n\n }, {\n key: '_getDistanceToBezierEdge',\n value: function _getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, via) {\n // x3,y3 is the point\n var minDistance = 1e9;\n var distance = void 0;\n var i = void 0,\n t = void 0,\n x = void 0,\n y = void 0;\n var lastX = x1;\n var lastY = y1;\n for (i = 1; i < 10; i++) {\n t = 0.1 * i;\n x = Math.pow(1 - t, 2) * x1 + 2 * t * (1 - t) * via.x + Math.pow(t, 2) * x2;\n y = Math.pow(1 - t, 2) * y1 + 2 * t * (1 - t) * via.y + Math.pow(t, 2) * y2;\n if (i > 0) {\n distance = this._getDistanceToLine(lastX, lastY, x, y, x3, y3);\n minDistance = distance < minDistance ? distance : minDistance;\n }\n lastX = x;\n lastY = y;\n }\n\n return minDistance;\n }\n\n /**\r\n * Draw a bezier curve between two nodes\r\n *\r\n * The method accepts zero, one or two control points.\r\n * Passing zero control points just draws a straight line\r\n *\r\n * @param {CanvasRenderingContext2D} ctx\r\n * @param {Object} values | options for shadow drawing\r\n * @param {Object|undefined} viaNode1 | first control point for curve drawing\r\n * @param {Object|undefined} viaNode2 | second control point for curve drawing\r\n *\r\n * @protected\r\n */\n\n }, {\n key: '_bezierCurve',\n value: function _bezierCurve(ctx, values, viaNode1, viaNode2) {\n var hasNode1 = viaNode1 !== undefined && viaNode1.x !== undefined;\n var hasNode2 = viaNode2 !== undefined && viaNode2.x !== undefined;\n\n ctx.beginPath();\n ctx.moveTo(this.fromPoint.x, this.fromPoint.y);\n\n if (hasNode1 && hasNode2) {\n ctx.bezierCurveTo(viaNode1.x, viaNode1.y, viaNode2.x, viaNode2.y, this.toPoint.x, this.toPoint.y);\n } else if (hasNode1) {\n ctx.quadraticCurveTo(viaNode1.x, viaNode1.y, this.toPoint.x, this.toPoint.y);\n } else {\n // fallback to normal straight edge\n ctx.lineTo(this.toPoint.x, this.toPoint.y);\n }\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n this.disableShadow(ctx, values);\n }\n\n /**\r\n *\r\n * @returns {*|{x, y}|{x: undefined, y: undefined}}\r\n */\n\n }, {\n key: 'getViaNode',\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n }]);\n return BezierEdgeBase;\n}(_EdgeBase3['default']);\n\nexports['default'] = BezierEdgeBase;\n\n/***/ }),\n/* 76 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = __webpack_require__(0);\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(1);\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar util = __webpack_require__(2);\n\n/**\r\n * Utility Class\r\n */\n\nvar NetworkUtil = function () {\n /**\r\n * @ignore\r\n */\n function NetworkUtil() {\n (0, _classCallCheck3[\"default\"])(this, NetworkUtil);\n }\n\n /**\r\n * Find the center position of the network considering the bounding boxes\r\n *\r\n * @param {Array.<Node>} allNodes\r\n * @param {Array.<Node>} [specificNodes=[]]\r\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\r\n * @static\r\n */\n\n\n (0, _createClass3[\"default\"])(NetworkUtil, null, [{\n key: \"getRange\",\n value: function getRange(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.shape.boundingBox.left) {\n minX = node.shape.boundingBox.left;\n }\n if (maxX < node.shape.boundingBox.right) {\n maxX = node.shape.boundingBox.right;\n }\n if (minY > node.shape.boundingBox.top) {\n minY = node.shape.boundingBox.top;\n } // top is negative, bottom is positive\n if (maxY < node.shape.boundingBox.bottom) {\n maxY = node.shape.boundingBox.bottom;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return { minX: minX, maxX: maxX, minY: minY, maxY: maxY };\n }\n\n /**\r\n * Find the center position of the network\r\n *\r\n * @param {Array.<Node>} allNodes\r\n * @param {Array.<Node>} [specificNodes=[]]\r\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\r\n * @static\r\n */\n\n }, {\n key: \"getRangeCore\",\n value: function getRangeCore(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.x) {\n minX = node.x;\n }\n if (maxX < node.x) {\n maxX = node.x;\n }\n if (minY > node.y) {\n minY = node.y;\n } // top is negative, bottom is positive\n if (maxY < node.y) {\n maxY = node.y;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return { minX: minX, maxX: maxX, minY: minY, maxY: maxY };\n }\n\n /**\r\n * @param {object} range = {minX: minX, maxX: maxX, minY: minY, maxY: maxY};\r\n * @returns {{x: number, y: number}}\r\n * @static\r\n */\n\n }, {\n key: \"findCenter\",\n value: function findCenter(range) {\n return { x: 0.5 * (range.maxX + range.minX),\n y: 0.5 * (range.maxY + range.minY) };\n }\n\n /**\r\n * This returns a clone of the options or options of the edge or node to be used for construction of new edges or check functions for new nodes.\r\n * @param {vis.Item} item\r\n * @param {'node'|undefined} type\r\n * @returns {{}}\r\n * @static\r\n */\n\n }, {\n key: \"cloneOptions\",\n value: function cloneOptions(item, type) {\n var clonedOptions = {};\n if (type === undefined || type === 'node') {\n util.deepExtend(clonedOptions, item.options, true);\n clonedOptions.x = item.x;\n clonedOptions.y = item.y;\n clonedOptions.amountOfConnections = item.edges.length;\n } else {\n util.deepExtend(clonedOptions, item.options, true);\n }\n return clonedOptions;\n }\n }]);\n return NetworkUtil;\n}();\n\nexports[\"default\"] = NetworkUtil;\n\n/***/ }),\n/* 77 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(124), __esModule: true };\n\n/***/ }),\n/* 78 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(50);\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/***/ }),\n/* 79 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(52);\nvar $export = __webpack_require__(17);\nvar redefine = __webpack_require__(83);\nvar hide = __webpack_require__(26);\nvar has = __webpack_require__(22);\nvar Iterators = __webpack_require__(31);\nvar $iterCreate = __webpack_require__(129);\nvar setToStringTag = __webpack_require__(59);\nvar getPrototypeOf = __webpack_require__(85);\nvar ITERATOR = __webpack_require__(13)('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/***/ }),\n/* 80 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(128);\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n/* 81 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = !__webpack_require__(21) && !__webpack_require__(28)(function () {\n return Object.defineProperty(__webpack_require__(82)('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 82 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(32);\nvar document = __webpack_require__(18).document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n/* 83 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(26);\n\n\n/***/ }),\n/* 84 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(22);\nvar toIObject = __webpack_require__(25);\nvar arrayIndexOf = __webpack_require__(131)(false);\nvar IE_PROTO = __webpack_require__(56)('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n/* 85 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = __webpack_require__(22);\nvar toObject = __webpack_require__(41);\nvar IE_PROTO = __webpack_require__(56)('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n/***/ }),\n/* 86 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = __webpack_require__(50);\nvar TAG = __webpack_require__(13)('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/***/ }),\n/* 87 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// most Object methods by ES6 should accept primitives\nvar $export = __webpack_require__(17);\nvar core = __webpack_require__(7);\nvar fails = __webpack_require__(28);\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n/***/ }),\n/* 88 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = __webpack_require__(84);\nvar hiddenKeys = __webpack_require__(58).concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n/***/ }),\n/* 89 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar pIE = __webpack_require__(42);\nvar createDesc = __webpack_require__(39);\nvar toIObject = __webpack_require__(25);\nvar toPrimitive = __webpack_require__(53);\nvar has = __webpack_require__(22);\nvar IE8_DOM_DEFINE = __webpack_require__(81);\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = __webpack_require__(21) ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n/***/ }),\n/* 90 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(162), __esModule: true };\n\n/***/ }),\n/* 91 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * @prototype Point2d\r\n * @param {number} [x]\r\n * @param {number} [y]\r\n */\nfunction Point2d(x, y) {\n this.x = x !== undefined ? x : 0;\n this.y = y !== undefined ? y : 0;\n}\n\nmodule.exports = Point2d;\n\n/***/ }),\n/* 92 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar util = __webpack_require__(2);\n\n/**\r\n * An html slider control with start/stop/prev/next buttons\r\n *\r\n * @constructor Slider\r\n * @param {Element} container The element where the slider will be created\r\n * @param {Object} options Available options:\r\n * {boolean} visible If true (default) the\r\n * slider is visible.\r\n */\nfunction Slider(container, options) {\n if (container === undefined) {\n throw new Error('No container element defined');\n }\n this.container = container;\n this.visible = options && options.visible != undefined ? options.visible : true;\n\n if (this.visible) {\n this.frame = document.createElement('DIV');\n //this.frame.style.backgroundColor = '#E5E5E5';\n this.frame.style.width = '100%';\n this.frame.style.position = 'relative';\n this.container.appendChild(this.frame);\n\n this.frame.prev = document.createElement('INPUT');\n this.frame.prev.type = 'BUTTON';\n this.frame.prev.value = 'Prev';\n this.frame.appendChild(this.frame.prev);\n\n this.frame.play = document.createElement('INPUT');\n this.frame.play.type = 'BUTTON';\n this.frame.play.value = 'Play';\n this.frame.appendChild(this.frame.play);\n\n this.frame.next = document.createElement('INPUT');\n this.frame.next.type = 'BUTTON';\n this.frame.next.value = 'Next';\n this.frame.appendChild(this.frame.next);\n\n this.frame.bar = document.createElement('INPUT');\n this.frame.bar.type = 'BUTTON';\n this.frame.bar.style.position = 'absolute';\n this.frame.bar.style.border = '1px solid red';\n this.frame.bar.style.width = '100px';\n this.frame.bar.style.height = '6px';\n this.frame.bar.style.borderRadius = '2px';\n this.frame.bar.style.MozBorderRadius = '2px';\n this.frame.bar.style.border = '1px solid #7F7F7F';\n this.frame.bar.style.backgroundColor = '#E5E5E5';\n this.frame.appendChild(this.frame.bar);\n\n this.frame.slide = document.createElement('INPUT');\n this.frame.slide.type = 'BUTTON';\n this.frame.slide.style.margin = '0px';\n this.frame.slide.value = ' ';\n this.frame.slide.style.position = 'relative';\n this.frame.slide.style.left = '-100px';\n this.frame.appendChild(this.frame.slide);\n\n // create events\n var me = this;\n this.frame.slide.onmousedown = function (event) {\n me._onMouseDown(event);\n };\n this.frame.prev.onclick = function (event) {\n me.prev(event);\n };\n this.frame.play.onclick = function (event) {\n me.togglePlay(event);\n };\n this.frame.next.onclick = function (event) {\n me.next(event);\n };\n }\n\n this.onChangeCallback = undefined;\n\n this.values = [];\n this.index = undefined;\n\n this.playTimeout = undefined;\n this.playInterval = 1000; // milliseconds\n this.playLoop = true;\n}\n\n/**\r\n * Select the previous index\r\n */\nSlider.prototype.prev = function () {\n var index = this.getIndex();\n if (index > 0) {\n index--;\n this.setIndex(index);\n }\n};\n\n/**\r\n * Select the next index\r\n */\nSlider.prototype.next = function () {\n var index = this.getIndex();\n if (index < this.values.length - 1) {\n index++;\n this.setIndex(index);\n }\n};\n\n/**\r\n * Select the next index\r\n */\nSlider.prototype.playNext = function () {\n var start = new Date();\n\n var index = this.getIndex();\n if (index < this.values.length - 1) {\n index++;\n this.setIndex(index);\n } else if (this.playLoop) {\n // jump to the start\n index = 0;\n this.setIndex(index);\n }\n\n var end = new Date();\n var diff = end - start;\n\n // calculate how much time it to to set the index and to execute the callback\n // function.\n var interval = Math.max(this.playInterval - diff, 0);\n // document.title = diff // TODO: cleanup\n\n var me = this;\n this.playTimeout = setTimeout(function () {\n me.playNext();\n }, interval);\n};\n\n/**\r\n * Toggle start or stop playing\r\n */\nSlider.prototype.togglePlay = function () {\n if (this.playTimeout === undefined) {\n this.play();\n } else {\n this.stop();\n }\n};\n\n/**\r\n * Start playing\r\n */\nSlider.prototype.play = function () {\n // Test whether already playing\n if (this.playTimeout) return;\n\n this.playNext();\n\n if (this.frame) {\n this.frame.play.value = 'Stop';\n }\n};\n\n/**\r\n * Stop playing\r\n */\nSlider.prototype.stop = function () {\n clearInterval(this.playTimeout);\n this.playTimeout = undefined;\n\n if (this.frame) {\n this.frame.play.value = 'Play';\n }\n};\n\n/**\r\n * Set a callback function which will be triggered when the value of the\r\n * slider bar has changed.\r\n *\r\n * @param {function} callback\r\n */\nSlider.prototype.setOnChangeCallback = function (callback) {\n this.onChangeCallback = callback;\n};\n\n/**\r\n * Set the interval for playing the list\r\n * @param {number} interval The interval in milliseconds\r\n */\nSlider.prototype.setPlayInterval = function (interval) {\n this.playInterval = interval;\n};\n\n/**\r\n * Retrieve the current play interval\r\n * @return {number} interval The interval in milliseconds\r\n */\nSlider.prototype.getPlayInterval = function () {\n return this.playInterval;\n};\n\n/**\r\n * Set looping on or off\r\n * @param {boolean} doLoop If true, the slider will jump to the start when\r\n * the end is passed, and will jump to the end\r\n * when the start is passed.\r\n *\r\n */\nSlider.prototype.setPlayLoop = function (doLoop) {\n this.playLoop = doLoop;\n};\n\n/**\r\n * Execute the onchange callback function\r\n */\nSlider.prototype.onChange = function () {\n if (this.onChangeCallback !== undefined) {\n this.onChangeCallback();\n }\n};\n\n/**\r\n * redraw the slider on the correct place\r\n */\nSlider.prototype.redraw = function () {\n if (this.frame) {\n // resize the bar\n this.frame.bar.style.top = this.frame.clientHeight / 2 - this.frame.bar.offsetHeight / 2 + 'px';\n this.frame.bar.style.width = this.frame.clientWidth - this.frame.prev.clientWidth - this.frame.play.clientWidth - this.frame.next.clientWidth - 30 + 'px';\n\n // position the slider button\n var left = this.indexToLeft(this.index);\n this.frame.slide.style.left = left + 'px';\n }\n};\n\n/**\r\n * Set the list with values for the slider\r\n * @param {Array} values A javascript array with values (any type)\r\n */\nSlider.prototype.setValues = function (values) {\n this.values = values;\n\n if (this.values.length > 0) this.setIndex(0);else this.index = undefined;\n};\n\n/**\r\n * Select a value by its index\r\n * @param {number} index\r\n */\nSlider.prototype.setIndex = function (index) {\n if (index < this.values.length) {\n this.index = index;\n\n this.redraw();\n this.onChange();\n } else {\n throw new Error('Index out of range');\n }\n};\n\n/**\r\n * retrieve the index of the currently selected vaue\r\n * @return {number} index\r\n */\nSlider.prototype.getIndex = function () {\n return this.index;\n};\n\n/**\r\n * retrieve the currently selected value\r\n * @return {*} value\r\n */\nSlider.prototype.get = function () {\n return this.values[this.index];\n};\n\nSlider.prototype._onMouseDown = function (event) {\n // only react on left mouse button down\n var leftButtonDown = event.which ? event.which === 1 : event.button === 1;\n if (!leftButtonDown) return;\n\n this.startClientX = event.clientX;\n this.startSlideX = parseFloat(this.frame.slide.style.left);\n\n this.frame.style.cursor = 'move';\n\n // add event listeners to handle moving the contents\n // we store the function onmousemove and onmouseup in the graph, so we can\n // remove the eventlisteners lateron in the function mouseUp()\n var me = this;\n this.onmousemove = function (event) {\n me._onMouseMove(event);\n };\n this.onmouseup = function (event) {\n me._onMouseUp(event);\n };\n util.addEventListener(document, 'mousemove', this.onmousemove);\n util.addEventListener(document, 'mouseup', this.onmouseup);\n util.preventDefault(event);\n};\n\nSlider.prototype.leftToIndex = function (left) {\n var width = parseFloat(this.frame.bar.style.width) - this.frame.slide.clientWidth - 10;\n var x = left - 3;\n\n var index = Math.round(x / width * (this.values.length - 1));\n if (index < 0) index = 0;\n if (index > this.values.length - 1) index = this.values.length - 1;\n\n return index;\n};\n\nSlider.prototype.indexToLeft = function (index) {\n var width = parseFloat(this.frame.bar.style.width) - this.frame.slide.clientWidth - 10;\n\n var x = index / (this.values.length - 1) * width;\n var left = x + 3;\n\n return left;\n};\n\nSlider.prototype._onMouseMove = function (event) {\n var diff = event.clientX - this.startClientX;\n var x = this.startSlideX + diff;\n\n var index = this.leftToIndex(x);\n\n this.setIndex(index);\n\n util.preventDefault();\n};\n\nSlider.prototype._onMouseUp = function (event) {\n // eslint-disable-line no-unused-vars\n this.frame.style.cursor = 'auto';\n\n // remove event listeners\n util.removeEventListener(document, 'mousemove', this.onmousemove);\n util.removeEventListener(document, 'mouseup', this.onmouseup);\n\n util.preventDefault();\n};\n\nmodule.exports = Slider;\n\n/***/ }),\n/* 93 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\r\n * @prototype StepNumber\r\n * The class StepNumber is an iterator for Numbers. You provide a start and end\r\n * value, and a best step size. StepNumber itself rounds to fixed values and\r\n * a finds the step that best fits the provided step.\r\n *\r\n * If prettyStep is true, the step size is chosen as close as possible to the\r\n * provided step, but being a round value like 1, 2, 5, 10, 20, 50, ....\r\n *\r\n * Example usage:\r\n * var step = new StepNumber(0, 10, 2.5, true);\r\n * step.start();\r\n * while (!step.end()) {\r\n * alert(step.getCurrent());\r\n * step.next();\r\n * }\r\n *\r\n * Version: 1.0\r\n *\r\n * @param {number} start The start value\r\n * @param {number} end The end value\r\n * @param {number} step Optional. Step size. Must be a positive value.\r\n * @param {boolean} prettyStep Optional. If true, the step size is rounded\r\n * To a pretty step size (like 1, 2, 5, 10, 20, 50, ...)\r\n */\nfunction StepNumber(start, end, step, prettyStep) {\n // set default values\n this._start = 0;\n this._end = 0;\n this._step = 1;\n this.prettyStep = true;\n this.precision = 5;\n\n this._current = 0;\n this.setRange(start, end, step, prettyStep);\n}\n\n/**\r\n * Check for input values, to prevent disasters from happening\r\n *\r\n * Source: http://stackoverflow.com/a/1830844\r\n *\r\n * @param {string} n\r\n * @returns {boolean}\r\n */\nStepNumber.prototype.isNumeric = function (n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n};\n\n/**\r\n * Set a new range: start, end and step.\r\n *\r\n * @param {number} start The start value\r\n * @param {number} end The end value\r\n * @param {number} step Optional. Step size. Must be a positive value.\r\n * @param {boolean} prettyStep Optional. If true, the step size is rounded\r\n * To a pretty step size (like 1, 2, 5, 10, 20, 50, ...)\r\n */\nStepNumber.prototype.setRange = function (start, end, step, prettyStep) {\n if (!this.isNumeric(start)) {\n throw new Error('Parameter \\'start\\' is not numeric; value: ' + start);\n }\n if (!this.isNumeric(end)) {\n throw new Error('Parameter \\'end\\' is not numeric; value: ' + start);\n }\n if (!this.isNumeric(step)) {\n throw new Error('Parameter \\'step\\' is not numeric; value: ' + start);\n }\n\n this._start = start ? start : 0;\n this._end = end ? end : 0;\n\n this.setStep(step, prettyStep);\n};\n\n/**\r\n * Set a new step size\r\n * @param {number} step New step size. Must be a positive value\r\n * @param {boolean} prettyStep Optional. If true, the provided step is rounded\r\n * to a pretty step size (like 1, 2, 5, 10, 20, 50, ...)\r\n */\nStepNumber.prototype.setStep = function (step, prettyStep) {\n if (step === undefined || step <= 0) return;\n\n if (prettyStep !== undefined) this.prettyStep = prettyStep;\n\n if (this.prettyStep === true) this._step = StepNumber.calculatePrettyStep(step);else this._step = step;\n};\n\n/**\r\n * Calculate a nice step size, closest to the desired step size.\r\n * Returns a value in one of the ranges 1*10^n, 2*10^n, or 5*10^n, where n is an\r\n * integer Number. For example 1, 2, 5, 10, 20, 50, etc...\r\n * @param {number} step Desired step size\r\n * @return {number} Nice step size\r\n */\nStepNumber.calculatePrettyStep = function (step) {\n var log10 = function log10(x) {\n return Math.log(x) / Math.LN10;\n };\n\n // try three steps (multiple of 1, 2, or 5\n var step1 = Math.pow(10, Math.round(log10(step))),\n step2 = 2 * Math.pow(10, Math.round(log10(step / 2))),\n step5 = 5 * Math.pow(10, Math.round(log10(step / 5)));\n\n // choose the best step (closest to minimum step)\n var prettyStep = step1;\n if (Math.abs(step2 - step) <= Math.abs(prettyStep - step)) prettyStep = step2;\n if (Math.abs(step5 - step) <= Math.abs(prettyStep - step)) prettyStep = step5;\n\n // for safety\n if (prettyStep <= 0) {\n prettyStep = 1;\n }\n\n return prettyStep;\n};\n\n/**\r\n * returns the current value of the step\r\n * @return {number} current value\r\n */\nStepNumber.prototype.getCurrent = function () {\n return parseFloat(this._current.toPrecision(this.precision));\n};\n\n/**\r\n * returns the current step size\r\n * @return {number} current step size\r\n */\nStepNumber.prototype.getStep = function () {\n return this._step;\n};\n\n/**\r\n * Set the current to its starting value.\r\n *\r\n * By default, this will be the largest value smaller than start, which\r\n * is a multiple of the step size.\r\n *\r\n * Parameters checkFirst is optional, default false.\r\n * If set to true, move the current value one step if smaller than start.\r\n *\r\n * @param {boolean} [checkFirst=false]\r\n */\nStepNumber.prototype.start = function (checkFirst) {\n if (checkFirst === undefined) {\n checkFirst = false;\n }\n\n this._current = this._start - this._start % this._step;\n\n if (checkFirst) {\n if (this.getCurrent() < this._start) {\n this.next();\n }\n }\n};\n\n/**\r\n * Do a step, add the step size to the current value\r\n */\nStepNumber.prototype.next = function () {\n this._current += this._step;\n};\n\n/**\r\n * Returns true whether the end is reached\r\n * @return {boolean} True if the current value has passed the end value.\r\n */\nStepNumber.prototype.end = function () {\n return this._current > this._end;\n};\n\nmodule.exports = StepNumber;\n\n/***/ }),\n/* 94 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof2 = __webpack_require__(6);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n////////////////////////////////////////////////////////////////////////////////\n// This modules handles the options for Graph3d.\n//\n////////////////////////////////////////////////////////////////////////////////\nvar util = __webpack_require__(2);\nvar Camera = __webpack_require__(95);\nvar Point3d = __webpack_require__(34);\n\n// enumerate the available styles\nvar STYLE = {\n BAR: 0,\n BARCOLOR: 1,\n BARSIZE: 2,\n DOT: 3,\n DOTLINE: 4,\n DOTCOLOR: 5,\n DOTSIZE: 6,\n GRID: 7,\n LINE: 8,\n SURFACE: 9\n};\n\n// The string representations of the styles\nvar STYLENAME = {\n 'dot': STYLE.DOT,\n 'dot-line': STYLE.DOTLINE,\n 'dot-color': STYLE.DOTCOLOR,\n 'dot-size': STYLE.DOTSIZE,\n 'line': STYLE.LINE,\n 'grid': STYLE.GRID,\n 'surface': STYLE.SURFACE,\n 'bar': STYLE.BAR,\n 'bar-color': STYLE.BARCOLOR,\n 'bar-size': STYLE.BARSIZE\n};\n\n/**\r\n * Field names in the options hash which are of relevance to the user.\r\n *\r\n * Specifically, these are the fields which require no special handling,\r\n * and can be directly copied over.\r\n */\nvar OPTIONKEYS = ['width', 'height', 'filterLabel', 'legendLabel', 'xLabel', 'yLabel', 'zLabel', 'xValueLabel', 'yValueLabel', 'zValueLabel', 'showXAxis', 'showYAxis', 'showZAxis', 'showGrid', 'showPerspective', 'showShadow', 'keepAspectRatio', 'verticalRatio', 'dotSizeRatio', 'dotSizeMinFraction', 'dotSizeMaxFraction', 'showAnimationControls', 'animationInterval', 'animationPreload', 'animationAutoStart', 'axisColor', 'gridColor', 'xCenter', 'yCenter'];\n\n/**\r\n * Field names in the options hash which are of relevance to the user.\r\n *\r\n * Same as OPTIONKEYS, but internally these fields are stored with \r\n * prefix 'default' in the name.\r\n */\nvar PREFIXEDOPTIONKEYS = ['xBarWidth', 'yBarWidth', 'valueMin', 'valueMax', 'xMin', 'xMax', 'xStep', 'yMin', 'yMax', 'yStep', 'zMin', 'zMax', 'zStep'];\n\n// Placeholder for DEFAULTS reference\nvar DEFAULTS = undefined;\n\n/**\r\n * Check if given hash is empty.\r\n *\r\n * Source: http://stackoverflow.com/a/679937\r\n *\r\n * @param {object} obj\r\n * @returns {boolean}\r\n */\nfunction isEmpty(obj) {\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) return false;\n }\n\n return true;\n}\n\n/**\r\n * Make first letter of parameter upper case.\r\n *\r\n * Source: http://stackoverflow.com/a/1026087\r\n *\r\n * @param {string} str\r\n * @returns {string}\r\n */\nfunction capitalize(str) {\n if (str === undefined || str === \"\" || typeof str != \"string\") {\n return str;\n }\n\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\n/**\r\n * Add a prefix to a field name, taking style guide into account\r\n *\r\n * @param {string} prefix\r\n * @param {string} fieldName\r\n * @returns {string}\r\n */\nfunction prefixFieldName(prefix, fieldName) {\n if (prefix === undefined || prefix === \"\") {\n return fieldName;\n }\n\n return prefix + capitalize(fieldName);\n}\n\n/**\r\n * Forcibly copy fields from src to dst in a controlled manner.\r\n *\r\n * A given field in dst will always be overwitten. If this field\r\n * is undefined or not present in src, the field in dst will \r\n * be explicitly set to undefined.\r\n * \r\n * The intention here is to be able to reset all option fields.\r\n * \r\n * Only the fields mentioned in array 'fields' will be handled.\r\n *\r\n * @param {object} src\r\n * @param {object} dst\r\n * @param {array<string>} fields array with names of fields to copy\r\n * @param {string} [prefix] prefix to use for the target fields.\r\n */\nfunction forceCopy(src, dst, fields, prefix) {\n var srcKey;\n var dstKey;\n\n for (var i = 0; i < fields.length; ++i) {\n srcKey = fields[i];\n dstKey = prefixFieldName(prefix, srcKey);\n\n dst[dstKey] = src[srcKey];\n }\n}\n\n/**\r\n * Copy fields from src to dst in a safe and controlled manner.\r\n *\r\n * Only the fields mentioned in array 'fields' will be copied over,\r\n * and only if these are actually defined.\r\n *\r\n * @param {object} src\r\n * @param {object} dst\r\n * @param {array<string>} fields array with names of fields to copy\r\n * @param {string} [prefix] prefix to use for the target fields.\r\n */\nfunction safeCopy(src, dst, fields, prefix) {\n var srcKey;\n var dstKey;\n\n for (var i = 0; i < fields.length; ++i) {\n srcKey = fields[i];\n if (src[srcKey] === undefined) continue;\n\n dstKey = prefixFieldName(prefix, srcKey);\n\n dst[dstKey] = src[srcKey];\n }\n}\n\n/**\r\n * Initialize dst with the values in src.\r\n *\r\n * src is the hash with the default values. \r\n * A reference DEFAULTS to this hash is stored locally for \r\n * further handling.\r\n *\r\n * For now, dst is assumed to be a Graph3d instance.\r\n * @param {object} src\r\n * @param {object} dst\r\n */\nfunction setDefaults(src, dst) {\n if (src === undefined || isEmpty(src)) {\n throw new Error('No DEFAULTS passed');\n }\n if (dst === undefined) {\n throw new Error('No dst passed');\n }\n\n // Remember defaults for future reference\n DEFAULTS = src;\n\n // Handle the defaults which can be simply copied over\n forceCopy(src, dst, OPTIONKEYS);\n forceCopy(src, dst, PREFIXEDOPTIONKEYS, 'default');\n\n // Handle the more complex ('special') fields\n setSpecialSettings(src, dst);\n\n // Following are internal fields, not part of the user settings\n dst.margin = 10; // px\n dst.showGrayBottom = false; // TODO: this does not work correctly\n dst.showTooltip = false;\n dst.onclick_callback = null;\n dst.eye = new Point3d(0, 0, -1); // TODO: set eye.z about 3/4 of the width of the window?\n}\n\n/**\r\n *\r\n * @param {object} options\r\n * @param {object} dst\r\n */\nfunction setOptions(options, dst) {\n if (options === undefined) {\n return;\n }\n if (dst === undefined) {\n throw new Error('No dst passed');\n }\n\n if (DEFAULTS === undefined || isEmpty(DEFAULTS)) {\n throw new Error('DEFAULTS not set for module Settings');\n }\n\n // Handle the parameters which can be simply copied over\n safeCopy(options, dst, OPTIONKEYS);\n safeCopy(options, dst, PREFIXEDOPTIONKEYS, 'default');\n\n // Handle the more complex ('special') fields\n setSpecialSettings(options, dst);\n}\n\n/**\r\n * Special handling for certain parameters\r\n *\r\n * 'Special' here means: setting requires more than a simple copy\r\n *\r\n * @param {object} src\r\n * @param {object} dst\r\n */\nfunction setSpecialSettings(src, dst) {\n if (src.backgroundColor !== undefined) {\n setBackgroundColor(src.backgroundColor, dst);\n }\n\n setDataColor(src.dataColor, dst);\n setStyle(src.style, dst);\n setShowLegend(src.showLegend, dst);\n setCameraPosition(src.cameraPosition, dst);\n\n // As special fields go, this is an easy one; just a translation of the name.\n // Can't use this.tooltip directly, because that field exists internally\n if (src.tooltip !== undefined) {\n dst.showTooltip = src.tooltip;\n }\n if (src.onclick != undefined) {\n dst.onclick_callback = src.onclick;\n }\n\n if (src.tooltipStyle !== undefined) {\n util.selectiveDeepExtend(['tooltipStyle'], dst, src);\n }\n}\n\n/**\r\n * Set the value of setting 'showLegend'\r\n *\r\n * This depends on the value of the style fields, so it must be called\r\n * after the style field has been initialized.\r\n *\r\n * @param {boolean} showLegend\r\n * @param {object} dst\r\n */\nfunction setShowLegend(showLegend, dst) {\n if (showLegend === undefined) {\n // If the default was auto, make a choice for this field\n var isAutoByDefault = DEFAULTS.showLegend === undefined;\n\n if (isAutoByDefault) {\n // these styles default to having legends\n var isLegendGraphStyle = dst.style === STYLE.DOTCOLOR || dst.style === STYLE.DOTSIZE;\n\n dst.showLegend = isLegendGraphStyle;\n } else {\n // Leave current value as is\n }\n } else {\n dst.showLegend = showLegend;\n }\n}\n\n/**\r\n * Retrieve the style index from given styleName\r\n * @param {string} styleName Style name such as 'dot', 'grid', 'dot-line'\r\n * @return {number} styleNumber Enumeration value representing the style, or -1\r\n * when not found\r\n */\nfunction getStyleNumberByName(styleName) {\n var number = STYLENAME[styleName];\n\n if (number === undefined) {\n return -1;\n }\n\n return number;\n}\n\n/**\r\n * Check if given number is a valid style number.\r\n *\r\n * @param {string | number} style\r\n * @return {boolean} true if valid, false otherwise\r\n */\nfunction checkStyleNumber(style) {\n var valid = false;\n\n for (var n in STYLE) {\n if (STYLE[n] === style) {\n valid = true;\n break;\n }\n }\n\n return valid;\n}\n\n/**\r\n *\r\n * @param {string | number} style\r\n * @param {Object} dst\r\n */\nfunction setStyle(style, dst) {\n if (style === undefined) {\n return; // Nothing to do\n }\n\n var styleNumber;\n\n if (typeof style === 'string') {\n styleNumber = getStyleNumberByName(style);\n\n if (styleNumber === -1) {\n throw new Error('Style \\'' + style + '\\' is invalid');\n }\n } else {\n // Do a pedantic check on style number value\n if (!checkStyleNumber(style)) {\n throw new Error('Style \\'' + style + '\\' is invalid');\n }\n\n styleNumber = style;\n }\n\n dst.style = styleNumber;\n}\n\n/**\r\n * Set the background styling for the graph\r\n * @param {string | {fill: string, stroke: string, strokeWidth: string}} backgroundColor\r\n * @param {Object} dst\r\n */\nfunction setBackgroundColor(backgroundColor, dst) {\n var fill = 'white';\n var stroke = 'gray';\n var strokeWidth = 1;\n\n if (typeof backgroundColor === 'string') {\n fill = backgroundColor;\n stroke = 'none';\n strokeWidth = 0;\n } else if ((typeof backgroundColor === 'undefined' ? 'undefined' : (0, _typeof3['default'])(backgroundColor)) === 'object') {\n if (backgroundColor.fill !== undefined) fill = backgroundColor.fill;\n if (backgroundColor.stroke !== undefined) stroke = backgroundColor.stroke;\n if (backgroundColor.strokeWidth !== undefined) strokeWidth = backgroundColor.strokeWidth;\n } else {\n throw new Error('Unsupported type of backgroundColor');\n }\n\n dst.frame.style.backgroundColor = fill;\n dst.frame.style.borderColor = stroke;\n dst.frame.style.borderWidth = strokeWidth + 'px';\n dst.frame.style.borderStyle = 'solid';\n}\n\n/**\r\n *\r\n * @param {string | Object} dataColor\r\n * @param {Object} dst\r\n */\nfunction setDataColor(dataColor, dst) {\n if (dataColor === undefined) {\n return; // Nothing to do\n }\n\n if (dst.dataColor === undefined) {\n dst.dataColor = {};\n }\n\n if (typeof dataColor === 'string') {\n dst.dataColor.fill = dataColor;\n dst.dataColor.stroke = dataColor;\n } else {\n if (dataColor.fill) {\n dst.dataColor.fill = dataColor.fill;\n }\n if (dataColor.stroke) {\n dst.dataColor.stroke = dataColor.stroke;\n }\n if (dataColor.strokeWidth !== undefined) {\n dst.dataColor.strokeWidth = dataColor.strokeWidth;\n }\n }\n}\n\n/**\r\n *\r\n * @param {Object} cameraPosition\r\n * @param {Object} dst\r\n */\nfunction setCameraPosition(cameraPosition, dst) {\n var camPos = cameraPosition;\n if (camPos === undefined) {\n return;\n }\n\n if (dst.camera === undefined) {\n dst.camera = new Camera();\n }\n\n dst.camera.setArmRotation(camPos.horizontal, camPos.vertical);\n dst.camera.setArmLength(camPos.distance);\n}\n\nmodule.exports.STYLE = STYLE;\nmodule.exports.setDefaults = setDefaults;\nmodule.exports.setOptions = setOptions;\nmodule.exports.setCameraPosition = setCameraPosition;\n\n/***/ }),\n/* 95 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _sign = __webpack_require__(165);\n\nvar _sign2 = _interopRequireDefault(_sign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Point3d = __webpack_require__(34);\n\n/**\r\n * The camera is mounted on a (virtual) camera arm. The camera arm can rotate\r\n * The camera is always looking in the direction of the origin of the arm.\r\n * This way, the camera always rotates around one fixed point, the location\r\n * of the camera arm.\r\n *\r\n * Documentation:\r\n * http://en.wikipedia.org/wiki/3D_projection\r\n * @class Camera\r\n */\nfunction Camera() {\n this.armLocation = new Point3d();\n this.armRotation = {};\n this.armRotation.horizontal = 0;\n this.armRotation.vertical = 0;\n this.armLength = 1.7;\n this.cameraOffset = new Point3d();\n this.offsetMultiplier = 0.6;\n\n this.cameraLocation = new Point3d();\n this.cameraRotation = new Point3d(0.5 * Math.PI, 0, 0);\n\n this.calculateCameraOrientation();\n}\n\n/**\r\n * Set offset camera in camera coordinates\r\n * @param {number} x offset by camera horisontal\r\n * @param {number} y offset by camera vertical\r\n */\nCamera.prototype.setOffset = function (x, y) {\n var abs = Math.abs,\n sign = _sign2['default'],\n mul = this.offsetMultiplier,\n border = this.armLength * mul;\n\n if (abs(x) > border) {\n x = sign(x) * border;\n }\n if (abs(y) > border) {\n y = sign(y) * border;\n }\n this.cameraOffset.x = x;\n this.cameraOffset.y = y;\n this.calculateCameraOrientation();\n};\n\n/**\r\n * Get camera offset by horizontal and vertical\r\n * @returns {number}\r\n */\nCamera.prototype.getOffset = function () {\n return this.cameraOffset;\n};\n\n/**\r\n * Set the location (origin) of the arm\r\n * @param {number} x Normalized value of x\r\n * @param {number} y Normalized value of y\r\n * @param {number} z Normalized value of z\r\n */\nCamera.prototype.setArmLocation = function (x, y, z) {\n this.armLocation.x = x;\n this.armLocation.y = y;\n this.armLocation.z = z;\n\n this.calculateCameraOrientation();\n};\n\n/**\r\n * Set the rotation of the camera arm\r\n * @param {number} horizontal The horizontal rotation, between 0 and 2*PI.\r\n * Optional, can be left undefined.\r\n * @param {number} vertical The vertical rotation, between 0 and 0.5*PI\r\n * if vertical=0.5*PI, the graph is shown from the\r\n * top. Optional, can be left undefined.\r\n */\nCamera.prototype.setArmRotation = function (horizontal, vertical) {\n if (horizontal !== undefined) {\n this.armRotation.horizontal = horizontal;\n }\n\n if (vertical !== undefined) {\n this.armRotation.vertical = vertical;\n if (this.armRotation.vertical < 0) this.armRotation.vertical = 0;\n if (this.armRotation.vertical > 0.5 * Math.PI) this.armRotation.vertical = 0.5 * Math.PI;\n }\n\n if (horizontal !== undefined || vertical !== undefined) {\n this.calculateCameraOrientation();\n }\n};\n\n/**\r\n * Retrieve the current arm rotation\r\n * @return {object} An object with parameters horizontal and vertical\r\n */\nCamera.prototype.getArmRotation = function () {\n var rot = {};\n rot.horizontal = this.armRotation.horizontal;\n rot.vertical = this.armRotation.vertical;\n\n return rot;\n};\n\n/**\r\n * Set the (normalized) length of the camera arm.\r\n * @param {number} length A length between 0.71 and 5.0\r\n */\nCamera.prototype.setArmLength = function (length) {\n if (length === undefined) return;\n\n this.armLength = length;\n\n // Radius must be larger than the corner of the graph,\n // which has a distance of sqrt(0.5^2+0.5^2) = 0.71 from the center of the\n // graph\n if (this.armLength < 0.71) this.armLength = 0.71;\n if (this.armLength > 5.0) this.armLength = 5.0;\n\n this.setOffset(this.cameraOffset.x, this.cameraOffset.y);\n this.calculateCameraOrientation();\n};\n\n/**\r\n * Retrieve the arm length\r\n * @return {number} length\r\n */\nCamera.prototype.getArmLength = function () {\n return this.armLength;\n};\n\n/**\r\n * Retrieve the camera location\r\n * @return {Point3d} cameraLocation\r\n */\nCamera.prototype.getCameraLocation = function () {\n return this.cameraLocation;\n};\n\n/**\r\n * Retrieve the camera rotation\r\n * @return {Point3d} cameraRotation\r\n */\nCamera.prototype.getCameraRotation = function () {\n return this.cameraRotation;\n};\n\n/**\r\n * Calculate the location and rotation of the camera based on the\r\n * position and orientation of the camera arm\r\n */\nCamera.prototype.calculateCameraOrientation = function () {\n // calculate location of the camera\n this.cameraLocation.x = this.armLocation.x - this.armLength * Math.sin(this.armRotation.horizontal) * Math.cos(this.armRotation.vertical);\n this.cameraLocation.y = this.armLocation.y - this.armLength * Math.cos(this.armRotation.horizontal) * Math.cos(this.armRotation.vertical);\n this.cameraLocation.z = this.armLocation.z + this.armLength * Math.sin(this.armRotation.vertical);\n\n // calculate rotation of the camera\n this.cameraRotation.x = Math.PI / 2 - this.armRotation.vertical;\n this.cameraRotation.y = 0;\n this.cameraRotation.z = -this.armRotation.horizontal;\n\n var xa = this.cameraRotation.x;\n var za = this.cameraRotation.z;\n var dx = this.cameraOffset.x;\n var dy = this.cameraOffset.y;\n var sin = Math.sin,\n cos = Math.cos;\n\n this.cameraLocation.x = this.cameraLocation.x + dx * cos(za) + dy * -sin(za) * cos(xa);\n this.cameraLocation.y = this.cameraLocation.y + dx * sin(za) + dy * cos(za) * cos(xa);\n this.cameraLocation.z = this.cameraLocation.z + dy * sin(xa);\n};\n\nmodule.exports = Camera;\n\n/***/ }),\n/* 96 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar DataView = __webpack_require__(12);\n\n/**\r\n * @class Filter\r\n *\r\n * @param {DataGroup} dataGroup the data group \r\n * @param {number} column The index of the column to be filtered\r\n * @param {Graph3d} graph The graph\r\n */\nfunction Filter(dataGroup, column, graph) {\n this.dataGroup = dataGroup;\n this.column = column;\n this.graph = graph; // the parent graph\n\n this.index = undefined;\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment