From 909a8ffa23785d963cfdd71061fb9b50834fac3d Mon Sep 17 00:00:00 2001 From: Sergey Pikhovkin Date: Mon, 3 Dec 2018 23:44:14 +0300 Subject: [PATCH] Fix PieChart component --- advanced_usage.py | 59 ++++++++++++++++++++++++-- dash_devextreme/dash_devextreme.dev.js | 2 +- dash_devextreme/dash_devextreme.min.js | 2 +- dash_devextreme/metadata.json | 8 +--- dash_devextreme/package.json | 2 +- package.json | 2 +- src/lib/components/PieChart.react.js | 30 +++++++------ usage.py | 4 +- 8 files changed, 79 insertions(+), 30 deletions(-) diff --git a/advanced_usage.py b/advanced_usage.py index 60af1d3..77d7e60 100644 --- a/advanced_usage.py +++ b/advanced_usage.py @@ -34,6 +34,19 @@ {'language': 'Polish', 'percent': 1.8} ] +pieExportImportDataSource = [ + {'Country': 'Brazil', 'Export': 243, 'Import': 233}, + {'Country': 'Russia', 'Export': 529, 'Import': 335}, + {'Country': 'India','Export': 293,'Import': 489}, + {'Country': 'China', 'Export': 2049, 'Import': 1818}, + {'Country': 'Japan', 'Export': 799, 'Import': 886}, + {'Country': 'USA', 'Export': 1547, 'Import': 2335}, + {'Country': 'Canada', 'Export': 455, 'Import': 475}, + {'Country': 'France', 'Export': 569, 'Import': 674}, + {'Country': 'England', 'Export': 468, 'Import': 680}, + {'Country': 'Germany', 'Export': 1407, 'Import': 1167} +] + _default_index = ''' @@ -84,13 +97,17 @@ } function pie_chart(point) { - return `${point.argumentText}: ${point.valueText}%`; + return `${point.argumentText}: ${point.valueText}`; + } + + function doughnut_chart(point) { + return `${point.argumentText} (${point.seriesName}): ${point.valueText}B (${point.percentText})`; } ''' -# + app = dash.Dash(__name__, index_string=_default_index) app.scripts.config.serve_locally = True @@ -107,12 +124,12 @@ ddx.DataGrid(dataSource=data, columns=columns_table), ddx.TabPanel(items=data, itemTitleTemplate='tp_title', itemTemplate='tp_panel'), ddx.PieChart( - type='doughnut', + type='pie', palette='Soft Pastel', title='Top Internet Languages', dataSource=pieDataSource, legend=dict(horizontalAlignment='center', verticalAlignment='bottom'), - export=dict(enabled=True), + # export=dict(enabled=True), series=dict( smallValuesGrouping=dict(mode='topN', topCount=3), argumentField='language', @@ -124,6 +141,40 @@ connector=dict(visible=True, width=1) ) ) + ), + ddx.PieChart( + type='doughnut', + palette='Soft Pastel', + title='Top Internet Languages', + dataSource=pieExportImportDataSource, + legend=dict(horizontalAlignment='center', verticalAlignment='bottom'), + # export=dict(enabled=True), + series=[ + dict( + name='Export', + smallValuesGrouping=dict(mode='topN', topCount=3), + argumentField='Country', + valueField='Export', + label=dict( + visible=True, + format='fixedPoint', + customizeText='doughnut_chart', + connector=dict(visible=True, width=1) + ) + ), + dict( + name='Import', + smallValuesGrouping=dict(mode='topN', topCount=3), + argumentField='Country', + valueField='Import', + label=dict( + visible=True, + format='fixedPoint', + customizeText='doughnut_chart', + connector=dict(visible=True, width=1) + ) + ) + ] ) ]) diff --git a/dash_devextreme/dash_devextreme.dev.js b/dash_devextreme/dash_devextreme.dev.js index f042891..435ae48 100644 --- a/dash_devextreme/dash_devextreme.dev.js +++ b/dash_devextreme/dash_devextreme.dev.js @@ -14776,7 +14776,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n}); /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\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\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 = __webpack_require__(/*! react */ \"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _pieChart = __webpack_require__(/*! devextreme-react/pie-chart */ \"./node_modules/devextreme-react/pie-chart.js\");\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 PieChart = function (_Component) {\n _inherits(PieChart, _Component);\n\n function PieChart(props) {\n _classCallCheck(this, PieChart);\n\n var _this = _possibleConstructorReturn(this, (PieChart.__proto__ || Object.getPrototypeOf(PieChart)).call(this, props));\n\n _this.customizeText = _this.customizeText.bind(_this);\n return _this;\n }\n\n _createClass(PieChart, [{\n key: 'customizeText',\n value: function customizeText(template_id) {\n return window[template_id];\n }\n }, {\n key: 'render',\n value: function render() {\n var series = this.props.series;\n\n if (series && (typeof series === 'undefined' ? 'undefined' : _typeof(series)) === 'object' && series.label && series.label.customizeText) {\n series.label.customizeText = this.customizeText(series.label.customizeText);\n }\n\n return _react2.default.createElement(_pieChart.PieChart, {\n id: this.props.id,\n type: this.props.type,\n title: this.props.title,\n palette: this.props.palette,\n dataSource: this.props.dataSource,\n series: series,\n legend: this.props.legend\n });\n }\n }]);\n\n return PieChart;\n}(_react.Component);\n\nexports.default = PieChart;\n\n\nPieChart.propTypes = {\n /**\n * The ID used to identify this compnent in Dash callbacks\n */\n id: _propTypes2.default.string,\n\n adaptiveLayout: _propTypes2.default.object,\n animation: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.bool]),\n commonSeriesSettings: _propTypes2.default.object,\n customizeLabel: _propTypes2.default.func,\n customizePoint: _propTypes2.default.func,\n dataSource: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.any), _propTypes2.default.object, _propTypes2.default.string]),\n diameter: _propTypes2.default.number,\n disabled: _propTypes2.default.bool,\n elementAttr: _propTypes2.default.object,\n export: _propTypes2.default.object,\n innerRadius: _propTypes2.default.number,\n legend: _propTypes2.default.object,\n loadingIndicator: _propTypes2.default.object,\n margin: _propTypes2.default.object,\n minDiameter: _propTypes2.default.number,\n onDisposing: _propTypes2.default.func,\n onDone: _propTypes2.default.func,\n onDrawn: _propTypes2.default.func,\n onExported: _propTypes2.default.func,\n onExporting: _propTypes2.default.func,\n onFileSaving: _propTypes2.default.func,\n onIncidentOccurred: _propTypes2.default.func,\n onInitialized: _propTypes2.default.func,\n onLegendClick: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]),\n onOptionChanged: _propTypes2.default.func,\n onPointClick: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]),\n onPointHoverChanged: _propTypes2.default.func,\n onPointSelectionChanged: _propTypes2.default.func,\n onTooltipHidden: _propTypes2.default.func,\n onTooltipShown: _propTypes2.default.func,\n palette: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.string), _propTypes2.default.oneOf(['Bright', 'Harmony Light', 'Ocean', 'Pastel', 'Soft', 'Soft Pastel', 'Vintage', 'Violet', 'Carmine', 'Dark Moon', 'Dark Violet', 'Green Mist', 'Soft Blue', 'Material', 'Office'])]),\n paletteExtensionMode: _propTypes2.default.oneOf(['alternate', 'blend', 'extrapolate']),\n pathModified: _propTypes2.default.bool,\n pointSelectionMode: _propTypes2.default.oneOf(['multiple', 'single']),\n redrawOnResize: _propTypes2.default.bool,\n resolveLabelOverlapping: _propTypes2.default.oneOf(['hide', 'none', 'shift']),\n rtlEnabled: _propTypes2.default.bool,\n segmentsDirection: _propTypes2.default.oneOf(['anticlockwise', 'clockwise']),\n series: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.arrayOf(_propTypes2.default.object)]),\n seriesTemplate: _propTypes2.default.object,\n size: _propTypes2.default.object,\n sizeGroup: _propTypes2.default.string,\n startAngle: _propTypes2.default.number,\n theme: _propTypes2.default.oneOf(['generic.dark', 'generic.light', 'generic.contrast', 'ios7.default', 'generic.carmine', 'generic.darkmoon', 'generic.darkviolet', 'generic.greenmist', 'generic.softblue', 'material.blue.light', 'material.lime.light', 'material.orange.light', 'material.purple.light', 'material.teal.light']),\n title: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.string]),\n tooltip: _propTypes2.default.object,\n type: _propTypes2.default.oneOf(['donut', 'doughnut', 'pie']),\n\n setProps: _propTypes2.default.func\n};\n\nPieChart.defaultProps = {\n adaptiveLayout: {},\n animation: {},\n commonSeriesSettings: {},\n customizeLabel: null,\n customizePoint: null,\n dataSource: null,\n // diameter: undefined,\n disabled: false,\n elementAttr: {},\n export: {},\n innerRadius: 0.5,\n legend: {},\n loadingIndicator: {},\n margin: {},\n minDiameter: 0.5,\n onDisposing: null,\n onDone: null,\n onDrawn: null,\n onExported: null,\n onExporting: null,\n onFileSaving: null,\n onIncidentOccurred: null,\n onInitialized: null,\n onLegendClick: null,\n onOptionChanged: null,\n onPointClick: null,\n onPointHoverChanged: null,\n onPointSelectionChanged: null,\n onTooltipHidden: null,\n onTooltipShown: null,\n palette: 'Material',\n paletteExtensionMode: 'blend',\n pathModified: false,\n pointSelectionMode: 'single',\n redrawOnResize: true,\n resolveLabelOverlapping: 'none',\n rtlEnabled: false,\n segmentsDirection: 'clockwise',\n series: [],\n seriesTemplate: {},\n size: {},\n // sizeGroup: undefined,\n startAngle: 0,\n theme: 'generic.light',\n title: {},\n tooltip: {},\n type: 'pie'\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9kYXNoX2RldmV4dHJlbWUvLi9zcmMvbGliL2NvbXBvbmVudHMvUGllQ2hhcnQucmVhY3QuanM/NDQ2MSJdLCJuYW1lcyI6WyJQaWVDaGFydCIsInByb3BzIiwiY3VzdG9taXplVGV4dCIsImJpbmQiLCJ0ZW1wbGF0ZV9pZCIsIndpbmRvdyIsInNlcmllcyIsImxhYmVsIiwiaWQiLCJ0eXBlIiwidGl0bGUiLCJwYWxldHRlIiwiZGF0YVNvdXJjZSIsImxlZ2VuZCIsIkNvbXBvbmVudCIsInByb3BUeXBlcyIsIlByb3BUeXBlcyIsInN0cmluZyIsImFkYXB0aXZlTGF5b3V0Iiwib2JqZWN0IiwiYW5pbWF0aW9uIiwib25lT2ZUeXBlIiwiYm9vbCIsImNvbW1vblNlcmllc1NldHRpbmdzIiwiY3VzdG9taXplTGFiZWwiLCJmdW5jIiwiY3VzdG9taXplUG9pbnQiLCJhcnJheU9mIiwiYW55IiwiZGlhbWV0ZXIiLCJudW1iZXIiLCJkaXNhYmxlZCIsImVsZW1lbnRBdHRyIiwiZXhwb3J0IiwiaW5uZXJSYWRpdXMiLCJsb2FkaW5nSW5kaWNhdG9yIiwibWFyZ2luIiwibWluRGlhbWV0ZXIiLCJvbkRpc3Bvc2luZyIsIm9uRG9uZSIsIm9uRHJhd24iLCJvbkV4cG9ydGVkIiwib25FeHBvcnRpbmciLCJvbkZpbGVTYXZpbmciLCJvbkluY2lkZW50T2NjdXJyZWQiLCJvbkluaXRpYWxpemVkIiwib25MZWdlbmRDbGljayIsIm9uT3B0aW9uQ2hhbmdlZCIsIm9uUG9pbnRDbGljayIsIm9uUG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nLFxuICAgIHRpdGxlOiB7fSxcbiAgICB0b29sdGlwOiB7fSxcbiAgICB0eXBlOiAncGllJ1xufTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/lib/components/PieChart.react.js\n"); +eval("\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\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 = __webpack_require__(/*! react */ \"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _pieChart = __webpack_require__(/*! devextreme-react/pie-chart */ \"./node_modules/devextreme-react/pie-chart.js\");\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 PieChart = function (_Component) {\n _inherits(PieChart, _Component);\n\n function PieChart(props) {\n _classCallCheck(this, PieChart);\n\n var _this = _possibleConstructorReturn(this, (PieChart.__proto__ || Object.getPrototypeOf(PieChart)).call(this, props));\n\n _this.customizeText = _this.customizeText.bind(_this);\n return _this;\n }\n\n _createClass(PieChart, [{\n key: 'customizeText',\n value: function customizeText(series) {\n if ((typeof series === 'undefined' ? 'undefined' : _typeof(series)) === 'object' && series.label && series.label.customizeText) {\n if (window[series.label.customizeText]) {\n series.label.customizeText = window[series.label.customizeText];\n }\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var series = this.props.series;\n\n if (series) {\n if (Array.isArray(series)) {\n for (var i = 0; i < series.length; i++) {\n this.customizeText(series[i]);\n }\n } else {\n this.customizeText(series);\n }\n }\n\n return _react2.default.createElement(_pieChart.PieChart, this.props);\n }\n }]);\n\n return PieChart;\n}(_react.Component);\n\nexports.default = PieChart;\n\n\nPieChart.propTypes = {\n /**\n * The ID used to identify this compnent in Dash callbacks\n */\n id: _propTypes2.default.string,\n\n adaptiveLayout: _propTypes2.default.object,\n animation: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.bool]),\n commonSeriesSettings: _propTypes2.default.object,\n customizeLabel: _propTypes2.default.func,\n customizePoint: _propTypes2.default.func,\n dataSource: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.any), _propTypes2.default.object, _propTypes2.default.string]),\n diameter: _propTypes2.default.number,\n disabled: _propTypes2.default.bool,\n elementAttr: _propTypes2.default.object,\n export: _propTypes2.default.object,\n innerRadius: _propTypes2.default.number,\n legend: _propTypes2.default.object,\n loadingIndicator: _propTypes2.default.object,\n margin: _propTypes2.default.object,\n minDiameter: _propTypes2.default.number,\n onDisposing: _propTypes2.default.func,\n onDone: _propTypes2.default.func,\n onDrawn: _propTypes2.default.func,\n onExported: _propTypes2.default.func,\n onExporting: _propTypes2.default.func,\n onFileSaving: _propTypes2.default.func,\n onIncidentOccurred: _propTypes2.default.func,\n onInitialized: _propTypes2.default.func,\n onLegendClick: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]),\n onOptionChanged: _propTypes2.default.func,\n onPointClick: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]),\n onPointHoverChanged: _propTypes2.default.func,\n onPointSelectionChanged: _propTypes2.default.func,\n onTooltipHidden: _propTypes2.default.func,\n onTooltipShown: _propTypes2.default.func,\n palette: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.string), _propTypes2.default.oneOf(['Bright', 'Harmony Light', 'Ocean', 'Pastel', 'Soft', 'Soft Pastel', 'Vintage', 'Violet', 'Carmine', 'Dark Moon', 'Dark Violet', 'Green Mist', 'Soft Blue', 'Material', 'Office'])]),\n paletteExtensionMode: _propTypes2.default.oneOf(['alternate', 'blend', 'extrapolate']),\n pathModified: _propTypes2.default.bool,\n pointSelectionMode: _propTypes2.default.oneOf(['multiple', 'single']),\n redrawOnResize: _propTypes2.default.bool,\n resolveLabelOverlapping: _propTypes2.default.oneOf(['hide', 'none', 'shift']),\n rtlEnabled: _propTypes2.default.bool,\n segmentsDirection: _propTypes2.default.oneOf(['anticlockwise', 'clockwise']),\n series: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.arrayOf(_propTypes2.default.object)]),\n seriesTemplate: _propTypes2.default.object,\n size: _propTypes2.default.object,\n sizeGroup: _propTypes2.default.string,\n startAngle: _propTypes2.default.number,\n theme: _propTypes2.default.oneOf(['generic.dark', 'generic.light', 'generic.contrast', 'ios7.default', 'generic.carmine', 'generic.darkmoon', 'generic.darkviolet', 'generic.greenmist', 'generic.softblue', 'material.blue.light', 'material.lime.light', 'material.orange.light', 'material.purple.light', 'material.teal.light']),\n title: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.string]),\n tooltip: _propTypes2.default.object,\n type: _propTypes2.default.oneOf(['donut', 'doughnut', 'pie']),\n\n setProps: _propTypes2.default.func\n};\n\nPieChart.defaultProps = {\n adaptiveLayout: {},\n animation: {},\n commonSeriesSettings: {},\n customizeLabel: null,\n customizePoint: null,\n dataSource: null,\n // diameter: undefined,\n disabled: false,\n elementAttr: {},\n export: {},\n innerRadius: 0.5,\n legend: {},\n loadingIndicator: {},\n margin: {},\n minDiameter: 0.5,\n onDisposing: null,\n onDone: null,\n onDrawn: null,\n onExported: null,\n onExporting: null,\n onFileSaving: null,\n onIncidentOccurred: null,\n onInitialized: null,\n onLegendClick: null,\n onOptionChanged: null,\n onPointClick: null,\n onPointHoverChanged: null,\n onPointSelectionChanged: null,\n onTooltipHidden: null,\n onTooltipShown: null,\n palette: 'Material',\n paletteExtensionMode: 'blend',\n pathModified: false,\n pointSelectionMode: 'single',\n redrawOnResize: true,\n resolveLabelOverlapping: 'none',\n rtlEnabled: false,\n segmentsDirection: 'clockwise',\n series: [],\n // seriesTemplate: undefined,\n size: {},\n // sizeGroup: undefined,\n startAngle: 0,\n theme: 'generic.light',\n title: {},\n tooltip: {},\n type: 'pie'\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9kYXNoX2RldmV4dHJlbWUvLi9zcmMvbGliL2NvbXBvbmVudHMvUGllQ2hhcnQucmVhY3QuanM/NDQ2MSJdLCJuYW1lcyI6WyJQaWVDaGFydCIsInByb3BzIiwiY3VzdG9taXplVGV4dCIsImJpbmQiLCJzZXJpZXMiLCJsYWJlbCIsIndpbmRvdyIsIkFycmF5IiwiaXNBcnJheSIsImkiLCJsZW5ndGgiLCJDb21wb25lbnQiLCJwcm9wVHlwZXMiLCJpZCIsIlByb3BUeXBlcyIsInN0cmluZyIsImFkYXB0aXZlTGF5b3V0Iiwib2JqZWN0IiwiYW5pbWF0a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ICBpZiAod2luZG93W3Nlcmllcy5sYWJlbC5jdXN0b21pemVUZXh0XSkge1xuICAgICAgICAgICAgICAgIHNlcmllcy5sYWJlbC5jdXN0b21pemVUZXh0ID0gd2luZG93W3Nlcmllcy5sYWJlbC5jdXN0b21pemVUZXh0XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlbmRlcigpIHtcbiAgICAgICAgY29uc3Qge3Nlcmllc30gPSB0aGlzLnByb3BzO1xuICAgICAgICBpZiAoc2VyaWVzKSB7XG4gICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShzZXJpZXMpKSB7XG4gICAgICAgICAgICAgICAgZm9yKGxldCBpPTA7IGkgPCBzZXJpZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jdXN0b21pemVUZXh0KHNlcmllc1tpXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmN1c3RvbWl6ZVRleHQoc2VyaWVzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8RFhQaWVDaGFydCB7Li4udGhpcy5wcm9wc30vPlxuICAgICAgICApXG4gICAgfVxufVxuXG5QaWVDaGFydC5wcm9wVHlwZXMgPSB7XG4gICAgLyoqXG4gICAgICogVGhlIElEIHVzZWQgdG8gaWRlbnRpZnkgdGhpcyBjb21wbmVudCBpbiBEYXNoIGNhbGxiYWNrc1xuICAgICAqL1xuICAgIGlkOiBQcm9wVHlwZXMuc3RyaW5nLFxuXG4gICAgYWRhcHRpdmVMYXlvdXQ6IFByb3BUeXBlcy5vYmplY3QsXG4gICAgYW5pbWF0aW9uOiBQcm9wVHlwZXMub25lT2ZUeXBlKFtQcm9wVHlwZXMub2JqZWN0LCBQcm9wVHlwZXMuYm9vbF0pLFxuICAgIGNvbW1vblNlcmllc1NldH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G4gICAgb25Qb2ludFNlbGVjdGlvbkNoYW5nZWQ6IG51bGwsXG4gICAgb25Ub29sdGlwSGlkZGVuOiBudWxsLFxuICAgIG9uVG9vbHRpcFNob3duOiBudWxsLFxuICAgIHBhbGV0dGU6ICdNYXRlcmlhbCcsXG4gICAgcGFsZXR0ZUV4dGVuc2lvbk1vZGU6ICdibGVuZCcsXG4gICAgcGF0aE1vZGlmaWVkOiBmYWxzZSxcbiAgICBwb2ludFNlbGVjdGlvbk1vZGU6ICdzaW5nbGUnLFxuICAgIHJlZHJhd09uUmVzaXplOiB0cnVlLFxuICAgIHJlc29sdmVMYWJlbE92ZXJsYXBwaW5nOiAnbm9uZScsXG4gICAgcnRsRW5hYmxlZDogZmFsc2UsXG4gICAgc2VnbWVudHNEaXJlY3Rpb246ICdjbG9ja3dpc2UnLFxuICAgIHNlcmllczogW10sXG4gICAgLy8gc2VyaWVzVGVtcGxhdGU6IHVuZGVmaW5lZCxcbiAgICBzaXplOiB7fSxcbiAgICAvLyBzaXplR3JvdXA6IHVuZGVmaW5lZCxcbiAgICBzdGFydEFuZ2xlOiAwLFxuICAgIHRoZW1lOiAnZ2VuZXJpYy5saWdodCcsXG4gICAgdGl0bGU6IHt9LFxuICAgIHRvb2x0aXA6IHt9LFxuICAgIHR5cGU6ICdwaWUnXG59O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/lib/components/PieChart.react.js\n"); /***/ }), diff --git a/dash_devextreme/dash_devextreme.min.js b/dash_devextreme/dash_devextreme.min.js index fdd20f1..650d2cd 100644 --- a/dash_devextreme/dash_devextreme.min.js +++ b/dash_devextreme/dash_devextreme.min.js @@ -996,4 +996,4 @@ var i=n(482),o=n(483),r=n(484);function a(){return l.TYPED_ARRAY_SUPPORT?2147483 * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react - */var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(899),r=n(10),a=n(13),s=n(21),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._WidgetClass=o.default,t._defaults={defaultLoadingIndicator:"loadingIndicator"},t._expectedChildren={background:{optionName:"background",isCollectionItem:!1},controlBar:{optionName:"controlBar",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},layer:{optionName:"layers",isCollectionItem:!0},legend:{optionName:"legends",isCollectionItem:!0},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},t}return i(t,e),Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),t}(a.Component);t.VectorMap=l,l.propTypes={background:r.PropTypes.object,bounds:r.PropTypes.array,center:r.PropTypes.array,controlBar:r.PropTypes.object,disabled:r.PropTypes.bool,elementAttr:r.PropTypes.object,export:r.PropTypes.object,layers:r.PropTypes.oneOfType([r.PropTypes.array,r.PropTypes.object]),legends:r.PropTypes.array,loadingIndicator:r.PropTypes.object,maxZoomFactor:r.PropTypes.number,onCenterChanged:r.PropTypes.func,onClick:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.string]),onDisposing:r.PropTypes.func,onDrawn:r.PropTypes.func,onExported:r.PropTypes.func,onExporting:r.PropTypes.func,onFileSaving:r.PropTypes.func,onIncidentOccurred:r.PropTypes.func,onInitialized:r.PropTypes.func,onOptionChanged:r.PropTypes.func,onSelectionChanged:r.PropTypes.func,onTooltipHidden:r.PropTypes.func,onTooltipShown:r.PropTypes.func,onZoomFactorChanged:r.PropTypes.func,panningEnabled:r.PropTypes.bool,pathModified:r.PropTypes.bool,projection:r.PropTypes.object,redrawOnResize:r.PropTypes.bool,rtlEnabled:r.PropTypes.bool,size:r.PropTypes.object,theme:r.PropTypes.oneOf(["android5.light","generic.dark","generic.light","generic.contrast","ios7.default","win10.black","win10.white","win8.black","win8.white","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.string]),tooltip:r.PropTypes.object,touchEnabled:r.PropTypes.bool,wheelEnabled:r.PropTypes.bool,zoomFactor:r.PropTypes.number,zoomingEnabled:r.PropTypes.bool};var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="background",t}(s.default);t.Background=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="border",t}(s.default);t.Border=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="controlBar",t}(s.default);t.ControlBar=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="export",t}(s.default);t.Export=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="font",t}(s.default);t.Font=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="format",t}(s.default);t.Format=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="label",t.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},t}(s.default);t.Label=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="layers",t.IsCollectionItem=!0,t.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1}},t}(s.default);t.Layer=m;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="legends",t.IsCollectionItem=!0,t.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendBorder:{optionName:"border",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},source:{optionName:"source",isCollectionItem:!1}},t}(s.default);t.Legend=_;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="border",t}(s.default);t.LegendBorder=v;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="loadingIndicator",t.DefaultsProps={defaultShow:"show"},t.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},t}(s.default);t.LoadingIndicator=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="margin",t}(s.default);t.Margin=b;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="shadow",t}(s.default);t.Shadow=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="size",t}(s.default);t.Size=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="source",t}(s.default);t.Source=C;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="subtitle",t.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},t}(s.default);t.Subtitle=T;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="title",t.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},t}(s.default);t.Title=k;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="tooltip",t.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},t}(s.default);t.Tooltip=S;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.OptionName="border",t}(s.default);t.TooltipBorder=I,t.default=l},function(e,t,n){"use strict";e.exports=n(900),e.exports.default=e.exports},function(e,t,n){"use strict";var i=n(11).parseScalar,o=n(415),r=n(901),a=n(902),s=n(903),l=n(904),u=n(905),c=n(906),d=n(907),h=n(908),p=n(909),f=1,g=/^layers/,m=/\.dataSource$/;n(910);var _=n(88).inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_createThemeManager:function(){return new l.ThemeManager},_initLayerCollection:function(e){this._layerCollection=new h.MapLayerCollection({renderer:this._renderer,projection:this._projection,themeManager:this._themeManager,tracker:this._tracker,dataKey:e,eventTrigger:this._eventTrigger,dataExchanger:this._dataExchanger,tooltip:this._tooltip,notifyDirty:this._notifyDirty,notifyReady:this._notifyReady})},_initLegendsControl:function(){this._legendsControl=new c.LegendsControl({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,themeManager:this._themeManager,dataExchanger:this._dataExchanger,notifyDirty:this._notifyDirty,notifyReady:this._notifyReady})},_initControlBar:function(e){this._controlBar=new r.ControlBar({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,projection:this._projection,tracker:this._tracker,dataKey:e})},_initElements:function(){var e=this,t="vectormap-data-"+f++,n=0,i=!0;e._notifyDirty=function(){e._resetIsReady(),++n},e._notifyReady=function(){i=!1,0==--n&&e._drawn()},e._dataExchanger=new u.DataExchanger,e._projection=new o.Projection({centerChanged:function(t){i||e._eventTrigger("centerChanged",{center:t})},zoomChanged:function(t){i||e._eventTrigger("zoomFactorChanged",{zoomFactor:t})}}),e._tracker=new s.Tracker({root:e._root,projection:e._projection,dataKey:t}),e._gestureHandler=new a.GestureHandler({projection:e._projection,renderer:e._renderer,tracker:e._tracker}),e._layoutControl=new d.LayoutControl,e._layoutControl.suspend(),e._initLayerCollection(t),e._initControlBar(t),e._initLegendsControl(),e._tooltipViewer=new p.TooltipViewer({tracker:e._tracker,tooltip:e._tooltip,layerCollection:e._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){this._controlBar.dispose(),this._gestureHandler.dispose(),this._tracker.dispose(),this._legendsControl.dispose(),this._layerCollection.dispose(),this._layoutControl.dispose(),this._tooltipViewer.dispose(),this._dataExchanger.dispose(),this._projection.dispose(),this._dataExchanger=this._gestureHandler=this._projection=this._tracker=this._layoutControl=this._root=this._layerCollection=this._controlBar=this._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!i(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!i(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height])},_optionChanging:function(e,t,n){t&&n&&g.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:m.test(e)&&this.option(e,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){var e,t=this._layerCollection.items(),n=[],i=n.length=t.length;for(e=0;ei||l(n.y-o.y)>i)&&(o.x=n.x,o.y=n.y,o.active=!0,o.data=t||{},this._fire("move",{x:o.x,y:o.y,data:o.data})))},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire("end",{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n,i,o=this._wheelLock,r=m();r-o.time<=50||(r-o.dirTime>300&&(o.dir=0),0!==(n=function(e,t){if(0===e)return 0;var n=l(e),i=c(e/n);if(t.dir&&i!==t.dir)return 0;t.dir=i,n=n<.1?0:n<1?1:n>4?4:c(n);return i*n}(e.delta/120||0,o))&&(i=T(e),this._fire("zoom",{delta:n,x:i.x,y:i.y}),o.time=o.dirTime=r))}},_startZoom:function(e,t){if(w(e)&&t){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=k(e)||0,n=S(e,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&(i=k(e)||1)!==o.pointer1&&(n=S(e,i))&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))}},_moveZoom:function(e){var t,n=this._zoomState;n&&w(e)&&(void 0!==n.pointer1&&(t=S(e,n.pointer1))&&(n.x1=t.x,n.y1=t.y),void 0!==n.pointer2&&(t=S(e,n.pointer2))&&(n.x2=t.x,n.y2=t.y))},_endZoom:function(e){var t,n,i=this._zoomState;i&&w(e)&&(i.ready&&(t=x(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=x(i.x1,i.y1,i.x2,i.y2),this._fire("zoom",{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():w(e)!==n||this._hoverTarget===e.target||this._hoverState&&this._hoverState.data===t||(this._cancelHover(),t&&(this._hoverState={data:t},this._fire("hover-on",{data:t})),this._hoverTarget=e.target)},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire("hover-off",{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():w(e)===n&&(this._focus.turnOff(n?400:300),t&&this._focus.turnOn(t,T(e),300,n))},_endFocus:function(e){w(e)&&this._focus.cancelOn()},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){var t=this;function n(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}t._docHandlers={},t._rootHandlers={},t._rootHandlers[v.start]=t._docHandlers[v.start]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(o&&(e.preventDefault(),e.stopPropagation()),t._startClick(e,o),t._startDrag(e,o),t._startZoom(e,o),t._startHover(e,o),t._startFocus(e,o))},t._docHandlers[v.move]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(t._moveDrag(e,o),t._moveZoom(e,o),t._moveHover(e,o),t._moveFocus(e,o))},t._docHandlers[v.end]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(t._endClick(e,o),t._endDrag(e,o),t._endZoom(e,o),t._endFocus(e,o))},t._rootHandlers[v.wheel]=function(e){if(t._cancelFocus(),t._isWheelEnabled){var i=n(e);i&&(e.preventDefault(),e.stopPropagation(),t._wheelZoom(e,i))}},t._wheelLock={dir:0}},_createProjectionHandlers:function(e){var t=this;function n(){t._cancelFocus()}e.on({center:n,zoom:n})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(e){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!g(e.touchEnabled,!0),this._isWheelEnabled=!!g(e.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(f("MSHoldVisual",_)).off(f("contextmenu",_)),i.off(r.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(f("MSHoldVisual",_),function(e){e.preventDefault()}).on(f("contextmenu",_),function(e){w(e)&&e.preventDefault()}),i.on(r.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}};var b=function(e){var t,n,i=this,o=null,r=null,a=!1,s=null,u=null;i.dispose=function(){clearTimeout(s),clearTimeout(u),i.turnOn=i.turnOff=i.cancel=i.cancelOn=i.dispose=i=e=o=r=s=u=null},i.turnOn=function(i,c,d,h){function p(e){a=!e,e&&(o=r,clearTimeout(u),u=null)}i===r&&a||(a=!1,r=i,o?(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,r===o?(e("focus-move",{data:r,x:t,y:n}),p(!0)):e("focus-on",{data:r,x:t,y:n,done:p})},h?d:0)):(!s||l(c.x-t)>5||l(c.y-n)>5||h)&&(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,e("focus-on",{data:r,x:t,y:n,done:p})},d)))},i.turnOff=function(t){clearTimeout(s),s=null,r=null,o&&!a&&(u=u||setTimeout(function(){u=null,e("focus-off",{data:o}),o=null},t))},i.cancel=function(){clearTimeout(s),clearTimeout(u),o&&e("focus-off",{data:o}),o=r=s=u=null},i.cancelOn=function(){clearTimeout(s),s=null}};function x(e,t,n,i){return u((e-n)*(e-n)+(t-i)*(t-i))}function w(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function C(e,t){for(var n,i=0,o=e.length;i=r;--t)o[t].dispose(),o.splice(t,1);for(a.layoutControl.suspend(),t=0;t(o=s.rect[0]-r.rect[2])?i/o>=2?(r.rect[0]-=i,r.right=!0):(r.rect[0]-=o,r.rect[2]+=o):o/i>=2?(r.rect[2]+=o,r.center=null):(r.rect[0]-=i,r.rect[2]+=i)):(a.items&&(a.rect[2]=(r.rect[0]+r.rect[2])/2),s.items&&(s.rect[0]=(r.rect[0]+r.rect[2])/2))})}(e),l(e,function(e,i){i.items&&(n=function(e,t){var n=e.rect,i=n[2]-n[0],o=n[3]-n[1],u=0,c=0,d=0,h=n[2],p=n[3],f=n[0],g=n[1],m=[],_=!1;l(e.items,function(r,l){if(l.width>i||l.height>o)return m.push(null),_=!0,t||!1;if(u+l.width>i&&(c+=d,u=d=0),c+l.height>o)return m.push(null),_=!0,t||!1;d=s(d,l.height);var v=e.horInversion?n[2]-l.width-u:n[0]+u,y=e.verInversion?n[3]-l.height-c:n[1]+c;u+=l.width,h=a(h,v),p=a(p,y),f=s(f,v+l.width),g=s(g,y+l.height),m.push([v,y])}),(t||!_)&&(u=0,e.right?u=n[2]-n[0]-f+h:e.center&&(u=r((n[2]-n[0]-f+h)/2)),l(e.items,function(e,t){var n=m[e];n?t.item.locate(n[0]+u,n[1]):t.item.resize(null)}),e.rect=[h,p,f,g],e.items=null);return _}(i,t)||n)}),n}function f(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}f.prototype={constructor:f,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(u(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,l(this._items,function(t,n){n.resize(e)}),function(e,t){var n=h(e,t);p(n)&&p(n,!0)}({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=f},function(e,t,n){"use strict";var i=n(4).noop,o=n(0).extend,r=n(3).each,a=Number,s=String,l=Math.abs,u=Math.round,c=Math.min,d=Math.max,h=Math.sqrt,p=n(100),f=n(1).isFunction,g=n(1).isDefined,m=Array.isArray,_=n(11),v=_.parseScalar,y=_.patchFontOptions,b=_.normalizeEnum,x=i,w=o,C=r,T=Array.prototype.concat,k="area",S="line",I="marker",P=[0,1,2,2],O=1,E={none:null,single:-1,multiple:NaN};function D(e,t){return(e[t]||{}).name}function A(){}function B(e){this.raw=e}function R(e){this.raw=e}function M(e){return m(e.features)}function V(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]0&&(n=t.geometry(t.item(0)),i=$[i]?i:function(e){var t=L[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?I:"number"==typeof n[0][0]?S:k),t}(n),w(r,$[i]),r.fullType=r.type=i,q[i]&&w(r,q[i](n)),G[i]&&(o=G[i][o]?o:G[i]._default,w(r,G[i][o]),r.elementType=o,r.fullType+=":"+o)),r};function j(e,t,n,i){e[i].attr(t[i][n])}var W={setup:x,reset:x,arrange:x,updateGrouping:x,getDefaultColor:x},$={};$[k]={projectLabel:function(e){var t,n,i,o=e.length,r=0;for(t=0;tr&&(r=n.area,i=n);return i?[i.center,[h(i.area),h(i.area)]]:[[],[]]},transform:Q,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),V(e)},draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:x,getLabelOffset:function(e){return V(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=H(e.borderWidth,null),o=H(e.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:o},{class:"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":H(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:H(e.hoveredOpacity,o)},{class:"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":H(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:H(e.selectedOpacity,o)}]}},setState:function(e,t,n){j(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){ae(e)},getDefaultColor:x},$[S]={projectLabel:function(e){var t,n,i,o=e.length,r=0;for(t=0;tr&&(r=n[2],i=n);return i||[[],[]]},transform:Q,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),F(e)},draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:x,getLabelOffset:function(e){return F(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=H(e.borderWidth,null),i=H(e.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":H(e.hoveredBorderWidth,n),opacity:H(e.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":H(e.selectedBorderWidth,n),opacity:H(e.selectedOpacity,i)}]}},setState:function(e,t,n){j(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){ae(e)},getDefaultColor:x},$[I]={project:function(e,t){return e.project(t)},transform:function(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})},draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:x,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[u((e.size[0]+d(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){j(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){ae(e),se(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}};var q={};q[k]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?Z:Y}},q[S]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?Y:K}};var G={};function U(e,t){var n,i=[],o=i.length=t.length;for(n=0;n=0&&(n[e]=i.values[o])})}(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function ee(e,t){var n,i=0,o=t.length-1,r=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])r=o-1;else{for(;o-i>1;)e>1]?o=n:i=n;r=i}return r}function te(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function ne(e,t){var n=w({},e,t);return n.label=w({},e.label,n.label),n.label.font=w({},e.label.font,n.label.font),n}function ie(e,t){return e.attribute(t)}G[I]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.dot.attr({filter:o.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?a(t.size):0,i=n,o=n+(t.selectedStep>0?a(t.selectedStep):0),r=i+(t.backStep>0?a(t.backStep):0),s=o+(t.backStep>0?a(t.backStep):0),l=t.color||null,u=t.borderColor||null,c=H(t.borderWidth,null),d=H(t.opacity,null),h=t.backColor||null,p=H(t.backOpacity,null);e.dot=[{r:n/2,stroke:u,"stroke-width":c,fill:l,opacity:d},{r:i/2,stroke:t.hoveredBorderColor||u,"stroke-width":H(t.hoveredBorderWidth,c),fill:t.hoveredColor||l,opacity:H(t.hoveredOpacity,d)},{r:o/2,stroke:t.selectedBorderColor||u,"stroke-width":H(t.selectedBorderWidth,c),fill:t.selectedColor||l,opacity:H(t.selectedOpacity,d)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:r/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:s/2,stroke:"none","stroke-width":0,fill:h,opacity:p}]},_setState:function(e,t,n){j(e,t,n,"dot"),j(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.bubble.attr({r:o.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,o=H(t.borderWidth,null),r=H(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:r},{stroke:t.hoveredBorderColor||i,"stroke-width":H(t.hoveredBorderWidth,o),fill:t.hoveredColor||t.color,opacity:H(t.hoveredOpacity,r)},{stroke:t.selectedBorderColor||i,"stroke-width":H(t.selectedBorderWidth,o),fill:t.selectedColor||t.color,opacity:H(t.selectedOpacity,r)}]},_setState:function(e,t,n){j(e,t,n,"bubble")},arrange:function(e,t){var n,i,o,r,s=[],l=s.length=t.length,u=e.settings,h=u.dataField,p=u.minSize>0?a(u.minSize):0,f=u.maxSize>p?a(u.maxSize):p;if(!u.sizeGroups){for(n=0;n0?a(o.size):0)/2,g=90,m=g;for(r=0;rs&&(s=i.length);if(s>0){for(i=[],o=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}),n=0;n0?a(t.size):0,i=n+(t.hoveredStep>0?a(t.hoveredStep):0),o=n+(t.selectedStep>0?a(t.selectedStep):0),r=H(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:r},{x:-i/2,y:-i/2,width:i,height:i,opacity:H(t.hoveredOpacity,r)},{x:-o/2,y:-o/2,width:o,height:o,opacity:H(t.selectedOpacity,r)}]},_setState:function(e,t,n){j(e,t,n,"image")}}};var oe=function(e,t,n,i,o){var r;i&&t&&t.length>1&&(r=o(t.length-1),e.grouping[n]={callback:f(i)?i:ie,field:i,partition:t,values:r},e.params.dataExchanger.set(e.name,n,{partition:t,values:r,defaultColor:e.settings.color}))};function re(e){var t=e.name,n=e.params.dataExchanger;C(e.grouping,function(e){n.set(t,e,null)}),e.grouping={}}var ae=function(e){oe(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),o=[];for(n=0;n0?a(n.minSize):0,i=n.maxSize>=t?a(n.maxSize):0,o=0,r=[];if(e>1)for(o=0;o0&&(this._params.notifyDirty(),this._update(void 0!==e.type&&e.type!==this._context.str.type||void 0!==e.elementType&&e.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(e){var t=this._context;e&&(t.str.reset(t),t.root.clear(),t.labelRoot&&t.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),t.str=z(this._options,this._data),t.str.setup(t),this.proxy.type=t.str.type,this.proxy.elementType=t.str.elementType),t.settings=function(e,t){var n,i,o,r=e.params.themeManager,a=e.str,s=ne(w({label:{},color:a.getDefaultColor(e,t.palette)},r.theme("layer:"+a.fullType)),t);if(s.paletteSize>0){for(o=r.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}(this,n.coordinates,w({},i));this._ctx=e,this._index=t,this._fig=this._label=null,this._state=0,this._coordinates=n.coordinates,this._settings={label:{}},o.index=t,o.layer=e.layer,this._data={name:e.name,index:t}};function he(e){var t,n,i,o=e.length,r=e[o-1],a=0,s=0,u=0,h=1/0,p=-1/0,f=1/0,g=-1/0;for(t=0;t=arguments.length)?l=t[s]:(l=arguments[r],r+=1),o[s]=l,i(l)||(a-=1),s+=1}return a<=0?n.apply(this,o):h(a,p(e,o,n))}}var f=u(function(e,t){return 1===e?o(t):h(e,p(e,[],t))}),g=o(function(e){return f(e.length,function(){var t=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var e=n.apply(this,d(arguments,[t,i]));return t+=1,e},e.apply(this,o)})});function m(e){return function t(n,r,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:u(function(t,i){return e(n,t,i)});case 2:return i(n)&&i(r)?t:i(n)?u(function(t,n){return e(t,r,n)}):i(r)?u(function(t,i){return e(n,t,i)}):o(function(t){return e(n,r,t)});default:return i(n)&&i(r)&&i(a)?t:i(n)&&i(r)?u(function(t,n){return e(t,n,a)}):i(n)&&i(a)?u(function(t,n){return e(t,r,n)}):i(r)&&i(a)?u(function(t,i){return e(n,t,i)}):i(n)?o(function(t){return e(t,r,a)}):i(r)?o(function(t){return e(n,t,a)}):i(a)?o(function(t){return e(n,r,t)}):e(n,r,a)}}}var _=m(function(e,t,n){if(t>=n.length||t<-n.length)return n;var i=(t<0?n.length:0)+t,o=d(n);return o[i]=e(n[i]),o}),v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function y(e){return"function"==typeof e["@@transducer/step"]}function b(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),o=i.pop();if(!v(o)){for(var r=0;re?t:e});function S(e,t){for(var n=0,i=t.length,o=Array(i);n0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}),O=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function E(e){return new O(e)}var D=u(function(e,t){return h(e.length,function(){return e.apply(t,arguments)})});function A(e,t,n){for(var i=n.next();!i.done;){if((t=e["@@transducer/step"](t,i.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i=n.next()}return e["@@transducer/result"](t)}function B(e,t,n,i){return e["@@transducer/result"](n[i](D(e["@@transducer/step"],e),t))}var R="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function M(e,t,n){if("function"==typeof e&&(e=E(e)),P(n))return function(e,t,n){for(var i=0,o=n.length;i=0;)N(t=j[n],e)&&!$(i,t)&&(i[i.length]=t),n-=1;return i}:function(e){return Object(e)!==e?[]:Object.keys(e)}),G=u(b(["fantasy-land/map","map"],F,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return f(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return M(function(n,i){return n[i]=e(t[i]),n},{},q(t));default:return S(e,t)}})),U=u(function(e,t){for(var n=t,i=0;i=0?i:0);no?1:0}),he=m(function(e,t,n){var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}),pe=Number.isInteger||function(e){return e<<0===e},fe=o(function(e){return null==e}),ge=m(function e(t,n,i){if(0===t.length)return n;var o=t[0];if(t.length>1){var r=!fe(i)&&N(o,i)?i[o]:pe(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,r)}if(pe(o)&&v(i)){var a=[].concat(i);return a[o]=n,a}return he(o,n,i)}),me=u(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,i){return t.call(this,e,n,i)};case 4:return function(e,n,i,o){return t.call(this,e,n,i,o)};case 5:return function(e,n,i,o,r){return t.call(this,e,n,i,o,r)};case 6:return function(e,n,i,o,r,a){return t.call(this,e,n,i,o,r,a)};case 7:return function(e,n,i,o,r,a,s){return t.call(this,e,n,i,o,r,a,s)};case 8:return function(e,n,i,o,r,a,s,l){return t.call(this,e,n,i,o,r,a,s,l)};case 9:return function(e,n,i,o,r,a,s,l,u){return t.call(this,e,n,i,o,r,a,s,l,u)};case 10:return function(e,n,i,o,r,a,s,l,u,c){return t.call(this,e,n,i,o,r,a,s,l,u,c)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),_e=o(function(e){return me(2,e)});function ve(e){return"[object Function]"===Object.prototype.toString.call(e)}var ye=u(function(e,t){var n=f(e,t);return f(e,function(){return M(ie,G(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),be=o(function(e){return ye(e.length,e)}),xe=u(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:be(Q)(e,t)}),we=o(function(e){return f(e.length,e)}),Ce=we(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))});function Te(e){return function t(n){for(var i,o,r,a=[],s=0,l=n.length;st)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n});function Pe(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var Oe=o(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Ee(e,t,n,i){var o=function(o){for(var r=t.length,a=0;a=0;){if(n[r]===e)return i[r]===t;r-=1}switch(o){case"Map":return e.size===t.size&&Ye(e.entries(),t.entries(),n.concat([e]),i.concat([t]));case"Set":return e.size===t.size&&Ye(e.values(),t.values(),n.concat([e]),i.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=q(e);if(a.length!==q(t).length)return!1;var s=n.concat([e]),l=i.concat([t]);for(r=a.length-1;r>=0;){var u=a[r];if(!N(u,t)||!Ze(t[u],e[u],s,l))return!1;r-=1}return!0}var Xe=u(function(e,t){return Ze(e,t,[],[])});function Qe(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n=0}function et(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var tt=function(e){return(e<10?"0":"")+e},nt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+tt(e.getUTCMonth()+1)+"-"+tt(e.getUTCDate())+"T"+tt(e.getUTCHours())+":"+tt(e.getUTCMinutes())+":"+tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function it(e){return function(){return!e.apply(this,arguments)}}function ot(e,t){for(var n=0,i=t.length,o=[];n":e(i,o)},o=function(e,t){return S(function(t){return et(t)+": "+i(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+S(i,t).join(", ")+"))";case"[object Array]":return"["+S(i,t).concat(o(t,lt(function(e){return/^\d+$/.test(e)},q(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+i(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?i(NaN):et(nt(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+i(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+i(t.valueOf())+")":et(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var r=t.toString();if("[object Object]"!==r)return r}return"{"+o(t,q(t)).join(", ")+"}"}}(e,[])}),ct=u(function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(ut(t)+" is not an array")}if(I(e)){if(I(t))return e+t;throw new TypeError(ut(t)+" is not a string")}if(null!=e&&ve(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ve(e.concat))return e.concat(t);throw new TypeError(ut(e)+' does not have a method named "concat" or "fantasy-land/concat"')}),dt=o(function(e){return h(Z(k,0,G(function(e){return e[0].length},e)),function(){for(var t=0;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:we(me(e,function(e,n,i,o,r,a,s,l,u,c){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,i);case 4:return new t(e,n,i,o);case 5:return new t(e,n,i,o,r);case 6:return new t(e,n,i,o,r,a);case 7:return new t(e,n,i,o,r,a,s);case 8:return new t(e,n,i,o,r,a,s,l);case 9:return new t(e,n,i,o,r,a,s,l,u);case 10:return new t(e,n,i,o,r,a,s,l,u,c)}}))}),pt=o(function(e){return ht(e.length,e)}),ft=u(Je),gt=u(function(e,t){return f(Z(k,0,Y("length",t)),function(){var n=arguments,i=this;return e.apply(i,S(function(e){return e.apply(i,n)},t))})}),mt=function(){function e(e,t,n,i){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(N(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),_t=p(4,[],b([],p(4,[],function(e,t,n,i){return new mt(e,t,n,i)}),function(e,t,n,i){return M(function(i,o){var r=n(o);return i[r]=e(N(r,i)?i[r]:t,o),i},{},i)})),vt=_t(function(e,t){return e+1},0),yt=c(-1),bt=u(function(e,t){return null==t||t!=t?e:t}),xt=m(function(e,t,n){var i=e(t),o=e(n);return i>o?-1:i0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),Et=u(b(["drop"],u(function(e,t){return new Ot(e,t)}),function(e,t){return Fe(Math.max(0,e),1/0,t)})),Dt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?x(n):n},e}(),At=u(b(["take"],u(function(e,t){return new Dt(e,t)}),function(e,t){return Fe(0,e<0?1/0:e,t)}));var Bt=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),Rt=u(b([],u(function(e,t){return new Bt(e,t)}),function(e,t){return At(e=0&&e(t[n]);)n-=1;return Fe(0,n+1,t)})),Ft=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),Nt=u(function(e,t){return new Ft(e,t)}),Lt=u(function(e,t){var n=e<0?t.length+e:e;return I(t)?t.charAt(n):t[n]}),Ht=Lt(-1),zt=u(b([],Nt,function(e,t){var n=[],i=1,o=t.length;if(0!==o)for(n[0]=t[0];i=0?t.length-e:0,t)}),Yt=u(function(e,t){return Xe(Kt(e.length,t),e)}),Zt=m(function(e,t,n){return Xe(e(t),e(n))}),Xt=m(function(e,t,n){return Xe(t[e],n[e])}),Qt=u(function e(t,n){var i,o,r,a={};for(o in n)r=typeof(i=t[o]),a[o]="function"===r?i(n[o]):i&&"object"===r?e(i,n[o]):n[o];return a}),Jt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=x(this.xf["@@transducer/step"](e,t))),e},e}(),en=u(b(["find"],u(function(e,t){return new Jt(e,t)}),function(e,t){for(var n=0,i=t.length;n=0;){if(e(t[n]))return t[n];n-=1}})),an=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),sn=u(b([],u(function(e,t){return new an(e,t)}),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1})),ln=o(Te(!0)),un=o(function(e){return f(e.length,function(t,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=t,e.apply(this,i)})}),cn=u(Ve("forEach",function(e,t){for(var n=t.length,i=0;it}),mn=u(function(e,t){return e>=t}),_n=u(N),vn=u(function(e,t){return e in t}),yn=Lt(0);function bn(e){return e}var xn=o(bn),wn=m(function(e,t,n){return f(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),Cn=c(1),Tn=_t(function(e,t){return t},null),kn=u(function(e,t){return"function"!=typeof t.indexOf||v(t)?Qe(t,e,0):t.indexOf(e)}),Sn=Fe(0,-1),In=m(function(e,t,n){return ot(function(t){return Ue(e,t,n)},t)}),Pn=m(function(e,t,n){e=e=0?e:n.length;var i=Array.prototype.slice.call(n,0);return i.splice(e,0,t),i}),On=m(function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))});function En(e,t,n){var i,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var r=e?1:0;return!!n._items[o][r]||(t&&(n._items[o][r]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?!!Je(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!Je(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}var Dn=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!En(e,!0,this)},e.prototype.has=function(e){return En(e,!1,this)},e}(),An=u(function(e,t){for(var n,i,o=new Dn,r=[],a=0;at.length?(n=e,i=t):(n=t,i=e),Bn(ot(un(Je)(n),i))}),Mn=u(Ve("intersperse",function(e,t){for(var n=[],i=0,o=t.length;i=0;){if(Xe(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)});function Xn(e){return"[object Number]"===Object.prototype.toString.call(e)}var Qn=o(function(e){return null!=e&&Xn(e.length)?e.length:NaN}),Jn=u(function(e,t){return function(n){return function(i){return G(function(e){return t(e,i)},n(e(i)))}}}),ei=o(function(e){return Jn(Lt(e),St(e))}),ti=o(function(e){return Jn(U(e),ge(e))}),ni=o(function(e){return Jn(K(e),he(e))}),ii=u(function(e,t){return e=0;)r=e(n[i],r[0]),o[i]=r[1],i-=1;return[o,r[0]]}),si=u(function(e,t){return M(function(n,i){return n[i]=e(t[i],i,t),n},{},q(t))}),li=u(function(e,t){return t.match(e)||[]}),ui=u(function(e,t){return pe(e)?!pe(t)||t<1?NaN:(e%t+t)%t:NaN}),ci=m(function(e,t,n){return e(n)>e(t)?n:t}),di=Z(c,0),hi=o(function(e){return di(e)/e.length}),pi=o(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,i=(t-n)/2;return hi(Array.prototype.slice.call(e,0).sort(function(e,t){return et?1:0}).slice(i,i+n))}),fi=u(function(e,t){var n={};return h(t.length,function(){var i=e.apply(this,arguments);return N(i,n)||(n[i]=t.apply(this,arguments)),n[i]})}),gi=fi(function(){return ut(arguments)}),mi=u(function(e,t){return Vn({},e,t)}),_i=o(function(e){return Vn.apply(null,[{}].concat(e))}),vi=m(function(e,t,n){var i,o={};for(i in t)N(i,t)&&(o[i]=N(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)N(i,n)&&!N(i,o)&&(o[i]=n[i]);return o}),yi=m(function e(t,n,i){return vi(function(n,i,o){return rt(i)&&rt(o)?e(t,i,o):t(n,i,o)},n,i)}),bi=u(function(e,t){return yi(function(e,t,n){return t},e,t)}),xi=u(function(e,t){return yi(function(e,t,n){return n},e,t)}),wi=m(function(e,t,n){return yi(function(t,n,i){return e(n,i)},t,n)}),Ci=m(function(e,t,n){return vi(function(t,n,i){return e(n,i)},t,n)}),Ti=u(function(e,t){return t0&&e(U(t,n))}),qi=u(function(e,t){for(var n={},i=0;i=0;)t=e(n[i],t),i-=1;return t}),ao=p(4,[],function(e,t,n,i){return M(function(n,i){return e(n,i)?t(n,i):x(n)},n,i)}),so=o(x),lo=u(function(e,t){var n,i=Number(t),o=0;if(i<0||isNaN(i))throw new RangeError("n must be a non-negative number");for(n=new Array(i);oo?1:0})}),_o=u(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var i=0,o=0;0===i&&o=0&&e(t[n]);)n-=1;return Fe(n+1,1/0,t)}),Io=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):x(e)},e}(),Po=u(b(["takeWhile"],u(function(e,t){return new Io(e,t)}),function(e,t){for(var n=0,i=t.length;ni||l(n.y-o.y)>i)&&(o.x=n.x,o.y=n.y,o.active=!0,o.data=t||{},this._fire("move",{x:o.x,y:o.y,data:o.data})))},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire("end",{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n,i,o=this._wheelLock,r=m();r-o.time<=50||(r-o.dirTime>300&&(o.dir=0),0!==(n=function(e,t){if(0===e)return 0;var n=l(e),i=c(e/n);if(t.dir&&i!==t.dir)return 0;t.dir=i,n=n<.1?0:n<1?1:n>4?4:c(n);return i*n}(e.delta/120||0,o))&&(i=T(e),this._fire("zoom",{delta:n,x:i.x,y:i.y}),o.time=o.dirTime=r))}},_startZoom:function(e,t){if(w(e)&&t){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=k(e)||0,n=S(e,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&(i=k(e)||1)!==o.pointer1&&(n=S(e,i))&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))}},_moveZoom:function(e){var t,n=this._zoomState;n&&w(e)&&(void 0!==n.pointer1&&(t=S(e,n.pointer1))&&(n.x1=t.x,n.y1=t.y),void 0!==n.pointer2&&(t=S(e,n.pointer2))&&(n.x2=t.x,n.y2=t.y))},_endZoom:function(e){var t,n,i=this._zoomState;i&&w(e)&&(i.ready&&(t=x(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=x(i.x1,i.y1,i.x2,i.y2),this._fire("zoom",{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():w(e)!==n||this._hoverTarget===e.target||this._hoverState&&this._hoverState.data===t||(this._cancelHover(),t&&(this._hoverState={data:t},this._fire("hover-on",{data:t})),this._hoverTarget=e.target)},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire("hover-off",{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():w(e)===n&&(this._focus.turnOff(n?400:300),t&&this._focus.turnOn(t,T(e),300,n))},_endFocus:function(e){w(e)&&this._focus.cancelOn()},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){var t=this;function n(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}t._docHandlers={},t._rootHandlers={},t._rootHandlers[v.start]=t._docHandlers[v.start]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(o&&(e.preventDefault(),e.stopPropagation()),t._startClick(e,o),t._startDrag(e,o),t._startZoom(e,o),t._startHover(e,o),t._startFocus(e,o))},t._docHandlers[v.move]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(t._moveDrag(e,o),t._moveZoom(e,o),t._moveHover(e,o),t._moveFocus(e,o))},t._docHandlers[v.end]=function(e){var i=w(e),o=n(e);i&&!t._isTouchEnabled||(t._endClick(e,o),t._endDrag(e,o),t._endZoom(e,o),t._endFocus(e,o))},t._rootHandlers[v.wheel]=function(e){if(t._cancelFocus(),t._isWheelEnabled){var i=n(e);i&&(e.preventDefault(),e.stopPropagation(),t._wheelZoom(e,i))}},t._wheelLock={dir:0}},_createProjectionHandlers:function(e){var t=this;function n(){t._cancelFocus()}e.on({center:n,zoom:n})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(e){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!g(e.touchEnabled,!0),this._isWheelEnabled=!!g(e.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(f("MSHoldVisual",_)).off(f("contextmenu",_)),i.off(r.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(f("MSHoldVisual",_),function(e){e.preventDefault()}).on(f("contextmenu",_),function(e){w(e)&&e.preventDefault()}),i.on(r.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}};var b=function(e){var t,n,i=this,o=null,r=null,a=!1,s=null,u=null;i.dispose=function(){clearTimeout(s),clearTimeout(u),i.turnOn=i.turnOff=i.cancel=i.cancelOn=i.dispose=i=e=o=r=s=u=null},i.turnOn=function(i,c,d,h){function p(e){a=!e,e&&(o=r,clearTimeout(u),u=null)}i===r&&a||(a=!1,r=i,o?(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,r===o?(e("focus-move",{data:r,x:t,y:n}),p(!0)):e("focus-on",{data:r,x:t,y:n,done:p})},h?d:0)):(!s||l(c.x-t)>5||l(c.y-n)>5||h)&&(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,e("focus-on",{data:r,x:t,y:n,done:p})},d)))},i.turnOff=function(t){clearTimeout(s),s=null,r=null,o&&!a&&(u=u||setTimeout(function(){u=null,e("focus-off",{data:o}),o=null},t))},i.cancel=function(){clearTimeout(s),clearTimeout(u),o&&e("focus-off",{data:o}),o=r=s=u=null},i.cancelOn=function(){clearTimeout(s),s=null}};function x(e,t,n,i){return u((e-n)*(e-n)+(t-i)*(t-i))}function w(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function C(e,t){for(var n,i=0,o=e.length;i=r;--t)o[t].dispose(),o.splice(t,1);for(a.layoutControl.suspend(),t=0;t(o=s.rect[0]-r.rect[2])?i/o>=2?(r.rect[0]-=i,r.right=!0):(r.rect[0]-=o,r.rect[2]+=o):o/i>=2?(r.rect[2]+=o,r.center=null):(r.rect[0]-=i,r.rect[2]+=i)):(a.items&&(a.rect[2]=(r.rect[0]+r.rect[2])/2),s.items&&(s.rect[0]=(r.rect[0]+r.rect[2])/2))})}(e),l(e,function(e,i){i.items&&(n=function(e,t){var n=e.rect,i=n[2]-n[0],o=n[3]-n[1],u=0,c=0,d=0,h=n[2],p=n[3],f=n[0],g=n[1],m=[],_=!1;l(e.items,function(r,l){if(l.width>i||l.height>o)return m.push(null),_=!0,t||!1;if(u+l.width>i&&(c+=d,u=d=0),c+l.height>o)return m.push(null),_=!0,t||!1;d=s(d,l.height);var v=e.horInversion?n[2]-l.width-u:n[0]+u,y=e.verInversion?n[3]-l.height-c:n[1]+c;u+=l.width,h=a(h,v),p=a(p,y),f=s(f,v+l.width),g=s(g,y+l.height),m.push([v,y])}),(t||!_)&&(u=0,e.right?u=n[2]-n[0]-f+h:e.center&&(u=r((n[2]-n[0]-f+h)/2)),l(e.items,function(e,t){var n=m[e];n?t.item.locate(n[0]+u,n[1]):t.item.resize(null)}),e.rect=[h,p,f,g],e.items=null);return _}(i,t)||n)}),n}function f(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}f.prototype={constructor:f,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(u(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,l(this._items,function(t,n){n.resize(e)}),function(e,t){var n=h(e,t);p(n)&&p(n,!0)}({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=f},function(e,t,n){"use strict";var i=n(4).noop,o=n(0).extend,r=n(3).each,a=Number,s=String,l=Math.abs,u=Math.round,c=Math.min,d=Math.max,h=Math.sqrt,p=n(100),f=n(1).isFunction,g=n(1).isDefined,m=Array.isArray,_=n(11),v=_.parseScalar,y=_.patchFontOptions,b=_.normalizeEnum,x=i,w=o,C=r,T=Array.prototype.concat,k="area",S="line",I="marker",P=[0,1,2,2],O=1,E={none:null,single:-1,multiple:NaN};function D(e,t){return(e[t]||{}).name}function A(){}function B(e){this.raw=e}function R(e){this.raw=e}function M(e){return m(e.features)}function V(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]0&&(n=t.geometry(t.item(0)),i=$[i]?i:function(e){var t=L[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?I:"number"==typeof n[0][0]?S:k),t}(n),w(r,$[i]),r.fullType=r.type=i,q[i]&&w(r,q[i](n)),G[i]&&(o=G[i][o]?o:G[i]._default,w(r,G[i][o]),r.elementType=o,r.fullType+=":"+o)),r};function j(e,t,n,i){e[i].attr(t[i][n])}var W={setup:x,reset:x,arrange:x,updateGrouping:x,getDefaultColor:x},$={};$[k]={projectLabel:function(e){var t,n,i,o=e.length,r=0;for(t=0;tr&&(r=n.area,i=n);return i?[i.center,[h(i.area),h(i.area)]]:[[],[]]},transform:Q,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),V(e)},draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:x,getLabelOffset:function(e){return V(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=H(e.borderWidth,null),o=H(e.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:o},{class:"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":H(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:H(e.hoveredOpacity,o)},{class:"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":H(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:H(e.selectedOpacity,o)}]}},setState:function(e,t,n){j(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){ae(e)},getDefaultColor:x},$[S]={projectLabel:function(e){var t,n,i,o=e.length,r=0;for(t=0;tr&&(r=n[2],i=n);return i||[[],[]]},transform:Q,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),F(e)},draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:x,getLabelOffset:function(e){return F(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=H(e.borderWidth,null),i=H(e.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":H(e.hoveredBorderWidth,n),opacity:H(e.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":H(e.selectedBorderWidth,n),opacity:H(e.selectedOpacity,i)}]}},setState:function(e,t,n){j(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){ae(e)},getDefaultColor:x},$[I]={project:function(e,t){return e.project(t)},transform:function(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})},draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:x,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[u((e.size[0]+d(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){j(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){ae(e),se(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}};var q={};q[k]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?Z:Y}},q[S]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?Y:K}};var G={};function U(e,t){var n,i=[],o=i.length=t.length;for(n=0;n=0&&(n[e]=i.values[o])})}(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function ee(e,t){var n,i=0,o=t.length-1,r=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])r=o-1;else{for(;o-i>1;)e>1]?o=n:i=n;r=i}return r}function te(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function ne(e,t){var n=w({},e,t);return n.label=w({},e.label,n.label),n.label.font=w({},e.label.font,n.label.font),n}function ie(e,t){return e.attribute(t)}G[I]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.dot.attr({filter:o.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?a(t.size):0,i=n,o=n+(t.selectedStep>0?a(t.selectedStep):0),r=i+(t.backStep>0?a(t.backStep):0),s=o+(t.backStep>0?a(t.backStep):0),l=t.color||null,u=t.borderColor||null,c=H(t.borderWidth,null),d=H(t.opacity,null),h=t.backColor||null,p=H(t.backOpacity,null);e.dot=[{r:n/2,stroke:u,"stroke-width":c,fill:l,opacity:d},{r:i/2,stroke:t.hoveredBorderColor||u,"stroke-width":H(t.hoveredBorderWidth,c),fill:t.hoveredColor||l,opacity:H(t.hoveredOpacity,d)},{r:o/2,stroke:t.selectedBorderColor||u,"stroke-width":H(t.selectedBorderWidth,c),fill:t.selectedColor||l,opacity:H(t.selectedOpacity,d)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:r/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:s/2,stroke:"none","stroke-width":0,fill:h,opacity:p}]},_setState:function(e,t,n){j(e,t,n,"dot"),j(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.bubble.attr({r:o.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,o=H(t.borderWidth,null),r=H(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:r},{stroke:t.hoveredBorderColor||i,"stroke-width":H(t.hoveredBorderWidth,o),fill:t.hoveredColor||t.color,opacity:H(t.hoveredOpacity,r)},{stroke:t.selectedBorderColor||i,"stroke-width":H(t.selectedBorderWidth,o),fill:t.selectedColor||t.color,opacity:H(t.selectedOpacity,r)}]},_setState:function(e,t,n){j(e,t,n,"bubble")},arrange:function(e,t){var n,i,o,r,s=[],l=s.length=t.length,u=e.settings,h=u.dataField,p=u.minSize>0?a(u.minSize):0,f=u.maxSize>p?a(u.maxSize):p;if(!u.sizeGroups){for(n=0;n0?a(o.size):0)/2,g=90,m=g;for(r=0;rs&&(s=i.length);if(s>0){for(i=[],o=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}),n=0;n0?a(t.size):0,i=n+(t.hoveredStep>0?a(t.hoveredStep):0),o=n+(t.selectedStep>0?a(t.selectedStep):0),r=H(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:r},{x:-i/2,y:-i/2,width:i,height:i,opacity:H(t.hoveredOpacity,r)},{x:-o/2,y:-o/2,width:o,height:o,opacity:H(t.selectedOpacity,r)}]},_setState:function(e,t,n){j(e,t,n,"image")}}};var oe=function(e,t,n,i,o){var r;i&&t&&t.length>1&&(r=o(t.length-1),e.grouping[n]={callback:f(i)?i:ie,field:i,partition:t,values:r},e.params.dataExchanger.set(e.name,n,{partition:t,values:r,defaultColor:e.settings.color}))};function re(e){var t=e.name,n=e.params.dataExchanger;C(e.grouping,function(e){n.set(t,e,null)}),e.grouping={}}var ae=function(e){oe(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),o=[];for(n=0;n0?a(n.minSize):0,i=n.maxSize>=t?a(n.maxSize):0,o=0,r=[];if(e>1)for(o=0;o0&&(this._params.notifyDirty(),this._update(void 0!==e.type&&e.type!==this._context.str.type||void 0!==e.elementType&&e.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(e){var t=this._context;e&&(t.str.reset(t),t.root.clear(),t.labelRoot&&t.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),t.str=z(this._options,this._data),t.str.setup(t),this.proxy.type=t.str.type,this.proxy.elementType=t.str.elementType),t.settings=function(e,t){var n,i,o,r=e.params.themeManager,a=e.str,s=ne(w({label:{},color:a.getDefaultColor(e,t.palette)},r.theme("layer:"+a.fullType)),t);if(s.paletteSize>0){for(o=r.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}(this,n.coordinates,w({},i));this._ctx=e,this._index=t,this._fig=this._label=null,this._state=0,this._coordinates=n.coordinates,this._settings={label:{}},o.index=t,o.layer=e.layer,this._data={name:e.name,index:t}};function he(e){var t,n,i,o=e.length,r=e[o-1],a=0,s=0,u=0,h=1/0,p=-1/0,f=1/0,g=-1/0;for(t=0;t=arguments.length)?l=t[s]:(l=arguments[r],r+=1),o[s]=l,i(l)||(a-=1),s+=1}return a<=0?n.apply(this,o):h(a,p(e,o,n))}}var f=u(function(e,t){return 1===e?o(t):h(e,p(e,[],t))}),g=o(function(e){return f(e.length,function(){var t=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var e=n.apply(this,d(arguments,[t,i]));return t+=1,e},e.apply(this,o)})});function m(e){return function t(n,r,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:u(function(t,i){return e(n,t,i)});case 2:return i(n)&&i(r)?t:i(n)?u(function(t,n){return e(t,r,n)}):i(r)?u(function(t,i){return e(n,t,i)}):o(function(t){return e(n,r,t)});default:return i(n)&&i(r)&&i(a)?t:i(n)&&i(r)?u(function(t,n){return e(t,n,a)}):i(n)&&i(a)?u(function(t,n){return e(t,r,n)}):i(r)&&i(a)?u(function(t,i){return e(n,t,i)}):i(n)?o(function(t){return e(t,r,a)}):i(r)?o(function(t){return e(n,t,a)}):i(a)?o(function(t){return e(n,r,t)}):e(n,r,a)}}}var _=m(function(e,t,n){if(t>=n.length||t<-n.length)return n;var i=(t<0?n.length:0)+t,o=d(n);return o[i]=e(n[i]),o}),v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function y(e){return"function"==typeof e["@@transducer/step"]}function b(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),o=i.pop();if(!v(o)){for(var r=0;re?t:e});function S(e,t){for(var n=0,i=t.length,o=Array(i);n0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}),O=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function E(e){return new O(e)}var D=u(function(e,t){return h(e.length,function(){return e.apply(t,arguments)})});function A(e,t,n){for(var i=n.next();!i.done;){if((t=e["@@transducer/step"](t,i.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i=n.next()}return e["@@transducer/result"](t)}function B(e,t,n,i){return e["@@transducer/result"](n[i](D(e["@@transducer/step"],e),t))}var R="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function M(e,t,n){if("function"==typeof e&&(e=E(e)),P(n))return function(e,t,n){for(var i=0,o=n.length;i=0;)N(t=j[n],e)&&!$(i,t)&&(i[i.length]=t),n-=1;return i}:function(e){return Object(e)!==e?[]:Object.keys(e)}),G=u(b(["fantasy-land/map","map"],F,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return f(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return M(function(n,i){return n[i]=e(t[i]),n},{},q(t));default:return S(e,t)}})),U=u(function(e,t){for(var n=t,i=0;i=0?i:0);no?1:0}),he=m(function(e,t,n){var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}),pe=Number.isInteger||function(e){return e<<0===e},fe=o(function(e){return null==e}),ge=m(function e(t,n,i){if(0===t.length)return n;var o=t[0];if(t.length>1){var r=!fe(i)&&N(o,i)?i[o]:pe(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,r)}if(pe(o)&&v(i)){var a=[].concat(i);return a[o]=n,a}return he(o,n,i)}),me=u(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,i){return t.call(this,e,n,i)};case 4:return function(e,n,i,o){return t.call(this,e,n,i,o)};case 5:return function(e,n,i,o,r){return t.call(this,e,n,i,o,r)};case 6:return function(e,n,i,o,r,a){return t.call(this,e,n,i,o,r,a)};case 7:return function(e,n,i,o,r,a,s){return t.call(this,e,n,i,o,r,a,s)};case 8:return function(e,n,i,o,r,a,s,l){return t.call(this,e,n,i,o,r,a,s,l)};case 9:return function(e,n,i,o,r,a,s,l,u){return t.call(this,e,n,i,o,r,a,s,l,u)};case 10:return function(e,n,i,o,r,a,s,l,u,c){return t.call(this,e,n,i,o,r,a,s,l,u,c)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),_e=o(function(e){return me(2,e)});function ve(e){return"[object Function]"===Object.prototype.toString.call(e)}var ye=u(function(e,t){var n=f(e,t);return f(e,function(){return M(ie,G(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),be=o(function(e){return ye(e.length,e)}),xe=u(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:be(Q)(e,t)}),we=o(function(e){return f(e.length,e)}),Ce=we(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))});function Te(e){return function t(n){for(var i,o,r,a=[],s=0,l=n.length;st)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n});function Pe(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var Oe=o(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Ee(e,t,n,i){var o=function(o){for(var r=t.length,a=0;a=0;){if(n[r]===e)return i[r]===t;r-=1}switch(o){case"Map":return e.size===t.size&&Ye(e.entries(),t.entries(),n.concat([e]),i.concat([t]));case"Set":return e.size===t.size&&Ye(e.values(),t.values(),n.concat([e]),i.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=q(e);if(a.length!==q(t).length)return!1;var s=n.concat([e]),l=i.concat([t]);for(r=a.length-1;r>=0;){var u=a[r];if(!N(u,t)||!Ze(t[u],e[u],s,l))return!1;r-=1}return!0}var Xe=u(function(e,t){return Ze(e,t,[],[])});function Qe(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n=0}function et(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var tt=function(e){return(e<10?"0":"")+e},nt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+tt(e.getUTCMonth()+1)+"-"+tt(e.getUTCDate())+"T"+tt(e.getUTCHours())+":"+tt(e.getUTCMinutes())+":"+tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function it(e){return function(){return!e.apply(this,arguments)}}function ot(e,t){for(var n=0,i=t.length,o=[];n":e(i,o)},o=function(e,t){return S(function(t){return et(t)+": "+i(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+S(i,t).join(", ")+"))";case"[object Array]":return"["+S(i,t).concat(o(t,lt(function(e){return/^\d+$/.test(e)},q(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+i(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?i(NaN):et(nt(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+i(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+i(t.valueOf())+")":et(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var r=t.toString();if("[object Object]"!==r)return r}return"{"+o(t,q(t)).join(", ")+"}"}}(e,[])}),ct=u(function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(ut(t)+" is not an array")}if(I(e)){if(I(t))return e+t;throw new TypeError(ut(t)+" is not a string")}if(null!=e&&ve(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ve(e.concat))return e.concat(t);throw new TypeError(ut(e)+' does not have a method named "concat" or "fantasy-land/concat"')}),dt=o(function(e){return h(Z(k,0,G(function(e){return e[0].length},e)),function(){for(var t=0;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:we(me(e,function(e,n,i,o,r,a,s,l,u,c){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,i);case 4:return new t(e,n,i,o);case 5:return new t(e,n,i,o,r);case 6:return new t(e,n,i,o,r,a);case 7:return new t(e,n,i,o,r,a,s);case 8:return new t(e,n,i,o,r,a,s,l);case 9:return new t(e,n,i,o,r,a,s,l,u);case 10:return new t(e,n,i,o,r,a,s,l,u,c)}}))}),pt=o(function(e){return ht(e.length,e)}),ft=u(Je),gt=u(function(e,t){return f(Z(k,0,Y("length",t)),function(){var n=arguments,i=this;return e.apply(i,S(function(e){return e.apply(i,n)},t))})}),mt=function(){function e(e,t,n,i){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(N(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),_t=p(4,[],b([],p(4,[],function(e,t,n,i){return new mt(e,t,n,i)}),function(e,t,n,i){return M(function(i,o){var r=n(o);return i[r]=e(N(r,i)?i[r]:t,o),i},{},i)})),vt=_t(function(e,t){return e+1},0),yt=c(-1),bt=u(function(e,t){return null==t||t!=t?e:t}),xt=m(function(e,t,n){var i=e(t),o=e(n);return i>o?-1:i0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),Et=u(b(["drop"],u(function(e,t){return new Ot(e,t)}),function(e,t){return Fe(Math.max(0,e),1/0,t)})),Dt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?x(n):n},e}(),At=u(b(["take"],u(function(e,t){return new Dt(e,t)}),function(e,t){return Fe(0,e<0?1/0:e,t)}));var Bt=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),Rt=u(b([],u(function(e,t){return new Bt(e,t)}),function(e,t){return At(e=0&&e(t[n]);)n-=1;return Fe(0,n+1,t)})),Ft=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),Nt=u(function(e,t){return new Ft(e,t)}),Lt=u(function(e,t){var n=e<0?t.length+e:e;return I(t)?t.charAt(n):t[n]}),Ht=Lt(-1),zt=u(b([],Nt,function(e,t){var n=[],i=1,o=t.length;if(0!==o)for(n[0]=t[0];i=0?t.length-e:0,t)}),Yt=u(function(e,t){return Xe(Kt(e.length,t),e)}),Zt=m(function(e,t,n){return Xe(e(t),e(n))}),Xt=m(function(e,t,n){return Xe(t[e],n[e])}),Qt=u(function e(t,n){var i,o,r,a={};for(o in n)r=typeof(i=t[o]),a[o]="function"===r?i(n[o]):i&&"object"===r?e(i,n[o]):n[o];return a}),Jt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=x(this.xf["@@transducer/step"](e,t))),e},e}(),en=u(b(["find"],u(function(e,t){return new Jt(e,t)}),function(e,t){for(var n=0,i=t.length;n=0;){if(e(t[n]))return t[n];n-=1}})),an=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),sn=u(b([],u(function(e,t){return new an(e,t)}),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1})),ln=o(Te(!0)),un=o(function(e){return f(e.length,function(t,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=t,e.apply(this,i)})}),cn=u(Ve("forEach",function(e,t){for(var n=t.length,i=0;it}),mn=u(function(e,t){return e>=t}),_n=u(N),vn=u(function(e,t){return e in t}),yn=Lt(0);function bn(e){return e}var xn=o(bn),wn=m(function(e,t,n){return f(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),Cn=c(1),Tn=_t(function(e,t){return t},null),kn=u(function(e,t){return"function"!=typeof t.indexOf||v(t)?Qe(t,e,0):t.indexOf(e)}),Sn=Fe(0,-1),In=m(function(e,t,n){return ot(function(t){return Ue(e,t,n)},t)}),Pn=m(function(e,t,n){e=e=0?e:n.length;var i=Array.prototype.slice.call(n,0);return i.splice(e,0,t),i}),On=m(function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))});function En(e,t,n){var i,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var r=e?1:0;return!!n._items[o][r]||(t&&(n._items[o][r]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?!!Je(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!Je(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}var Dn=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!En(e,!0,this)},e.prototype.has=function(e){return En(e,!1,this)},e}(),An=u(function(e,t){for(var n,i,o=new Dn,r=[],a=0;at.length?(n=e,i=t):(n=t,i=e),Bn(ot(un(Je)(n),i))}),Mn=u(Ve("intersperse",function(e,t){for(var n=[],i=0,o=t.length;i=0;){if(Xe(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)});function Xn(e){return"[object Number]"===Object.prototype.toString.call(e)}var Qn=o(function(e){return null!=e&&Xn(e.length)?e.length:NaN}),Jn=u(function(e,t){return function(n){return function(i){return G(function(e){return t(e,i)},n(e(i)))}}}),ei=o(function(e){return Jn(Lt(e),St(e))}),ti=o(function(e){return Jn(U(e),ge(e))}),ni=o(function(e){return Jn(K(e),he(e))}),ii=u(function(e,t){return e=0;)r=e(n[i],r[0]),o[i]=r[1],i-=1;return[o,r[0]]}),si=u(function(e,t){return M(function(n,i){return n[i]=e(t[i],i,t),n},{},q(t))}),li=u(function(e,t){return t.match(e)||[]}),ui=u(function(e,t){return pe(e)?!pe(t)||t<1?NaN:(e%t+t)%t:NaN}),ci=m(function(e,t,n){return e(n)>e(t)?n:t}),di=Z(c,0),hi=o(function(e){return di(e)/e.length}),pi=o(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,i=(t-n)/2;return hi(Array.prototype.slice.call(e,0).sort(function(e,t){return et?1:0}).slice(i,i+n))}),fi=u(function(e,t){var n={};return h(t.length,function(){var i=e.apply(this,arguments);return N(i,n)||(n[i]=t.apply(this,arguments)),n[i]})}),gi=fi(function(){return ut(arguments)}),mi=u(function(e,t){return Vn({},e,t)}),_i=o(function(e){return Vn.apply(null,[{}].concat(e))}),vi=m(function(e,t,n){var i,o={};for(i in t)N(i,t)&&(o[i]=N(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)N(i,n)&&!N(i,o)&&(o[i]=n[i]);return o}),yi=m(function e(t,n,i){return vi(function(n,i,o){return rt(i)&&rt(o)?e(t,i,o):t(n,i,o)},n,i)}),bi=u(function(e,t){return yi(function(e,t,n){return t},e,t)}),xi=u(function(e,t){return yi(function(e,t,n){return n},e,t)}),wi=m(function(e,t,n){return yi(function(t,n,i){return e(n,i)},t,n)}),Ci=m(function(e,t,n){return vi(function(t,n,i){return e(n,i)},t,n)}),Ti=u(function(e,t){return t0&&e(U(t,n))}),qi=u(function(e,t){for(var n={},i=0;i=0;)t=e(n[i],t),i-=1;return t}),ao=p(4,[],function(e,t,n,i){return M(function(n,i){return e(n,i)?t(n,i):x(n)},n,i)}),so=o(x),lo=u(function(e,t){var n,i=Number(t),o=0;if(i<0||isNaN(i))throw new RangeError("n must be a non-negative number");for(n=new Array(i);oo?1:0})}),_o=u(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var i=0,o=0;0===i&&o=0&&e(t[n]);)n-=1;return Fe(n+1,1/0,t)}),Io=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):x(e)},e}(),Po=u(b(["takeWhile"],u(function(e,t){return new Io(e,t)}),function(e,t){for(var n=0,i=t.length;n + ) } } @@ -132,7 +134,7 @@ PieChart.defaultProps = { rtlEnabled: false, segmentsDirection: 'clockwise', series: [], - seriesTemplate: {}, + // seriesTemplate: undefined, size: {}, // sizeGroup: undefined, startAngle: 0, diff --git a/usage.py b/usage.py index 3d7d773..5bbf519 100644 --- a/usage.py +++ b/usage.py @@ -40,14 +40,14 @@ title='Top Internet Languages', dataSource=dataSource, legend=dict(horizontalAlignment='center', verticalAlignment='bottom'), - export=dict(enabled=True), + # export=dict(enabled=True), series=dict( smallValuesGrouping=dict(mode='topN', topCount=3), argumentField='language', valueField='percent', label=dict( visible=True, - customizeText='argumentText', + customizeText='valueText', format='fixedPoint', connector=dict(visible=True, width=1) )