Orbit Fox by ThemeIsle - Version 2.6.1

Version Description

  • 2018-10-10
Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Orbit Fox by ThemeIsle
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6.0 to 2.6.1

CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
 
 
 
 
 
 
 
 
 
2
  ### v2.6.0 - 2018-10-08
3
  **Changes:**
4
  * Adds Gutenberg integration with various blocks.
1
 
2
+ ### v2.6.1 - 2018-10-10
3
+ **Changes:**
4
+ * Added backward compatibility for Font Awesome 4
5
+ * Fixed issue with Elementor dequeuing Font Awesome
6
+ * Fixed issue with Gutenberg Module crashing Orbit Fox dashboard
7
+ * Fixed issue with Pie Chart causing REST API error
8
+ * Fixed z-index issue in Accordion block.
9
+
10
  ### v2.6.0 - 2018-10-08
11
  **Changes:**
12
  * Adds Gutenberg integration with various blocks.
core/assets/css/orbit-fox-admin.css CHANGED
@@ -8,7 +8,7 @@
8
  * Extends Spectre.css Library
9
  */
10
  /*
11
- Version: 2.6.0
12
  */
13
 
14
  /* Document
8
  * Extends Spectre.css Library
9
  */
10
  /*
11
+ Version: 2.6.1
12
  */
13
 
14
  /* Document
core/includes/class-orbit-fox.php CHANGED
@@ -69,7 +69,7 @@ class Orbit_Fox {
69
 
70
  $this->plugin_name = 'orbit-fox';
71
 
72
- $this->version = '2.6.0';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
69
 
70
  $this->plugin_name = 'orbit-fox';
71
 
72
+ $this->version = '2.6.1';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
obfx_modules/gutenberg-blocks/blocks/accordion-box/editor.scss CHANGED
@@ -42,7 +42,6 @@ $black: rgba(48,69,92,0.8);
42
  max-height: 800px;
43
  opacity: 1;
44
  transform: translate( 0 , 0 );
45
- z-index: 2;
46
  }
47
  }
48
  }
42
  max-height: 800px;
43
  opacity: 1;
44
  transform: translate( 0 , 0 );
 
45
  }
46
  }
47
  }
obfx_modules/gutenberg-blocks/blocks/accordion-box/style.scss CHANGED
@@ -59,7 +59,6 @@ $black: rgba(48,69,92,0.8);
59
  @extend .transition;
60
  opacity: 1;
61
  transform: translate( 0 , 0 );
62
- z-index: 2;
63
  }
64
 
65
  i {
59
  @extend .transition;
60
  opacity: 1;
61
  transform: translate( 0 , 0 );
 
62
  }
63
 
64
  i {
obfx_modules/gutenberg-blocks/blocks/chart/class-chart-pie-block.php CHANGED
@@ -32,14 +32,8 @@ class Chart_Pie_Block extends Base_Block {
32
  function set_attributes() {
33
  $this->attributes = array(
34
  'data' => array(
35
- 'type' => 'array',
36
- 'default' => [
37
- [ __( 'Label', 'themeisle-companion' ), __( 'Data', 'themeisle-companion' ) ],
38
- [ __( 'Dogs', 'themeisle-companion' ), 40 ],
39
- [ __( 'Cats', 'themeisle-companion' ), 30 ],
40
- [ __( 'Racoons', 'themeisle-companion' ), 20 ],
41
- [ __( 'Monkeys', 'themeisle-companion' ), 10 ],
42
- ],
43
  ),
44
  'options' => array(
45
  'type' => 'object',
@@ -70,7 +64,7 @@ class Chart_Pie_Block extends Base_Block {
70
  google.charts.setOnLoadCallback(drawChart);
71
 
72
  function drawChart() {
73
- var data = google.visualization.arrayToDataTable(" . json_encode( $attributes['data'] ) . ');
74
  var options = ' . json_encode( $attributes['options'] ) . ";
75
  var chart = new google.visualization.PieChart(document.getElementById('" . $attributes['id'] . "'));
76
  chart.draw(data, options);
32
  function set_attributes() {
33
  $this->attributes = array(
34
  'data' => array(
35
+ 'type' => 'string',
36
+ 'default' => '[["Label","Data"],["Dogs",40],["Cats",30],["Racoons",20],["Monkeys",10]]',
 
 
 
 
 
 
37
  ),
38
  'options' => array(
39
  'type' => 'object',
64
  google.charts.setOnLoadCallback(drawChart);
65
 
66
  function drawChart() {
67
+ var data = google.visualization.arrayToDataTable(" . $attributes['data'] . ');
68
  var options = ' . json_encode( $attributes['options'] ) . ";
69
  var chart = new google.visualization.PieChart(document.getElementById('" . $attributes['id'] . "'));
70
  chart.draw(data, options);
obfx_modules/gutenberg-blocks/blocks/chart/index.js CHANGED
@@ -56,14 +56,8 @@ registerBlockType( 'orbitfox/chart-pie', {
56
  ],
57
  attributes: {
58
  data: {
59
- type: 'array',
60
- default: [
61
- [ 'Label', 'Data' ],
62
- [ 'Dogs', 40 ],
63
- [ 'Cats', 30 ],
64
- [ 'Racoons', 20 ],
65
- [ 'Monkeys', 10 ],
66
- ],
67
  },
68
  options: {
69
  type: 'object',
@@ -98,18 +92,18 @@ registerBlockType( 'orbitfox/chart-pie', {
98
 
99
  const updateData = ( value, source ) => {
100
  if ( value !== null ) {
101
- const options = [ ...props.attributes.data ];
102
  value.forEach( item => {
103
  options[ item[0] ][ item[1] ] = item[3];
104
  });
105
- props.setAttributes( { data: options } );
106
  }
107
  };
108
 
109
  const addRow = () => {
110
- const options = [ ...props.attributes.data ];
111
  options.push( [ "", "" ] );
112
- props.setAttributes( { data: options } );
113
  };
114
 
115
  const changeChartTitle = value => {
@@ -174,7 +168,7 @@ registerBlockType( 'orbitfox/chart-pie', {
174
  { isOpen ?
175
  <Fragment>
176
  <HotTable
177
- data={ props.attributes.data }
178
  allowInsertRow={ true }
179
  cell={ [
180
  {
@@ -213,7 +207,7 @@ registerBlockType( 'orbitfox/chart-pie', {
213
  :
214
  <Chart
215
  chartType="PieChart"
216
- data={ props.attributes.data }
217
  options={ props.attributes.options }
218
  width="100%"
219
  height="400px"
56
  ],
57
  attributes: {
58
  data: {
59
+ type: 'string',
60
+ default: '[["Label","Data"],["Dogs",40],["Cats",30],["Racoons",20],["Monkeys",10]]',
 
 
 
 
 
 
61
  },
62
  options: {
63
  type: 'object',
92
 
93
  const updateData = ( value, source ) => {
94
  if ( value !== null ) {
95
+ const options = JSON.parse( [ props.attributes.data ] );
96
  value.forEach( item => {
97
  options[ item[0] ][ item[1] ] = item[3];
98
  });
99
+ props.setAttributes( { data: JSON.stringify( options ) } );
100
  }
101
  };
102
 
103
  const addRow = () => {
104
+ const options = JSON.parse( [ props.attributes.data ] );
105
  options.push( [ "", "" ] );
106
+ props.setAttributes( { data: JSON.stringify( options ) } );
107
  };
108
 
109
  const changeChartTitle = value => {
168
  { isOpen ?
169
  <Fragment>
170
  <HotTable
171
+ data={ JSON.parse( props.attributes.data ) }
172
  allowInsertRow={ true }
173
  cell={ [
174
  {
207
  :
208
  <Chart
209
  chartType="PieChart"
210
+ data={ JSON.parse( props.attributes.data ) }
211
  options={ props.attributes.options }
212
  width="100%"
213
  height="400px"
obfx_modules/gutenberg-blocks/build/block.js CHANGED
@@ -180,18 +180,7 @@ eval("// removed by extract-text-webpack-plugin\n\n//# sourceURL=webpack:///./bl
180
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
181
 
182
  "use strict";
183
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ \"./node_modules/babel-runtime/helpers/extends.js\");\n/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ \"./node_modules/babel-runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_google_charts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-google-charts */ \"./node_modules/react-google-charts/dist/index.esm.js\");\n/* harmony import */ var _handsontable_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @handsontable/react */ \"./node_modules/@handsontable/react/dist/react-handsontable.js\");\n/* harmony import */ var _handsontable_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_handsontable_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! handsontable/dist/handsontable.full.css */ \"./node_modules/handsontable/dist/handsontable.full.css\");\n/* harmony import */ var handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style.scss */ \"./blocks/chart/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editor.scss */ \"./blocks/chart/editor.scss\");\n/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_editor_scss__WEBPACK_IMPORTED_MODULE_6__);\n\n\n/**\r\n * External dependencies\r\n */\n\n\n\n\n\n\n/**\r\n * WordPress dependencies.\r\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n Button = _wp$components.Button,\n Dashicon = _wp$components.Dashicon,\n FormToggle = _wp$components.FormToggle,\n PanelBody = _wp$components.PanelBody,\n PanelRow = _wp$components.PanelRow,\n TextControl = _wp$components.TextControl,\n Toolbar = _wp$components.Toolbar,\n Tooltip = _wp$components.Tooltip;\nvar _wp$compose = wp.compose,\n compose = _wp$compose.compose,\n withState = _wp$compose.withState;\nvar withSelect = wp.data.withSelect;\nvar _wp$editor = wp.editor,\n BlockControls = _wp$editor.BlockControls,\n InspectorControls = _wp$editor.InspectorControls;\nvar Fragment = wp.element.Fragment;\n\n/**\r\n * Internal dependencies\r\n */\n\n\n\n\nregisterBlockType('orbitfox/chart-pie', {\n\ttitle: __('Pie Chart'),\n\tdescription: __('Display a beautiful Pie Chart on your blog post with Pie Chart block.'),\n\ticon: 'chart-pie',\n\tcategory: 'orbitfox',\n\tkeywords: [__('pie'), __('chart'), __('orbitfox')],\n\tattributes: {\n\t\tdata: {\n\t\t\ttype: 'array',\n\t\t\tdefault: [['Label', 'Data'], ['Dogs', 40], ['Cats', 30], ['Racoons', 20], ['Monkeys', 10]]\n\t\t},\n\t\toptions: {\n\t\t\ttype: 'object',\n\t\t\tdefault: {\n\t\t\t\ttitle: 'Animals',\n\t\t\t\tis3D: true\n\t\t\t}\n\t\t},\n\t\tid: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\n\tsupports: {\n\t\talign: true\n\t},\n\n\tedit: compose([withSelect(function (select, props) {\n\t\treturn {\n\t\t\tprops: props\n\t\t};\n\t}), withState({\n\t\tisOpen: false\n\t})])(function (_ref) {\n\t\tvar isOpen = _ref.isOpen,\n\t\t setState = _ref.setState,\n\t\t props = _ref.props,\n\t\t className = _ref.className;\n\n\n\t\tvar updateData = function updateData(value, source) {\n\t\t\tif (value !== null) {\n\t\t\t\tvar options = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(props.attributes.data));\n\t\t\t\tvalue.forEach(function (item) {\n\t\t\t\t\toptions[item[0]][item[1]] = item[3];\n\t\t\t\t});\n\t\t\t\tprops.setAttributes({ data: options });\n\t\t\t}\n\t\t};\n\n\t\tvar addRow = function addRow() {\n\t\t\tvar options = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(props.attributes.data));\n\t\t\toptions.push([\"\", \"\"]);\n\t\t\tprops.setAttributes({ data: options });\n\t\t};\n\n\t\tvar changeChartTitle = function changeChartTitle(value) {\n\t\t\tvar options = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props.attributes.options);\n\t\t\toptions['title'] = value;\n\t\t\tprops.setAttributes({ options: options });\n\t\t};\n\n\t\tvar toggle3d = function toggle3d() {\n\t\t\tvar options = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props.attributes.options);\n\t\t\toptions['is3D'] = !props.attributes.options.is3D;\n\t\t\tprops.setAttributes({ options: options });\n\t\t};\n\n\t\tif (props.clientId && props.attributes.id === '') {\n\t\t\tvar id = props.clientId;\n\t\t\tprops.setAttributes({ id: id });\n\t\t}\n\n\t\treturn [wp.element.createElement(\n\t\t\tBlockControls,\n\t\t\t{ key: 'toolbar-controls' },\n\t\t\twp.element.createElement(\n\t\t\t\tToolbar,\n\t\t\t\t{\n\t\t\t\t\tclassName: 'components-toolbar'\n\t\t\t\t},\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tTooltip,\n\t\t\t\t\t{ text: __('Edit Chart') },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\tButton,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclassName: 'components-icon-button components-toolbar__control edit-pie-chart',\n\t\t\t\t\t\t\tonClick: function onClick() {\n\t\t\t\t\t\t\t\treturn setState({ isOpen: !isOpen });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\twp.element.createElement(Dashicon, { icon: isOpen ? 'yes' : 'edit' })\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t), wp.element.createElement(\n\t\t\tInspectorControls,\n\t\t\tnull,\n\t\t\twp.element.createElement(\n\t\t\t\tPanelBody,\n\t\t\t\t{\n\t\t\t\t\ttitle: __('Chart Settings')\n\t\t\t\t},\n\t\t\t\twp.element.createElement(TextControl, {\n\t\t\t\t\tlabel: __('Chart Title'),\n\t\t\t\t\tvalue: props.attributes.options.title,\n\t\t\t\t\tonChange: changeChartTitle\n\t\t\t\t}),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelRow,\n\t\t\t\t\tnull,\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'label',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thtmlFor: 'is-3d-form-toggle'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t__('Is chart 3d?')\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(FormToggle, {\n\t\t\t\t\t\tid: 'is-3d-form-toggle',\n\t\t\t\t\t\tlabel: __('Is chart 3rd? '),\n\t\t\t\t\t\tchecked: props.attributes.options.is3D,\n\t\t\t\t\t\tonChange: toggle3d\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t), wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ className: className },\n\t\t\tisOpen ? wp.element.createElement(\n\t\t\t\tFragment,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(_handsontable_react__WEBPACK_IMPORTED_MODULE_3__[\"HotTable\"], {\n\t\t\t\t\tdata: props.attributes.data,\n\t\t\t\t\tallowInsertRow: true,\n\t\t\t\t\tcell: [{\n\t\t\t\t\t\trow: 0,\n\t\t\t\t\t\tcol: 0,\n\t\t\t\t\t\treadOnly: true\n\t\t\t\t\t}, {\n\t\t\t\t\t\trow: 0,\n\t\t\t\t\t\tcol: 1,\n\t\t\t\t\t\treadOnly: true\n\t\t\t\t\t}],\n\t\t\t\t\tcolumns: [{\n\t\t\t\t\t\ttype: 'text'\n\t\t\t\t\t}, {\n\t\t\t\t\t\ttype: 'numeric'\n\t\t\t\t\t}],\n\t\t\t\t\tcontextMenu: true,\n\t\t\t\t\tclassName: 'htLeft',\n\t\t\t\t\theight: '200',\n\t\t\t\t\trowHeaders: true,\n\t\t\t\t\tstretchH: 'all',\n\t\t\t\t\tonAfterChange: function onAfterChange(value, source) {\n\t\t\t\t\t\treturn updateData(value, source);\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tButton,\n\t\t\t\t\t{\n\t\t\t\t\t\tonClick: addRow,\n\t\t\t\t\t\tisPrimary: true\n\t\t\t\t\t},\n\t\t\t\t\t__('Add another row')\n\t\t\t\t)\n\t\t\t) : wp.element.createElement(react_google_charts__WEBPACK_IMPORTED_MODULE_2__[\"Chart\"], {\n\t\t\t\tchartType: 'PieChart',\n\t\t\t\tdata: props.attributes.data,\n\t\t\t\toptions: props.attributes.options,\n\t\t\t\twidth: '100%',\n\t\t\t\theight: '400px',\n\t\t\t\tlegendToggle: true\n\t\t\t})\n\t\t)];\n\t}),\n\n\tsave: function save() {\n\t\treturn null;\n\t}\n});\n\n//# sourceURL=webpack:///./blocks/chart/index.js?");
184
-
185
- /***/ }),
186
-
187
- /***/ "./blocks/chart/style.scss":
188
- /*!*********************************!*\
189
- !*** ./blocks/chart/style.scss ***!
190
- \*********************************/
191
- /*! no static exports found */
192
- /***/ (function(module, exports) {
193
-
194
- eval("// removed by extract-text-webpack-plugin\n\n//# sourceURL=webpack:///./blocks/chart/style.scss?");
195
 
196
  /***/ }),
197
 
@@ -641,14 +630,14 @@ eval("/*!\n * (The MIT License)\n * \n * Copyright (c) Handsoncode sp. z o.o. <h
641
 
642
  /***/ }),
643
 
644
- /***/ "./node_modules/babel-runtime/core-js/array/from.js":
645
- /*!**********************************************************!*\
646
- !*** ./node_modules/babel-runtime/core-js/array/from.js ***!
647
- \**********************************************************/
648
  /*! no static exports found */
649
  /***/ (function(module, exports, __webpack_require__) {
650
 
651
- eval("module.exports = { \"default\": __webpack_require__(/*! core-js/library/fn/array/from */ \"./node_modules/core-js/library/fn/array/from.js\"), __esModule: true };\n\n//# sourceURL=webpack:///./node_modules/babel-runtime/core-js/array/from.js?");
652
 
653
  /***/ }),
654
 
@@ -835,18 +824,6 @@ eval("\n\nexports.__esModule = true;\n\nvar _typeof2 = __webpack_require__(/*! .
835
 
836
  /***/ }),
837
 
838
- /***/ "./node_modules/babel-runtime/helpers/toConsumableArray.js":
839
- /*!*****************************************************************!*\
840
- !*** ./node_modules/babel-runtime/helpers/toConsumableArray.js ***!
841
- \*****************************************************************/
842
- /*! no static exports found */
843
- /***/ (function(module, exports, __webpack_require__) {
844
-
845
- "use strict";
846
- eval("\n\nexports.__esModule = true;\n\nvar _from = __webpack_require__(/*! ../core-js/array/from */ \"./node_modules/babel-runtime/core-js/array/from.js\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};\n\n//# sourceURL=webpack:///./node_modules/babel-runtime/helpers/toConsumableArray.js?");
847
-
848
- /***/ }),
849
-
850
  /***/ "./node_modules/babel-runtime/helpers/typeof.js":
851
  /*!******************************************************!*\
852
  !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
@@ -903,14 +880,14 @@ eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Cop
903
 
904
  /***/ }),
905
 
906
- /***/ "./node_modules/core-js/library/fn/array/from.js":
907
- /*!*******************************************************!*\
908
- !*** ./node_modules/core-js/library/fn/array/from.js ***!
909
- \*******************************************************/
910
  /*! no static exports found */
911
  /***/ (function(module, exports, __webpack_require__) {
912
 
913
- eval("__webpack_require__(/*! ../../modules/es6.string.iterator */ \"./node_modules/core-js/library/modules/es6.string.iterator.js\");\n__webpack_require__(/*! ../../modules/es6.array.from */ \"./node_modules/core-js/library/modules/es6.array.from.js\");\nmodule.exports = __webpack_require__(/*! ../../modules/_core */ \"./node_modules/core-js/library/modules/_core.js\").Array.from;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/library/fn/array/from.js?");
914
 
915
  /***/ }),
916
 
@@ -1101,18 +1078,6 @@ eval("var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'numb
1101
 
1102
  /***/ }),
1103
 
1104
- /***/ "./node_modules/core-js/library/modules/_create-property.js":
1105
- /*!******************************************************************!*\
1106
- !*** ./node_modules/core-js/library/modules/_create-property.js ***!
1107
- \******************************************************************/
1108
- /*! no static exports found */
1109
- /***/ (function(module, exports, __webpack_require__) {
1110
-
1111
- "use strict";
1112
- eval("\nvar $defineProperty = __webpack_require__(/*! ./_object-dp */ \"./node_modules/core-js/library/modules/_object-dp.js\");\nvar createDesc = __webpack_require__(/*! ./_property-desc */ \"./node_modules/core-js/library/modules/_property-desc.js\");\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/library/modules/_create-property.js?");
1113
-
1114
- /***/ }),
1115
-
1116
  /***/ "./node_modules/core-js/library/modules/_ctx.js":
1117
  /*!******************************************************!*\
1118
  !*** ./node_modules/core-js/library/modules/_ctx.js ***!
@@ -1855,18 +1820,6 @@ eval("var classof = __webpack_require__(/*! ./_classof */ \"./node_modules/core-
1855
 
1856
  /***/ }),
1857
 
1858
- /***/ "./node_modules/core-js/library/modules/es6.array.from.js":
1859
- /*!****************************************************************!*\
1860
- !*** ./node_modules/core-js/library/modules/es6.array.from.js ***!
1861
- \****************************************************************/
1862
- /*! no static exports found */
1863
- /***/ (function(module, exports, __webpack_require__) {
1864
-
1865
- "use strict";
1866
- eval("\nvar ctx = __webpack_require__(/*! ./_ctx */ \"./node_modules/core-js/library/modules/_ctx.js\");\nvar $export = __webpack_require__(/*! ./_export */ \"./node_modules/core-js/library/modules/_export.js\");\nvar toObject = __webpack_require__(/*! ./_to-object */ \"./node_modules/core-js/library/modules/_to-object.js\");\nvar call = __webpack_require__(/*! ./_iter-call */ \"./node_modules/core-js/library/modules/_iter-call.js\");\nvar isArrayIter = __webpack_require__(/*! ./_is-array-iter */ \"./node_modules/core-js/library/modules/_is-array-iter.js\");\nvar toLength = __webpack_require__(/*! ./_to-length */ \"./node_modules/core-js/library/modules/_to-length.js\");\nvar createProperty = __webpack_require__(/*! ./_create-property */ \"./node_modules/core-js/library/modules/_create-property.js\");\nvar getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ \"./node_modules/core-js/library/modules/core.get-iterator-method.js\");\n\n$export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ \"./node_modules/core-js/library/modules/_iter-detect.js\")(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/library/modules/es6.array.from.js?");
1867
-
1868
- /***/ }),
1869
-
1870
  /***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
1871
  /*!********************************************************************!*\
1872
  !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
@@ -2103,7 +2056,7 @@ eval("// removed by extract-text-webpack-plugin\n\n//# sourceURL=webpack:///./no
2103
  /*! no static exports found */
2104
  /***/ (function(module, exports, __webpack_require__) {
2105
 
2106
- eval("/* WEBPACK VAR INJECTION */(function(setImmediate, clearImmediate) {/*!\n * (The MIT License)\n * \n * Copyright (c) 2012-2014 Marcin Warpechowski\n * Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n * \n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * \n * Version: 5.0.1\n * Release date: 16/08/2018 (built at 16/08/2018 12:19:04)\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory(__webpack_require__(/*! moment */ \"./node_modules/handsontable/node_modules/moment/moment.js\"), __webpack_require__(/*! numbro */ \"./node_modules/numbro/dist/numbro.min.js\"), __webpack_require__(/*! pikaday */ \"./node_modules/pikaday/pikaday.js\"));\n\telse {}\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_57__, __WEBPACK_EXTERNAL_MODULE_248__, __WEBPACK_EXTERNAL_MODULE_237__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 207);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.HTML_CHARACTERS = undefined;\nexports.getParent = getParent;\nexports.closest = closest;\nexports.closestDown = closestDown;\nexports.isChildOf = isChildOf;\nexports.isChildOfWebComponentTable = isChildOfWebComponentTable;\nexports.polymerWrap = polymerWrap;\nexports.polymerUnwrap = polymerUnwrap;\nexports.index = index;\nexports.overlayContainsElement = overlayContainsElement;\nexports.hasClass = hasClass;\nexports.addClass = addClass;\nexports.removeClass = removeClass;\nexports.removeTextNodes = removeTextNodes;\nexports.empty = empty;\nexports.fastInnerHTML = fastInnerHTML;\nexports.fastInnerText = fastInnerText;\nexports.isVisible = isVisible;\nexports.offset = offset;\nexports.getWindowScrollTop = getWindowScrollTop;\nexports.getWindowScrollLeft = getWindowScrollLeft;\nexports.getScrollTop = getScrollTop;\nexports.getScrollLeft = getScrollLeft;\nexports.getScrollableElement = getScrollableElement;\nexports.getTrimmingContainer = getTrimmingContainer;\nexports.getStyle = getStyle;\nexports.getComputedStyle = getComputedStyle;\nexports.outerWidth = outerWidth;\nexports.outerHeight = outerHeight;\nexports.innerHeight = innerHeight;\nexports.innerWidth = innerWidth;\nexports.addEvent = addEvent;\nexports.removeEvent = removeEvent;\nexports.getCaretPosition = getCaretPosition;\nexports.getSelectionEndPosition = getSelectionEndPosition;\nexports.getSelectionText = getSelectionText;\nexports.setCaretPosition = setCaretPosition;\nexports.getScrollbarWidth = getScrollbarWidth;\nexports.hasVerticalScrollbar = hasVerticalScrollbar;\nexports.hasHorizontalScrollbar = hasHorizontalScrollbar;\nexports.setOverlayPosition = setOverlayPosition;\nexports.getCssTransform = getCssTransform;\nexports.resetCssTransform = resetCssTransform;\nexports.isInput = isInput;\nexports.isOutsideInput = isOutsideInput;\n\nvar _browser = __webpack_require__(39);\n\nvar _feature = __webpack_require__(40);\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n/**\n * Get the parent of the specified node in the DOM tree.\n *\n * @param {HTMLElement} element Element from which traversing is started.\n * @param {Number} [level=0] Traversing deep level.\n * @return {HTMLElement|null}\n */\nfunction getParent(element) {\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var iteration = -1;\n var parent = null;\n\n while (element != null) {\n if (iteration === level) {\n parent = element;\n break;\n }\n\n if (element.host && element.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n element = element.host;\n } else {\n iteration++;\n element = element.parentNode;\n }\n }\n\n return parent;\n}\n\n/**\n * Goes up the DOM tree (including given element) until it finds an element that matches the nodes or nodes name.\n * This method goes up through web components.\n *\n * @param {HTMLElement} element Element from which traversing is started\n * @param {Array} nodes Array of elements or Array of elements name\n * @param {HTMLElement} [until]\n * @returns {HTMLElement|null}\n */\nfunction closest(element, nodes, until) {\n while (element != null && element !== until) {\n if (element.nodeType === Node.ELEMENT_NODE && (nodes.indexOf(element.nodeName) > -1 || nodes.indexOf(element) > -1)) {\n return element;\n }\n if (element.host && element.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n element = element.host;\n } else {\n element = element.parentNode;\n }\n }\n\n return null;\n}\n\n/**\n * Goes \"down\" the DOM tree (including given element) until it finds an element that matches the nodes or nodes name.\n *\n * @param {HTMLElement} element Element from which traversing is started\n * @param {Array} nodes Array of elements or Array of elements name\n * @param {HTMLElement} [until]\n * @returns {HTMLElement|null}\n */\nfunction closestDown(element, nodes, until) {\n var matched = [];\n\n while (element) {\n element = closest(element, nodes, until);\n\n if (!element || until && !until.contains(element)) {\n break;\n }\n matched.push(element);\n\n if (element.host && element.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n element = element.host;\n } else {\n element = element.parentNode;\n }\n }\n var length = matched.length;\n\n return length ? matched[length - 1] : null;\n}\n\n/**\n * Goes up the DOM tree and checks if element is child of another element.\n *\n * @param child Child element\n * @param {Object|String} parent Parent element OR selector of the parent element.\n * If string provided, function returns `true` for the first occurrence of element with that class.\n * @returns {Boolean}\n */\nfunction isChildOf(child, parent) {\n var node = child.parentNode;\n var queriedParents = [];\n\n if (typeof parent === 'string') {\n queriedParents = Array.prototype.slice.call(document.querySelectorAll(parent), 0);\n } else {\n queriedParents.push(parent);\n }\n\n while (node != null) {\n if (queriedParents.indexOf(node) > -1) {\n return true;\n }\n node = node.parentNode;\n }\n\n return false;\n}\n\n/**\n * Check if an element is part of `hot-table` web component.\n *\n * @param {Element} element\n * @returns {Boolean}\n */\nfunction isChildOfWebComponentTable(element) {\n var hotTableName = 'hot-table';\n var result = false;\n var parentNode = polymerWrap(element);\n\n function isHotTable(testElement) {\n return testElement.nodeType === Node.ELEMENT_NODE && testElement.nodeName === hotTableName.toUpperCase();\n }\n\n while (parentNode != null) {\n if (isHotTable(parentNode)) {\n result = true;\n break;\n } else if (parentNode.host && parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n result = isHotTable(parentNode.host);\n\n if (result) {\n break;\n }\n parentNode = parentNode.host;\n }\n parentNode = parentNode.parentNode;\n }\n\n return result;\n}\n\n/**\n * Wrap element into polymer/webcomponent container if exists\n *\n * @param element\n * @returns {*}\n */\nfunction polymerWrap(element) {\n /* global Polymer */\n return typeof Polymer !== 'undefined' && typeof wrap === 'function' ? wrap(element) : element;\n}\n\n/**\n * Unwrap element from polymer/webcomponent container if exists\n *\n * @param element\n * @returns {*}\n */\nfunction polymerUnwrap(element) {\n /* global Polymer */\n return typeof Polymer !== 'undefined' && typeof unwrap === 'function' ? unwrap(element) : element;\n}\n\n/**\n * Counts index of element within its parent\n * WARNING: for performance reasons, assumes there are only element nodes (no text nodes). This is true for Walkotnable\n * Otherwise would need to check for nodeType or use previousElementSibling\n *\n * @see http://jsperf.com/sibling-index/10\n * @param {Element} element\n * @return {Number}\n */\nfunction index(element) {\n var i = 0;\n\n if (element.previousSibling) {\n /* eslint-disable no-cond-assign */\n while (element = element.previousSibling) {\n ++i;\n }\n }\n\n return i;\n}\n\n/**\n * Check if the provided overlay contains the provided element\n *\n * @param {String} overlay\n * @param {HTMLElement} element\n * @returns {boolean}\n */\nfunction overlayContainsElement(overlayType, element) {\n var overlayElement = document.querySelector('.ht_clone_' + overlayType);\n return overlayElement ? overlayElement.contains(element) : null;\n}\n\nvar classListSupport = !!document.documentElement.classList;\nvar _hasClass = void 0;\nvar _addClass = void 0;\nvar _removeClass = void 0;\n\nfunction filterEmptyClassNames(classNames) {\n var result = [];\n\n if (!classNames || !classNames.length) {\n return result;\n }\n\n var len = 0;\n\n while (classNames[len]) {\n result.push(classNames[len]);\n len++;\n }\n\n return result;\n}\n\nif (classListSupport) {\n var isSupportMultipleClassesArg = function () {\n var element = document.createElement('div');\n\n element.classList.add('test', 'test2');\n\n return element.classList.contains('test2');\n }();\n\n _hasClass = function _hasClass(element, className) {\n if (element.classList === void 0 || typeof className !== 'string' || className === '') {\n return false;\n }\n\n return element.classList.contains(className);\n };\n\n _addClass = function _addClass(element, className) {\n if (typeof className === 'string') {\n className = className.split(' ');\n }\n\n className = filterEmptyClassNames(className);\n\n if (className.length > 0) {\n if (isSupportMultipleClassesArg) {\n var _element$classList;\n\n (_element$classList = element.classList).add.apply(_element$classList, _toConsumableArray(className));\n } else {\n var len = 0;\n\n while (className && className[len]) {\n element.classList.add(className[len]);\n len++;\n }\n }\n }\n };\n\n _removeClass = function _removeClass(element, className) {\n if (typeof className === 'string') {\n className = className.split(' ');\n }\n\n className = filterEmptyClassNames(className);\n\n if (className.length > 0) {\n if (isSupportMultipleClassesArg) {\n var _element$classList2;\n\n (_element$classList2 = element.classList).remove.apply(_element$classList2, _toConsumableArray(className));\n } else {\n var len = 0;\n\n while (className && className[len]) {\n element.classList.remove(className[len]);\n len++;\n }\n }\n }\n };\n} else {\n var createClassNameRegExp = function createClassNameRegExp(className) {\n return new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n };\n\n _hasClass = function _hasClass(element, className) {\n // http://snipplr.com/view/3561/addclass-removeclass-hasclass/\n return element.className !== void 0 && createClassNameRegExp(className).test(element.className);\n };\n\n _addClass = function _addClass(element, className) {\n var len = 0;\n var _className = element.className;\n\n if (typeof className === 'string') {\n className = className.split(' ');\n }\n if (_className === '') {\n _className = className.join(' ');\n } else {\n while (className && className[len]) {\n if (!createClassNameRegExp(className[len]).test(_className)) {\n _className += ' ' + className[len];\n }\n len++;\n }\n }\n element.className = _className;\n };\n\n _removeClass = function _removeClass(element, className) {\n var len = 0;\n var _className = element.className;\n\n if (typeof className === 'string') {\n className = className.split(' ');\n }\n while (className && className[len]) {\n // String.prototype.trim is defined in polyfill.js\n _className = _className.replace(createClassNameRegExp(className[len]), ' ').trim();\n len++;\n }\n if (element.className !== _className) {\n element.className = _className;\n }\n };\n}\n\n/**\n * Checks if element has class name\n *\n * @param {HTMLElement} element\n * @param {String} className Class name to check\n * @returns {Boolean}\n */\nfunction hasClass(element, className) {\n return _hasClass(element, className);\n}\n\n/**\n * Add class name to an element\n *\n * @param {HTMLElement} element\n * @param {String|Array} className Class name as string or array of strings\n */\nfunction addClass(element, className) {\n return _addClass(element, className);\n}\n\n/**\n * Remove class name from an element\n *\n * @param {HTMLElement} element\n * @param {String|Array} className Class name as string or array of strings\n */\nfunction removeClass(element, className) {\n return _removeClass(element, className);\n}\n\nfunction removeTextNodes(element, parent) {\n if (element.nodeType === 3) {\n parent.removeChild(element); // bye text nodes!\n } else if (['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR'].indexOf(element.nodeName) > -1) {\n var childs = element.childNodes;\n for (var i = childs.length - 1; i >= 0; i--) {\n removeTextNodes(childs[i], element);\n }\n }\n}\n\n/**\n * Remove childs function\n * WARNING - this doesn't unload events and data attached by jQuery\n * http://jsperf.com/jquery-html-vs-empty-vs-innerhtml/9\n * http://jsperf.com/jquery-html-vs-empty-vs-innerhtml/11 - no siginificant improvement with Chrome remove() method\n *\n * @param element\n * @returns {void}\n */\n//\nfunction empty(element) {\n var child = void 0;\n /* eslint-disable no-cond-assign */\n while (child = element.lastChild) {\n element.removeChild(child);\n }\n}\n\nvar HTML_CHARACTERS = exports.HTML_CHARACTERS = /(<(.*)>|&(.*);)/;\n\n/**\n * Insert content into element trying avoid innerHTML method.\n * @return {void}\n */\nfunction fastInnerHTML(element, content) {\n if (HTML_CHARACTERS.test(content)) {\n element.innerHTML = content;\n } else {\n fastInnerText(element, content);\n }\n}\n\n/**\n * Insert text content into element\n * @return {void}\n */\n\nvar textContextSupport = !!document.createTextNode('test').textContent;\n\nfunction fastInnerText(element, content) {\n var child = element.firstChild;\n\n if (child && child.nodeType === 3 && child.nextSibling === null) {\n // fast lane - replace existing text node\n\n if (textContextSupport) {\n // http://jsperf.com/replace-text-vs-reuse\n child.textContent = content;\n } else {\n // http://jsperf.com/replace-text-vs-reuse\n child.data = content;\n }\n } else {\n // slow lane - empty element and insert a text node\n empty(element);\n element.appendChild(document.createTextNode(content));\n }\n}\n\n/**\n * Returns true if element is attached to the DOM and visible, false otherwise\n * @param elem\n * @returns {boolean}\n */\nfunction isVisible(elem) {\n var next = elem;\n\n while (polymerUnwrap(next) !== document.documentElement) {\n // until <html> reached\n if (next === null) {\n // parent detached from DOM\n return false;\n } else if (next.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n if (next.host) {\n // this is Web Components Shadow DOM\n // see: http://w3c.github.io/webcomponents/spec/shadow/#encapsulation\n // according to spec, should be if (next.ownerDocument !== window.document), but that doesn't work yet\n if (next.host.impl) {\n // Chrome 33.0.1723.0 canary (2013-11-29) Web Platform features disabled\n return isVisible(next.host.impl);\n } else if (next.host) {\n // Chrome 33.0.1723.0 canary (2013-11-29) Web Platform features enabled\n return isVisible(next.host);\n }\n throw new Error('Lost in Web Components world');\n } else {\n return false; // this is a node detached from document in IE8\n }\n } else if (next.style.display === 'none') {\n return false;\n }\n next = next.parentNode;\n }\n\n return true;\n}\n\n/**\n * Returns elements top and left offset relative to the document. Function is not compatible with jQuery offset.\n *\n * @param {HTMLElement} elem\n * @return {Object} Returns object with `top` and `left` props\n */\nfunction offset(elem) {\n var offsetLeft = void 0;\n var offsetTop = void 0;\n var lastElem = void 0;\n var docElem = void 0;\n var box = void 0;\n\n docElem = document.documentElement;\n\n if ((0, _feature.hasCaptionProblem)() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {\n // fixes problem with Firefox ignoring <caption> in TABLE offset (see also export outerHeight)\n // http://jsperf.com/offset-vs-getboundingclientrect/8\n box = elem.getBoundingClientRect();\n\n return {\n top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),\n left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0)\n };\n }\n offsetLeft = elem.offsetLeft;\n offsetTop = elem.offsetTop;\n lastElem = elem;\n\n /* eslint-disable no-cond-assign */\n while (elem = elem.offsetParent) {\n // from my observation, document.body always has scrollLeft/scrollTop == 0\n if (elem === document.body) {\n break;\n }\n offsetLeft += elem.offsetLeft;\n offsetTop += elem.offsetTop;\n lastElem = elem;\n }\n\n // slow - http://jsperf.com/offset-vs-getboundingclientrect/6\n if (lastElem && lastElem.style.position === 'fixed') {\n // if(lastElem !== document.body) { //faster but does gives false positive in Firefox\n offsetLeft += window.pageXOffset || docElem.scrollLeft;\n offsetTop += window.pageYOffset || docElem.scrollTop;\n }\n\n return {\n left: offsetLeft,\n top: offsetTop\n };\n}\n\n/**\n * Returns the document's scrollTop property.\n *\n * @returns {Number}\n */\nfunction getWindowScrollTop() {\n var res = window.scrollY;\n\n if (res === void 0) {\n // IE8-11\n res = document.documentElement.scrollTop;\n }\n\n return res;\n}\n\n/**\n * Returns the document's scrollLeft property.\n *\n * @returns {Number}\n */\nfunction getWindowScrollLeft() {\n var res = window.scrollX;\n\n if (res === void 0) {\n // IE8-11\n res = document.documentElement.scrollLeft;\n }\n\n return res;\n}\n\n/**\n * Returns the provided element's scrollTop property.\n *\n * @param element\n * @returns {Number}\n */\nfunction getScrollTop(element) {\n if (element === window) {\n return getWindowScrollTop();\n }\n return element.scrollTop;\n}\n\n/**\n * Returns the provided element's scrollLeft property.\n *\n * @param element\n * @returns {Number}\n */\nfunction getScrollLeft(element) {\n if (element === window) {\n return getWindowScrollLeft();\n }\n return element.scrollLeft;\n}\n\n/**\n * Returns a DOM element responsible for scrolling of the provided element.\n *\n * @param {HTMLElement} element\n * @returns {HTMLElement} Element's scrollable parent\n */\nfunction getScrollableElement(element) {\n var props = ['auto', 'scroll'];\n var el = element.parentNode;\n var overflow = void 0;\n var overflowX = void 0;\n var overflowY = void 0;\n var computedStyle = '';\n var computedOverflow = '';\n var computedOverflowY = '';\n var computedOverflowX = '';\n\n while (el && el.style && document.body !== el) {\n overflow = el.style.overflow;\n overflowX = el.style.overflowX;\n overflowY = el.style.overflowY;\n\n if (overflow === 'scroll' || overflowX === 'scroll' || overflowY === 'scroll') {\n return el;\n } else if (window.getComputedStyle) {\n computedStyle = window.getComputedStyle(el);\n computedOverflow = computedStyle.getPropertyValue('overflow');\n computedOverflowY = computedStyle.getPropertyValue('overflow-y');\n computedOverflowX = computedStyle.getPropertyValue('overflow-x');\n\n if (computedOverflow === 'scroll' || computedOverflowX === 'scroll' || computedOverflowY === 'scroll') {\n return el;\n }\n }\n\n // The '+ 1' after the scrollHeight/scrollWidth is to prevent problems with zoomed out Chrome.\n if (el.clientHeight <= el.scrollHeight + 1 && (props.indexOf(overflowY) !== -1 || props.indexOf(overflow) !== -1 || props.indexOf(computedOverflow) !== -1 || props.indexOf(computedOverflowY) !== -1)) {\n return el;\n }\n if (el.clientWidth <= el.scrollWidth + 1 && (props.indexOf(overflowX) !== -1 || props.indexOf(overflow) !== -1 || props.indexOf(computedOverflow) !== -1 || props.indexOf(computedOverflowX) !== -1)) {\n return el;\n }\n el = el.parentNode;\n }\n\n return window;\n}\n\n/**\n * Returns a DOM element responsible for trimming the provided element.\n *\n * @param {HTMLElement} base Base element\n * @returns {HTMLElement} Base element's trimming parent\n */\nfunction getTrimmingContainer(base) {\n var el = base.parentNode;\n\n while (el && el.style && document.body !== el) {\n if (el.style.overflow !== 'visible' && el.style.overflow !== '') {\n return el;\n } else if (window.getComputedStyle) {\n var computedStyle = window.getComputedStyle(el);\n\n if (computedStyle.getPropertyValue('overflow') !== 'visible' && computedStyle.getPropertyValue('overflow') !== '') {\n return el;\n }\n }\n\n el = el.parentNode;\n }\n\n return window;\n}\n\n/**\n * Returns a style property for the provided element. (Be it an inline or external style).\n *\n * @param {HTMLElement} element\n * @param {String} prop Wanted property\n * @returns {String|undefined} Element's style property\n */\nfunction getStyle(element, prop) {\n /* eslint-disable */\n if (!element) {\n return;\n } else if (element === window) {\n if (prop === 'width') {\n return window.innerWidth + 'px';\n } else if (prop === 'height') {\n return window.innerHeight + 'px';\n }\n\n return;\n }\n\n var styleProp = element.style[prop],\n computedStyle;\n\n if (styleProp !== '' && styleProp !== void 0) {\n return styleProp;\n } else {\n computedStyle = getComputedStyle(element);\n\n if (computedStyle[prop] !== '' && computedStyle[prop] !== void 0) {\n return computedStyle[prop];\n }\n }\n}\n\n/**\n * Returns a computed style object for the provided element. (Needed if style is declared in external stylesheet).\n *\n * @param element\n * @returns {IEElementStyle|CssStyle} Elements computed style object\n */\nfunction getComputedStyle(element) {\n return element.currentStyle || document.defaultView.getComputedStyle(element);\n}\n\n/**\n * Returns the element's outer width.\n *\n * @param element\n * @returns {number} Element's outer width\n */\nfunction outerWidth(element) {\n return element.offsetWidth;\n}\n\n/**\n * Returns the element's outer height\n *\n * @param elem\n * @returns {number} Element's outer height\n */\nfunction outerHeight(elem) {\n if ((0, _feature.hasCaptionProblem)() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {\n // fixes problem with Firefox ignoring <caption> in TABLE.offsetHeight\n // jQuery (1.10.1) still has this unsolved\n // may be better to just switch to getBoundingClientRect\n // http://bililite.com/blog/2009/03/27/finding-the-size-of-a-table/\n // http://lists.w3.org/Archives/Public/www-style/2009Oct/0089.html\n // http://bugs.jquery.com/ticket/2196\n // http://lists.w3.org/Archives/Public/www-style/2009Oct/0140.html#start140\n return elem.offsetHeight + elem.firstChild.offsetHeight;\n }\n\n return elem.offsetHeight;\n}\n\n/**\n * Returns the element's inner height.\n *\n * @param element\n * @returns {number} Element's inner height\n */\nfunction innerHeight(element) {\n return element.clientHeight || element.innerHeight;\n}\n\n/**\n * Returns the element's inner width.\n *\n * @param element\n * @returns {number} Element's inner width\n */\nfunction innerWidth(element) {\n return element.clientWidth || element.innerWidth;\n}\n\nfunction addEvent(element, event, callback) {\n if (window.addEventListener) {\n element.addEventListener(event, callback, false);\n } else {\n element.attachEvent('on' + event, callback);\n }\n}\n\nfunction removeEvent(element, event, callback) {\n if (window.removeEventListener) {\n element.removeEventListener(event, callback, false);\n } else {\n element.detachEvent('on' + event, callback);\n }\n}\n\n/**\n * Returns caret position in text input\n *\n * @author http://stackoverflow.com/questions/263743/how-to-get-caret-position-in-textarea\n * @return {Number}\n */\nfunction getCaretPosition(el) {\n if (el.selectionStart) {\n return el.selectionStart;\n } else if (document.selection) {\n // IE8\n el.focus();\n\n var r = document.selection.createRange();\n\n if (r == null) {\n return 0;\n }\n var re = el.createTextRange();\n var rc = re.duplicate();\n\n re.moveToBookmark(r.getBookmark());\n rc.setEndPoint('EndToStart', re);\n\n return rc.text.length;\n }\n\n return 0;\n}\n\n/**\n * Returns end of the selection in text input\n *\n * @return {Number}\n */\nfunction getSelectionEndPosition(el) {\n if (el.selectionEnd) {\n return el.selectionEnd;\n } else if (document.selection) {\n // IE8\n var r = document.selection.createRange();\n\n if (r == null) {\n return 0;\n }\n var re = el.createTextRange();\n\n return re.text.indexOf(r.text) + r.text.length;\n }\n\n return 0;\n}\n\n/**\n * Returns text under selection.\n *\n * @returns {String}\n */\nfunction getSelectionText() {\n var text = '';\n\n if (window.getSelection) {\n text = window.getSelection().toString();\n } else if (document.selection && document.selection.type !== 'Control') {\n text = document.selection.createRange().text;\n }\n\n return text;\n}\n\n/**\n * Sets caret position in text input.\n *\n * @author http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/\n * @param {Element} element\n * @param {Number} pos\n * @param {Number} endPos\n */\nfunction setCaretPosition(element, pos, endPos) {\n if (endPos === void 0) {\n endPos = pos;\n }\n if (element.setSelectionRange) {\n element.focus();\n\n try {\n element.setSelectionRange(pos, endPos);\n } catch (err) {\n var elementParent = element.parentNode;\n var parentDisplayValue = elementParent.style.display;\n elementParent.style.display = 'block';\n element.setSelectionRange(pos, endPos);\n elementParent.style.display = parentDisplayValue;\n }\n } else if (element.createTextRange) {\n // IE8\n var range = element.createTextRange();\n range.collapse(true);\n range.moveEnd('character', endPos);\n range.moveStart('character', pos);\n range.select();\n }\n}\n\nvar cachedScrollbarWidth;\n\n// http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\nfunction walkontableCalculateScrollbarWidth() {\n var inner = document.createElement('div');\n inner.style.height = '200px';\n inner.style.width = '100%';\n\n var outer = document.createElement('div');\n outer.style.boxSizing = 'content-box';\n outer.style.height = '150px';\n outer.style.left = '0px';\n outer.style.overflow = 'hidden';\n outer.style.position = 'absolute';\n outer.style.top = '0px';\n outer.style.width = '200px';\n outer.style.visibility = 'hidden';\n outer.appendChild(inner);\n\n (document.body || document.documentElement).appendChild(outer);\n var w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n var w2 = inner.offsetWidth;\n if (w1 == w2) {\n w2 = outer.clientWidth;\n }\n\n (document.body || document.documentElement).removeChild(outer);\n\n return w1 - w2;\n}\n\n/**\n * Returns the computed width of the native browser scroll bar.\n *\n * @return {Number} width\n */\nfunction getScrollbarWidth() {\n if (cachedScrollbarWidth === void 0) {\n cachedScrollbarWidth = walkontableCalculateScrollbarWidth();\n }\n\n return cachedScrollbarWidth;\n}\n\n/**\n * Checks if the provided element has a vertical scrollbar.\n *\n * @param {HTMLElement} element\n * @returns {Boolean}\n */\nfunction hasVerticalScrollbar(element) {\n return element.offsetWidth !== element.clientWidth;\n}\n\n/**\n * Checks if the provided element has a vertical scrollbar.\n *\n * @param {HTMLElement} element\n * @returns {Boolean}\n */\nfunction hasHorizontalScrollbar(element) {\n return element.offsetHeight !== element.clientHeight;\n}\n\n/**\n * Sets overlay position depending on it's type and used browser\n */\nfunction setOverlayPosition(overlayElem, left, top) {\n if ((0, _browser.isIE8)() || (0, _browser.isIE9)()) {\n overlayElem.style.top = top;\n overlayElem.style.left = left;\n } else if ((0, _browser.isSafari)()) {\n overlayElem.style['-webkit-transform'] = 'translate3d(' + left + ',' + top + ',0)';\n } else {\n overlayElem.style.transform = 'translate3d(' + left + ',' + top + ',0)';\n }\n}\n\nfunction getCssTransform(element) {\n var transform = void 0;\n\n if (element.style.transform && (transform = element.style.transform) !== '') {\n return ['transform', transform];\n } else if (element.style['-webkit-transform'] && (transform = element.style['-webkit-transform']) !== '') {\n\n return ['-webkit-transform', transform];\n }\n\n return -1;\n}\n\nfunction resetCssTransform(element) {\n if (element.style.transform && element.style.transform !== '') {\n element.style.transform = '';\n } else if (element.style['-webkit-transform'] && element.style['-webkit-transform'] !== '') {\n element.style['-webkit-transform'] = '';\n }\n}\n\n/**\n * Determines if the given DOM element is an input field.\n * Notice: By 'input' we mean input, textarea and select nodes\n *\n * @param {HTMLElement} element - DOM element\n * @returns {Boolean}\n */\nfunction isInput(element) {\n var inputs = ['INPUT', 'SELECT', 'TEXTAREA'];\n\n return element && (inputs.indexOf(element.nodeName) > -1 || element.contentEditable === 'true');\n}\n\n/**\n * Determines if the given DOM element is an input field placed OUTSIDE of HOT.\n * Notice: By 'input' we mean input, textarea and select nodes\n *\n * @param {HTMLElement} element - DOM element\n * @returns {Boolean}\n */\nfunction isOutsideInput(element) {\n return isInput(element) && element.className.indexOf('handsontableInput') == -1 && element.className.indexOf('copyPaste') == -1;\n}\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.duckSchema = duckSchema;\nexports.inherit = inherit;\nexports.extend = extend;\nexports.deepExtend = deepExtend;\nexports.deepClone = deepClone;\nexports.clone = clone;\nexports.mixin = mixin;\nexports.isObjectEqual = isObjectEqual;\nexports.isObject = isObject;\nexports.defineGetter = defineGetter;\nexports.objectEach = objectEach;\nexports.getProperty = getProperty;\nexports.deepObjectSize = deepObjectSize;\nexports.createObjectPropListener = createObjectPropListener;\nexports.hasOwnProperty = hasOwnProperty;\n\nvar _array = __webpack_require__(2);\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * Generate schema for passed object.\n *\n * @param {Array|Object} object\n * @returns {Array|Object}\n */\nfunction duckSchema(object) {\n var schema = void 0;\n\n if (Array.isArray(object)) {\n schema = [];\n } else {\n schema = {};\n\n objectEach(object, function (value, key) {\n if (key === '__children') {\n return;\n }\n\n if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !Array.isArray(value)) {\n schema[key] = duckSchema(value);\n } else if (Array.isArray(value)) {\n if (value.length && _typeof(value[0]) === 'object' && !Array.isArray(value[0])) {\n schema[key] = [duckSchema(value[0])];\n } else {\n schema[key] = [];\n }\n } else {\n schema[key] = null;\n }\n });\n }\n\n return schema;\n}\n\n/**\n * Inherit without without calling parent constructor, and setting `Child.prototype.constructor` to `Child` instead of `Parent`.\n * Creates temporary dummy function to call it as constructor.\n * Described in ticket: https://github.com/handsontable/handsontable/pull/516\n *\n * @param {Object} Child child class\n * @param {Object} Parent parent class\n * @return {Object} extended Child\n */\nfunction inherit(Child, Parent) {\n Parent.prototype.constructor = Parent;\n Child.prototype = new Parent();\n Child.prototype.constructor = Child;\n\n return Child;\n}\n\n/**\n * Perform shallow extend of a target object with extension's own properties.\n *\n * @param {Object} target An object that will receive the new properties.\n * @param {Object} extension An object containing additional properties to merge into the target.\n */\nfunction extend(target, extension) {\n objectEach(extension, function (value, key) {\n target[key] = value;\n });\n\n return target;\n}\n\n/**\n * Perform deep extend of a target object with extension's own properties.\n *\n * @param {Object} target An object that will receive the new properties.\n * @param {Object} extension An object containing additional properties to merge into the target.\n */\nfunction deepExtend(target, extension) {\n objectEach(extension, function (value, key) {\n if (extension[key] && _typeof(extension[key]) === 'object') {\n if (!target[key]) {\n if (Array.isArray(extension[key])) {\n target[key] = [];\n } else if (Object.prototype.toString.call(extension[key]) === '[object Date]') {\n target[key] = extension[key];\n } else {\n target[key] = {};\n }\n }\n deepExtend(target[key], extension[key]);\n } else {\n target[key] = extension[key];\n }\n });\n}\n\n/**\n * Perform deep clone of an object.\n * WARNING! Only clones JSON properties. Will cause error when `obj` contains a function, Date, etc.\n *\n * @param {Object} obj An object that will be cloned\n * @return {Object}\n */\nfunction deepClone(obj) {\n if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object') {\n return JSON.parse(JSON.stringify(obj));\n }\n\n return obj;\n}\n\n/**\n * Shallow clone object.\n *\n * @param {Object} object\n * @returns {Object}\n */\nfunction clone(object) {\n var result = {};\n\n objectEach(object, function (value, key) {\n result[key] = value;\n });\n\n return result;\n}\n\n/**\n * Extend the Base object (usually prototype) of the functionality the `mixins` objects.\n *\n * @param {Object} Base Base object which will be extended.\n * @param {Object} mixins The object of the functionality will be \"copied\".\n * @returns {Object}\n */\nfunction mixin(Base) {\n if (!Base.MIXINS) {\n Base.MIXINS = [];\n }\n\n for (var _len = arguments.length, mixins = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n mixins[_key - 1] = arguments[_key];\n }\n\n (0, _array.arrayEach)(mixins, function (mixinItem) {\n Base.MIXINS.push(mixinItem.MIXIN_NAME);\n\n objectEach(mixinItem, function (value, key) {\n if (Base.prototype[key] !== void 0) {\n throw new Error('Mixin conflict. Property \\'' + key + '\\' already exist and cannot be overwritten.');\n }\n if (typeof value === 'function') {\n Base.prototype[key] = value;\n } else {\n var getter = function _getter(propertyName, initialValue) {\n propertyName = '_' + propertyName;\n\n var initValue = function initValue(newValue) {\n if (Array.isArray(newValue) || isObject(newValue)) {\n newValue = deepClone(newValue);\n }\n\n return newValue;\n };\n\n return function () {\n if (this[propertyName] === void 0) {\n this[propertyName] = initValue(initialValue);\n }\n\n return this[propertyName];\n };\n };\n var setter = function _setter(propertyName) {\n propertyName = '_' + propertyName;\n\n return function (newValue) {\n this[propertyName] = newValue;\n };\n };\n Object.defineProperty(Base.prototype, key, {\n get: getter(key, value),\n set: setter(key),\n configurable: true\n });\n }\n });\n });\n\n return Base;\n}\n\n/**\n * Checks if two objects or arrays are (deep) equal\n *\n * @param {Object|Array} object1\n * @param {Object|Array} object2\n * @returns {Boolean}\n */\nfunction isObjectEqual(object1, object2) {\n return JSON.stringify(object1) === JSON.stringify(object2);\n}\n\n/**\n * Determines whether given object is a plain Object.\n * Note: String and Array are not plain Objects\n * @param {*} obj\n * @returns {boolean}\n */\nfunction isObject(obj) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n}\n\nfunction defineGetter(object, property, value, options) {\n options.value = value;\n options.writable = options.writable !== false;\n options.enumerable = options.enumerable !== false;\n options.configurable = options.configurable !== false;\n\n Object.defineProperty(object, property, options);\n}\n\n/**\n * A specialized version of `.forEach` for objects.\n *\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction objectEach(object, iteratee) {\n for (var key in object) {\n if (!object.hasOwnProperty || object.hasOwnProperty && Object.prototype.hasOwnProperty.call(object, key)) {\n if (iteratee(object[key], key, object) === false) {\n break;\n }\n }\n }\n\n return object;\n}\n\n/**\n * Get object property by its name. Access to sub properties can be achieved by dot notation (e.q. `'foo.bar.baz'`).\n *\n * @param {Object} object Object which value will be exported.\n * @param {String} name Object property name.\n * @returns {*}\n */\nfunction getProperty(object, name) {\n var names = name.split('.');\n var result = object;\n\n objectEach(names, function (nameItem) {\n result = result[nameItem];\n\n if (result === void 0) {\n result = void 0;\n\n return false;\n }\n });\n\n return result;\n}\n\n/**\n * Return object length (recursively).\n *\n * @param {*} object Object for which we want get length.\n * @returns {Number}\n */\nfunction deepObjectSize(object) {\n if (!isObject(object)) {\n return 0;\n }\n var recursObjLen = function recursObjLen(obj) {\n var result = 0;\n\n if (isObject(obj)) {\n objectEach(obj, function (key) {\n result += recursObjLen(key);\n });\n } else {\n result++;\n }\n\n return result;\n };\n\n return recursObjLen(object);\n}\n\n/**\n * Create object with property where its value change will be observed.\n *\n * @param {*} [defaultValue=undefined] Default value.\n * @param {String} [propertyToListen='value'] Property to listen.\n * @returns {Object}\n */\nfunction createObjectPropListener(defaultValue) {\n var _holder;\n\n var propertyToListen = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'value';\n\n var privateProperty = '_' + propertyToListen;\n var holder = (_holder = {\n _touched: false\n }, _defineProperty(_holder, privateProperty, defaultValue), _defineProperty(_holder, 'isTouched', function isTouched() {\n return this._touched;\n }), _holder);\n\n Object.defineProperty(holder, propertyToListen, {\n get: function get() {\n return this[privateProperty];\n },\n set: function set(value) {\n this._touched = true;\n this[privateProperty] = value;\n },\n\n enumerable: true,\n configurable: true\n });\n\n return holder;\n}\n\n/**\n * Check if at specified `key` there is any value for `object`.\n *\n * @param {Object} object Object to search value at specyfic key.\n * @param {String} key String key to check.\n */\nfunction hasOwnProperty(object, key) {\n return Object.prototype.hasOwnProperty.call(object, key);\n}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.to2dArray = to2dArray;\nexports.extendArray = extendArray;\nexports.pivot = pivot;\nexports.arrayReduce = arrayReduce;\nexports.arrayFilter = arrayFilter;\nexports.arrayMap = arrayMap;\nexports.arrayEach = arrayEach;\nexports.arraySum = arraySum;\nexports.arrayMax = arrayMax;\nexports.arrayMin = arrayMin;\nexports.arrayAvg = arrayAvg;\nexports.arrayFlatten = arrayFlatten;\nexports.arrayUnique = arrayUnique;\nfunction to2dArray(arr) {\n var ilen = arr.length;\n var i = 0;\n\n while (i < ilen) {\n arr[i] = [arr[i]];\n i++;\n }\n}\n\nfunction extendArray(arr, extension) {\n var ilen = extension.length;\n var i = 0;\n\n while (i < ilen) {\n arr.push(extension[i]);\n i++;\n }\n}\n\nfunction pivot(arr) {\n var pivotedArr = [];\n\n if (!arr || arr.length === 0 || !arr[0] || arr[0].length === 0) {\n return pivotedArr;\n }\n\n var rowCount = arr.length;\n var colCount = arr[0].length;\n\n for (var i = 0; i < rowCount; i++) {\n for (var j = 0; j < colCount; j++) {\n if (!pivotedArr[j]) {\n pivotedArr[j] = [];\n }\n\n pivotedArr[j][i] = arr[i][j];\n }\n }\n\n return pivotedArr;\n}\n\n/**\n * A specialized version of `.reduce` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * {@link https://github.com/lodash/lodash/blob/master/lodash.js}\n *\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {Boolean} [initFromArray] Specify using the first element of `array` as the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initFromArray) {\n var index = -1;\n var iterable = array;\n\n if (!Array.isArray(array)) {\n iterable = Array.from(array);\n }\n var length = iterable.length;\n\n if (initFromArray && length) {\n accumulator = iterable[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, iterable[index], index, iterable);\n }\n\n return accumulator;\n}\n\n/**\n * A specialized version of `.filter` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * {@link https://github.com/lodash/lodash/blob/master/lodash.js}\n *\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1;\n var iterable = array;\n\n if (!Array.isArray(array)) {\n iterable = Array.from(array);\n }\n\n var length = iterable.length;\n var result = [];\n var resIndex = -1;\n\n while (++index < length) {\n var value = iterable[index];\n\n if (predicate(value, index, iterable)) {\n result[++resIndex] = value;\n }\n }\n\n return result;\n}\n\n/**\n * A specialized version of `.map` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1;\n var iterable = array;\n\n if (!Array.isArray(array)) {\n iterable = Array.from(array);\n }\n\n var length = iterable.length;\n var result = [];\n var resIndex = -1;\n\n while (++index < length) {\n var value = iterable[index];\n\n result[++resIndex] = iteratee(value, index, iterable);\n }\n\n return result;\n}\n\n/**\n * A specialized version of `.forEach` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * {@link https://github.com/lodash/lodash/blob/master/lodash.js}\n *\n * @param {Array|*} array The array to iterate over or an any element with implemented iterator protocol.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1;\n var iterable = array;\n\n if (!Array.isArray(array)) {\n iterable = Array.from(array);\n }\n\n var length = iterable.length;\n\n while (++index < length) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n\n return array;\n}\n\n/**\n * Calculate sum value for each item of the array.\n *\n * @param {Array} array The array to process.\n * @returns {Number} Returns calculated sum value.\n */\nfunction arraySum(array) {\n return arrayReduce(array, function (a, b) {\n return a + b;\n }, 0);\n}\n\n/**\n * Returns the highest value from an array. Can be array of numbers or array of strings.\n * NOTICE: Mixed values is not supported.\n *\n * @param {Array} array The array to process.\n * @returns {Number} Returns the highest value from an array.\n */\nfunction arrayMax(array) {\n return arrayReduce(array, function (a, b) {\n return a > b ? a : b;\n }, Array.isArray(array) ? array[0] : void 0);\n}\n\n/**\n * Returns the lowest value from an array. Can be array of numbers or array of strings.\n * NOTICE: Mixed values is not supported.\n *\n * @param {Array} array The array to process.\n * @returns {Number} Returns the lowest value from an array.\n */\nfunction arrayMin(array) {\n return arrayReduce(array, function (a, b) {\n return a < b ? a : b;\n }, Array.isArray(array) ? array[0] : void 0);\n}\n\n/**\n * Calculate average value for each item of the array.\n *\n * @param {Array} array The array to process.\n * @returns {Number} Returns calculated average value.\n */\nfunction arrayAvg(array) {\n if (!array.length) {\n return 0;\n }\n\n return arraySum(array) / array.length;\n}\n\n/**\n * Flatten multidimensional array.\n *\n * @param {Array} array Array of Arrays\n * @returns {Array}\n */\nfunction arrayFlatten(array) {\n return arrayReduce(array, function (initial, value) {\n return initial.concat(Array.isArray(value) ? arrayFlatten(value) : value);\n }, []);\n}\n\n/**\n * Unique values in the array.\n *\n * @param {Array} array The array to process.\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n var unique = [];\n\n arrayEach(array, function (value) {\n if (unique.indexOf(value) === -1) {\n unique.push(value);\n }\n });\n\n return unique;\n}\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(15);\nvar core = __webpack_require__(37);\nvar hide = __webpack_require__(29);\nvar redefine = __webpack_require__(28);\nvar ctx = __webpack_require__(30);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Viewport = exports.TableRenderer = exports.Table = exports.Settings = exports.Selection = exports.Scroll = exports.Overlays = exports.Event = exports.Core = exports.default = exports.Border = exports.TopLeftCornerOverlay = exports.TopOverlay = exports.LeftOverlay = exports.DebugOverlay = exports.RowFilter = exports.ColumnFilter = exports.CellRange = exports.CellCoords = exports.ViewportRowsCalculator = exports.ViewportColumnsCalculator = undefined;\n\n__webpack_require__(98);\n\n__webpack_require__(113);\n\n__webpack_require__(114);\n\n__webpack_require__(118);\n\n__webpack_require__(119);\n\n__webpack_require__(121);\n\n__webpack_require__(124);\n\n__webpack_require__(125);\n\n__webpack_require__(126);\n\n__webpack_require__(127);\n\n__webpack_require__(128);\n\n__webpack_require__(129);\n\n__webpack_require__(130);\n\n__webpack_require__(131);\n\n__webpack_require__(132);\n\n__webpack_require__(133);\n\n__webpack_require__(134);\n\n__webpack_require__(135);\n\n__webpack_require__(136);\n\n__webpack_require__(137);\n\n__webpack_require__(138);\n\n__webpack_require__(139);\n\n__webpack_require__(140);\n\n__webpack_require__(141);\n\n__webpack_require__(143);\n\n__webpack_require__(145);\n\n__webpack_require__(146);\n\n__webpack_require__(147);\n\n__webpack_require__(148);\n\n__webpack_require__(149);\n\n__webpack_require__(150);\n\n__webpack_require__(151);\n\n__webpack_require__(152);\n\n__webpack_require__(153);\n\n__webpack_require__(154);\n\n__webpack_require__(155);\n\n__webpack_require__(156);\n\n__webpack_require__(157);\n\n__webpack_require__(88);\n\n__webpack_require__(158);\n\n__webpack_require__(159);\n\n__webpack_require__(161);\n\n__webpack_require__(162);\n\n__webpack_require__(163);\n\n__webpack_require__(164);\n\n__webpack_require__(165);\n\n__webpack_require__(166);\n\n__webpack_require__(167);\n\n__webpack_require__(169);\n\n__webpack_require__(170);\n\n__webpack_require__(171);\n\n__webpack_require__(173);\n\n__webpack_require__(174);\n\n__webpack_require__(175);\n\nvar _viewportColumns = __webpack_require__(176);\n\nvar _viewportColumns2 = _interopRequireDefault(_viewportColumns);\n\nvar _viewportRows = __webpack_require__(177);\n\nvar _viewportRows2 = _interopRequireDefault(_viewportRows);\n\nvar _coords = __webpack_require__(56);\n\nvar _coords2 = _interopRequireDefault(_coords);\n\nvar _range = __webpack_require__(178);\n\nvar _range2 = _interopRequireDefault(_range);\n\nvar _column = __webpack_require__(179);\n\nvar _column2 = _interopRequireDefault(_column);\n\nvar _row = __webpack_require__(180);\n\nvar _row2 = _interopRequireDefault(_row);\n\nvar _debug = __webpack_require__(229);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _left = __webpack_require__(230);\n\nvar _left2 = _interopRequireDefault(_left);\n\nvar _top = __webpack_require__(231);\n\nvar _top2 = _interopRequireDefault(_top);\n\nvar _topLeftCorner = __webpack_require__(232);\n\nvar _topLeftCorner2 = _interopRequireDefault(_topLeftCorner);\n\nvar _border = __webpack_require__(189);\n\nvar _border2 = _interopRequireDefault(_border);\n\nvar _core = __webpack_require__(181);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _event = __webpack_require__(182);\n\nvar _event2 = _interopRequireDefault(_event);\n\nvar _overlays = __webpack_require__(183);\n\nvar _overlays2 = _interopRequireDefault(_overlays);\n\nvar _scroll = __webpack_require__(184);\n\nvar _scroll2 = _interopRequireDefault(_scroll);\n\nvar _selection = __webpack_require__(233);\n\nvar _selection2 = _interopRequireDefault(_selection);\n\nvar _settings = __webpack_require__(185);\n\nvar _settings2 = _interopRequireDefault(_settings);\n\nvar _table = __webpack_require__(186);\n\nvar _table2 = _interopRequireDefault(_table);\n\nvar _tableRenderer = __webpack_require__(187);\n\nvar _tableRenderer2 = _interopRequireDefault(_tableRenderer);\n\nvar _viewport = __webpack_require__(188);\n\nvar _viewport2 = _interopRequireDefault(_viewport);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.ViewportColumnsCalculator = _viewportColumns2.default;\nexports.ViewportRowsCalculator = _viewportRows2.default;\nexports.CellCoords = _coords2.default;\nexports.CellRange = _range2.default;\nexports.ColumnFilter = _column2.default;\nexports.RowFilter = _row2.default;\nexports.DebugOverlay = _debug2.default;\nexports.LeftOverlay = _left2.default;\nexports.TopOverlay = _top2.default;\nexports.TopLeftCornerOverlay = _topLeftCorner2.default;\nexports.Border = _border2.default;\nexports.default = _core2.default;\nexports.Core = _core2.default;\nexports.Event = _event2.default;\nexports.Overlays = _overlays2.default;\nexports.Scroll = _scroll2.default;\nexports.Selection = _selection2.default;\nexports.Settings = _settings2.default;\nexports.Table = _table2.default;\nexports.TableRenderer = _tableRenderer2.default;\nexports.Viewport = _viewport2.default;\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nexports.getListenersCounter = getListenersCounter;\n\nvar _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nvar _feature = __webpack_require__(40);\n\nvar _event = __webpack_require__(13);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * Counter which tracks unregistered listeners (useful for detecting memory leaks).\n *\n * @type {Number}\n */\nvar listenersCounter = 0;\n\n/**\n * Event DOM manager for internal use in Handsontable.\n *\n * @class EventManager\n * @util\n */\n\nvar EventManager = function () {\n /**\n * @param {Object} [context=null]\n * @private\n */\n function EventManager() {\n var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n _classCallCheck(this, EventManager);\n\n this.context = context || this;\n\n if (!this.context.eventListeners) {\n this.context.eventListeners = [];\n }\n }\n\n /**\n * Register specified listener (`eventName`) to the element.\n *\n * @param {Element} element Target element.\n * @param {String} eventName Event name.\n * @param {Function} callback Function which will be called after event occur.\n * @returns {Function} Returns function which you can easily call to remove that event\n */\n\n\n _createClass(EventManager, [{\n key: 'addEventListener',\n value: function addEventListener(element, eventName, callback) {\n var _this = this;\n\n var context = this.context;\n\n function callbackProxy(event) {\n event = extendEvent(context, event);\n\n callback.call(this, event);\n }\n this.context.eventListeners.push({\n element: element,\n event: eventName,\n callback: callback,\n callbackProxy: callbackProxy\n });\n\n if (window.addEventListener) {\n element.addEventListener(eventName, callbackProxy, false);\n } else {\n element.attachEvent('on' + eventName, callbackProxy);\n }\n listenersCounter++;\n\n return function () {\n _this.removeEventListener(element, eventName, callback);\n };\n }\n\n /**\n * Remove the event listener previously registered.\n *\n * @param {Element} element Target element.\n * @param {String} eventName Event name.\n * @param {Function} callback Function to remove from the event target. It must be the same as during registration listener.\n */\n\n }, {\n key: 'removeEventListener',\n value: function removeEventListener(element, eventName, callback) {\n var len = this.context.eventListeners.length;\n var tmpEvent = void 0;\n\n while (len--) {\n tmpEvent = this.context.eventListeners[len];\n\n if (tmpEvent.event === eventName && tmpEvent.element === element) {\n if (callback && callback !== tmpEvent.callback) {\n /* eslint-disable no-continue */\n continue;\n }\n this.context.eventListeners.splice(len, 1);\n\n if (tmpEvent.element.removeEventListener) {\n tmpEvent.element.removeEventListener(tmpEvent.event, tmpEvent.callbackProxy, false);\n } else {\n tmpEvent.element.detachEvent('on' + tmpEvent.event, tmpEvent.callbackProxy);\n }\n listenersCounter--;\n }\n }\n }\n\n /**\n * Clear all previously registered events.\n *\n * @private\n * @since 0.15.0-beta3\n */\n\n }, {\n key: 'clearEvents',\n value: function clearEvents() {\n if (!this.context) {\n return;\n }\n var len = this.context.eventListeners.length;\n\n while (len--) {\n var event = this.context.eventListeners[len];\n\n if (event) {\n this.removeEventListener(event.element, event.event, event.callback);\n }\n }\n }\n\n /**\n * Clear all previously registered events.\n */\n\n }, {\n key: 'clear',\n value: function clear() {\n this.clearEvents();\n }\n\n /**\n * Destroy instance of EventManager.\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n this.clearEvents();\n this.context = null;\n }\n\n /**\n * Trigger event at the specified target element.\n *\n * @param {Element} element Target element.\n * @param {String} eventName Event name.\n */\n\n }, {\n key: 'fireEvent',\n value: function fireEvent(element, eventName) {\n var options = {\n bubbles: true,\n cancelable: eventName !== 'mousemove',\n view: window,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 1,\n clientY: 1,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined\n };\n var event = void 0;\n\n if (document.createEvent) {\n event = document.createEvent('MouseEvents');\n event.initMouseEvent(eventName, options.bubbles, options.cancelable, options.view, options.detail, options.screenX, options.screenY, options.clientX, options.clientY, options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, options.button, options.relatedTarget || document.body.parentNode);\n } else {\n event = document.createEventObject();\n }\n\n if (element.dispatchEvent) {\n element.dispatchEvent(event);\n } else {\n element.fireEvent('on' + eventName, event);\n }\n }\n }]);\n\n return EventManager;\n}();\n\n/**\n * @param {Object} context\n * @param {Event} event\n * @private\n * @returns {*}\n */\n\n\nfunction extendEvent(context, event) {\n var componentName = 'HOT-TABLE';\n var isHotTableSpotted = void 0;\n var fromElement = void 0;\n var realTarget = void 0;\n var target = void 0;\n var len = void 0;\n var nativeStopImmediatePropagation = void 0;\n\n event.isTargetWebComponent = false;\n event.realTarget = event.target;\n\n nativeStopImmediatePropagation = event.stopImmediatePropagation;\n event.stopImmediatePropagation = function () {\n nativeStopImmediatePropagation.apply(this);\n (0, _event.stopImmediatePropagation)(this);\n };\n\n if (!EventManager.isHotTableEnv) {\n return event;\n }\n event = (0, _element.polymerWrap)(event);\n len = event.path ? event.path.length : 0;\n\n while (len--) {\n if (event.path[len].nodeName === componentName) {\n isHotTableSpotted = true;\n } else if (isHotTableSpotted && event.path[len].shadowRoot) {\n target = event.path[len];\n\n break;\n }\n if (len === 0 && !target) {\n target = event.path[len];\n }\n }\n if (!target) {\n target = event.target;\n }\n event.isTargetWebComponent = true;\n\n if ((0, _feature.isWebComponentSupportedNatively)()) {\n event.realTarget = event.srcElement || event.toElement;\n } else if ((0, _object.hasOwnProperty)(context, 'hot') || context.isHotTableEnv || context.wtTable) {\n // Polymer doesn't support `event.target` property properly we must emulate it ourselves\n if ((0, _object.hasOwnProperty)(context, 'hot')) {\n // Custom element\n fromElement = context.hot ? context.hot.view.wt.wtTable.TABLE : null;\n } else if (context.isHotTableEnv) {\n // Handsontable.Core\n fromElement = context.view.activeWt.wtTable.TABLE.parentNode.parentNode;\n } else if (context.wtTable) {\n // Walkontable\n fromElement = context.wtTable.TABLE.parentNode.parentNode;\n }\n realTarget = (0, _element.closest)(event.target, [componentName], fromElement);\n\n if (realTarget) {\n event.realTarget = fromElement.querySelector(componentName) || event.target;\n } else {\n event.realTarget = event.target;\n }\n }\n\n Object.defineProperty(event, 'target', {\n get: function get() {\n return (0, _element.polymerWrap)(target);\n },\n\n enumerable: true,\n configurable: true\n });\n\n return event;\n}\n\nexports.default = EventManager;\nfunction getListenersCounter() {\n return listenersCounter;\n};\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.isNumeric = isNumeric;\nexports.rangeEach = rangeEach;\nexports.rangeEachReverse = rangeEachReverse;\nexports.valueAccordingPercent = valueAccordingPercent;\n/**\n * Checks if value of n is a numeric one\n * http://jsperf.com/isnan-vs-isnumeric/4\n * @param n\n * @returns {boolean}\n */\nfunction isNumeric(n) {\n /* eslint-disable */\n var t = typeof n === 'undefined' ? 'undefined' : _typeof(n);\n\n return t == 'number' ? !isNaN(n) && isFinite(n) : t == 'string' ? !n.length ? false : n.length == 1 ? /\\d/.test(n) : /^\\s*[+-]?\\s*(?:(?:\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?)|(?:0x[a-f\\d]+))\\s*$/i.test(n) : t == 'object' ? !!n && typeof n.valueOf() == 'number' && !(n instanceof Date) : false;\n}\n\n/**\n * A specialized version of `.forEach` defined by ranges.\n *\n * @param {Number} rangeFrom The number from start iterate.\n * @param {Number|Function} rangeTo The number where finish iterate or function as a iteratee.\n * @param {Function} [iteratee] The function invoked per iteration.\n */\nfunction rangeEach(rangeFrom, rangeTo, iteratee) {\n var index = -1;\n\n if (typeof rangeTo === 'function') {\n iteratee = rangeTo;\n rangeTo = rangeFrom;\n } else {\n index = rangeFrom - 1;\n }\n while (++index <= rangeTo) {\n if (iteratee(index) === false) {\n break;\n }\n }\n}\n\n/**\n * A specialized version of `.forEach` defined by ranges iterable in reverse order.\n *\n * @param {Number} rangeFrom The number from start iterate.\n * @param {Number|Function} rangeTo The number where finish iterate or function as a iteratee.\n * @param {Function} [iteratee] The function invoked per iteration.\n */\nfunction rangeEachReverse(rangeFrom, rangeTo, iteratee) {\n var index = rangeFrom + 1;\n\n if (typeof rangeTo === 'function') {\n iteratee = rangeTo;\n rangeTo = 0;\n }\n while (--index >= rangeTo) {\n if (iteratee(index) === false) {\n break;\n }\n }\n}\n\n/**\n * Calculate value from percent.\n *\n * @param {Number} value Base value from percent will be calculated.\n * @param {String|Number} percent Can be Number or String (eq. `'33%'`).\n * @returns {Number}\n */\nfunction valueAccordingPercent(value, percent) {\n percent = parseInt(percent.toString().replace('%', ''), 10);\n percent = parseInt(value * percent / 100, 10);\n\n return percent;\n}\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * Constants for parts of translation.\n */\n\nvar CONTEXT_MENU_ITEMS_NAMESPACE = exports.CONTEXT_MENU_ITEMS_NAMESPACE = 'ContextMenu:items';\nvar CONTEXTMENU_ITEMS_ROW_ABOVE = exports.CONTEXTMENU_ITEMS_ROW_ABOVE = CONTEXT_MENU_ITEMS_NAMESPACE + '.insertRowAbove';\nvar CONTEXTMENU_ITEMS_ROW_BELOW = exports.CONTEXTMENU_ITEMS_ROW_BELOW = CONTEXT_MENU_ITEMS_NAMESPACE + '.insertRowBelow';\nvar CONTEXTMENU_ITEMS_INSERT_LEFT = exports.CONTEXTMENU_ITEMS_INSERT_LEFT = CONTEXT_MENU_ITEMS_NAMESPACE + '.insertColumnOnTheLeft';\nvar CONTEXTMENU_ITEMS_INSERT_RIGHT = exports.CONTEXTMENU_ITEMS_INSERT_RIGHT = CONTEXT_MENU_ITEMS_NAMESPACE + '.insertColumnOnTheRight';\nvar CONTEXTMENU_ITEMS_REMOVE_ROW = exports.CONTEXTMENU_ITEMS_REMOVE_ROW = CONTEXT_MENU_ITEMS_NAMESPACE + '.removeRow';\nvar CONTEXTMENU_ITEMS_REMOVE_COLUMN = exports.CONTEXTMENU_ITEMS_REMOVE_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.removeColumn';\nvar CONTEXTMENU_ITEMS_UNDO = exports.CONTEXTMENU_ITEMS_UNDO = CONTEXT_MENU_ITEMS_NAMESPACE + '.undo';\nvar CONTEXTMENU_ITEMS_REDO = exports.CONTEXTMENU_ITEMS_REDO = CONTEXT_MENU_ITEMS_NAMESPACE + '.redo';\nvar CONTEXTMENU_ITEMS_READ_ONLY = exports.CONTEXTMENU_ITEMS_READ_ONLY = CONTEXT_MENU_ITEMS_NAMESPACE + '.readOnly';\nvar CONTEXTMENU_ITEMS_CLEAR_COLUMN = exports.CONTEXTMENU_ITEMS_CLEAR_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.clearColumn';\n\nvar CONTEXTMENU_ITEMS_COPY = exports.CONTEXTMENU_ITEMS_COPY = CONTEXT_MENU_ITEMS_NAMESPACE + '.copy';\nvar CONTEXTMENU_ITEMS_CUT = exports.CONTEXTMENU_ITEMS_CUT = CONTEXT_MENU_ITEMS_NAMESPACE + '.cut';\n\nvar CONTEXTMENU_ITEMS_FREEZE_COLUMN = exports.CONTEXTMENU_ITEMS_FREEZE_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.freezeColumn';\nvar CONTEXTMENU_ITEMS_UNFREEZE_COLUMN = exports.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.unfreezeColumn';\n\nvar CONTEXTMENU_ITEMS_MERGE_CELLS = exports.CONTEXTMENU_ITEMS_MERGE_CELLS = CONTEXT_MENU_ITEMS_NAMESPACE + '.mergeCells';\nvar CONTEXTMENU_ITEMS_UNMERGE_CELLS = exports.CONTEXTMENU_ITEMS_UNMERGE_CELLS = CONTEXT_MENU_ITEMS_NAMESPACE + '.unmergeCells';\n\nvar CONTEXTMENU_ITEMS_ADD_COMMENT = exports.CONTEXTMENU_ITEMS_ADD_COMMENT = CONTEXT_MENU_ITEMS_NAMESPACE + '.addComment';\nvar CONTEXTMENU_ITEMS_EDIT_COMMENT = exports.CONTEXTMENU_ITEMS_EDIT_COMMENT = CONTEXT_MENU_ITEMS_NAMESPACE + '.editComment';\nvar CONTEXTMENU_ITEMS_REMOVE_COMMENT = exports.CONTEXTMENU_ITEMS_REMOVE_COMMENT = CONTEXT_MENU_ITEMS_NAMESPACE + '.removeComment';\nvar CONTEXTMENU_ITEMS_READ_ONLY_COMMENT = exports.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT = CONTEXT_MENU_ITEMS_NAMESPACE + '.readOnlyComment';\n\nvar CONTEXTMENU_ITEMS_ALIGNMENT = exports.CONTEXTMENU_ITEMS_ALIGNMENT = CONTEXT_MENU_ITEMS_NAMESPACE + '.align';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_LEFT = exports.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.left';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_CENTER = exports.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.center';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT = exports.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.right';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY = exports.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.justify';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_TOP = exports.CONTEXTMENU_ITEMS_ALIGNMENT_TOP = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.top';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE = exports.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.middle';\nvar CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM = exports.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM = CONTEXT_MENU_ITEMS_NAMESPACE + '.align.bottom';\n\nvar CONTEXTMENU_ITEMS_BORDERS = exports.CONTEXTMENU_ITEMS_BORDERS = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders';\nvar CONTEXTMENU_ITEMS_BORDERS_TOP = exports.CONTEXTMENU_ITEMS_BORDERS_TOP = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders.top';\nvar CONTEXTMENU_ITEMS_BORDERS_RIGHT = exports.CONTEXTMENU_ITEMS_BORDERS_RIGHT = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders.right';\nvar CONTEXTMENU_ITEMS_BORDERS_BOTTOM = exports.CONTEXTMENU_ITEMS_BORDERS_BOTTOM = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders.bottom';\nvar CONTEXTMENU_ITEMS_BORDERS_LEFT = exports.CONTEXTMENU_ITEMS_BORDERS_LEFT = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders.left';\nvar CONTEXTMENU_ITEMS_REMOVE_BORDERS = exports.CONTEXTMENU_ITEMS_REMOVE_BORDERS = CONTEXT_MENU_ITEMS_NAMESPACE + '.borders.remove';\n\nvar CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD = exports.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD = CONTEXT_MENU_ITEMS_NAMESPACE + '.nestedHeaders.insertChildRow';\nvar CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD = exports.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD = CONTEXT_MENU_ITEMS_NAMESPACE + '.nestedHeaders.detachFromParent';\n\nvar CONTEXTMENU_ITEMS_HIDE_COLUMN = exports.CONTEXTMENU_ITEMS_HIDE_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.hideColumn';\nvar CONTEXTMENU_ITEMS_SHOW_COLUMN = exports.CONTEXTMENU_ITEMS_SHOW_COLUMN = CONTEXT_MENU_ITEMS_NAMESPACE + '.showColumn';\n\nvar CONTEXTMENU_ITEMS_HIDE_ROW = exports.CONTEXTMENU_ITEMS_HIDE_ROW = CONTEXT_MENU_ITEMS_NAMESPACE + '.hideRow';\nvar CONTEXTMENU_ITEMS_SHOW_ROW = exports.CONTEXTMENU_ITEMS_SHOW_ROW = CONTEXT_MENU_ITEMS_NAMESPACE + '.showRow';\n\nvar FILTERS_NAMESPACE = exports.FILTERS_NAMESPACE = 'Filters:';\nvar FILTERS_CONDITIONS_NAMESPACE = exports.FILTERS_CONDITIONS_NAMESPACE = FILTERS_NAMESPACE + 'conditions';\nvar FILTERS_CONDITIONS_NONE = exports.FILTERS_CONDITIONS_NONE = FILTERS_CONDITIONS_NAMESPACE + '.none';\nvar FILTERS_CONDITIONS_EMPTY = exports.FILTERS_CONDITIONS_EMPTY = FILTERS_CONDITIONS_NAMESPACE + '.isEmpty';\nvar FILTERS_CONDITIONS_NOT_EMPTY = exports.FILTERS_CONDITIONS_NOT_EMPTY = FILTERS_CONDITIONS_NAMESPACE + '.isNotEmpty';\nvar FILTERS_CONDITIONS_EQUAL = exports.FILTERS_CONDITIONS_EQUAL = FILTERS_CONDITIONS_NAMESPACE + '.isEqualTo';\nvar FILTERS_CONDITIONS_NOT_EQUAL = exports.FILTERS_CONDITIONS_NOT_EQUAL = FILTERS_CONDITIONS_NAMESPACE + '.isNotEqualTo';\nvar FILTERS_CONDITIONS_BEGINS_WITH = exports.FILTERS_CONDITIONS_BEGINS_WITH = FILTERS_CONDITIONS_NAMESPACE + '.beginsWith';\nvar FILTERS_CONDITIONS_ENDS_WITH = exports.FILTERS_CONDITIONS_ENDS_WITH = FILTERS_CONDITIONS_NAMESPACE + '.endsWith';\nvar FILTERS_CONDITIONS_CONTAINS = exports.FILTERS_CONDITIONS_CONTAINS = FILTERS_CONDITIONS_NAMESPACE + '.contains';\nvar FILTERS_CONDITIONS_NOT_CONTAIN = exports.FILTERS_CONDITIONS_NOT_CONTAIN = FILTERS_CONDITIONS_NAMESPACE + '.doesNotContain';\nvar FILTERS_CONDITIONS_BY_VALUE = exports.FILTERS_CONDITIONS_BY_VALUE = FILTERS_CONDITIONS_NAMESPACE + '.byValue';\nvar FILTERS_CONDITIONS_GREATER_THAN = exports.FILTERS_CONDITIONS_GREATER_THAN = FILTERS_CONDITIONS_NAMESPACE + '.greaterThan';\nvar FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL = exports.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL = FILTERS_CONDITIONS_NAMESPACE + '.greaterThanOrEqualTo';\nvar FILTERS_CONDITIONS_LESS_THAN = exports.FILTERS_CONDITIONS_LESS_THAN = FILTERS_CONDITIONS_NAMESPACE + '.lessThan';\nvar FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL = exports.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL = FILTERS_CONDITIONS_NAMESPACE + '.lessThanOrEqualTo';\nvar FILTERS_CONDITIONS_BETWEEN = exports.FILTERS_CONDITIONS_BETWEEN = FILTERS_CONDITIONS_NAMESPACE + '.isBetween';\nvar FILTERS_CONDITIONS_NOT_BETWEEN = exports.FILTERS_CONDITIONS_NOT_BETWEEN = FILTERS_CONDITIONS_NAMESPACE + '.isNotBetween';\nvar FILTERS_CONDITIONS_AFTER = exports.FILTERS_CONDITIONS_AFTER = FILTERS_CONDITIONS_NAMESPACE + '.after';\nvar FILTERS_CONDITIONS_BEFORE = exports.FILTERS_CONDITIONS_BEFORE = FILTERS_CONDITIONS_NAMESPACE + '.before';\nvar FILTERS_CONDITIONS_TODAY = exports.FILTERS_CONDITIONS_TODAY = FILTERS_CONDITIONS_NAMESPACE + '.today';\nvar FILTERS_CONDITIONS_TOMORROW = exports.FILTERS_CONDITIONS_TOMORROW = FILTERS_CONDITIONS_NAMESPACE + '.tomorrow';\nvar FILTERS_CONDITIONS_YESTERDAY = exports.FILTERS_CONDITIONS_YESTERDAY = FILTERS_CONDITIONS_NAMESPACE + '.yesterday';\n\nvar FILTERS_DIVS_FILTER_BY_CONDITION = exports.FILTERS_DIVS_FILTER_BY_CONDITION = FILTERS_NAMESPACE + 'labels.filterByCondition';\nvar FILTERS_DIVS_FILTER_BY_VALUE = exports.FILTERS_DIVS_FILTER_BY_VALUE = FILTERS_NAMESPACE + 'labels.filterByValue';\n\nvar FILTERS_LABELS_CONJUNCTION = exports.FILTERS_LABELS_CONJUNCTION = FILTERS_NAMESPACE + 'labels.conjunction';\nvar FILTERS_LABELS_DISJUNCTION = exports.FILTERS_LABELS_DISJUNCTION = FILTERS_NAMESPACE + 'labels.disjunction';\n\nvar FILTERS_VALUES_BLANK_CELLS = exports.FILTERS_VALUES_BLANK_CELLS = FILTERS_NAMESPACE + 'values.blankCells';\n\nvar FILTERS_BUTTONS_SELECT_ALL = exports.FILTERS_BUTTONS_SELECT_ALL = FILTERS_NAMESPACE + 'buttons.selectAll';\nvar FILTERS_BUTTONS_CLEAR = exports.FILTERS_BUTTONS_CLEAR = FILTERS_NAMESPACE + 'buttons.clear';\nvar FILTERS_BUTTONS_OK = exports.FILTERS_BUTTONS_OK = FILTERS_NAMESPACE + 'buttons.ok';\nvar FILTERS_BUTTONS_CANCEL = exports.FILTERS_BUTTONS_CANCEL = FILTERS_NAMESPACE + 'buttons.cancel';\n\nvar FILTERS_BUTTONS_PLACEHOLDER_SEARCH = exports.FILTERS_BUTTONS_PLACEHOLDER_SEARCH = FILTERS_NAMESPACE + 'buttons.placeholder.search';\nvar FILTERS_BUTTONS_PLACEHOLDER_VALUE = exports.FILTERS_BUTTONS_PLACEHOLDER_VALUE = FILTERS_NAMESPACE + 'buttons.placeholder.value';\nvar FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE = exports.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE = FILTERS_NAMESPACE + 'buttons.placeholder.secondValue';\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getPluginName = exports.getRegistredPluginNames = exports.getPlugin = exports.registerPlugin = undefined;\n\nvar _pluginHooks = __webpack_require__(16);\n\nvar _pluginHooks2 = _interopRequireDefault(_pluginHooks);\n\nvar _object = __webpack_require__(1);\n\nvar _string = __webpack_require__(33);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar registeredPlugins = new WeakMap();\n\n/**\n * Registers plugin under given name\n *\n * @param {String} pluginName\n * @param {Function} PluginClass\n */\n/**\n * Utility to register plugins and common namespace for keeping reference to all plugins classes\n */\nfunction registerPlugin(pluginName, PluginClass) {\n pluginName = (0, _string.toUpperCaseFirst)(pluginName);\n\n _pluginHooks2.default.getSingleton().add('construct', function () {\n var holder = void 0;\n\n if (!registeredPlugins.has(this)) {\n registeredPlugins.set(this, {});\n }\n holder = registeredPlugins.get(this);\n\n if (!holder[pluginName]) {\n holder[pluginName] = new PluginClass(this);\n }\n });\n _pluginHooks2.default.getSingleton().add('afterDestroy', function () {\n if (registeredPlugins.has(this)) {\n var pluginsHolder = registeredPlugins.get(this);\n\n (0, _object.objectEach)(pluginsHolder, function (plugin) {\n return plugin.destroy();\n });\n registeredPlugins.delete(this);\n }\n });\n}\n\n/**\n * @param {Object} instance\n * @param {String|Function} pluginName\n * @returns {Function} pluginClass Returns plugin instance if exists or `undefined` if not exists.\n */\nfunction getPlugin(instance, pluginName) {\n if (typeof pluginName !== 'string') {\n throw Error('Only strings can be passed as \"plugin\" parameter');\n }\n var _pluginName = (0, _string.toUpperCaseFirst)(pluginName);\n\n if (!registeredPlugins.has(instance) || !registeredPlugins.get(instance)[_pluginName]) {\n return void 0;\n }\n\n return registeredPlugins.get(instance)[_pluginName];\n}\n\n/**\n * Get all registred plugins names for concrete Handsontable instance.\n *\n * @param {Object} hotInstance\n * @returns {Array}\n */\nfunction getRegistredPluginNames(hotInstance) {\n return registeredPlugins.has(hotInstance) ? Object.keys(registeredPlugins.get(hotInstance)) : [];\n}\n\n/**\n * Get plugin name.\n *\n * @param {Object} hotInstance\n * @param {Object} plugin\n * @returns {String|null}\n */\nfunction getPluginName(hotInstance, plugin) {\n var pluginName = null;\n\n if (registeredPlugins.has(hotInstance)) {\n (0, _object.objectEach)(registeredPlugins.get(hotInstance), function (pluginInstance, name) {\n if (pluginInstance === plugin) {\n pluginName = name;\n }\n });\n }\n\n return pluginName;\n}\n\nexports.registerPlugin = registerPlugin;\nexports.getPlugin = getPlugin;\nexports.getRegistredPluginNames = getRegistredPluginNames;\nexports.getPluginName = getPluginName;\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _object = __webpack_require__(1);\n\nvar _array = __webpack_require__(2);\n\nvar _recordTranslator = __webpack_require__(195);\n\nvar _plugins = __webpack_require__(8);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar privatePool = new WeakMap();\nvar initializedPlugins = null;\n\n/**\n * @util\n */\n\nvar BasePlugin = function () {\n /**\n * @param {Object} hotInstance Handsontable instance.\n */\n function BasePlugin(hotInstance) {\n var _this = this;\n\n _classCallCheck(this, BasePlugin);\n\n /**\n * Handsontable instance.\n *\n * @type {Core}\n */\n (0, _object.defineGetter)(this, 'hot', hotInstance, {\n writable: false\n });\n (0, _object.defineGetter)(this, 't', (0, _recordTranslator.getTranslator)(hotInstance), {\n writable: false\n });\n\n privatePool.set(this, { hooks: {} });\n initializedPlugins = null;\n\n this.pluginName = null;\n this.pluginsInitializedCallbacks = [];\n this.isPluginsReady = false;\n this.enabled = false;\n this.initialized = false;\n\n this.hot.addHook('afterPluginsInitialized', function () {\n return _this.onAfterPluginsInitialized();\n });\n this.hot.addHook('afterUpdateSettings', function () {\n return _this.onUpdateSettings();\n });\n this.hot.addHook('beforeInit', function () {\n return _this.init();\n });\n }\n\n _createClass(BasePlugin, [{\n key: 'init',\n value: function init() {\n this.pluginName = (0, _plugins.getPluginName)(this.hot, this);\n\n if (this.isEnabled && this.isEnabled()) {\n this.enablePlugin();\n }\n if (!initializedPlugins) {\n initializedPlugins = (0, _plugins.getRegistredPluginNames)(this.hot);\n }\n if (initializedPlugins.indexOf(this.pluginName) >= 0) {\n initializedPlugins.splice(initializedPlugins.indexOf(this.pluginName), 1);\n }\n if (!initializedPlugins.length) {\n this.hot.runHooks('afterPluginsInitialized');\n }\n this.initialized = true;\n }\n\n /**\n * Enable plugin for this Handsontable instance.\n */\n\n }, {\n key: 'enablePlugin',\n value: function enablePlugin() {\n this.enabled = true;\n }\n\n /**\n * Disable plugin for this Handsontable instance.\n */\n\n }, {\n key: 'disablePlugin',\n value: function disablePlugin() {\n if (this.eventManager) {\n this.eventManager.clear();\n }\n this.clearHooks();\n this.enabled = false;\n }\n\n /**\n * Add listener to plugin hooks system.\n *\n * @param {String} name\n * @param {Function} callback\n */\n\n }, {\n key: 'addHook',\n value: function addHook(name, callback) {\n privatePool.get(this).hooks[name] = privatePool.get(this).hooks[name] || [];\n\n var hooks = privatePool.get(this).hooks[name];\n\n this.hot.addHook(name, callback);\n hooks.push(callback);\n privatePool.get(this).hooks[name] = hooks;\n }\n\n /**\n * Remove all hooks listeners by hook name.\n *\n * @param {String} name\n */\n\n }, {\n key: 'removeHooks',\n value: function removeHooks(name) {\n var _this2 = this;\n\n (0, _array.arrayEach)(privatePool.get(this).hooks[name] || [], function (callback) {\n _this2.hot.removeHook(name, callback);\n });\n }\n\n /**\n * Clear all hooks.\n */\n\n }, {\n key: 'clearHooks',\n value: function clearHooks() {\n var _this3 = this;\n\n var hooks = privatePool.get(this).hooks;\n\n (0, _object.objectEach)(hooks, function (callbacks, name) {\n return _this3.removeHooks(name);\n });\n hooks.length = 0;\n }\n\n /**\n * Register function which will be immediately called after all plugins initialized.\n *\n * @param {Function} callback\n */\n\n }, {\n key: 'callOnPluginsReady',\n value: function callOnPluginsReady(callback) {\n if (this.isPluginsReady) {\n callback();\n } else {\n this.pluginsInitializedCallbacks.push(callback);\n }\n }\n\n /**\n * On after plugins initialized listener.\n *\n * @private\n */\n\n }, {\n key: 'onAfterPluginsInitialized',\n value: function onAfterPluginsInitialized() {\n (0, _array.arrayEach)(this.pluginsInitializedCallbacks, function (callback) {\n return callback();\n });\n this.pluginsInitializedCallbacks.length = 0;\n this.isPluginsReady = true;\n }\n\n /**\n * On update settings listener.\n *\n * @private\n */\n\n }, {\n key: 'onUpdateSettings',\n value: function onUpdateSettings() {\n if (this.isEnabled) {\n if (this.enabled && !this.isEnabled()) {\n this.disablePlugin();\n }\n if (!this.enabled && this.isEnabled()) {\n this.enablePlugin();\n }\n if (this.enabled && this.isEnabled()) {\n this.updatePlugin();\n }\n }\n }\n\n /**\n * Updates the plugin to use the latest options you have specified.\n *\n * @private\n */\n\n }, {\n key: 'updatePlugin',\n value: function updatePlugin() {}\n\n /**\n * Destroy plugin.\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n var _this4 = this;\n\n if (this.eventManager) {\n this.eventManager.destroy();\n }\n this.clearHooks();\n\n (0, _object.objectEach)(this, function (value, property) {\n if (property !== 'hot' && property !== 't') {\n _this4[property] = null;\n }\n });\n delete this.t;\n delete this.hot;\n }\n }]);\n\n return BasePlugin;\n}();\n\nexports.default = BasePlugin;\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _templateObject = _taggedTemplateLiteral(['\\n Your license key of Handsontable Pro has expired.\\u200C\\u200C\\u200C\\u200C \\n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\\n '], ['\\n Your license key of Handsontable Pro has expired.\\u200C\\u200C\\u200C\\u200C \\n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\\n ']);\n\nexports.stringify = stringify;\nexports.isDefined = isDefined;\nexports.isUndefined = isUndefined;\nexports.isEmpty = isEmpty;\nexports.isRegExp = isRegExp;\nexports._injectProductInfo = _injectProductInfo;\n\nvar _moment = __webpack_require__(57);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _templateLiteralTag = __webpack_require__(42);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\n/**\n * Converts any value to string.\n *\n * @param {*} value\n * @returns {String}\n */\nfunction stringify(value) {\n var result = void 0;\n\n switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {\n case 'string':\n case 'number':\n result = '' + value;\n break;\n\n case 'object':\n result = value === null ? '' : value.toString();\n break;\n case 'undefined':\n result = '';\n break;\n default:\n result = value.toString();\n break;\n }\n\n return result;\n}\n\n/**\n * Checks if given variable is defined.\n *\n * @param {*} variable Variable to check.\n * @returns {Boolean}\n */\nfunction isDefined(variable) {\n return typeof variable !== 'undefined';\n}\n\n/**\n * Checks if given variable is undefined.\n *\n * @param {*} variable Variable to check.\n * @returns {Boolean}\n */\nfunction isUndefined(variable) {\n return typeof variable === 'undefined';\n}\n\n/**\n * Check if given variable is null, empty string or undefined.\n *\n * @param {*} variable Variable to check.\n * @returns {Boolean}\n */\nfunction isEmpty(variable) {\n return variable === null || variable === '' || isUndefined(variable);\n}\n\n/**\n * Check if given variable is a regular expression.\n *\n * @param {*} variable Variable to check.\n * @returns {Boolean}\n */\nfunction isRegExp(variable) {\n return Object.prototype.toString.call(variable) === '[object RegExp]';\n}\n\n/* eslint-disable */\nvar _m = '\\x6C\\x65\\x6E\\x67\\x74\\x68';\nvar _hd = function _hd(v) {\n return parseInt(v, 16);\n};\nvar _pi = function _pi(v) {\n return parseInt(v, 10);\n};\nvar _ss = function _ss(v, s, l) {\n return v['\\x73\\x75\\x62\\x73\\x74\\x72'](s, l);\n};\nvar _cp = function _cp(v) {\n return v['\\x63\\x6F\\x64\\x65\\x50\\x6F\\x69\\x6E\\x74\\x41\\x74'](0) - 65;\n};\nvar _norm = function _norm(v) {\n return ('' + v).replace(/\\-/g, '');\n};\nvar _extractTime = function _extractTime(v) {\n return _hd(_ss(_norm(v), _hd('12'), _cp('\\x46'))) / (_hd(_ss(_norm(v), _cp('\\x42'), ~~![][_m])) || 9);\n};\nvar _ignored = function _ignored() {\n return typeof location !== 'undefined' && /^([a-z0-9\\-]+\\.)?\\x68\\x61\\x6E\\x64\\x73\\x6F\\x6E\\x74\\x61\\x62\\x6C\\x65\\x2E\\x63\\x6F\\x6D$/i.test(location.host);\n};\nvar _notified = false;\n\nfunction _injectProductInfo(key, element) {\n key = _norm(key || '');\n\n var warningMessage = '';\n var showDomMessage = true;\n var schemaValidity = _checkKeySchema(key);\n var ignored = _ignored();\n var trial = isEmpty(key) || key === 'trial';\n\n if (trial || schemaValidity) {\n if (schemaValidity) {\n var releaseTime = Math.floor((0, _moment2.default)('16/08/2018', 'DD/MM/YYYY').toDate().getTime() / 8.64e7);\n var keyGenTime = _extractTime(key);\n\n if (keyGenTime > 45000 || keyGenTime !== parseInt(keyGenTime, 10)) {\n warningMessage = 'The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.';\n }\n\n if (!warningMessage) {\n if (releaseTime > keyGenTime + 1) {\n warningMessage = (0, _templateLiteralTag.toSingleLine)(_templateObject);\n }\n showDomMessage = releaseTime > keyGenTime + 15;\n }\n } else {\n warningMessage = 'Evaluation version of Handsontable Pro. Not licensed for use in a production environment.';\n }\n } else {\n warningMessage = 'The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.';\n }\n if (ignored) {\n warningMessage = false;\n showDomMessage = false;\n }\n\n if (warningMessage && !_notified) {\n console[trial ? 'info' : 'warn'](warningMessage);\n _notified = true;\n }\n if (showDomMessage && element.parentNode) {\n var message = document.createElement('div');\n\n message.id = 'hot-display-license-info';\n message.appendChild(document.createTextNode('Evaluation version of Handsontable Pro.'));\n message.appendChild(document.createElement('br'));\n message.appendChild(document.createTextNode('Not licensed for production use.'));\n\n element.parentNode.insertBefore(message, element.nextSibling);\n }\n}\n\nfunction _checkKeySchema(v) {\n var z = [][_m];\n var p = z;\n\n if (v[_m] !== _cp('\\x5A')) {\n return false;\n }\n\n for (var c = '', i = '\\x42\\x3C\\x48\\x34\\x50\\x2B'.split(''), j = _cp(i.shift()); j; j = _cp(i.shift() || 'A')) {\n --j < ''[_m] ? p = p | (_pi('' + _pi(_hd(c) + (_hd(_ss(v, Math.abs(j), 2)) + []).padStart(2, '0'))) % 97 || 2) >> 1 : c = _ss(v, j, !j ? 6 : i[_m] === 1 ? 9 : 8);\n }\n\n return p === z;\n}\n/* eslint-enable */\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(79)('wks');\nvar uid = __webpack_require__(50);\nvar Symbol = __webpack_require__(15).Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.stopImmediatePropagation = stopImmediatePropagation;\nexports.isImmediatePropagationStopped = isImmediatePropagationStopped;\nexports.stopPropagation = stopPropagation;\nexports.pageX = pageX;\nexports.pageY = pageY;\nexports.isRightClick = isRightClick;\nexports.isLeftClick = isLeftClick;\n\nvar _element = __webpack_require__(0);\n\n/**\n * Prevent other listeners of the same event from being called.\n *\n * @param {Event} event\n */\nfunction stopImmediatePropagation(event) {\n event.isImmediatePropagationEnabled = false;\n event.cancelBubble = true;\n}\n\n/**\n * Check if event was stopped by `stopImmediatePropagation`.\n *\n * @param event {Event}\n * @returns {Boolean}\n */\nfunction isImmediatePropagationStopped(event) {\n return event.isImmediatePropagationEnabled === false;\n}\n\n/**\n * Prevent further propagation of the current event (prevent bubbling).\n *\n * @param event {Event}\n */\nfunction stopPropagation(event) {\n // ie8\n // http://msdn.microsoft.com/en-us/library/ie/ff975462(v=vs.85).aspx\n if (typeof event.stopPropagation === 'function') {\n event.stopPropagation();\n } else {\n event.cancelBubble = true;\n }\n}\n\n/**\n * Get horizontal coordinate of the event object relative to the whole document.\n *\n * @param {Event} event\n * @returns {Number}\n */\nfunction pageX(event) {\n if (event.pageX) {\n return event.pageX;\n }\n\n return event.clientX + (0, _element.getWindowScrollLeft)();\n}\n\n/**\n * Get vertical coordinate of the event object relative to the whole document.\n *\n * @param {Event} event\n * @returns {Number}\n */\nfunction pageY(event) {\n if (event.pageY) {\n return event.pageY;\n }\n\n return event.clientY + (0, _element.getWindowScrollTop)();\n}\n\n/**\n * Check if provided event was triggered by clicking the right mouse button.\n *\n * @param {Event} event DOM Event.\n * @returns {Boolean}\n */\nfunction isRightClick(event) {\n return event.button === 2;\n}\n\n/**\n * Check if provided event was triggered by clicking the left mouse button.\n *\n * @param {Event} event DOM Event.\n * @returns {Boolean}\n */\nfunction isLeftClick(event) {\n return event.button === 0;\n}\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getRegisteredRenderers = exports.getRegisteredRendererNames = exports.hasRenderer = exports.getRenderer = exports.registerRenderer = undefined;\n\nvar _staticRegister2 = __webpack_require__(38);\n\nvar _staticRegister3 = _interopRequireDefault(_staticRegister2);\n\nvar _cellDecorator = __webpack_require__(243);\n\nvar _cellDecorator2 = _interopRequireDefault(_cellDecorator);\n\nvar _autocompleteRenderer = __webpack_require__(244);\n\nvar _autocompleteRenderer2 = _interopRequireDefault(_autocompleteRenderer);\n\nvar _checkboxRenderer = __webpack_require__(245);\n\nvar _checkboxRenderer2 = _interopRequireDefault(_checkboxRenderer);\n\nvar _htmlRenderer = __webpack_require__(246);\n\nvar _htmlRenderer2 = _interopRequireDefault(_htmlRenderer);\n\nvar _numericRenderer = __webpack_require__(247);\n\nvar _numericRenderer2 = _interopRequireDefault(_numericRenderer);\n\nvar _passwordRenderer = __webpack_require__(249);\n\nvar _passwordRenderer2 = _interopRequireDefault(_passwordRenderer);\n\nvar _textRenderer = __webpack_require__(250);\n\nvar _textRenderer2 = _interopRequireDefault(_textRenderer);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _staticRegister = (0, _staticRegister3.default)('renderers'),\n register = _staticRegister.register,\n getItem = _staticRegister.getItem,\n hasItem = _staticRegister.hasItem,\n getNames = _staticRegister.getNames,\n getValues = _staticRegister.getValues;\n\nregister('base', _cellDecorator2.default);\nregister('autocomplete', _autocompleteRenderer2.default);\nregister('checkbox', _checkboxRenderer2.default);\nregister('html', _htmlRenderer2.default);\nregister('numeric', _numericRenderer2.default);\nregister('password', _passwordRenderer2.default);\nregister('text', _textRenderer2.default);\n\n/**\n * Retrieve renderer function.\n *\n * @param {String} name Renderer identification.\n * @returns {Function} Returns renderer function.\n */\nfunction _getItem(name) {\n if (typeof name === 'function') {\n return name;\n }\n if (!hasItem(name)) {\n throw Error('No registered renderer found under \"' + name + '\" name');\n }\n\n return getItem(name);\n}\n\nexports.registerRenderer = register;\nexports.getRenderer = _getItem;\nexports.hasRenderer = hasItem;\nexports.getRegisteredRendererNames = getNames;\nexports.getRegisteredRenderers = getValues;\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _array = __webpack_require__(2);\n\nvar _object = __webpack_require__(1);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @description\n * Handsontable events are the common interface that function in 2 ways: as __callbacks__ and as __hooks__.\n *\n * @example\n *\n * ```js\n * // Using events as callbacks:\n * ...\n * const hot1 = new Handsontable(document.getElementById('example1'), {\n * afterChange: function(changes, source) {\n * $.ajax({\n * url: \"save.php',\n * data: change\n * });\n * }\n * });\n * ...\n * ```\n *\n * ```js\n * // Using events as plugin hooks:\n * ...\n * const hot1 = new Handsontable(document.getElementById('example1'), {\n * myPlugin: true\n * });\n *\n * const hot2 = new Handsontable(document.getElementById('example2'), {\n * myPlugin: false\n * });\n *\n * // global hook\n * Handsontable.hooks.add('afterChange', function() {\n * // Fired twice - for hot1 and hot2\n * if (this.getSettings().myPlugin) {\n * // function body - will only run for hot1\n * }\n * });\n *\n * // local hook (has same effect as a callback)\n * hot2.addHook('afterChange', function() {\n * // function body - will only run in #example2\n * });\n * ```\n * ...\n */\n\n// @TODO: Move plugin description hooks to plugin?\nvar REGISTERED_HOOKS = [\n/**\n * Fired after resetting a cell's meta. This happens when the {@link Core#updateSettings} method is called.\n *\n * @event Hooks#afterCellMetaReset\n */\n'afterCellMetaReset',\n\n/**\n * Fired after one or more cells has been changed. The changes are triggered in any situation when the\n * value is entered using an editor or changed using API (e.q setDataAtCell)\n *\n * __Note:__ For performance reasons, the `changes` array is null for `\"loadData\"` source.\n *\n * @event Hooks#afterChange\n * @param {Array} changes 2D array containing information about each of the edited cells `[[row, prop, oldVal, newVal], ...]`.\n * @param {String} [source] String that identifies source of hook call ([list of all available sources]{@link https://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n * @example\n * ```js\n * new Handsontable(element, {\n * afterChange: (changes) => {\n * changes.forEach(([row, prop, oldValue, newValue]) => {\n * // Some logic...\n * });\n * }\n * })\n * ```\n */\n'afterChange',\n\n/**\n * Fired by {@link ObserveChanges} plugin after detecting changes in the data source. This hook is fired when\n * {@link Options#observeChanges} option is enabled.\n *\n * @event Hooks#afterChangesObserved\n */\n'afterChangesObserved',\n\n/**\n * Fired by {@link ContextMenu} after setting up the Context Menu's default options. These options are a collection\n * which user can select by setting an array of keys or an array of objects in {@link Options#contextMenu} option.\n *\n * @event Hooks#afterContextMenuDefaultOptions\n * @param {Array} predefinedItems An array of objects containing information about the pre-defined Context Menu items.\n */\n'afterContextMenuDefaultOptions',\n\n/**\n * Fired by {@link ContextMenu} plugin before setting up the Context Menu's items but after filtering these options by\n * user (`contextMenu` option). This hook can by helpful to determine if user use specified menu item or to set up\n * one of the menu item to by always visible.\n *\n * @event Hooks#beforeContextMenuSetItems\n * @param {Object[]} menuItems An array of objects containing information about to generated Context Menu items.\n */\n'beforeContextMenuSetItems',\n\n/**\n * Fired by {@link DropdownMenu} plugin after setting up the Dropdown Menu's default options. These options are a\n * collection which user can select by setting an array of keys or an array of objects in {@link Options#dropdownMenu}\n * option.\n *\n * @pro\n * @event Hooks#afterDropdownMenuDefaultOptions\n * @param {Object[]} predefinedItems An array of objects containing information about the pre-defined Context Menu items.\n */\n'afterDropdownMenuDefaultOptions',\n\n/**\n * Fired by {@link DropdownMenu} plugin before setting up the Dropdown Menu's items but after filtering these options\n * by user (`dropdownMenu` option). This hook can by helpful to determine if user use specified menu item or to set\n * up one of the menu item to by always visible.\n *\n * @pro\n * @event Hooks#beforeDropdownMenuSetItems\n * @param {Object[]} menuItems An array of objects containing information about to generated Dropdown Menu items.\n */\n'beforeDropdownMenuSetItems',\n\n/**\n * Fired by {@link ContextMenu} plugin after hiding the Context Menu. This hook is fired when {@link Options#contextMenu}\n * option is enabled.\n *\n * @event Hooks#afterContextMenuHide\n * @param {Object} context The Context Menu plugin instance.\n */\n'afterContextMenuHide',\n\n/**\n * Fired by {@link ContextMenu} plugin before opening the Context Menu. This hook is fired when {@link Options#contextMenu}\n * option is enabled.\n *\n * @event Hooks#beforeContextMenuShow\n * @param {Object} context The Context Menu instance.\n */\n'beforeContextMenuShow',\n\n/**\n * Fired by {@link ContextMenu} plugin after opening the Context Menu. This hook is fired when {@link Options#contextMenu}\n * option is enabled.\n *\n * @event Hooks#afterContextMenuShow\n * @param {Object} context The Context Menu plugin instance.\n */\n'afterContextMenuShow',\n\n/**\n * Fired by {@link CopyPaste} plugin after reaching the copy limit while copying data. This hook is fired when\n * {@link Options#copyPaste} option is enabled.\n *\n * @event Hooks#afterCopyLimit\n * @param {Number} selectedRows Count of selected copyable rows.\n * @param {Number} selectedColumns Count of selected copyable columns.\n * @param {Number} copyRowsLimit Current copy rows limit.\n * @param {Number} copyColumnsLimit Current copy columns limit.\n */\n'afterCopyLimit',\n\n/**\n * Fired before created a new column.\n *\n * @event Hooks#beforeCreateCol\n * @param {Number} index Represents the visual index of first newly created column in the data source array.\n * @param {Number} amount Number of newly created columns in the data source array.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeCreateCol',\n\n/**\n * Fired after created a new column.\n *\n * @event Hooks#afterCreateCol\n * @param {Number} index Represents the visual index of first newly created column in the data source.\n * @param {Number} amount Number of newly created columns in the data source.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterCreateCol',\n\n/**\n * Fired before created a new row.\n *\n * @event Hooks#beforeCreateRow\n * @param {Number} index Represents the visual index of first newly created row in the data source array.\n * @param {Number} amount Number of newly created rows in the data source array.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeCreateRow',\n\n/**\n * Fired after created a new row.\n *\n * @event Hooks#afterCreateRow\n * @param {Number} index Represents the visual index of first newly created row in the data source array.\n * @param {Number} amount Number of newly created rows in the data source array.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterCreateRow',\n\n/**\n * Fired after the current cell is deselected.\n *\n * @event Hooks#afterDeselect\n */\n'afterDeselect',\n\n/**\n * Fired after destroying the Handsontable instance.\n *\n * @event Hooks#afterDestroy\n */\n'afterDestroy',\n\n/**\n * General hook which captures `keydown` events attached to the document body. These events are delegated to the\n * hooks system and consumed by Core and internal modules (e.g plugins, editors).\n *\n * @event Hooks#afterDocumentKeyDown\n * @param {Event} event A native `keydown` event object.\n */\n'afterDocumentKeyDown',\n\n/**\n * Fired inside the Walkontable's selection `draw` method. Can be used to add additional class names to cells, depending on the current selection.\n *\n * @event Hooks#afterDrawSelection\n * @param {Number} currentRow Row index of the currently processed cell.\n * @param {Number} currentColumn Column index of the currently cell.\n * @param {Number[]} cornersOfSelection Array of the current selection in a form of `[startRow, startColumn, endRow, endColumn]`.\n * @param {Number|undefined} layerLevel Number indicating which layer of selection is currently processed.\n * @since 0.38.1\n * @returns {String|undefined} Can return a `String`, which will act as an additional `className` to be added to the currently processed cell.\n */\n'afterDrawSelection',\n\n/**\n * Fired inside the Walkontable's `refreshSelections` method. Can be used to remove additional class names from all cells in the table.\n *\n * @event Hooks#beforeRemoveCellClassNames\n * @since 0.38.1\n * @returns {String[]|undefined} Can return an `Array` of `String`s. Each of these strings will act like class names to be removed from all the cells in the table.\n */\n'beforeRemoveCellClassNames',\n\n/**\n * Fired after getting the cell settings.\n *\n * @event Hooks#afterGetCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {Object} cellProperties Object containing the cell properties.\n */\n'afterGetCellMeta',\n\n/**\n * Fired after retrieving information about a column header and appending it to the table header.\n *\n * @event Hooks#afterGetColHeader\n * @param {Number} column Visual column index.\n * @param {HTMLTableCellElement} TH Header's TH element.\n */\n'afterGetColHeader',\n\n/**\n * Fired after retrieving information about a row header and appending it to the table header.\n *\n * @event Hooks#afterGetRowHeader\n * @param {Number} row Visual row index.\n * @param {HTMLTableCellElement} TH Header's TH element.\n */\n'afterGetRowHeader',\n\n/**\n * Fired after the Handsontable instance is initiated.\n *\n * @event Hooks#afterInit\n */\n'afterInit',\n\n/**\n * Fired after new data is loaded (by `loadData` or `updateSettings` method) into the data source array.\n *\n * @event Hooks#afterLoadData\n * @param {Boolean} initialLoad flag that determines whether the data has been loaded during the initialization.\n */\n'afterLoadData',\n\n/**\n * Fired after a scroll event, which is identified as a momentum scroll (e.g. on an iPad).\n *\n * @event Hooks#afterMomentumScroll\n */\n'afterMomentumScroll',\n\n/**\n * Fired after a `mousedown` event is triggered on the cell corner (the drag handle).\n *\n * @event Hooks#afterOnCellCornerMouseDown\n * @param {Event} event `mousedown` event object.\n */\n'afterOnCellCornerMouseDown',\n\n/**\n * Fired after a `dblclick` event is triggered on the cell corner (the drag handle).\n *\n * @event Hooks#afterOnCellCornerDblClick\n * @param {Event} event `dblclick` event object.\n */\n'afterOnCellCornerDblClick',\n\n/**\n * Fired after clicking on a cell or row/column header. In case the row/column header was clicked, the coordinate\n * indexes are negative.\n *\n * For example clicking on the row header of cell (0, 0) results with `afterOnCellMouseDown` called\n * with coordinates `{row: 0, col: -1}`.\n *\n * @event Hooks#afterOnCellMouseDown\n * @param {Event} event `mousedown` event object.\n * @param {CellCoords} coords Coordinates object containing the visual row and visual column indexes of the clicked cell.\n * @param {HTMLTableCellElement} TD Cell's TD (or TH) element.\n */\n'afterOnCellMouseDown',\n\n/**\n * Fired after clicking right mouse button on a cell or row/column header.\n *\n * For example clicking on the row header of cell (0, 0) results with `afterOnCellContextMenu` called\n * with coordinates `{row: 0, col: -1}`.\n *\n * @event Hooks#afterOnCellContextMenu\n * @since 4.1.0\n * @param {Event} event `contextmenu` event object.\n * @param {CellCoords} coords Coordinates object containing the visual row and visual column indexes of the clicked cell.\n * @param {HTMLTableCellElement} TD Cell's TD (or TH) element.\n */\n'afterOnCellContextMenu',\n\n/**\n * Fired after hovering a cell or row/column header with the mouse cursor. In case the row/column header was\n * hovered, the index is negative.\n *\n * For example, hovering over the row header of cell (0, 0) results with `afterOnCellMouseOver` called\n * with coords `{row: 0, col: -1}`.\n *\n * @event Hooks#afterOnCellMouseOver\n * @param {Event} event `mouseover` event object.\n * @param {CellCoords} coords Hovered cell's visual coordinate object.\n * @param {HTMLTableCellElement} TD Cell's TD (or TH) element.\n */\n'afterOnCellMouseOver',\n\n/**\n * Fired after leaving a cell or row/column header with the mouse cursor.\n *\n * @event Hooks#afterOnCellMouseOut\n * @param {Event} event `mouseout` event object.\n * @param {CellCoords} coords Leaved cell's visual coordinate object.\n * @param {HTMLTableCellElement} TD Cell's TD (or TH) element.\n */\n'afterOnCellMouseOut',\n\n/**\n * Fired after one or more columns are removed.\n *\n * @event Hooks#afterRemoveCol\n * @param {Number} index Visual index of starter column.\n * @param {Number} amount An amount of removed columns.\n * @param {Number[]} physicalColumns An array of physical columns removed from the data source.\n * @param {String} [source] String that identifies source of hook call ([list of all available sources]{@link https://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterRemoveCol',\n\n/**\n * Fired after one or more rows are removed.\n *\n * @event Hooks#afterRemoveRow\n * @param {Number} index Visual index of starter row.\n * @param {Number} amount An amount of removed rows.\n * @param {Number[]} physicalRows An array of physical rows removed from the data source.\n * @param {String} [source] String that identifies source of hook call ([list of all available sources]{@link https://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterRemoveRow',\n\n/**\n * Fired after the Handsontable table is rendered.\n *\n * @event Hooks#afterRender\n * @param {Boolean} isForced Is `true` if rendering was triggered by a change of settings or data; or `false` if\n * rendering was triggered by scrolling or moving selection.\n */\n'afterRender',\n\n/**\n * Fired before starting rendering the cell.\n *\n * @event Hooks#beforeRenderer\n * @param {HTMLTableCellElement} TD Currently rendered cell's TD element.\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String|Number} prop Column property name or a column index, if datasource is an array of arrays.\n * @param {*} value Value of the rendered cell.\n * @param {Object} cellProperties Object containing the cell's properties.\n */\n'beforeRenderer',\n\n/**\n * Fired after finishing rendering the cell (after the renderer finishes).\n *\n * @event Hooks#afterRenderer\n * @param {HTMLTableCellElement} TD Currently rendered cell's TD element.\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String|Number} prop Column property name or a column index, if datasource is an array of arrays.\n * @param {*} value Value of the rendered cell.\n * @param {Object} cellProperties Object containing the cell's properties.\n */\n'afterRenderer',\n\n/**\n * Fired after the horizontal scroll event.\n *\n * @event Hooks#afterScrollHorizontally\n */\n'afterScrollHorizontally',\n\n/**\n * Fired after the vertical scroll event.\n *\n * @event Hooks#afterScrollVertically\n */\n'afterScrollVertically',\n\n/**\n * Fired after one or more cells are selected (e.g. during mouse move).\n *\n * @event Hooks#afterSelection\n * @param {Number} row Selection start visual row index.\n * @param {Number} column Selection start visual column index.\n * @param {Number} row2 Selection end visual row index.\n * @param {Number} column2 Selection end visual column index.\n * @param {Object} preventScrolling Object with `value` property where its value change will be observed.\n * @param {Number} selectionLayerLevel The number which indicates what selection layer is currently modified.\n * @example\n * ```js\n * new Handsontable(element, {\n * afterSelection: (row, column, row2, column2, preventScrolling, selectionLayerLevel) => {\n * // setting if prevent scrolling after selection\n * preventScrolling.value = true;\n * }\n * })\n * ```\n */\n'afterSelection',\n\n/**\n * Fired after one or more cells are selected.\n *\n * The `prop` and `prop2` arguments represent the source object property name instead of the column number.\n *\n * @event Hooks#afterSelectionByProp\n * @param {Number} row Selection start visual row index.\n * @param {String} prop Selection start data source object property name.\n * @param {Number} row2 Selection end visual row index.\n * @param {String} prop2 Selection end data source object property name.\n * @param {Object} preventScrolling Object with `value` property where its value change will be observed.\n * @param {Number} selectionLayerLevel The number which indicates what selection layer is currently modified.\n * @example\n * ```js\n * new Handsontable(element, {\n * afterSelectionByProp: (row, column, row2, column2, preventScrolling, selectionLayerLevel) => {\n * // setting if prevent scrolling after selection\n * preventScrolling.value = true;\n * }\n * })\n * ```\n */\n'afterSelectionByProp',\n\n/**\n * Fired after one or more cells are selected (e.g. on mouse up).\n *\n * @event Hooks#afterSelectionEnd\n * @param {Number} row Selection start visual row index.\n * @param {Number} column Selection start visual column index.\n * @param {Number} row2 Selection end visual row index.\n * @param {Number} column2 Selection end visual column index.\n * @param {Number} selectionLayerLevel The number which indicates what selection layer is currently modified.\n */\n'afterSelectionEnd',\n\n/**\n * Fired after one or more cells are selected (e.g. on mouse up).\n *\n * The `prop` and `prop2` arguments represent the source object property name instead of the column number.\n *\n * @event Hooks#afterSelectionEndByProp\n * @param {Number} row Selection start visual row index.\n * @param {String} prop Selection start data source object property index.\n * @param {Number} row2 Selection end visual row index.\n * @param {String} prop2 Selection end data source object property index.\n * @param {Number} selectionLayerLevel The number which indicates what selection layer is currently modified.\n */\n'afterSelectionEndByProp',\n\n/**\n * Fired after cell meta is changed.\n *\n * @event Hooks#afterSetCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String} key The updated meta key.\n * @param {*} value The updated meta value.\n */\n'afterSetCellMeta',\n\n/**\n * Fired after cell meta is removed.\n *\n * @event Hooks#afterRemoveCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String} key The removed meta key.\n * @param {*} value Value which was under removed key of cell meta.\n */\n'afterRemoveCellMeta',\n\n/**\n * Fired after cell data was changed.\n *\n * @event Hooks#afterSetDataAtCell\n * @param {Array} changes An array of changes in format `[[row, column, oldValue, value], ...]`.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterSetDataAtCell',\n\n/**\n * Fired after cell data was changed.\n *\n * @event Hooks#afterSetDataAtRowProp\n * @param {Array} changes An array of changes in format `[[row, prop, oldValue, value], ...]`.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterSetDataAtRowProp',\n\n/**\n * Fired after calling the `updateSettings` method.\n *\n * @event Hooks#afterUpdateSettings\n * @param {Object} settings New settings object.\n */\n'afterUpdateSettings',\n\n/**\n * @description\n * A plugin hook executed after validator function, only if validator function is defined.\n * Validation result is the first parameter. This can be used to determinate if validation passed successfully or not.\n *\n * __Returning false from the callback will mark the cell as invalid.__\n *\n * @event Hooks#afterValidate\n * @param {Boolean} isValid `true` if valid, `false` if not.\n * @param {*} value The value in question.\n * @param {Number} row Visual row index.\n * @param {String|Number} prop Property name / visual column index.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'afterValidate',\n\n/**\n * Fired before successful change of language (when proper language code was set)\n *\n * @event Hooks#beforeLanguageChange\n * @since 0.35.0\n * @param {String} languageCode New language code.\n */\n'beforeLanguageChange',\n\n/**\n * Fired after successful change of language (when proper language code was set).\n *\n * @event Hooks#afterLanguageChange\n * @since 0.35.0\n * @param {String} languageCode New language code.\n */\n'afterLanguageChange',\n\n/**\n * Fired by {@link Autofill} plugin before populating the data in the autofill feature. This hook is fired when\n * {@link Options#fillHandle} option is enabled.\n *\n * @event Hooks#beforeAutofill\n * @param {CellCoords} start Object containing information about first filled cell: `{row: 2, col: 0}`.\n * @param {CellCoords} end Object containing information about last filled cell: `{row: 4, col: 1}`.\n * @param {Array[]} data 2D array containing information about fill pattern: `[[\"1\", \"Ted\"], [\"1\", \"John\"]]`.\n */\n'beforeAutofill',\n\n/**\n * Fired before aligning the cell contents.\n *\n * @event Hooks#beforeCellAlignment\n * @param {Object} stateBefore An object with class names defining the cell alignment.\n * @param {CellRange[]} range An array of CellRange coordinates where the alignment will be applied.\n * @param {String} type Type of the alignment - either `horizontal` or `vertical`.\n * @param {String} alignmentClass String defining the alignment class added to the cell.\n * Possible values:\n * * `htLeft`\n * * `htCenter`\n * * `htRight`\n * * `htJustify`\n * * `htTop`\n * * `htMiddle`\n * * `htBottom`\n */\n'beforeCellAlignment',\n\n/**\n * Fired before one or more cells is changed. Its main purpose is to alter changes silently after input and before\n * table rendering.\n *\n * @event Hooks#beforeChange\n * @param {Array[]} changes 2D array containing information about each of the edited cells.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n * @example\n * ```js\n * // To disregard a single change, set changes[i] to null or remove it from array using changes.splice(i, 1).\n * new Handsontable(element, {\n * beforeChange: (changes, source) => {\n * // [[row, prop, oldVal, newVal], ...]\n * changes[0] = null;\n * }\n * });\n * // To alter a single change, overwrite the desired value to changes[i][3].\n * new Handsontable(element, {\n * beforeChange: (changes, source) => {\n * // [[row, prop, oldVal, newVal], ...]\n * changes[0][3] = 10;\n * }\n * });\n * // To cancel all edit, return false from the callback or set array length to 0 (changes.length = 0).\n * new Handsontable(element, {\n * beforeChange: (changes, source) => {\n * // [[row, prop, oldVal, newVal], ...]\n * return false;\n * }\n * });\n * ```\n */\n'beforeChange',\n\n/**\n * Fired right before rendering the changes.\n *\n * @event Hooks#beforeChangeRender\n * @param {Array[]} changes Array in form of `[row, prop, oldValue, newValue]`.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeChangeRender',\n\n/**\n * Fired before drawing the borders.\n *\n * @event Hooks#beforeDrawBorders\n * @param {Array} corners Array specifying the current selection borders.\n * @param {String} borderClassName Specifies the border class name.\n */\n'beforeDrawBorders',\n\n/**\n * Fired before getting cell settings.\n *\n * @event Hooks#beforeGetCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {Object} cellProperties Object containing the cell's properties.\n */\n'beforeGetCellMeta',\n\n/**\n * Fired before cell meta is removed.\n *\n * @event Hooks#beforeRemoveCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String} key The removed meta key.\n * @param {*} value Value which is under removed key of cell meta.\n */\n'beforeRemoveCellMeta',\n\n/**\n * Fired before the Handsontable instance is initiated.\n *\n * @event Hooks#beforeInit\n */\n'beforeInit',\n\n/**\n * Fired before the Walkontable instance is initiated.\n *\n * @event Hooks#beforeInitWalkontable\n * @param {Object} walkontableConfig Walkontable configuration object.\n */\n'beforeInitWalkontable',\n\n/**\n * Fired before keydown event is handled. It can be used to overwrite default key bindings.\n *\n * __Note__: To prevent default behavior you need to call `event.stopImmediatePropagation()` in your `beforeKeyDown`\n * handler.\n *\n * @event Hooks#beforeKeyDown\n * @param {Event} event Original DOM event.\n */\n'beforeKeyDown',\n\n/**\n * Fired after the user clicked a cell, but before all the calculations related with it.\n *\n * @event Hooks#beforeOnCellMouseDown\n * @param {Event} event The `mousedown` event object.\n * @param {CellCoords} coords Cell coords object containing the visual coordinates of the clicked cell.\n * @param {HTMLTableCellElement} TD TD element.\n * @param {Object} controller An object with keys `row`, `column` and `cells` which contains boolean values. This\n * object allows or disallows changing the selection for the particular axies.\n */\n'beforeOnCellMouseDown',\n\n/**\n * Fired after the user clicked a cell, but before all the calculations related with it.\n *\n * @event Hooks#beforeOnCellContextMenu\n * @since 4.1.0\n * @param {Event} event The `contextmenu` event object.\n * @param {CellCoords} coords Cell coords object containing the visual coordinates of the clicked cell.\n * @param {HTMLTableCellElement} TD TD element.\n */\n'beforeOnCellContextMenu',\n\n/**\n * Fired after the user moved cursor over a cell, but before all the calculations related with it.\n *\n * @event Hooks#beforeOnCellMouseOver\n * @param {Event} event The `mouseover` event object.\n * @param {CellCoords} coords CellCoords object containing the visual coordinates of the clicked cell.\n * @param {HTMLTableCellElement} TD TD element.\n * @param {Object} controller An object with keys `row`, `column` and `cells` which contains boolean values. This\n * object allows or disallows changing the selection for the particular axies.\n */\n'beforeOnCellMouseOver',\n\n/**\n * Fired after the user moved cursor out from a cell, but before all the calculations related with it.\n *\n * @event Hooks#beforeOnCellMouseOut\n * @param {Event} event The `mouseout` event object.\n * @param {CellCoords} coords CellCoords object containing the visual coordinates of the leaved cell.\n * @param {HTMLTableCellElement} TD TD element.\n */\n'beforeOnCellMouseOut',\n\n/**\n * Fired before one or more columns are about to be removed.\n *\n * @event Hooks#beforeRemoveCol\n * @param {Number} index Visual index of starter column.\n * @param {Number} amount Amount of columns to be removed.\n * @param {Number[]} physicalColumns An array of physical columns removed from the data source.\n * @param {String} [source] String that identifies source of hook call ([list of all available sources]{@link https://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeRemoveCol',\n\n/**\n * Fired when one or more rows are about to be removed.\n *\n * @event Hooks#beforeRemoveRow\n * @param {Number} index Visual index of starter column.\n * @param {Number} amount Amount of columns to be removed.\n * @param {Number[]} physicalRows An array of physical rows removed from the data source.\n * @param {String} [source] String that identifies source of hook call ([list of all available sources]{@link https://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeRemoveRow',\n\n/**\n * Fired before the Handsontable table is rendered.\n *\n * @event Hooks#beforeRender\n * @param {Boolean} isForced If `true` rendering was triggered by a change of settings or data; or `false` if\n * rendering was triggered by scrolling or moving selection.\n */\n'beforeRender',\n\n/**\n * Fired before setting range is started but not finished yet.\n *\n * @event Hooks#beforeSetRangeStartOnly\n * @param {CellCoords} coords CellCoords instance.\n */\n'beforeSetRangeStartOnly',\n\n/**\n * Fired before setting range is started.\n *\n * @event Hooks#beforeSetRangeStart\n * @param {CellCoords} coords CellCoords instance.\n */\n'beforeSetRangeStart',\n\n/**\n * Fired before setting range is ended.\n *\n * @event Hooks#beforeSetRangeEnd\n * @param {CellCoords} coords CellCoords instance.\n */\n'beforeSetRangeEnd',\n\n/**\n * Fired before the logic of handling a touch scroll, when user started scrolling on a touch-enabled device.\n *\n * @event Hooks#beforeTouchScroll\n */\n'beforeTouchScroll',\n\n/**\n * Fired before cell validation, only if validator function is defined. This can be used to manipulate the value\n * of changed cell before it is applied to the validator function.\n *\n * __Note:__ this will not affect values of changes. This will change value *ONLY* for validation\n *\n * @event Hooks#beforeValidate\n * @param {*} value Value of the cell.\n * @param {Number} row Visual row index.\n * @param {String|Number} prop Property name / column index.\n * @param {String} [source] String that identifies source of hook call\n * ([list of all available sources]{@link http://docs.handsontable.com/tutorial-using-callbacks.html#page-source-definition}).\n */\n'beforeValidate',\n\n/**\n * Fired before cell value is rendered into the DOM (through renderer function). This can be used to manipulate the\n * value which is passed to the renderer without modifying the renderer itself.\n *\n * @event Hooks#beforeValueRender\n * @param {*} value Cell value to render.\n * @param {Object} cellProperties An object containing the cell properties.\n */\n'beforeValueRender',\n\n/**\n * Fired after Handsontable instance is constructed (using `new` operator).\n *\n * @event Hooks#construct\n */\n'construct',\n\n/**\n * Fired after Handsontable instance is initiated but before table is rendered.\n *\n * @event Hooks#init\n */\n'init',\n\n/**\n * Fired when a column index is about to be modified by a callback function.\n *\n * @event Hooks#modifyCol\n * @param {Number} column Visual column index.\n */\n'modifyCol',\n\n/**\n * Fired when a column index is about to be de-modified by a callback function.\n *\n * @event Hooks#unmodifyCol\n * @param {Number} column Physical column index.\n */\n'unmodifyCol',\n\n/**\n * Fired when a physical row index is about to be de-modified by a callback function.\n *\n * @event Hooks#unmodifyRow\n * @param {Number} row Physical row index.\n */\n'unmodifyRow',\n\n/**\n * Fired when a column header index is about to be modified by a callback function.\n *\n * @event Hooks#modifyColHeader\n * @param {Number} column Visual column header index.\n */\n'modifyColHeader',\n\n/**\n * Fired when a column width is about to be modified by a callback function.\n *\n * @event Hooks#modifyColWidth\n * @param {Number} width Current column width.\n * @param {Number} column Visual column index.\n */\n'modifyColWidth',\n\n/**\n * Fired when a row index is about to be modified by a callback function.\n *\n * @event Hooks#modifyRow\n * @param {Number} row Visual row index.\n */\n'modifyRow',\n\n/**\n * Fired when a row header index is about to be modified by a callback function.\n *\n * @event Hooks#modifyRowHeader\n * @param {Number} row Visual row header index.\n */\n'modifyRowHeader',\n\n/**\n * Fired when a row height is about to be modified by a callback function.\n *\n * @event Hooks#modifyRowHeight\n * @param {Number} height Row height.\n * @param {Number} row Visual row index.\n */\n'modifyRowHeight',\n\n/**\n * Fired when a data was retrieved or modified.\n *\n * @event Hooks#modifyData\n * @param {Number} row Row height.\n * @param {Number} column Column index.\n * @param {Object} valueHolder Object which contains original value which can be modified by overwriting `.value` property.\n * @param {String} ioMode String which indicates for what operation hook is fired (`get` or `set`).\n */\n'modifyData',\n\n/**\n * Fired when a data was retrieved or modified.\n *\n * @event Hooks#modifyRowData\n * @param {Number} row Physical row index.\n */\n'modifyRowData',\n\n/**\n * Used to modify the cell coordinates when using the `getCell` method.\n *\n * @event Hooks#modifyGetCellCoords\n * @since 0.36.0\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {Boolean} topmost If set to `true`, it returns the TD element from the topmost overlay. For example,\n * if the wanted cell is in the range of fixed rows, it will return a TD element\n * from the `top` overlay.\n */\n'modifyGetCellCoords',\n\n/**\n * Fired by {@link PersistentState} plugin, after loading value, saved under given key, from browser local storage. This hook is fired when\n * {@link Options#persistentState} option is enabled.\n *\n * @event Hooks#persistentStateLoad\n * @param {String} key Key.\n * @param {Object} valuePlaceholder Object containing the loaded value under `valuePlaceholder.value` (if no value have been saved, `value` key will be undefined).\n */\n'persistentStateLoad',\n\n/**\n * Fired by {@link PersistentState} plugin after resetting data from local storage. If no key is given, all values associated with table will be cleared.\n * This hook is fired when {@link Options#persistentState} option is enabled.\n *\n * @event Hooks#persistentStateReset\n * @param {String} [key] Key.\n */\n'persistentStateReset',\n\n/**\n * Fired by {@link PersistentState} plugin, after saving value under given key in browser local storage. This hook is fired when\n * {@link Options#persistentState} option is enabled.\n *\n * @event Hooks#persistentStateSave\n * @param {String} key Key.\n * @param {Mixed} value Value to save.\n */\n'persistentStateSave',\n\n/**\n * Fired by {@link ColumnSorting} plugin before sorting the column. If you return `false` value then sorting\n * will be not applied by the Handsontable (useful for server-side sorting).\n *\n * This hook is fired when {@link Options#columnSorting} option is enabled.\n *\n * @event Hooks#beforeColumnSort\n * @param {Number} column Sorted visual column index.\n * @param {Boolean} order Soring order where:\n * * `asc` means ascending order\n * * `desc` means descending order\n * * `none` means original order\n */\n'beforeColumnSort',\n\n/**\n * Fired by {@link ColumnSorting} plugin after sorting the column. This hook is fired when {@link Options#columnSorting}\n * option is enabled.\n *\n * @event Hooks#afterColumnSort\n * @param {Number} column Sorted visual column index.\n * @param {String} order Soring order where:\n * * `'asc'` means ascending order\n * * `'desc'` means descending order\n * * `'none'` means original order\n */\n'afterColumnSort',\n\n/**\n * Fired by {@link Autofill} plugin after setting range of autofill. This hook is fired when {@link Options#fillHandle}\n * option is enabled.\n *\n * @event Hooks#modifyAutofillRange\n * @param {Array} startArea Array of visual coordinates of the starting point for the drag-down operation (`[startRow, startColumn, endRow, endColumn]`).\n * @param {Array} entireArea Array of visual coordinates of the entire area of the drag-down operation (`[startRow, startColumn, endRow, endColumn]`).\n */\n'modifyAutofillRange',\n\n/**\n * Fired to allow modifying the copyable range with a callback function.\n *\n * @event Hooks#modifyCopyableRange\n * @param {Array[]} copyableRanges Array of objects defining copyable cells.\n */\n'modifyCopyableRange',\n\n/**\n * Fired by {@link CopyPaste} plugin before copying the values into clipboard and before clearing values of\n * the selected cells. This hook is fired when {@link Options#copyPaste} option is enabled.\n *\n * @event Hooks#beforeCut\n * @param {Array[]} data An array of arrays which contains data to cut.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * which will be cut out.\n * @returns {*} If returns `false` then operation of the cutting out is canceled.\n * @example\n * ```js\n * // To disregard a single row, remove it from the array using data.splice(i, 1).\n * new Handsontable(element, {\n * beforeCut: function(data, coords) {\n * // data -> [[1, 2, 3], [4, 5, 6]]\n * data.splice(0, 1);\n * // data -> [[4, 5, 6]]\n * // coords -> [{startRow: 0, startCol: 0, endRow: 1, endCol: 2}]\n * }\n * });\n * // To cancel a cutting action, just return `false`.\n * new Handsontable(element, {\n * beforeCut: function(data, coords) {\n * return false;\n * }\n * });\n * ```\n */\n'beforeCut',\n\n/**\n * Fired by {@link CopyPaste} plugin after data was cut out from the table. This hook is fired when\n * {@link Options#copyPaste} option is enabled.\n *\n * @event Hooks#afterCut\n * @param {Array[]} data An array of arrays which contains the cutted out data.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * which was cut out.\n */\n'afterCut',\n\n/**\n * Fired before values are copied into clipboard.\n *\n * @event Hooks#beforeCopy\n * @param {Array[]} data An array of arrays which contains data to copied.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * which will copied.\n * @returns {*} If returns `false` then copying is canceled.\n *\n * @example\n * ```js\n * // To disregard a single row, remove it from array using data.splice(i, 1).\n * ...\n * new Handsontable(document.getElementById('example'), {\n * beforeCopy: (data, coords) => {\n * // data -> [[1, 2, 3], [4, 5, 6]]\n * data.splice(0, 1);\n * // data -> [[4, 5, 6]]\n * // coords -> [{startRow: 0, startCol: 0, endRow: 1, endCol: 2}]\n * }\n * });\n * ...\n *\n * // To cancel copying, return false from the callback.\n * ...\n * new Handsontable(document.getElementById('example'), {\n * beforeCopy: (data, coords) => {\n * return false;\n * }\n * });\n * ...\n * ```\n */\n'beforeCopy',\n\n/**\n * Fired by {@link CopyPaste} plugin after data are pasted into table. This hook is fired when {@link Options#copyPaste}\n * option is enabled.\n *\n * @event Hooks#afterCopy\n * @param {Array[]} data An array of arrays which contains the copied data.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * which was copied.\n */\n'afterCopy',\n\n/**\n * Fired by {@link CopyPaste} plugin before values are pasted into table. This hook is fired when\n * {@link Options#copyPaste} option is enabled.\n *\n * @event Hooks#beforePaste\n * @param {Array[]} data An array of arrays which contains data to paste.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * that correspond to the previously selected area.\n * @returns {*} If returns `false` then pasting is canceled.\n * @example\n * ```js\n * // To disregard a single row, remove it from array using data.splice(i, 1).\n * new Handsontable(example, {\n * beforePaste: (data, coords) => {\n * // data -> [[1, 2, 3], [4, 5, 6]]\n * data.splice(0, 1);\n * // data -> [[4, 5, 6]]\n * // coords -> [{startRow: 0, startCol: 0, endRow: 1, endCol: 2}]\n * }\n * });\n * // To cancel pasting, return false from the callback.\n * new Handsontable(example, {\n * beforePaste: (data, coords) => {\n * return false;\n * }\n * });\n * ```\n */\n'beforePaste',\n\n/**\n * Fired by {@link CopyPaste} plugin after values are pasted into table. This hook is fired when\n * {@link Options#copyPaste} option is enabled.\n *\n * @event Hooks#afterPaste\n * @param {Array[]} data An array of arrays which contains the pasted data.\n * @param {Object[]} coords An array of objects with ranges of the visual indexes (`startRow`, `startCol`, `endRow`, `endCol`)\n * that correspond to the previously selected area.\n */\n'afterPaste',\n\n/**\n * Fired by {@link ManualColumnMove} plugin before change order of the visual indexes. This hook is fired when\n * {@link Options#manualColumnMove} option is enabled.\n *\n * @event Hooks#beforeColumnMove\n * @param {Number[]} columns Array of visual column indexes to be moved.\n * @param {Number} target Visual column index being a target for moved columns.\n */\n'beforeColumnMove',\n\n/**\n * Fired by {@link ManualColumnMove} plugin after changing order of the visual indexes. This hook is fired when\n * {@link Options#manualColumnMove} option is enabled.\n *\n * @event Hooks#afterColumnMove\n * @param {Number[]} columns Array of visual column indexes that were moved.\n * @param {Number} target Visual column index being a target for moved columns.\n */\n'afterColumnMove',\n\n/**\n * Fired by {@link ManualRowMove} plugin before change order of the visual indexes. This hook is fired when\n * {@link Options#manualRowMove} option is enabled.\n *\n * @event Hooks#beforeRowMove\n * @param {Number[]} rows An array of visual row indexes to be moved.\n * @param {Number} target Visual row index being a target for moved rows.\n */\n'beforeRowMove',\n\n/**\n * Fired by {@link ManualRowMove} plugin after change order of the visual indexes. This hook is fired when\n * {@link Options#manualRowMove} option is enabled.\n *\n * @event Hooks#afterRowMove\n * @param {Number[]} rows An array of visual row indexes that were moved.\n * @param {Number} target Visual row index being a target for moved rows.\n */\n'afterRowMove',\n\n/**\n * Fired by {@link ManualColumnResize} plugin before rendering the table with modified column sizes. This hook is\n * fired when {@link Options#manualColumnResize} option is enabled.\n *\n * @event Hooks#beforeColumnResize\n * @param {Number} currentColumn Visual index of the resized column.\n * @param {Number} newSize Calculated new column width.\n * @param {Boolean} isDoubleClick Flag that determines whether there was a double-click.\n * @returns {Number} Returns a new column size or `undefined`, if column size should be calculated automatically.\n */\n'beforeColumnResize',\n\n/**\n * Fired by {@link ManualColumnResize} plugin after rendering the table with modified column sizes. This hook is\n * fired when {@link Options#manualColumnResize} option is enabled.\n *\n * @event Hooks#afterColumnResize\n * @param {Number} currentColumn Visual index of the resized column.\n * @param {Number} newSize Calculated new column width.\n * @param {Boolean} isDoubleClick Flag that determines whether there was a double-click.\n */\n'afterColumnResize',\n\n/**\n * Fired by {@link ManualRowResize} plugin before rendering the table with modified row sizes. This hook is\n * fired when {@link Options#manualRowResize} option is enabled.\n *\n * @event Hooks#beforeRowResize\n * @param {Number} currentRow Visual index of the resized row.\n * @param {Number} newSize Calculated new row height.\n * @param {Boolean} isDoubleClick Flag that determines whether there was a double-click.\n * @returns {Number} Returns the new row size or `undefined` if row size should be calculated automatically.\n */\n'beforeRowResize',\n\n/**\n * Fired by {@link ManualRowResize} plugin after rendering the table with modified row sizes. This hook is\n * fired when {@link Options#manualRowResize} option is enabled.\n *\n * @event Hooks#afterRowResize\n * @param {Number} currentRow Visual index of the resized row.\n * @param {Number} newSize Calculated new row height.\n * @param {Boolean} isDoubleClick Flag that determines whether there was a double-click.\n */\n'afterRowResize',\n\n/**\n * Fired after getting the column header renderers.\n *\n * @event Hooks#afterGetColumnHeaderRenderers\n * @param {Function[]} renderers An array of the column header renderers.\n */\n'afterGetColumnHeaderRenderers',\n\n/**\n * Fired after getting the row header renderers.\n *\n * @event Hooks#afterGetRowHeaderRenderers\n * @param {Function[]} renderers An array of the row header renderers.\n */\n'afterGetRowHeaderRenderers',\n\n/**\n * Fired before applying stretched column width to column.\n *\n * @event Hooks#beforeStretchingColumnWidth\n * @param {Number} stretchedWidth Calculated width.\n * @param {Number} column Visual column index.\n * @returns {Number} Returns new width which will be applied to the column element.\n */\n'beforeStretchingColumnWidth',\n\n/**\n * Fired by {@link Filters} plugin before applying [filtering]{@link http://docs.handsontable.com/pro/demo-filtering.html}. This hook is fired when\n * {@link Options#filters} option is enabled.\n *\n * @pro\n * @event Hooks#beforeFilter\n * @param {Object[]} conditionsStack An array of objects with added formulas.\n * ```js\n * // Example format of the conditionsStack argument:\n * [\n * {\n * column: 2,\n * conditions: [\n * {name: 'begins_with', args: [['S']]}\n * ],\n * operation: 'conjunction'\n * },\n * {\n * column: 4,\n * conditions: [\n * {name: 'not_empty', args: []}\n * ],\n * operation: 'conjunction'\n * },\n * ]\n * ```\n * @returns {Boolean} If hook returns `false` value then filtering won't be applied on the UI side (server-side filtering).\n */\n'beforeFilter',\n\n/**\n * Fired by {@link Filters} plugin after applying [filtering]{@link http://docs.handsontable.com/pro/demo-filtering.html}. This hook is fired when\n * {@link Options#filters} option is enabled.\n *\n * @pro\n * @event Hooks#afterFilter\n * @param {Object[]} conditionsStack An array of objects with added conditions.\n * ```js\n * // Example format of the conditionsStack argument:\n * [\n * {\n * column: 2,\n * conditions: [\n * {name: 'begins_with', args: [['S']]}\n * ],\n * operation: 'conjunction'\n * },\n * {\n * column: 4,\n * conditions: [\n * {name: 'not_empty', args: []}\n * ],\n * operation: 'conjunction'\n * },\n * ]\n * ```\n */\n'afterFilter',\n\n/**\n * Fired while retrieving the column header height.\n *\n * @event Hooks#modifyColumnHeaderHeight\n */\n'modifyColumnHeaderHeight',\n\n/**\n * Fired by {@link UndoRedo} plugin before the undo action. Contains information about the action that is being undone.\n * This hook is fired when {@link Options#undo} option is enabled.\n *\n * @event Hooks#beforeUndo\n * @param {Object} action The action object. Contains information about the action being undone. The `actionType`\n * property of the object specifies the type of the action in a String format. (e.g. `'remove_row'`).\n */\n'beforeUndo',\n\n/**\n * Fired by {@link UndoRedo} plugin after the undo action. Contains information about the action that is being undone.\n * This hook is fired when {@link Options#undo} option is enabled.\n *\n * @event Hooks#afterUndo\n * @param {Object} action The action object. Contains information about the action being undone. The `actionType`\n * property of the object specifies the type of the action in a String format. (e.g. `'remove_row'`).\n */\n'afterUndo',\n\n/**\n * Fired by {@link UndoRedo} plugin before the redo action. Contains information about the action that is being redone.\n * This hook is fired when {@link Options#undo} option is enabled.\n *\n * @event Hooks#beforeRedo\n * @param {Object} action The action object. Contains information about the action being redone. The `actionType`\n * property of the object specifies the type of the action in a String format (e.g. `'remove_row'`).\n */\n'beforeRedo',\n\n/**\n * Fired by {@link UndoRedo} plugin after the redo action. Contains information about the action that is being redone.\n * This hook is fired when {@link Options#undo} option is enabled.\n *\n * @event Hooks#afterRedo\n * @param {Object} action The action object. Contains information about the action being redone. The `actionType`\n * property of the object specifies the type of the action in a String format (e.g. `'remove_row'`).\n */\n'afterRedo',\n\n/**\n * Fired while retrieving the row header width.\n *\n * @event Hooks#modifyRowHeaderWidth\n * @param {Number} rowHeaderWidth Row header width.\n */\n'modifyRowHeaderWidth',\n\n/**\n * Fired from the `populateFromArray` method during the `autofill` process. Fired for each \"autofilled\" cell individually.\n *\n * @event Hooks#beforeAutofillInsidePopulate\n * @param {Object} index Object containing `row` and `col` properties, defining the number of rows/columns from the initial cell of the autofill.\n * @param {String} direction Declares the direction of the autofill. Possible values: `up`, `down`, `left`, `right`.\n * @param {Array[]} input Contains an array of rows with data being used in the autofill.\n * @param {Array} deltas The deltas array passed to the `populateFromArray` method.\n */\n'beforeAutofillInsidePopulate',\n\n/**\n * Fired when the start of the selection is being modified (e.g. moving the selection with the arrow keys).\n *\n * @event Hooks#modifyTransformStart\n * @param {CellCoords} delta Cell coords object declaring the delta of the new selection relative to the previous one.\n */\n'modifyTransformStart',\n\n/**\n * Fired when the end of the selection is being modified (e.g. moving the selection with the arrow keys).\n *\n * @event Hooks#modifyTransformEnd\n * @param {CellCoords} delta Cell coords object declaring the delta of the new selection relative to the previous one.\n */\n'modifyTransformEnd',\n\n/**\n * Fired after the start of the selection is being modified (e.g. moving the selection with the arrow keys).\n *\n * @event Hooks#afterModifyTransformStart\n * @param {CellCoords} coords Coords of the freshly selected cell.\n * @param {Number} rowTransformDir `-1` if trying to select a cell with a negative row index. `0` otherwise.\n * @param {Number} colTransformDir `-1` if trying to select a cell with a negative column index. `0` otherwise.\n */\n'afterModifyTransformStart',\n\n/**\n * Fired after the end of the selection is being modified (e.g. moving the selection with the arrow keys).\n *\n * @event Hooks#afterModifyTransformEnd\n * @param {CellCoords} coords Visual coords of the freshly selected cell.\n * @param {Number} rowTransformDir `-1` if trying to select a cell with a negative row index. `0` otherwise.\n * @param {Number} colTransformDir `-1` if trying to select a cell with a negative column index. `0` otherwise.\n */\n'afterModifyTransformEnd',\n\n/**\n * Fired inside the `viewportRowCalculatorOverride` method. Allows modifying the row calculator parameters.\n *\n * @event Hooks#afterViewportRowCalculatorOverride\n * @param {Object} calc The row calculator.\n */\n'afterViewportRowCalculatorOverride',\n\n/**\n * Fired inside the `viewportColumnCalculatorOverride` method. Allows modifying the row calculator parameters.\n *\n * @event Hooks#afterViewportColumnCalculatorOverride\n * @param {Object} calc The row calculator.\n */\n'afterViewportColumnCalculatorOverride',\n\n/**\n * Fired after initializing all the plugins.\n *\n * @event Hooks#afterPluginsInitialized\n */\n'afterPluginsInitialized',\n\n/**\n * Used to skip the length cache calculation for a defined period of time.\n *\n * @event Hooks#skipLengthCache\n * @param {Number} delay The delay in milliseconds.\n */\n'skipLengthCache',\n\n/**\n * Fired by {@link TrimRows} plugin after trimming rows. This hook is fired when {@link Options#trimRows} option is enabled.\n *\n * @pro\n * @event Hooks#afterTrimRow\n * @param {Number[]} rows Physical indexes of trimmed rows.\n */\n'afterTrimRow',\n\n/**\n * Fired by {@link TrimRows} plugin after untrimming rows. This hook is fired when {@link Options#trimRows} option is enabled.\n *\n * @pro\n * @event Hooks#afterUntrimRow\n * @param {Number[]} rows Physical indexes of untrimmed rows.\n */\n'afterUntrimRow',\n\n/**\n * Fired by {@link DropdownMenu} plugin before opening the dropdown menu. This hook is fired when {@link Options#dropdownMenu}\n * option is enabled.\n *\n * @pro\n * @event Hooks#beforeDropdownMenuShow\n * @param {DropdownMenu} dropdownMenu The DropdownMenu instance.\n */\n'beforeDropdownMenuShow',\n\n/**\n * Fired by {@link DropdownMenu} plugin after opening the Dropdown Menu. This hook is fired when {@link Options#dropdownMenu}\n * option is enabled.\n *\n * @pro\n * @event Hooks#afterDropdownMenuShow\n * @param {DropdownMenu} dropdownMenu The DropdownMenu instance.\n */\n'afterDropdownMenuShow',\n\n/**\n * Fired by {@link DropdownMenu} plugin after hiding the Dropdown Menu. This hook is fired when {@link Options#dropdownMenu}\n * option is enabled.\n *\n * @pro\n * @event Hooks#afterDropdownMenuHide\n * @param {DropdownMenu} instance The DropdownMenu instance.\n */\n'afterDropdownMenuHide',\n\n/**\n * Fired by {@link HiddenRows} plugin to check whether the provided row index is hidden. This hook is fired when\n * {@link Options#hiddenRows} option is enabled.\n *\n * @pro\n * @event Hooks#hiddenRow\n * @param {Number} row The visual row index in question.\n */\n'hiddenRow',\n\n/**\n * Fired by {@link HiddenColumns} plugin to check whether the provided column index is hidden. This hook is fired when\n * {@link Options#hiddenColumns} option is enabled.\n *\n * @pro\n * @event Hooks#hiddenColumn\n * @param {Number} column The visual column index in question.\n */\n'hiddenColumn',\n\n/**\n * Fired by {@link NestedRows} plugin before adding a children to the NestedRows structure. This hook is fired when\n * {@link Options#nestedRows} option is enabled.\n *\n * @pro\n * @event Hooks#beforeAddChild\n * @param {Object} parent The parent object.\n * @param {Object|undefined} element The element added as a child. If `undefined`, a blank child was added.\n * @param {Number|undefined} index The index within the parent where the new child was added. If `undefined`, the element was added as the last child.\n */\n'beforeAddChild',\n\n/**\n * Fired by {@link NestedRows} plugin after adding a children to the NestedRows structure. This hook is fired when\n * {@link Options#nestedRows} option is enabled.\n *\n * @pro\n * @event Hooks#afterAddChild\n * @param {Object} parent The parent object.\n * @param {Object|undefined} element The element added as a child. If `undefined`, a blank child was added.\n * @param {Number|undefined} index The index within the parent where the new child was added. If `undefined`, the element was added as the last child.\n */\n'afterAddChild',\n\n/**\n * Fired by {@link NestedRows} plugin before detaching a child from its parent. This hook is fired when\n * {@link Options#nestedRows} option is enabled.\n *\n * @pro\n * @event Hooks#beforeDetachChild\n * @param {Object} parent An object representing the parent from which the element is to be detached.\n * @param {Object} element The detached element.\n */\n'beforeDetachChild',\n\n/**\n * Fired by {@link NestedRows} plugin after detaching a child from its parent. This hook is fired when\n * {@link Options#nestedRows} option is enabled.\n *\n * @pro\n * @event Hooks#afterDetachChild\n * @param {Object} parent An object representing the parent from which the element was detached.\n * @param {Object} element The detached element.\n */\n'afterDetachChild',\n\n/**\n * Fired after the editor is opened and rendered.\n *\n * @event Hooks#afterBeginEditing\n * @param {Number} row Visual row index of the edited cell.\n * @param {Number} column Visual column index of the edited cell.\n */\n'afterBeginEditing',\n\n/**\n * Fired by {@link MergeCells} plugin before cell merging. This hook is fired when {@link Options#mergeCells}\n * option is enabled.\n *\n * @event Hooks#beforeMergeCells\n * @param {CellRange} cellRange Selection cell range.\n * @param {Boolean} [auto=false] `true` if called automatically by the plugin.\n */\n'beforeMergeCells',\n\n/**\n * Fired by {@link MergeCells} plugin after cell merging. This hook is fired when {@link Options#mergeCells}\n * option is enabled.\n *\n * @event Hooks#afterMergeCells\n * @param {CellRange} cellRange Selection cell range.\n * @param {Object} mergeParent The parent collection of the provided cell range.\n * @param {Boolean} [auto=false] `true` if called automatically by the plugin.\n */\n'afterMergeCells',\n\n/**\n * Fired by {@link MergeCells} plugin before unmerging the cells. This hook is fired when {@link Options#mergeCells}\n * option is enabled.\n *\n * @event Hooks#beforeUnmergeCells\n * @param {CellRange} cellRange Selection cell range.\n * @param {Boolean} [auto=false] `true` if called automatically by the plugin.\n */\n'beforeUnmergeCells',\n\n/**\n * Fired by {@link MergeCells} plugin after unmerging the cells. This hook is fired when {@link Options#mergeCells}\n * option is enabled.\n *\n * @event Hooks#afterUnmergeCells\n * @param {CellRange} cellRange Selection cell range.\n * @param {Boolean} [auto=false] `true` if called automatically by the plugin.\n */\n'afterUnmergeCells',\n\n/**\n * Fired after the table was switched into listening mode. This allows Handsontable to capture keyboard events and\n * respond in the right way.\n *\n * @event Hooks#afterListen\n */\n'afterListen',\n\n/**\n * Fired after the table was switched off from the listening mode. This makes the Handsontable inert for any\n * keyboard events.\n *\n * @event Hooks#afterUnlisten\n */\n'afterUnlisten'];\n\nvar Hooks = function () {\n _createClass(Hooks, null, [{\n key: 'getSingleton',\n value: function getSingleton() {\n return globalSingleton;\n }\n\n /**\n *\n */\n\n }]);\n\n function Hooks() {\n _classCallCheck(this, Hooks);\n\n this.globalBucket = this.createEmptyBucket();\n }\n\n /**\n * Returns a new object with empty handlers related to every registered hook name.\n *\n * @returns {Object} The empty bucket object.\n *\n * @example\n * ```js\n * Handsontable.hooks.createEmptyBucket();\n * // Results:\n * {\n * ...\n * afterCreateCol: [],\n * afterCreateRow: [],\n * beforeInit: [],\n * ...\n * }\n * ```\n */\n\n\n _createClass(Hooks, [{\n key: 'createEmptyBucket',\n value: function createEmptyBucket() {\n var bucket = Object.create(null);\n\n // eslint-disable-next-line no-return-assign\n (0, _array.arrayEach)(REGISTERED_HOOKS, function (hook) {\n return bucket[hook] = [];\n });\n\n return bucket;\n }\n\n /**\n * Get hook bucket based on the context of the object or if argument is `undefined`, get the global hook bucket.\n *\n * @param {Object} [context=null] A Handsontable instance.\n * @returns {Object} Returns a global or Handsontable instance bucket.\n */\n\n }, {\n key: 'getBucket',\n value: function getBucket() {\n var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (context) {\n if (!context.pluginHookBucket) {\n context.pluginHookBucket = this.createEmptyBucket();\n }\n\n return context.pluginHookBucket;\n }\n\n return this.globalBucket;\n }\n\n /**\n * Adds a listener (globally or locally) to a specified hook name.\n * If the `context` parameter is provided, the hook will be added only to the instance it references.\n * Otherwise, the callback will be used everytime the hook fires on any Handsontable instance.\n * You can provide an array of callback functions as the `callback` argument, this way they will all be fired\n * once the hook is triggered.\n *\n * @see Core#addHook\n * @param {String} key Hook name.\n * @param {Function|Array} callback Callback function or an array of functions.\n * @param {Object} [context=null] The context for the hook callback to be added - a Handsontable instance or leave empty.\n * @returns {Hooks} Instance of Hooks.\n *\n * @example\n * ```js\n * // single callback, added locally\n * Handsontable.hooks.add('beforeInit', myCallback, hotInstance);\n *\n * // single callback, added globally\n * Handsontable.hooks.add('beforeInit', myCallback);\n *\n * // multiple callbacks, added locally\n * Handsontable.hooks.add('beforeInit', [myCallback, anotherCallback], hotInstance);\n *\n * // multiple callbacks, added globally\n * Handsontable.hooks.add('beforeInit', [myCallback, anotherCallback]);\n * ```\n */\n\n }, {\n key: 'add',\n value: function add(key, callback) {\n var _this = this;\n\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n if (Array.isArray(callback)) {\n (0, _array.arrayEach)(callback, function (c) {\n return _this.add(key, c, context);\n });\n } else {\n var bucket = this.getBucket(context);\n\n if (typeof bucket[key] === 'undefined') {\n this.register(key);\n bucket[key] = [];\n }\n callback.skip = false;\n\n if (bucket[key].indexOf(callback) === -1) {\n // only add a hook if it has not already been added (adding the same hook twice is now silently ignored)\n var foundInitialHook = false;\n\n if (callback.initialHook) {\n (0, _array.arrayEach)(bucket[key], function (cb, i) {\n if (cb.initialHook) {\n bucket[key][i] = callback;\n foundInitialHook = true;\n\n return false;\n }\n });\n }\n\n if (!foundInitialHook) {\n bucket[key].push(callback);\n }\n }\n }\n\n return this;\n }\n\n /**\n * Adds a listener to a specified hook. After the hook runs this listener will be automatically removed from the bucket.\n *\n * @see Core#addHookOnce\n * @param {String} key Hook/Event name.\n * @param {Function|Array} callback Callback function.\n * @param {Object} [context=null] A Handsontable instance.\n *\n * @example\n * ```js\n * Handsontable.hooks.once('beforeInit', myCallback, hotInstance);\n * ```\n */\n\n }, {\n key: 'once',\n value: function once(key, callback) {\n var _this2 = this;\n\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n if (Array.isArray(callback)) {\n (0, _array.arrayEach)(callback, function (c) {\n return _this2.once(key, c, context);\n });\n } else {\n callback.runOnce = true;\n this.add(key, callback, context);\n }\n }\n\n /**\n * Removes a listener from a hook with a given name. If the `context` argument is provided, it removes a listener from a local hook assigned to the given Handsontable instance.\n *\n * @see Core#removeHook\n * @param {String} key Hook/Event name.\n * @param {Function} callback Callback function (needs the be the function that was previously added to the hook).\n * @param {Object} [context=null] Handsontable instance.\n * @return {Boolean} Returns `true` if hook was removed, `false` otherwise.\n *\n * @example\n * ```js\n * Handsontable.hooks.remove('beforeInit', myCallback);\n * ```\n */\n\n }, {\n key: 'remove',\n value: function remove(key, callback) {\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n var bucket = this.getBucket(context);\n\n if (typeof bucket[key] !== 'undefined') {\n if (bucket[key].indexOf(callback) >= 0) {\n callback.skip = true;\n\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Checks whether there are any registered listeners for the provided hook name.\n * If the `context` parameter is provided, it only checks for listeners assigned to the given Handsontable instance.\n *\n * @param {String} key Hook name.\n * @param {Object} [context=null] A Handsontable instance.\n * @returns {Boolean} `true` for success, `false` otherwise.\n */\n\n }, {\n key: 'has',\n value: function has(key) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n var bucket = this.getBucket(context);\n\n return !!(bucket[key] !== void 0 && bucket[key].length);\n }\n\n /**\n * Runs all local and global callbacks assigned to the hook identified by the `key` parameter.\n * It returns either a return value from the last called callback or the first parameter (`p1`) passed to the `run` function.\n *\n * @see Core#runHooks\n * @param {Object} context Handsontable instance.\n * @param {String} key Hook/Event name.\n * @param {*} [p1] Parameter to be passed as an argument to the callback function.\n * @param {*} [p2] Parameter to be passed as an argument to the callback function.\n * @param {*} [p3] Parameter to be passed as an argument to the callback function.\n * @param {*} [p4] Parameter to be passed as an argument to the callback function.\n * @param {*} [p5] Parameter to be passed as an argument to the callback function.\n * @param {*} [p6] Parameter to be passed as an argument to the callback function.\n * @returns {*} Either a return value from the last called callback or `p1`.\n *\n * @example\n * ```js\n * Handsontable.hooks.run(hot, 'beforeInit');\n * ```\n */\n\n }, {\n key: 'run',\n value: function run(context, key, p1, p2, p3, p4, p5, p6) {\n {\n var globalHandlers = this.globalBucket[key];\n var index = -1;\n var length = globalHandlers ? globalHandlers.length : 0;\n\n if (length) {\n // Do not optimise this loop with arrayEach or arrow function! If you do You'll decrease perf because of GC.\n while (++index < length) {\n if (!globalHandlers[index] || globalHandlers[index].skip) {\n /* eslint-disable no-continue */\n continue;\n }\n // performance considerations - http://jsperf.com/call-vs-apply-for-a-plugin-architecture\n var res = globalHandlers[index].call(context, p1, p2, p3, p4, p5, p6);\n\n if (res !== void 0) {\n p1 = res;\n }\n if (globalHandlers[index] && globalHandlers[index].runOnce) {\n this.remove(key, globalHandlers[index]);\n }\n }\n }\n }\n {\n var localHandlers = this.getBucket(context)[key];\n var _index = -1;\n var _length = localHandlers ? localHandlers.length : 0;\n\n if (_length) {\n // Do not optimise this loop with arrayEach or arrow function! If you do You'll decrease perf because of GC.\n while (++_index < _length) {\n if (!localHandlers[_index] || localHandlers[_index].skip) {\n /* eslint-disable no-continue */\n continue;\n }\n // performance considerations - http://jsperf.com/call-vs-apply-for-a-plugin-architecture\n var _res = localHandlers[_index].call(context, p1, p2, p3, p4, p5, p6);\n\n if (_res !== void 0) {\n p1 = _res;\n }\n if (localHandlers[_index] && localHandlers[_index].runOnce) {\n this.remove(key, localHandlers[_index], context);\n }\n }\n }\n }\n\n return p1;\n }\n\n /**\n * Destroy all listeners connected to the context. If no context is provided, the global listeners will be destroyed.\n *\n * @param {Object} [context=null] A Handsontable instance.\n * @example\n * ```js\n * // destroy the global listeners\n * Handsontable.hooks.destroy();\n *\n * // destroy the local listeners\n * Handsontable.hooks.destroy(hotInstance);\n * ```\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n // eslint-disable-next-line no-return-assign\n (0, _object.objectEach)(this.getBucket(context), function (value, key, bucket) {\n return bucket[key].length = 0;\n });\n }\n\n /**\n * Registers a hook name (adds it to the list of the known hook names). Used by plugins.\n * It is not necessary to call register, but if you use it, your plugin hook will be used returned by\n * the `getRegistered` method. (which itself is used in the demo http://docs.handsontable.com/tutorial-callbacks.html).\n *\n * @param key {String} The hook name.\n *\n * @example\n * ```js\n * Handsontable.hooks.register('myHook');\n * ```\n */\n\n }, {\n key: 'register',\n value: function register(key) {\n if (!this.isRegistered(key)) {\n REGISTERED_HOOKS.push(key);\n }\n }\n\n /**\n * Deregisters a hook name (removes it from the list of known hook names).\n *\n * @param key {String} Hook name.\n *\n * @example\n * ```js\n * Handsontable.hooks.deregister('myHook');\n * ```\n */\n\n }, {\n key: 'deregister',\n value: function deregister(key) {\n if (this.isRegistered(key)) {\n REGISTERED_HOOKS.splice(REGISTERED_HOOKS.indexOf(key), 1);\n }\n }\n\n /**\n * Returns a boolean depending on if a hook by such name has been registered.\n *\n * @param key {String} Hook name.\n * @returns {Boolean} `true` for success, `false` otherwise.\n *\n * @example\n * ```js\n * Handsontable.hooks.isRegistered('beforeInit');\n *\n * // Results:\n * true\n * ```\n */\n\n }, {\n key: 'isRegistered',\n value: function isRegistered(key) {\n return REGISTERED_HOOKS.indexOf(key) >= 0;\n }\n\n /**\n * Returns an array of registered hooks.\n *\n * @returns {Array} An array of registered hooks.\n *\n * @example\n * ```js\n * Handsontable.hooks.getRegistered();\n *\n * // Results:\n * [\n * ...\n * 'beforeInit',\n * 'beforeRender',\n * 'beforeSetRangeEnd',\n * 'beforeDrawBorders',\n * 'beforeChange',\n * ...\n * ]\n * ```\n */\n\n }, {\n key: 'getRegistered',\n value: function getRegistered() {\n return REGISTERED_HOOKS;\n }\n }]);\n\n return Hooks;\n}();\n\nvar globalSingleton = new Hooks();\n\nexports.default = Hooks;\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getRegisteredEditors = exports.getRegisteredEditorNames = exports.hasEditor = exports.getEditorInstance = exports.getEditor = exports.registerEditor = undefined;\nexports.RegisteredEditor = RegisteredEditor;\nexports._getEditorInstance = _getEditorInstance;\n\nvar _staticRegister2 = __webpack_require__(38);\n\nvar _staticRegister3 = _interopRequireDefault(_staticRegister2);\n\nvar _pluginHooks = __webpack_require__(16);\n\nvar _pluginHooks2 = _interopRequireDefault(_pluginHooks);\n\nvar _baseEditor = __webpack_require__(55);\n\nvar _baseEditor2 = _interopRequireDefault(_baseEditor);\n\nvar _autocompleteEditor = __webpack_require__(190);\n\nvar _autocompleteEditor2 = _interopRequireDefault(_autocompleteEditor);\n\nvar _checkboxEditor = __webpack_require__(235);\n\nvar _checkboxEditor2 = _interopRequireDefault(_checkboxEditor);\n\nvar _dateEditor = __webpack_require__(236);\n\nvar _dateEditor2 = _interopRequireDefault(_dateEditor);\n\nvar _dropdownEditor = __webpack_require__(239);\n\nvar _dropdownEditor2 = _interopRequireDefault(_dropdownEditor);\n\nvar _handsontableEditor = __webpack_require__(191);\n\nvar _handsontableEditor2 = _interopRequireDefault(_handsontableEditor);\n\nvar _numericEditor = __webpack_require__(240);\n\nvar _numericEditor2 = _interopRequireDefault(_numericEditor);\n\nvar _passwordEditor = __webpack_require__(241);\n\nvar _passwordEditor2 = _interopRequireDefault(_passwordEditor);\n\nvar _selectEditor = __webpack_require__(242);\n\nvar _selectEditor2 = _interopRequireDefault(_selectEditor);\n\nvar _textEditor = __webpack_require__(59);\n\nvar _textEditor2 = _interopRequireDefault(_textEditor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Utility to register editors and common namespace for keeping reference to all editor classes\n */\nvar registeredEditorClasses = new WeakMap();\n\nvar _staticRegister = (0, _staticRegister3.default)('editors'),\n register = _staticRegister.register,\n getItem = _staticRegister.getItem,\n hasItem = _staticRegister.hasItem,\n getNames = _staticRegister.getNames,\n getValues = _staticRegister.getValues;\n\n_register('base', _baseEditor2.default);\n_register('autocomplete', _autocompleteEditor2.default);\n_register('checkbox', _checkboxEditor2.default);\n_register('date', _dateEditor2.default);\n_register('dropdown', _dropdownEditor2.default);\n_register('handsontable', _handsontableEditor2.default);\n_register('numeric', _numericEditor2.default);\n_register('password', _passwordEditor2.default);\n_register('select', _selectEditor2.default);\n_register('text', _textEditor2.default);\n\nfunction RegisteredEditor(editorClass) {\n var instances = {};\n var Clazz = editorClass;\n\n this.getConstructor = function () {\n return editorClass;\n };\n\n this.getInstance = function (hotInstance) {\n if (!(hotInstance.guid in instances)) {\n instances[hotInstance.guid] = new Clazz(hotInstance);\n }\n\n return instances[hotInstance.guid];\n };\n\n _pluginHooks2.default.getSingleton().add('afterDestroy', function () {\n instances[this.guid] = null;\n });\n}\n\n/**\n * Returns instance (singleton) of editor class.\n *\n * @param {String} name Name of an editor under which it has been stored.\n * @param {Object} hotInstance Instance of Handsontable.\n * @returns {Function} Returns instance of editor.\n */\nfunction _getEditorInstance(name, hotInstance) {\n var editor = void 0;\n\n if (typeof name === 'function') {\n if (!registeredEditorClasses.get(name)) {\n _register(null, name);\n }\n editor = registeredEditorClasses.get(name);\n } else if (typeof name === 'string') {\n editor = getItem(name);\n } else {\n throw Error('Only strings and functions can be passed as \"editor\" parameter');\n }\n\n if (!editor) {\n throw Error('No editor registered under name \"' + name + '\"');\n }\n\n return editor.getInstance(hotInstance);\n}\n\n/**\n * Retrieve editor class.\n *\n * @param {String} name Editor identification.\n * @returns {Function} Returns editor class.\n */\nfunction _getItem(name) {\n if (!hasItem(name)) {\n throw Error('No registered editor found under \"' + name + '\" name');\n }\n\n return getItem(name).getConstructor();\n}\n\n/**\n * Register editor class under specified name.\n *\n * @param {String} name Editor identification.\n * @param {Function} editorClass Editor class.\n */\nfunction _register(name, editorClass) {\n var editorWrapper = new RegisteredEditor(editorClass);\n\n if (typeof name === 'string') {\n register(name, editorWrapper);\n }\n registeredEditorClasses.set(editorClass, editorWrapper);\n}\n\nexports.registerEditor = _register;\nexports.getEditor = _getItem;\nexports.getEditorInstance = _getEditorInstance;\nexports.hasEditor = hasItem;\nexports.getRegisteredEditorNames = getNames;\nexports.getRegisteredEditors = getValues;\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(9);\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.normalizeSelection = normalizeSelection;\nexports.isSeparator = isSeparator;\nexports.hasSubMenu = hasSubMenu;\nexports.isDisabled = isDisabled;\nexports.isSelectionDisabled = isSelectionDisabled;\nexports.getValidSelection = getValidSelection;\nexports.prepareVerticalAlignClass = prepareVerticalAlignClass;\nexports.prepareHorizontalAlignClass = prepareHorizontalAlignClass;\nexports.getAlignmentClasses = getAlignmentClasses;\nexports.align = align;\nexports.checkSelectionConsistency = checkSelectionConsistency;\nexports.markLabelAsSelected = markLabelAsSelected;\nexports.isItemHidden = isItemHidden;\nexports.filterSeparators = filterSeparators;\n\nvar _array = __webpack_require__(2);\n\nvar _element = __webpack_require__(0);\n\nvar _separator = __webpack_require__(95);\n\nfunction normalizeSelection(selRanges) {\n return (0, _array.arrayMap)(selRanges, function (range) {\n return {\n start: range.getTopLeftCorner(),\n end: range.getBottomRightCorner()\n };\n });\n}\n\nfunction isSeparator(cell) {\n return (0, _element.hasClass)(cell, 'htSeparator');\n}\n\nfunction hasSubMenu(cell) {\n return (0, _element.hasClass)(cell, 'htSubmenu');\n}\n\nfunction isDisabled(cell) {\n return (0, _element.hasClass)(cell, 'htDisabled');\n}\n\nfunction isSelectionDisabled(cell) {\n return (0, _element.hasClass)(cell, 'htSelectionDisabled');\n}\n\nfunction getValidSelection(hot) {\n var selected = hot.getSelected();\n\n if (!selected) {\n return null;\n }\n if (selected[0] < 0) {\n return null;\n }\n\n return selected;\n}\n\nfunction prepareVerticalAlignClass(className, alignment) {\n if (className.indexOf(alignment) !== -1) {\n return className;\n }\n className = className.replace('htTop', '').replace('htMiddle', '').replace('htBottom', '').replace(' ', '');\n\n className += ' ' + alignment;\n\n return className;\n}\n\nfunction prepareHorizontalAlignClass(className, alignment) {\n if (className.indexOf(alignment) !== -1) {\n return className;\n }\n className = className.replace('htLeft', '').replace('htCenter', '').replace('htRight', '').replace('htJustify', '').replace(' ', '');\n\n className += ' ' + alignment;\n\n return className;\n}\n\nfunction getAlignmentClasses(ranges, callback) {\n var classes = {};\n\n (0, _array.arrayEach)(ranges, function (_ref) {\n var from = _ref.from,\n to = _ref.to;\n\n for (var row = from.row; row <= to.row; row++) {\n for (var col = from.col; col <= to.col; col++) {\n if (!classes[row]) {\n classes[row] = [];\n }\n classes[row][col] = callback(row, col);\n }\n }\n });\n\n return classes;\n}\n\nfunction align(ranges, type, alignment, cellDescriptor, propertySetter) {\n (0, _array.arrayEach)(ranges, function (_ref2) {\n var from = _ref2.from,\n to = _ref2.to;\n\n if (from.row === to.row && from.col === to.col) {\n applyAlignClassName(from.row, from.col, type, alignment, cellDescriptor, propertySetter);\n } else {\n for (var row = from.row; row <= to.row; row++) {\n for (var col = from.col; col <= to.col; col++) {\n applyAlignClassName(row, col, type, alignment, cellDescriptor, propertySetter);\n }\n }\n }\n });\n}\n\nfunction applyAlignClassName(row, col, type, alignment, cellDescriptor, propertySetter) {\n var cellMeta = cellDescriptor(row, col);\n var className = alignment;\n\n if (cellMeta.className) {\n if (type === 'vertical') {\n className = prepareVerticalAlignClass(cellMeta.className, alignment);\n } else {\n className = prepareHorizontalAlignClass(cellMeta.className, alignment);\n }\n }\n\n propertySetter(row, col, 'className', className);\n}\n\nfunction checkSelectionConsistency(ranges, comparator) {\n var result = false;\n\n if (Array.isArray(ranges)) {\n (0, _array.arrayEach)(ranges, function (range) {\n range.forAll(function (row, col) {\n if (comparator(row, col)) {\n result = true;\n\n return false;\n }\n });\n\n return result;\n });\n }\n\n return result;\n}\n\nfunction markLabelAsSelected(label) {\n // workaround for https://github.com/handsontable/handsontable/issues/1946\n return '<span class=\"selected\">' + String.fromCharCode(10003) + '</span>' + label;\n}\n\nfunction isItemHidden(item, instance) {\n return !item.hidden || !(typeof item.hidden === 'function' && item.hidden.call(instance));\n}\n\nfunction shiftSeparators(items, separator) {\n var result = items.slice(0);\n\n for (var i = 0; i < result.length;) {\n if (result[i].name === separator) {\n result.shift();\n } else {\n break;\n }\n }\n return result;\n}\n\nfunction popSeparators(items, separator) {\n var result = items.slice(0);\n\n result.reverse();\n result = shiftSeparators(result, separator);\n result.reverse();\n\n return result;\n}\n\nfunction removeDuplicatedSeparators(items) {\n var result = [];\n\n (0, _array.arrayEach)(items, function (value, index) {\n if (index > 0) {\n if (result[result.length - 1].name !== value.name) {\n result.push(value);\n }\n } else {\n result.push(value);\n }\n });\n\n return result;\n}\n\nfunction filterSeparators(items) {\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _separator.KEY;\n\n var result = items.slice(0);\n\n result = shiftSeparators(result, separator);\n result = popSeparators(result, separator);\n result = removeDuplicatedSeparators(result);\n\n return result;\n}\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(18);\nvar IE8_DOM_DEFINE = __webpack_require__(100);\nvar toPrimitive = __webpack_require__(75);\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(22) ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.KEY_CODES = undefined;\nexports.isPrintableChar = isPrintableChar;\nexports.isMetaKey = isMetaKey;\nexports.isCtrlKey = isCtrlKey;\nexports.isCtrlMetaKey = isCtrlMetaKey;\nexports.isKey = isKey;\n\nvar _array = __webpack_require__(2);\n\nvar KEY_CODES = exports.KEY_CODES = {\n MOUSE_LEFT: 1,\n MOUSE_RIGHT: 3,\n MOUSE_MIDDLE: 2,\n BACKSPACE: 8,\n COMMA: 188,\n INSERT: 45,\n DELETE: 46,\n END: 35,\n ENTER: 13,\n ESCAPE: 27,\n CONTROL: 17,\n COMMAND_LEFT: 91,\n COMMAND_RIGHT: 93,\n COMMAND_FIREFOX: 224,\n ALT: 18,\n HOME: 36,\n PAGE_DOWN: 34,\n PAGE_UP: 33,\n PERIOD: 190,\n SPACE: 32,\n SHIFT: 16,\n CAPS_LOCK: 20,\n TAB: 9,\n ARROW_RIGHT: 39,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_DOWN: 40,\n F1: 112,\n F2: 113,\n F3: 114,\n F4: 115,\n F5: 116,\n F6: 117,\n F7: 118,\n F8: 119,\n F9: 120,\n F10: 121,\n F11: 122,\n F12: 123,\n A: 65,\n X: 88,\n C: 67,\n V: 86\n};\n\n/**\n * Returns true if keyCode represents a printable character.\n *\n * @param {Number} keyCode\n * @returns {Boolean}\n */\nfunction isPrintableChar(keyCode) {\n return keyCode === 32 || // space\n keyCode >= 48 && keyCode <= 57 || // 0-9\n keyCode >= 96 && keyCode <= 111 || // numpad\n keyCode >= 186 && keyCode <= 192 || // ;=,-./`\n keyCode >= 219 && keyCode <= 222 || // []{}\\|\"'\n keyCode >= 226 || // special chars (229 for Asian chars)\n keyCode >= 65 && keyCode <= 90; // a-z\n}\n\n/**\n * @param {Number} keyCode\n * @returns {Boolean}\n */\nfunction isMetaKey(keyCode) {\n var metaKeys = [KEY_CODES.ARROW_DOWN, KEY_CODES.ARROW_UP, KEY_CODES.ARROW_LEFT, KEY_CODES.ARROW_RIGHT, KEY_CODES.HOME, KEY_CODES.END, KEY_CODES.DELETE, KEY_CODES.BACKSPACE, KEY_CODES.F1, KEY_CODES.F2, KEY_CODES.F3, KEY_CODES.F4, KEY_CODES.F5, KEY_CODES.F6, KEY_CODES.F7, KEY_CODES.F8, KEY_CODES.F9, KEY_CODES.F10, KEY_CODES.F11, KEY_CODES.F12, KEY_CODES.TAB, KEY_CODES.PAGE_DOWN, KEY_CODES.PAGE_UP, KEY_CODES.ENTER, KEY_CODES.ESCAPE, KEY_CODES.SHIFT, KEY_CODES.CAPS_LOCK, KEY_CODES.ALT];\n\n return metaKeys.indexOf(keyCode) !== -1;\n}\n\n/**\n * Checks if passed key code is ctrl or cmd key. Depends on what OS the code runs it check key code based on\n * different meta key codes.\n *\n * @param {Number} keyCode Key code to check.\n * @returns {Boolean}\n */\nfunction isCtrlKey(keyCode) {\n var keys = [];\n\n if (window.navigator.platform.includes('Mac')) {\n keys.push(KEY_CODES.COMMAND_LEFT, KEY_CODES.COMMAND_RIGHT, KEY_CODES.COMMAND_FIREFOX);\n } else {\n keys.push(KEY_CODES.CONTROL);\n }\n\n return keys.includes(keyCode);\n}\n\n/**\n * Checks if passed key code is ctrl or cmd key. This helper checks if the key code matches to meta keys\n * regardless of the OS on which it is running.\n *\n * @param {Number} keyCode Key code to check.\n * @returns {Boolean}\n */\nfunction isCtrlMetaKey(keyCode) {\n return [KEY_CODES.CONTROL, KEY_CODES.COMMAND_LEFT, KEY_CODES.COMMAND_RIGHT, KEY_CODES.COMMAND_FIREFOX].includes(keyCode);\n}\n\n/**\n * @param {Number} keyCode\n * @param {String} baseCode\n * @returns {Boolean}\n */\nfunction isKey(keyCode, baseCode) {\n var keys = baseCode.split('|');\n var result = false;\n\n (0, _array.arrayEach)(keys, function (key) {\n if (keyCode === KEY_CODES[key]) {\n result = true;\n\n return false;\n }\n });\n\n return result;\n}\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(23)(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(77);\nvar defined = __webpack_require__(36);\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.15 ToLength\nvar toInteger = __webpack_require__(60);\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// most Object methods by ES6 should accept primitives\nvar $export = __webpack_require__(3);\nvar core = __webpack_require__(37);\nvar fails = __webpack_require__(23);\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(15);\nvar hide = __webpack_require__(29);\nvar has = __webpack_require__(27);\nvar SRC = __webpack_require__(50)('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\n__webpack_require__(37).inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(20);\nvar createDesc = __webpack_require__(51);\nmodule.exports = __webpack_require__(22) ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(63);\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(36);\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar META = __webpack_require__(50)('meta');\nvar isObject = __webpack_require__(9);\nvar has = __webpack_require__(27);\nvar setDesc = __webpack_require__(20).f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !__webpack_require__(23)(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.toUpperCaseFirst = toUpperCaseFirst;\nexports.equalsIgnoreCase = equalsIgnoreCase;\nexports.randomString = randomString;\nexports.isPercentValue = isPercentValue;\nexports.substitute = substitute;\nexports.stripTags = stripTags;\n\nvar _mixed = __webpack_require__(11);\n\n/**\n * Convert string to upper case first letter.\n *\n * @param {String} string String to convert.\n * @returns {String}\n */\nfunction toUpperCaseFirst(string) {\n return string[0].toUpperCase() + string.substr(1);\n}\n\n/**\n * Compare strings case insensitively.\n *\n * @param {...String} strings Strings to compare.\n * @returns {Boolean}\n */\nfunction equalsIgnoreCase() {\n var unique = [];\n\n for (var _len = arguments.length, strings = Array(_len), _key = 0; _key < _len; _key++) {\n strings[_key] = arguments[_key];\n }\n\n var length = strings.length;\n\n while (length--) {\n var string = (0, _mixed.stringify)(strings[length]).toLowerCase();\n\n if (unique.indexOf(string) === -1) {\n unique.push(string);\n }\n }\n\n return unique.length === 1;\n}\n\n/**\n * Generates a random hex string. Used as namespace for Handsontable instance events.\n *\n * @return {String} Returns 16-long character random string (eq. `'92b1bfc74ec4'`).\n */\nfunction randomString() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n }\n\n return s4() + s4() + s4() + s4();\n}\n\n/**\n * Checks if value is valid percent.\n *\n * @param {String} value\n * @returns {Boolean}\n */\nfunction isPercentValue(value) {\n return (/^([0-9][0-9]?%$)|(^100%$)/.test(value)\n );\n}\n\n/**\n * Substitute strings placed beetwen square brackets into value defined in `variables` object. String names defined in\n * square brackets must be the same as property name of `variables` object.\n *\n * @param {String} template Template string.\n * @param {Object} variables Object which contains all available values which can be injected into template.\n * @returns {String}\n */\nfunction substitute(template) {\n var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return ('' + template).replace(/(?:\\\\)?\\[([^[\\]]+)]/g, function (match, name) {\n if (match.charAt(0) === '\\\\') {\n return match.substr(1, match.length - 1);\n }\n\n return variables[name] === void 0 ? '' : variables[name];\n });\n}\n\nvar STRIP_TAGS_REGEX = /<\\/?\\w+\\/?>|<\\w+[\\s|/][^>]*>/gi;\n\n/**\n * Strip any HTML tag from the string.\n *\n * @param {String} string String to cut HTML from.\n * @return {String}\n */\nfunction stripTags(string) {\n string += '';\n\n return string.replace(STRIP_TAGS_REGEX, '');\n}\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getRegisteredValidators = exports.getRegisteredValidatorNames = exports.hasValidator = exports.getValidator = exports.registerValidator = undefined;\n\nvar _staticRegister2 = __webpack_require__(38);\n\nvar _staticRegister3 = _interopRequireDefault(_staticRegister2);\n\nvar _autocompleteValidator = __webpack_require__(251);\n\nvar _autocompleteValidator2 = _interopRequireDefault(_autocompleteValidator);\n\nvar _dateValidator = __webpack_require__(252);\n\nvar _dateValidator2 = _interopRequireDefault(_dateValidator);\n\nvar _numericValidator = __webpack_require__(253);\n\nvar _numericValidator2 = _interopRequireDefault(_numericValidator);\n\nvar _timeValidator = __webpack_require__(254);\n\nvar _timeValidator2 = _interopRequireDefault(_timeValidator);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _staticRegister = (0, _staticRegister3.default)('validators'),\n register = _staticRegister.register,\n getItem = _staticRegister.getItem,\n hasItem = _staticRegister.hasItem,\n getNames = _staticRegister.getNames,\n getValues = _staticRegister.getValues;\n\nregister('autocomplete', _autocompleteValidator2.default);\nregister('date', _dateValidator2.default);\nregister('numeric', _numericValidator2.default);\nregister('time', _timeValidator2.default);\n\n/**\n * Retrieve validator function.\n *\n * @param {String} name Validator identification.\n * @returns {Function} Returns validator function.\n */\nfunction _getItem(name) {\n if (typeof name === 'function') {\n return name;\n }\n if (!hasItem(name)) {\n throw Error('No registered validator found under \"' + name + '\" name');\n }\n\n return getItem(name);\n}\n\nexports.registerValidator = register;\nexports.getValidator = _getItem;\nexports.hasValidator = hasItem;\nexports.getRegisteredValidatorNames = getNames;\nexports.getRegisteredValidators = getValues;\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(101);\nvar enumBugKeys = __webpack_require__(80);\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports) {\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = staticRegister;\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar collection = exports.collection = new Map();\n\nfunction staticRegister() {\n var namespace = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'common';\n\n if (!collection.has(namespace)) {\n collection.set(namespace, new Map());\n }\n var subCollection = collection.get(namespace);\n\n /**\n * Register an item to the collection. If the item under the same was exist earlier then this item will be replaced with new one.\n *\n * @param {String} name Identification of the item.\n * @param {*} item Item to save in the collection.\n */\n function register(name, item) {\n subCollection.set(name, item);\n }\n\n /**\n * Retrieve the item from the collection.\n *\n * @param {String} name Identification of the item.\n * @returns {*} Returns item which was saved in the collection.\n */\n function getItem(name) {\n return subCollection.get(name);\n }\n\n /**\n * Check if item under specyfied name is exists.\n *\n * @param {String} name Identification of the item.\n * @returns {Boolean} Returns `true` or `false` depends on if element exists in the collection.\n */\n function hasItem(name) {\n return subCollection.has(name);\n }\n\n /**\n * Retrieve list of names registered from the collection.\n *\n * @returns {Array} Returns an array of strings with all names under which objects are stored.\n */\n function getNames() {\n return [].concat(_toConsumableArray(subCollection.keys()));\n }\n\n /**\n * Retrieve all registered values from the collection.\n *\n * @returns {Array} Returns an array with all values stored in the collection.\n */\n function getValues() {\n return [].concat(_toConsumableArray(subCollection.values()));\n }\n\n return {\n register: register,\n getItem: getItem,\n hasItem: hasItem,\n getNames: getNames,\n getValues: getValues\n };\n}\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.setBrowserMeta = setBrowserMeta;\nexports.isChrome = isChrome;\nexports.isEdge = isEdge;\nexports.isIE = isIE;\nexports.isIE8 = isIE8;\nexports.isIE9 = isIE9;\nexports.isMSBrowser = isMSBrowser;\nexports.isMobileBrowser = isMobileBrowser;\nexports.isSafari = isSafari;\n\nvar _object = __webpack_require__(1);\n\nvar tester = function tester(testerFunc) {\n var result = {\n value: false\n };\n result.test = function (ua, vendor) {\n result.value = testerFunc(ua, vendor);\n };\n\n return result;\n};\n\nvar browsers = {\n chrome: tester(function (ua, vendor) {\n return (/Chrome/.test(ua) && /Google/.test(vendor)\n );\n }),\n edge: tester(function (ua) {\n return (/Edge/.test(ua)\n );\n }),\n ie: tester(function (ua) {\n return (/Trident/.test(ua)\n );\n }),\n ie8: tester(function () {\n return !document.createTextNode('test').textContent;\n }),\n ie9: tester(function () {\n return !!document.documentMode;\n }),\n mobile: tester(function (ua) {\n return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua)\n );\n }),\n safari: tester(function (ua, vendor) {\n return (/Safari/.test(ua) && /Apple Computer/.test(vendor)\n );\n })\n};\n\nfunction setBrowserMeta() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$userAgent = _ref.userAgent,\n userAgent = _ref$userAgent === undefined ? navigator.userAgent : _ref$userAgent,\n _ref$vendor = _ref.vendor,\n vendor = _ref$vendor === undefined ? navigator.vendor : _ref$vendor;\n\n (0, _object.objectEach)(browsers, function (_ref2) {\n var test = _ref2.test;\n return void test(userAgent, vendor);\n });\n}\n\nsetBrowserMeta();\n\nfunction isChrome() {\n return browsers.chrome.value;\n}\n\nfunction isEdge() {\n return browsers.edge.value;\n}\n\nfunction isIE() {\n return browsers.ie.value;\n}\n\nfunction isIE8() {\n return browsers.ie8.value;\n}\n\nfunction isIE9() {\n return browsers.ie9.value;\n}\n\nfunction isMSBrowser() {\n return browsers.ie.value || browsers.edge.value;\n}\n\nfunction isMobileBrowser() {\n return browsers.mobile.value;\n}\n\nfunction isSafari() {\n return browsers.safari.value;\n}\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.requestAnimationFrame = requestAnimationFrame;\nexports.cancelAnimationFrame = cancelAnimationFrame;\nexports.isTouchSupported = isTouchSupported;\nexports.isWebComponentSupportedNatively = isWebComponentSupportedNatively;\nexports.hasCaptionProblem = hasCaptionProblem;\nexports.getComparisonFunction = getComparisonFunction;\n// https://gist.github.com/paulirish/1579671\nvar lastTime = 0;\nvar vendors = ['ms', 'moz', 'webkit', 'o'];\nvar _requestAnimationFrame = window.requestAnimationFrame;\nvar _cancelAnimationFrame = window.cancelAnimationFrame;\n\nfor (var x = 0; x < vendors.length && !_requestAnimationFrame; ++x) {\n _requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];\n _cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];\n}\n\nif (!_requestAnimationFrame) {\n _requestAnimationFrame = function _requestAnimationFrame(callback) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n\n return id;\n };\n}\n\nif (!_cancelAnimationFrame) {\n _cancelAnimationFrame = function _cancelAnimationFrame(id) {\n clearTimeout(id);\n };\n}\n\n/**\n * Polyfill for requestAnimationFrame\n *\n * @param {Function} callback\n * @returns {Number}\n */\nfunction requestAnimationFrame(callback) {\n return _requestAnimationFrame.call(window, callback);\n}\n\n/**\n * Polyfill for cancelAnimationFrame\n *\n * @param {Number} id\n */\nfunction cancelAnimationFrame(id) {\n _cancelAnimationFrame.call(window, id);\n}\n\nfunction isTouchSupported() {\n return 'ontouchstart' in window;\n}\n\n/**\n * Checks if browser is support web components natively\n *\n * @returns {Boolean}\n */\nfunction isWebComponentSupportedNatively() {\n var test = document.createElement('div');\n\n return !!(test.createShadowRoot && test.createShadowRoot.toString().match(/\\[native code\\]/));\n}\n\nvar _hasCaptionProblem = void 0;\n\nfunction detectCaptionProblem() {\n var TABLE = document.createElement('TABLE');\n TABLE.style.borderSpacing = 0;\n TABLE.style.borderWidth = 0;\n TABLE.style.padding = 0;\n var TBODY = document.createElement('TBODY');\n TABLE.appendChild(TBODY);\n TBODY.appendChild(document.createElement('TR'));\n TBODY.firstChild.appendChild(document.createElement('TD'));\n TBODY.firstChild.firstChild.innerHTML = '<tr><td>t<br>t</td></tr>';\n\n var CAPTION = document.createElement('CAPTION');\n CAPTION.innerHTML = 'c<br>c<br>c<br>c';\n CAPTION.style.padding = 0;\n CAPTION.style.margin = 0;\n TABLE.insertBefore(CAPTION, TBODY);\n\n document.body.appendChild(TABLE);\n _hasCaptionProblem = TABLE.offsetHeight < 2 * TABLE.lastChild.offsetHeight; // boolean\n document.body.removeChild(TABLE);\n}\n\nfunction hasCaptionProblem() {\n if (_hasCaptionProblem === void 0) {\n detectCaptionProblem();\n }\n\n return _hasCaptionProblem;\n}\n\nvar comparisonFunction = void 0;\n\n/**\n * Get string comparison function for sorting purposes. It supports multilingual string comparison base on Internationalization API.\n *\n * @param {String} [language]\n * @param {Object} [options]\n * @returns {*}\n */\nfunction getComparisonFunction(language) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (comparisonFunction) {\n return comparisonFunction;\n }\n\n if ((typeof Intl === 'undefined' ? 'undefined' : _typeof(Intl)) === 'object') {\n comparisonFunction = new Intl.Collator(language, options).compare;\n } else if (typeof String.prototype.localeCompare === 'function') {\n comparisonFunction = function comparisonFunction(a, b) {\n return ('' + a).localeCompare(b);\n };\n } else {\n comparisonFunction = function comparisonFunction(a, b) {\n if (a === b) {\n return 0;\n }\n\n return a > b ? -1 : 1;\n };\n }\n\n return comparisonFunction;\n}\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nvar _array = __webpack_require__(2);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _core = __webpack_require__(181);\n\nvar _core2 = _interopRequireDefault(_core);\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\nvar registeredOverlays = {};\n\n/**\n * Creates an overlay over the original Walkontable instance. The overlay renders the clone of the original Walkontable\n * and (optionally) implements behavior needed for native horizontal and vertical scrolling.\n *\n * @class Overlay\n */\n\nvar Overlay = function () {\n _createClass(Overlay, null, [{\n key: 'registerOverlay',\n\n\n /**\n * Register overlay class.\n *\n * @param {String} type Overlay type, one of the CLONE_TYPES value\n * @param {Overlay} overlayClass Overlay class extended from base overlay class {@link Overlay}\n */\n value: function registerOverlay(type, overlayClass) {\n if (Overlay.CLONE_TYPES.indexOf(type) === -1) {\n throw new Error('Unsupported overlay (' + type + ').');\n }\n registeredOverlays[type] = overlayClass;\n }\n\n /**\n * Create new instance of overlay type.\n *\n * @param {String} type Overlay type, one of the CLONE_TYPES value\n * @param {Walkontable} wot Walkontable instance\n */\n\n }, {\n key: 'createOverlay',\n value: function createOverlay(type, wot) {\n return new registeredOverlays[type](wot);\n }\n\n /**\n * Check if specified overlay was registered.\n *\n * @param {String} type Overlay type, one of the CLONE_TYPES value\n * @returns {Boolean}\n */\n\n }, {\n key: 'hasOverlay',\n value: function hasOverlay(type) {\n return registeredOverlays[type] !== void 0;\n }\n\n /**\n * Checks if overlay object (`overlay`) is instance of overlay type (`type`).\n *\n * @param {Overlay} overlay Overlay object\n * @param {String} type Overlay type, one of the CLONE_TYPES value\n * @returns {Boolean}\n */\n\n }, {\n key: 'isOverlayTypeOf',\n value: function isOverlayTypeOf(overlay, type) {\n if (!overlay || !registeredOverlays[type]) {\n return false;\n }\n\n return overlay instanceof registeredOverlays[type];\n }\n\n /**\n * @param {Walkontable} wotInstance\n */\n\n }, {\n key: 'CLONE_TOP',\n\n /**\n * @type {String}\n */\n get: function get() {\n return 'top';\n }\n\n /**\n * @type {String}\n */\n\n }, {\n key: 'CLONE_BOTTOM',\n get: function get() {\n return 'bottom';\n }\n\n /**\n * @type {String}\n */\n\n }, {\n key: 'CLONE_LEFT',\n get: function get() {\n return 'left';\n }\n\n /**\n * @type {String}\n */\n\n }, {\n key: 'CLONE_TOP_LEFT_CORNER',\n get: function get() {\n return 'top_left_corner';\n }\n\n /**\n * @type {String}\n */\n\n }, {\n key: 'CLONE_BOTTOM_LEFT_CORNER',\n get: function get() {\n return 'bottom_left_corner';\n }\n\n /**\n * @type {String}\n */\n\n }, {\n key: 'CLONE_DEBUG',\n get: function get() {\n return 'debug';\n }\n\n /**\n * List of all availables clone types\n *\n * @type {Array}\n */\n\n }, {\n key: 'CLONE_TYPES',\n get: function get() {\n return [Overlay.CLONE_TOP, Overlay.CLONE_BOTTOM, Overlay.CLONE_LEFT, Overlay.CLONE_TOP_LEFT_CORNER, Overlay.CLONE_BOTTOM_LEFT_CORNER, Overlay.CLONE_DEBUG];\n }\n }]);\n\n function Overlay(wotInstance) {\n _classCallCheck(this, Overlay);\n\n (0, _object.defineGetter)(this, 'wot', wotInstance, {\n writable: false\n });\n\n // legacy support, deprecated in the future\n this.instance = this.wot;\n\n this.type = '';\n this.mainTableScrollableElement = null;\n this.TABLE = this.wot.wtTable.TABLE;\n this.hider = this.wot.wtTable.hider;\n this.spreader = this.wot.wtTable.spreader;\n this.holder = this.wot.wtTable.holder;\n this.wtRootElement = this.wot.wtTable.wtRootElement;\n this.trimmingContainer = (0, _element.getTrimmingContainer)(this.hider.parentNode.parentNode);\n this.areElementSizesAdjusted = false;\n this.updateStateOfRendering();\n }\n\n /**\n * Update internal state of object with an information about the need of full rendering of the overlay.\n *\n * @returns {Boolean} Returns `true` if the state has changed since the last check.\n */\n\n\n _createClass(Overlay, [{\n key: 'updateStateOfRendering',\n value: function updateStateOfRendering() {\n var previousState = this.needFullRender;\n\n this.needFullRender = this.shouldBeRendered();\n\n var changed = previousState !== this.needFullRender;\n\n if (changed && !this.needFullRender) {\n this.reset();\n }\n\n return changed;\n }\n\n /**\n * Checks if overlay should be fully rendered\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'shouldBeRendered',\n value: function shouldBeRendered() {\n return true;\n }\n\n /**\n * Update the trimming container.\n */\n\n }, {\n key: 'updateTrimmingContainer',\n value: function updateTrimmingContainer() {\n this.trimmingContainer = (0, _element.getTrimmingContainer)(this.hider.parentNode.parentNode);\n }\n\n /**\n * Update the main scrollable element.\n */\n\n }, {\n key: 'updateMainScrollableElement',\n value: function updateMainScrollableElement() {\n this.mainTableScrollableElement = (0, _element.getScrollableElement)(this.wot.wtTable.TABLE);\n }\n\n /**\n * Make a clone of table for overlay\n *\n * @param {String} direction Can be `Overlay.CLONE_TOP`, `Overlay.CLONE_LEFT`,\n * `Overlay.CLONE_TOP_LEFT_CORNER`, `Overlay.CLONE_DEBUG`\n * @returns {Walkontable}\n */\n\n }, {\n key: 'makeClone',\n value: function makeClone(direction) {\n if (Overlay.CLONE_TYPES.indexOf(direction) === -1) {\n throw new Error('Clone type \"' + direction + '\" is not supported.');\n }\n var clone = document.createElement('DIV');\n var clonedTable = document.createElement('TABLE');\n\n clone.className = 'ht_clone_' + direction + ' handsontable';\n clone.style.position = 'absolute';\n clone.style.top = 0;\n clone.style.left = 0;\n clone.style.overflow = 'hidden';\n\n clonedTable.className = this.wot.wtTable.TABLE.className;\n clone.appendChild(clonedTable);\n\n this.type = direction;\n this.wot.wtTable.wtRootElement.parentNode.appendChild(clone);\n\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (preventOverflow === true || preventOverflow === 'horizontal' && this.type === Overlay.CLONE_TOP || preventOverflow === 'vertical' && this.type === Overlay.CLONE_LEFT) {\n this.mainTableScrollableElement = window;\n } else {\n this.mainTableScrollableElement = (0, _element.getScrollableElement)(this.wot.wtTable.TABLE);\n }\n\n return new _core2.default({\n cloneSource: this.wot,\n cloneOverlay: this,\n table: clonedTable\n });\n }\n\n /**\n * Refresh/Redraw overlay\n *\n * @param {Boolean} [fastDraw=false]\n */\n\n }, {\n key: 'refresh',\n value: function refresh() {\n var fastDraw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n // When hot settings are changed we allow to refresh overlay once before blocking\n var nextCycleRenderFlag = this.shouldBeRendered();\n\n if (this.clone && (this.needFullRender || nextCycleRenderFlag)) {\n this.clone.draw(fastDraw);\n }\n this.needFullRender = nextCycleRenderFlag;\n }\n\n /**\n * Reset overlay styles to initial values.\n */\n\n }, {\n key: 'reset',\n value: function reset() {\n if (!this.clone) {\n return;\n }\n var holder = this.clone.wtTable.holder;\n var hider = this.clone.wtTable.hider;\n var holderStyle = holder.style;\n var hidderStyle = hider.style;\n var rootStyle = holder.parentNode.style;\n\n (0, _array.arrayEach)([holderStyle, hidderStyle, rootStyle], function (style) {\n style.width = '';\n style.height = '';\n });\n }\n\n /**\n * Destroy overlay instance\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n new _eventManager2.default(this.clone).destroy();\n }\n }]);\n\n return Overlay;\n}();\n\nexports.default = Overlay;\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.toSingleLine = toSingleLine;\n\nvar _array = __webpack_require__(2);\n\n/**\n * Tags a multiline string and return new one without line break characters and following spaces.\n *\n * @param {Array} strings Parts of the entire string without expressions.\n * @param {...String} expressions Expressions converted to strings, which are added to the entire string.\n * @returns {String}\n */\nfunction toSingleLine(strings) {\n for (var _len = arguments.length, expressions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n expressions[_key - 1] = arguments[_key];\n }\n\n var result = (0, _array.arrayReduce)(strings, function (previousValue, currentValue, index) {\n\n var valueWithoutWhiteSpaces = currentValue.replace(/(?:\\r?\\n\\s+)/g, '');\n var expressionForIndex = expressions[index] ? expressions[index] : '';\n\n return previousValue + valueWithoutWhiteSpaces + expressionForIndex;\n }, '');\n\n return result.trim();\n} /* eslint-disable import/prefer-default-export */\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.isFunction = isFunction;\nexports.throttle = throttle;\nexports.throttleAfterHits = throttleAfterHits;\nexports.debounce = debounce;\nexports.pipe = pipe;\nexports.partial = partial;\nexports.curry = curry;\nexports.curryRight = curryRight;\n\nvar _array = __webpack_require__(2);\n\n/**\n * Checks if given variable is function.\n *\n * @param {*} func Variable to check.\n * @returns {Boolean}\n */\nfunction isFunction(func) {\n return typeof func === 'function';\n}\n\n/**\n * Creates throttle function that enforces a maximum number of times a function (`func`) can be called over time (`wait`).\n *\n * @param {Function} func Function to invoke.\n * @param {Number} wait Delay in miliseconds.\n * @returns {Function}\n */\nfunction throttle(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;\n\n var lastCalled = 0;\n var result = {\n lastCallThrottled: true\n };\n var lastTimer = null;\n\n function _throttle() {\n var _this = this;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var stamp = Date.now();\n var needCall = false;\n\n result.lastCallThrottled = true;\n\n if (!lastCalled) {\n lastCalled = stamp;\n needCall = true;\n }\n var remaining = wait - (stamp - lastCalled);\n\n if (needCall) {\n result.lastCallThrottled = false;\n func.apply(this, args);\n } else {\n if (lastTimer) {\n clearTimeout(lastTimer);\n }\n lastTimer = setTimeout(function () {\n result.lastCallThrottled = false;\n func.apply(_this, args);\n lastCalled = 0;\n lastTimer = void 0;\n }, remaining);\n }\n\n return result;\n }\n\n return _throttle;\n}\n\n/**\n * Creates throttle function that enforces a maximum number of times a function (`func`) can be called over\n * time (`wait`) after specified hits.\n *\n * @param {Function} func Function to invoke.\n * @param {Number} wait Delay in miliseconds.\n * @param {Number} hits Number of hits after throttling will be applied.\n * @returns {Function}\n */\nfunction throttleAfterHits(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;\n var hits = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;\n\n var funcThrottle = throttle(func, wait);\n var remainHits = hits;\n\n function _clearHits() {\n remainHits = hits;\n }\n function _throttleAfterHits() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (remainHits) {\n remainHits--;\n\n return func.apply(this, args);\n }\n\n return funcThrottle.apply(this, args);\n }\n _throttleAfterHits.clearHits = _clearHits;\n\n return _throttleAfterHits;\n}\n\n/**\n * Creates debounce function that enforces a function (`func`) not be called again until a certain amount of time (`wait`)\n * has passed without it being called.\n *\n * @param {Function} func Function to invoke.\n * @param {Number} wait Delay in milliseconds.\n * @returns {Function}\n */\nfunction debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;\n\n var lastTimer = null;\n var result = void 0;\n\n function _debounce() {\n var _this2 = this;\n\n for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n if (lastTimer) {\n clearTimeout(lastTimer);\n }\n lastTimer = setTimeout(function () {\n result = func.apply(_this2, args);\n }, wait);\n\n return result;\n }\n\n return _debounce;\n}\n\n/**\n * Creates the function that returns the result of calling the given functions. Result of the first function is passed to\n * the second as an argument and so on. Only first function in the chain can handle multiple arguments.\n *\n * @param {Function} functions Functions to compose.\n * @returns {Function}\n */\nfunction pipe() {\n for (var _len4 = arguments.length, functions = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n functions[_key4] = arguments[_key4];\n }\n\n var firstFunc = functions[0],\n restFunc = functions.slice(1);\n\n\n return function _pipe() {\n for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return (0, _array.arrayReduce)(restFunc, function (acc, fn) {\n return fn(acc);\n }, firstFunc.apply(this, args));\n };\n}\n\n/**\n * Creates the function that returns the function with cached arguments.\n *\n * @param {Function} func Function to partialization.\n * @param {Array} params Function arguments to cache.\n * @returns {Function}\n */\nfunction partial(func) {\n for (var _len6 = arguments.length, params = Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n params[_key6 - 1] = arguments[_key6];\n }\n\n return function _partial() {\n for (var _len7 = arguments.length, restParams = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n restParams[_key7] = arguments[_key7];\n }\n\n return func.apply(this, params.concat(restParams));\n };\n}\n\n/**\n * Creates the functions that returns the function with cached arguments. If count if passed arguments will be matched\n * to the arguments defined in `func` then function will be invoked.\n * Arguments are added to the stack in direction from the left to the right.\n *\n * @example\n * ```\n * var replace = curry(function(find, replace, string) {\n * return string.replace(find, replace);\n * });\n *\n * // returns function with bounded first argument\n * var replace = replace('foo')\n *\n * // returns replaced string - all arguments was passed so function was invoked\n * replace('bar', 'Some test with foo...');\n *\n * ```\n *\n * @param {Function} func Function to currying.\n * @returns {Function}\n */\nfunction curry(func) {\n var argsLength = func.length;\n\n function given(argsSoFar) {\n return function _curry() {\n for (var _len8 = arguments.length, params = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {\n params[_key8] = arguments[_key8];\n }\n\n var passedArgsSoFar = argsSoFar.concat(params);\n var result = void 0;\n\n if (passedArgsSoFar.length >= argsLength) {\n result = func.apply(this, passedArgsSoFar);\n } else {\n result = given(passedArgsSoFar);\n }\n\n return result;\n };\n }\n\n return given([]);\n}\n\n/**\n * Creates the functions that returns the function with cached arguments. If count if passed arguments will be matched\n * to the arguments defined in `func` then function will be invoked.\n * Arguments are added to the stack in direction from the right to the left.\n *\n * @example\n * ```\n * var replace = curry(function(find, replace, string) {\n * return string.replace(find, replace);\n * });\n *\n * // returns function with bounded first argument\n * var replace = replace('Some test with foo...')\n *\n * // returns replaced string - all arguments was passed so function was invoked\n * replace('bar', 'foo');\n *\n * ```\n *\n * @param {Function} func Function to currying.\n * @returns {Function}\n */\nfunction curryRight(func) {\n var argsLength = func.length;\n\n function given(argsSoFar) {\n return function _curry() {\n for (var _len9 = arguments.length, params = Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {\n params[_key9] = arguments[_key9];\n }\n\n var passedArgsSoFar = argsSoFar.concat(params.reverse());\n var result = void 0;\n\n if (passedArgsSoFar.length >= argsLength) {\n result = func.apply(this, passedArgsSoFar);\n } else {\n result = given(passedArgsSoFar);\n }\n\n return result;\n };\n }\n\n return given([]);\n}\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(9);\nmodule.exports = function (it, TYPE) {\n if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');\n return it;\n};\n\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = __webpack_require__(12)('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _array = __webpack_require__(2);\n\nvar _object = __webpack_require__(1);\n\nvar MIXIN_NAME = 'localHooks';\n\n/**\n * Mixin object to extend objects functionality for local hooks.\n *\n * @type {Object}\n */\nvar localHooks = {\n /**\n * Internal hooks storage.\n */\n _localHooks: Object.create(null),\n\n /**\n * Add hook to the collection.\n *\n * @param {String} key Hook name.\n * @param {Function} callback Hook callback\n * @returns {Object}\n */\n addLocalHook: function addLocalHook(key, callback) {\n if (!this._localHooks[key]) {\n this._localHooks[key] = [];\n }\n this._localHooks[key].push(callback);\n\n return this;\n },\n\n\n /**\n * Run hooks.\n *\n * @param {String} key Hook name.\n * @param {*} params\n */\n runLocalHooks: function runLocalHooks(key) {\n var _this = this;\n\n for (var _len = arguments.length, params = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n if (this._localHooks[key]) {\n (0, _array.arrayEach)(this._localHooks[key], function (callback) {\n return callback.apply(_this, params);\n });\n }\n },\n\n\n /**\n * Clear all added hooks.\n *\n * @returns {Object}\n */\n clearLocalHooks: function clearLocalHooks() {\n this._localHooks = {};\n\n return this;\n }\n};\n\n(0, _object.defineGetter)(localHooks, 'MIXIN_NAME', MIXIN_NAME, {\n writable: false,\n enumerable: false\n});\n\nexports.default = localHooks;\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.createId = createId;\nexports.createDefaultCustomBorder = createDefaultCustomBorder;\nexports.createSingleEmptyBorder = createSingleEmptyBorder;\nexports.createDefaultHtBorder = createDefaultHtBorder;\nexports.createEmptyBorders = createEmptyBorders;\nexports.extendDefaultBorder = extendDefaultBorder;\nexports.checkSelectionBorders = checkSelectionBorders;\nexports.markSelected = markSelected;\n\nvar _object = __webpack_require__(1);\n\nvar _array = __webpack_require__(2);\n\n/**\n * Create separated id for borders for each cell.\n *\n * @param {Number} row Visual row index.\n * @param {Number} col Visual column index.\n * @returns {String}\n */\nfunction createId(row, col) {\n return 'border_row' + row + 'col' + col;\n}\n\n/**\n * Create default single border for each position (top/right/bottom/left).\n *\n * @returns {Object} `{{width: number, color: string}}`\n */\nfunction createDefaultCustomBorder() {\n return {\n width: 1,\n color: '#000'\n };\n}\n\n/**\n * Create default object for empty border.\n *\n * @returns {Object} `{{hide: boolean}}`\n */\nfunction createSingleEmptyBorder() {\n return { hide: true };\n}\n\n/**\n * Create default Handsontable border object.\n *\n * @returns {Object} `{{width: number, color: string, cornerVisible: boolean}}`\n */\nfunction createDefaultHtBorder() {\n return {\n width: 1,\n color: '#000',\n cornerVisible: false\n };\n}\n\n/**\n * Prepare empty border for each cell with all custom borders hidden.\n *\n * @param {Number} row Visual row index.\n * @param {Number} col Visual column index.\n * @returns {Object} `{{id: *, border: *, row: *, col: *, top: {hide: boolean}, right: {hide: boolean}, bottom: {hide: boolean}, left: {hide: boolean}}}`\n */\nfunction createEmptyBorders(row, col) {\n return {\n id: createId(row, col),\n border: createDefaultHtBorder(),\n row: row,\n col: col,\n top: createSingleEmptyBorder(),\n right: createSingleEmptyBorder(),\n bottom: createSingleEmptyBorder(),\n left: createSingleEmptyBorder()\n };\n}\n\nfunction extendDefaultBorder(defaultBorder, customBorder) {\n if ((0, _object.hasOwnProperty)(customBorder, 'border')) {\n defaultBorder.border = customBorder.border;\n }\n\n if ((0, _object.hasOwnProperty)(customBorder, 'top')) {\n if (customBorder.top) {\n if (!(0, _object.isObject)(customBorder.top)) {\n customBorder.top = createDefaultCustomBorder();\n }\n\n defaultBorder.top = customBorder.top;\n } else {\n customBorder.top = createSingleEmptyBorder();\n defaultBorder.top = customBorder.top;\n }\n }\n\n if ((0, _object.hasOwnProperty)(customBorder, 'right')) {\n if (customBorder.right) {\n if (!(0, _object.isObject)(customBorder.right)) {\n customBorder.right = createDefaultCustomBorder();\n }\n\n defaultBorder.right = customBorder.right;\n } else {\n customBorder.right = createSingleEmptyBorder();\n defaultBorder.right = customBorder.right;\n }\n }\n\n if ((0, _object.hasOwnProperty)(customBorder, 'bottom')) {\n if (customBorder.bottom) {\n if (!(0, _object.isObject)(customBorder.bottom)) {\n customBorder.bottom = createDefaultCustomBorder();\n }\n\n defaultBorder.bottom = customBorder.bottom;\n } else {\n customBorder.bottom = createSingleEmptyBorder();\n defaultBorder.bottom = customBorder.bottom;\n }\n }\n\n if ((0, _object.hasOwnProperty)(customBorder, 'left')) {\n if (customBorder.left) {\n if (!(0, _object.isObject)(customBorder.left)) {\n customBorder.left = createDefaultCustomBorder();\n }\n\n defaultBorder.left = customBorder.left;\n } else {\n customBorder.left = createSingleEmptyBorder();\n defaultBorder.left = customBorder.left;\n }\n }\n\n return defaultBorder;\n}\n\n/**\n * Check if selection has border.\n *\n * @param hot\n * @param direction\n */\nfunction checkSelectionBorders(hot, direction) {\n var atLeastOneHasBorder = false;\n\n (0, _array.arrayEach)(hot.getSelectedRange(), function (range) {\n range.forAll(function (r, c) {\n var metaBorders = hot.getCellMeta(r, c).borders;\n\n if (metaBorders) {\n if (direction) {\n if (!(0, _object.hasOwnProperty)(metaBorders[direction], 'hide') || metaBorders[direction].hide === false) {\n atLeastOneHasBorder = true;\n return false; // breaks forAll\n }\n } else {\n atLeastOneHasBorder = true;\n return false; // breaks forAll\n }\n }\n });\n });\n\n return atLeastOneHasBorder;\n}\n\n/**\n * Mark label in contextMenu as selected.\n *\n * @param label\n * @returns {string}\n */\nfunction markSelected(label) {\n return '<span class=\"selected\">' + String.fromCharCode(10003) + '</span>' + label; // workaround for https://github.com/handsontable/handsontable/issues/1946\n}\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar def = __webpack_require__(20).f;\nvar has = __webpack_require__(27);\nvar TAG = __webpack_require__(12)('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports) {\n\nexports.f = {}.propertyIsEnumerable;\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.EditorState = undefined;\n\nvar _src = __webpack_require__(4);\n\nvar _mixed = __webpack_require__(11);\n\nvar EditorState = exports.EditorState = {\n VIRGIN: 'STATE_VIRGIN', // before editing\n EDITING: 'STATE_EDITING',\n WAITING: 'STATE_WAITING', // waiting for async validation\n FINISHED: 'STATE_FINISHED'\n};\n\n/**\n * @util\n * @class BaseEditor\n */\nfunction BaseEditor(instance) {\n this.instance = instance;\n this.state = EditorState.VIRGIN;\n\n this._opened = false;\n this._fullEditMode = false;\n this._closeCallback = null;\n\n this.init();\n}\n\nBaseEditor.prototype._fireCallbacks = function (result) {\n if (this._closeCallback) {\n this._closeCallback(result);\n this._closeCallback = null;\n }\n};\n\nBaseEditor.prototype.init = function () {};\n\nBaseEditor.prototype.getValue = function () {\n throw Error('Editor getValue() method unimplemented');\n};\n\nBaseEditor.prototype.setValue = function () {\n throw Error('Editor setValue() method unimplemented');\n};\n\nBaseEditor.prototype.open = function () {\n throw Error('Editor open() method unimplemented');\n};\n\nBaseEditor.prototype.close = function () {\n throw Error('Editor close() method unimplemented');\n};\n\nBaseEditor.prototype.prepare = function (row, col, prop, td, originalValue, cellProperties) {\n this.TD = td;\n this.row = row;\n this.col = col;\n this.prop = prop;\n this.originalValue = originalValue;\n this.cellProperties = cellProperties;\n this.state = EditorState.VIRGIN;\n};\n\nBaseEditor.prototype.extend = function () {\n var baseClass = this.constructor;\n\n function Editor() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n baseClass.apply(this, args);\n }\n\n function inherit(Child, Parent) {\n function Bridge() {}\n Bridge.prototype = Parent.prototype;\n Child.prototype = new Bridge();\n Child.prototype.constructor = Child;\n\n return Child;\n }\n\n return inherit(Editor, baseClass);\n};\n\nBaseEditor.prototype.saveValue = function (value, ctrlDown) {\n var selection = void 0;\n var tmp = void 0;\n\n // if ctrl+enter and multiple cells selected, behave like Excel (finish editing and apply to all cells)\n if (ctrlDown) {\n selection = this.instance.getSelectedLast();\n\n if (selection[0] > selection[2]) {\n tmp = selection[0];\n selection[0] = selection[2];\n selection[2] = tmp;\n }\n if (selection[1] > selection[3]) {\n tmp = selection[1];\n selection[1] = selection[3];\n selection[3] = tmp;\n }\n } else {\n selection = [this.row, this.col, null, null];\n }\n\n this.instance.populateFromArray(selection[0], selection[1], value, selection[2], selection[3], 'edit');\n};\n\nBaseEditor.prototype.beginEditing = function (newInitialValue, event) {\n if (this.state !== EditorState.VIRGIN) {\n return;\n }\n this.instance.view.scrollViewport(new _src.CellCoords(this.row, this.col));\n this.state = EditorState.EDITING;\n\n // Set the editor value only in the full edit mode. In other mode the focusable element has to be empty,\n // otherwise IME (editor for Asia users) doesn't work.\n if (this.isInFullEditMode()) {\n var stringifiedInitialValue = typeof newInitialValue === 'string' ? newInitialValue : (0, _mixed.stringify)(this.originalValue);\n\n this.setValue(stringifiedInitialValue);\n }\n\n this.open(event);\n this._opened = true;\n this.focus();\n\n // only rerender the selections (FillHandle should disappear when beginediting is triggered)\n this.instance.view.render();\n\n this.instance.runHooks('afterBeginEditing', this.row, this.col);\n};\n\nBaseEditor.prototype.finishEditing = function (restoreOriginalValue, ctrlDown, callback) {\n var _this = this;\n var val = void 0;\n\n if (callback) {\n var previousCloseCallback = this._closeCallback;\n\n this._closeCallback = function (result) {\n if (previousCloseCallback) {\n previousCloseCallback(result);\n }\n\n callback(result);\n _this.instance.view.render();\n };\n }\n\n if (this.isWaiting()) {\n return;\n }\n\n if (this.state === EditorState.VIRGIN) {\n this.instance._registerTimeout(function () {\n _this._fireCallbacks(true);\n });\n\n return;\n }\n\n if (this.state === EditorState.EDITING) {\n if (restoreOriginalValue) {\n this.cancelChanges();\n this.instance.view.render();\n\n return;\n }\n\n var value = this.getValue();\n\n if (this.instance.getSettings().trimWhitespace) {\n // We trim only string values\n val = [[typeof value === 'string' ? String.prototype.trim.call(value || '') : value]];\n } else {\n val = [[value]];\n }\n\n this.state = EditorState.WAITING;\n this.saveValue(val, ctrlDown);\n\n if (this.instance.getCellValidator(this.cellProperties)) {\n this.instance.addHookOnce('postAfterValidate', function (result) {\n _this.state = EditorState.FINISHED;\n _this.discardEditor(result);\n });\n } else {\n this.state = EditorState.FINISHED;\n this.discardEditor(true);\n }\n }\n};\n\nBaseEditor.prototype.cancelChanges = function () {\n this.state = EditorState.FINISHED;\n this.discardEditor();\n};\n\nBaseEditor.prototype.discardEditor = function (result) {\n if (this.state !== EditorState.FINISHED) {\n return;\n }\n\n // validator was defined and failed\n if (result === false && this.cellProperties.allowInvalid !== true) {\n this.instance.selectCell(this.row, this.col);\n this.focus();\n this.state = EditorState.EDITING;\n this._fireCallbacks(false);\n } else {\n this.close();\n this._opened = false;\n this._fullEditMode = false;\n this.state = EditorState.VIRGIN;\n this._fireCallbacks(true);\n }\n};\n\n/**\n * Switch editor into full edit mode. In this state navigation keys don't close editor. This mode is activated\n * automatically after hit ENTER or F2 key on the cell or while editing cell press F2 key.\n */\nBaseEditor.prototype.enableFullEditMode = function () {\n this._fullEditMode = true;\n};\n\n/**\n * Checks if editor is in full edit mode.\n *\n * @returns {Boolean}\n */\nBaseEditor.prototype.isInFullEditMode = function () {\n return this._fullEditMode;\n};\n\nBaseEditor.prototype.isOpened = function () {\n return this._opened;\n};\n\nBaseEditor.prototype.isWaiting = function () {\n return this.state === EditorState.WAITING;\n};\n\nBaseEditor.prototype.checkEditorSection = function () {\n var totalRows = this.instance.countRows();\n var section = '';\n\n if (this.row < this.instance.getSettings().fixedRowsTop) {\n if (this.col < this.instance.getSettings().fixedColumnsLeft) {\n section = 'top-left-corner';\n } else {\n section = 'top';\n }\n } else if (this.instance.getSettings().fixedRowsBottom && this.row >= totalRows - this.instance.getSettings().fixedRowsBottom) {\n if (this.col < this.instance.getSettings().fixedColumnsLeft) {\n section = 'bottom-left-corner';\n } else {\n section = 'bottom';\n }\n } else if (this.col < this.instance.getSettings().fixedColumnsLeft) {\n section = 'left';\n }\n\n return section;\n};\n\nexports.default = BaseEditor;\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * CellCoords holds cell coordinates (row, column) and few method to validate them and retrieve as an array or an object.\n *\n * @util\n */\nvar CellCoords = function () {\n function CellCoords(row, column) {\n _classCallCheck(this, CellCoords);\n\n /**\n * Row index.\n *\n * @type {Number}\n */\n this.row = null;\n /**\n * Column index.\n *\n * @type {Number}\n */\n this.col = null;\n\n if (typeof row !== 'undefined' && typeof column !== 'undefined') {\n this.row = row;\n this.col = column;\n }\n }\n\n /**\n * Checks if given set of coordinates is valid in context of a given Walkontable instance.\n *\n * @param {Walkontable} wot A Walkontable instance.\n * @returns {Boolean}\n */\n\n\n _createClass(CellCoords, [{\n key: 'isValid',\n value: function isValid(wot) {\n // is it a valid cell index (0 or higher)\n if (this.row < 0 || this.col < 0) {\n return false;\n }\n // is selection within total rows and columns\n if (this.row >= wot.getSetting('totalRows') || this.col >= wot.getSetting('totalColumns')) {\n return false;\n }\n\n return true;\n }\n\n /**\n * Checks if this cell coordinates are the same as cell coordinates given as an argument.\n *\n * @param {CellCoords} cellCoords Cell coordinates to equal.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isEqual',\n value: function isEqual(cellCoords) {\n if (cellCoords === this) {\n return true;\n }\n\n return this.row === cellCoords.row && this.col === cellCoords.col;\n }\n\n /**\n * Checks if tested coordinates are positioned in south-east from this cell coordinates.\n *\n * @param {Object} testedCoords Cell coordinates to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isSouthEastOf',\n value: function isSouthEastOf(testedCoords) {\n return this.row >= testedCoords.row && this.col >= testedCoords.col;\n }\n\n /**\n * Checks if tested coordinates are positioned in north-east from this cell coordinates.\n *\n * @param {Object} testedCoords Cell coordinates to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isNorthWestOf',\n value: function isNorthWestOf(testedCoords) {\n return this.row <= testedCoords.row && this.col <= testedCoords.col;\n }\n\n /**\n * Checks if tested coordinates are positioned in south-west from this cell coordinates.\n *\n * @param {Object} testedCoords Cell coordinates to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isSouthWestOf',\n value: function isSouthWestOf(testedCoords) {\n return this.row >= testedCoords.row && this.col <= testedCoords.col;\n }\n\n /**\n * Checks if tested coordinates are positioned in north-east from this cell coordinates.\n *\n * @param {Object} testedCoords Cell coordinates to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isNorthEastOf',\n value: function isNorthEastOf(testedCoords) {\n return this.row <= testedCoords.row && this.col >= testedCoords.col;\n }\n\n /**\n * Converts CellCoords to literal object with `row` and `col` properties.\n *\n * @return {Object} Returns a literal object with `row` and `col` properties.\n */\n\n }, {\n key: 'toObject',\n value: function toObject() {\n return {\n row: this.row,\n col: this.col\n };\n }\n }]);\n\n return CellCoords;\n}();\n\nexports.default = CellCoords;\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_57__;\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.log = log;\nexports.warn = warn;\nexports.info = info;\nexports.error = error;\n\nvar _mixed = __webpack_require__(11);\n\n/**\n * Logs message to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nfunction log() {\n if ((0, _mixed.isDefined)(console)) {\n var _console;\n\n (_console = console).log.apply(_console, arguments);\n }\n} /* eslint-disable no-console */\n/* eslint-disable no-restricted-globals */\n\n/**\n * \"In Internet Explorer 9 (and 8), the console object is only exposed when the developer tools are opened\n * for a particular tab.\"\n *\n * Source: https://stackoverflow.com/a/5473193\n */\n\n;\n\n/**\n * Logs warn to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nfunction warn() {\n if ((0, _mixed.isDefined)(console)) {\n var _console2;\n\n (_console2 = console).warn.apply(_console2, arguments);\n }\n};\n\n/**\n * Logs info to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nfunction info() {\n if ((0, _mixed.isDefined)(console)) {\n var _console3;\n\n (_console3 = console).info.apply(_console3, arguments);\n }\n};\n\n/**\n * Logs error to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nfunction error() {\n if ((0, _mixed.isDefined)(console)) {\n var _console4;\n\n (_console4 = console).error.apply(_console4, arguments);\n }\n};\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _autoResize = __webpack_require__(234);\n\nvar _autoResize2 = _interopRequireDefault(_autoResize);\n\nvar _baseEditor = __webpack_require__(55);\n\nvar _baseEditor2 = _interopRequireDefault(_baseEditor);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _unicode = __webpack_require__(21);\n\nvar _event = __webpack_require__(13);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar TextEditor = _baseEditor2.default.prototype.extend();\n\n/**\n * @private\n * @editor TextEditor\n * @class TextEditor\n * @dependencies autoResize\n */\nTextEditor.prototype.init = function () {\n var that = this;\n this.createElements();\n this.eventManager = new _eventManager2.default(this);\n this.bindEvents();\n this.autoResize = (0, _autoResize2.default)();\n this.holderZIndex = -1;\n\n this.instance.addHook('afterDestroy', function () {\n that.destroy();\n });\n};\n\nTextEditor.prototype.prepare = function (row, col, prop, td, originalValue, cellProperties) {\n var _this = this;\n\n var previousState = this.state;\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n _baseEditor2.default.prototype.prepare.apply(this, [row, col, prop, td, originalValue, cellProperties].concat(args));\n\n if (!cellProperties.readOnly) {\n this.refreshDimensions(true);\n\n var allowInvalid = cellProperties.allowInvalid,\n fragmentSelection = cellProperties.fragmentSelection;\n\n\n if (allowInvalid) {\n this.TEXTAREA.value = ''; // Remove an empty space from texarea (added by copyPaste plugin to make copy/paste functionality work with IME)\n }\n\n if (previousState !== _baseEditor.EditorState.FINISHED) {\n this.hideEditableElement();\n }\n\n // @TODO: The fragmentSelection functionality is conflicted with IME. For this feature refocus has to\n // be disabled (to make IME working).\n var restoreFocus = !fragmentSelection;\n\n if (restoreFocus) {\n this.instance._registerImmediate(function () {\n return _this.focus();\n });\n }\n }\n};\n\nTextEditor.prototype.hideEditableElement = function () {\n this.textareaParentStyle.top = '-9999px';\n this.textareaParentStyle.left = '-9999px';\n this.textareaParentStyle.zIndex = '-1';\n};\n\nTextEditor.prototype.showEditableElement = function () {\n this.textareaParentStyle.zIndex = this.holderZIndex >= 0 ? this.holderZIndex : '';\n};\n\nTextEditor.prototype.getValue = function () {\n return this.TEXTAREA.value;\n};\n\nTextEditor.prototype.setValue = function (newValue) {\n this.TEXTAREA.value = newValue;\n};\n\nTextEditor.prototype.beginEditing = function () {\n if (this.state !== _baseEditor.EditorState.VIRGIN) {\n return;\n }\n\n this.TEXTAREA.value = ''; // Remove an empty space from texarea (added by copyPaste plugin to make copy/paste functionality work with IME).\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _baseEditor2.default.prototype.beginEditing.apply(this, args);\n};\n\nvar onBeforeKeyDown = function onBeforeKeyDown(event) {\n var instance = this;\n var that = instance.getActiveEditor();\n var ctrlDown = void 0;\n\n // catch CTRL but not right ALT (which in some systems triggers ALT+CTRL)\n ctrlDown = (event.ctrlKey || event.metaKey) && !event.altKey;\n\n // Process only events that have been fired in the editor\n if (event.target !== that.TEXTAREA || (0, _event.isImmediatePropagationStopped)(event)) {\n return;\n }\n\n if (event.keyCode === 17 || event.keyCode === 224 || event.keyCode === 91 || event.keyCode === 93) {\n // when CTRL or its equivalent is pressed and cell is edited, don't prepare selectable text in textarea\n (0, _event.stopImmediatePropagation)(event);\n return;\n }\n\n switch (event.keyCode) {\n case _unicode.KEY_CODES.ARROW_RIGHT:\n if (that.isInFullEditMode()) {\n if (!that.isWaiting() && !that.allowKeyEventPropagation || !that.isWaiting() && that.allowKeyEventPropagation && !that.allowKeyEventPropagation(event.keyCode)) {\n (0, _event.stopImmediatePropagation)(event);\n }\n }\n break;\n case _unicode.KEY_CODES.ARROW_LEFT:\n if (that.isInFullEditMode()) {\n if (!that.isWaiting() && !that.allowKeyEventPropagation || !that.isWaiting() && that.allowKeyEventPropagation && !that.allowKeyEventPropagation(event.keyCode)) {\n (0, _event.stopImmediatePropagation)(event);\n }\n }\n break;\n case _unicode.KEY_CODES.ARROW_UP:\n case _unicode.KEY_CODES.ARROW_DOWN:\n if (that.isInFullEditMode()) {\n if (!that.isWaiting() && !that.allowKeyEventPropagation || !that.isWaiting() && that.allowKeyEventPropagation && !that.allowKeyEventPropagation(event.keyCode)) {\n (0, _event.stopImmediatePropagation)(event);\n }\n }\n break;\n\n case _unicode.KEY_CODES.ENTER:\n {\n var isMultipleSelection = this.selection.isMultiple();\n\n if (ctrlDown && !isMultipleSelection || event.altKey) {\n // if ctrl+enter or alt+enter, add new line\n if (that.isOpened()) {\n var caretPosition = (0, _element.getCaretPosition)(that.TEXTAREA);\n var value = that.getValue();\n var newValue = value.slice(0, caretPosition) + '\\n' + value.slice(caretPosition);\n\n that.setValue(newValue);\n\n (0, _element.setCaretPosition)(that.TEXTAREA, caretPosition + 1);\n } else {\n that.beginEditing(that.originalValue + '\\n');\n }\n (0, _event.stopImmediatePropagation)(event);\n }\n event.preventDefault(); // don't add newline to field\n break;\n }\n case _unicode.KEY_CODES.A:\n case _unicode.KEY_CODES.X:\n case _unicode.KEY_CODES.C:\n case _unicode.KEY_CODES.V:\n if (ctrlDown) {\n (0, _event.stopImmediatePropagation)(event); // CTRL+A, CTRL+C, CTRL+V, CTRL+X should only work locally when cell is edited (not in table context)\n }\n break;\n\n case _unicode.KEY_CODES.BACKSPACE:\n case _unicode.KEY_CODES.DELETE:\n case _unicode.KEY_CODES.HOME:\n case _unicode.KEY_CODES.END:\n (0, _event.stopImmediatePropagation)(event); // backspace, delete, home, end should only work locally when cell is edited (not in table context)\n break;\n default:\n break;\n }\n\n if ([_unicode.KEY_CODES.ARROW_UP, _unicode.KEY_CODES.ARROW_RIGHT, _unicode.KEY_CODES.ARROW_DOWN, _unicode.KEY_CODES.ARROW_LEFT].indexOf(event.keyCode) === -1) {\n that.autoResize.resize(String.fromCharCode(event.keyCode));\n }\n};\n\nTextEditor.prototype.open = function () {\n this.refreshDimensions(); // need it instantly, to prevent https://github.com/handsontable/handsontable/issues/348\n this.showEditableElement();\n\n this.instance.addHook('beforeKeyDown', onBeforeKeyDown);\n};\n\nTextEditor.prototype.close = function () {\n this.autoResize.unObserve();\n\n if (document.activeElement === this.TEXTAREA) {\n this.instance.listen(); // don't refocus the table if user focused some cell outside of HT on purpose\n }\n\n this.hideEditableElement();\n this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);\n};\n\nTextEditor.prototype.focus = function () {\n // For IME editor textarea element must be focused using \".select\" method. Using \".focus\" browser automatically scroll into\n // the focused element which is undesire effect.\n this.TEXTAREA.select();\n (0, _element.setCaretPosition)(this.TEXTAREA, this.TEXTAREA.value.length);\n};\n\nTextEditor.prototype.createElements = function () {\n this.TEXTAREA = document.createElement('TEXTAREA');\n this.TEXTAREA.tabIndex = -1;\n\n (0, _element.addClass)(this.TEXTAREA, 'handsontableInput');\n\n this.textareaStyle = this.TEXTAREA.style;\n this.textareaStyle.width = 0;\n this.textareaStyle.height = 0;\n\n this.TEXTAREA_PARENT = document.createElement('DIV');\n (0, _element.addClass)(this.TEXTAREA_PARENT, 'handsontableInputHolder');\n\n this.textareaParentStyle = this.TEXTAREA_PARENT.style;\n this.textareaParentStyle.zIndex = '-1';\n\n this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);\n\n this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);\n};\n\nTextEditor.prototype.getEditedCell = function () {\n var editorSection = this.checkEditorSection();\n var editedCell = void 0;\n\n switch (editorSection) {\n case 'top':\n editedCell = this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.holderZIndex = 101;\n break;\n case 'top-left-corner':\n editedCell = this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.holderZIndex = 103;\n break;\n case 'bottom-left-corner':\n editedCell = this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.holderZIndex = 103;\n break;\n case 'left':\n editedCell = this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.holderZIndex = 102;\n break;\n case 'bottom':\n editedCell = this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.holderZIndex = 102;\n break;\n default:\n editedCell = this.instance.getCell(this.row, this.col);\n this.holderZIndex = -1;\n break;\n }\n\n return editedCell !== -1 && editedCell !== -2 ? editedCell : void 0;\n};\n\nTextEditor.prototype.refreshValue = function () {\n var sourceData = this.instance.getSourceDataAtCell(this.row, this.prop);\n this.originalValue = sourceData;\n\n this.setValue(sourceData);\n this.refreshDimensions();\n};\n\nTextEditor.prototype.refreshDimensions = function () {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (this.state !== _baseEditor.EditorState.EDITING && !force) {\n return;\n }\n this.TD = this.getEditedCell();\n\n // TD is outside of the viewport.\n if (!this.TD) {\n if (!force) {\n this.close(true);\n }\n\n return;\n }\n\n var currentOffset = (0, _element.offset)(this.TD);\n var containerOffset = (0, _element.offset)(this.instance.rootElement);\n var scrollableContainer = this.instance.view.wt.wtOverlays.topOverlay.mainTableScrollableElement;\n var totalRowsCount = this.instance.countRows();\n var containerScrollTop = scrollableContainer !== window ? scrollableContainer.scrollTop : 0;\n var containerScrollLeft = scrollableContainer !== window ? scrollableContainer.scrollLeft : 0;\n\n var editorSection = this.checkEditorSection();\n\n var scrollTop = ['', 'left'].includes(editorSection) ? containerScrollTop : 0;\n var scrollLeft = ['', 'top', 'bottom'].includes(editorSection) ? containerScrollLeft : 0;\n\n // If colHeaders is disabled, cells in the first row have border-top\n var editTopModifier = currentOffset.top === containerOffset.top ? 0 : 1;\n\n var settings = this.instance.getSettings();\n var colHeadersCount = this.instance.hasColHeaders();\n var backgroundColor = this.TD.style.backgroundColor;\n\n var editTop = currentOffset.top - containerOffset.top - editTopModifier - scrollTop;\n var editLeft = currentOffset.left - containerOffset.left - 1 - scrollLeft;\n var cssTransformOffset = void 0;\n\n // TODO: Refactor this to the new instance.getCell method (from #ply-59), after 0.12.1 is released\n switch (editorSection) {\n case 'top':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'left':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'top-left-corner':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'bottom-left-corner':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'bottom':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode);\n break;\n default:\n break;\n }\n\n if (colHeadersCount && this.instance.getSelectedLast()[0] === 0 || settings.fixedRowsBottom && this.instance.getSelectedLast()[0] === totalRowsCount - settings.fixedRowsBottom) {\n editTop += 1;\n }\n\n if (this.instance.getSelectedLast()[1] === 0) {\n editLeft += 1;\n }\n\n if (cssTransformOffset && cssTransformOffset !== -1) {\n this.textareaParentStyle[cssTransformOffset[0]] = cssTransformOffset[1];\n } else {\n (0, _element.resetCssTransform)(this.TEXTAREA_PARENT);\n }\n\n this.textareaParentStyle.top = editTop + 'px';\n this.textareaParentStyle.left = editLeft + 'px';\n this.showEditableElement();\n\n var firstRowOffset = this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition;\n var firstColumnOffset = this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition;\n var horizontalScrollPosition = this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition();\n var verticalScrollPosition = this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition();\n var scrollbarWidth = (0, _element.getScrollbarWidth)();\n\n var cellTopOffset = this.TD.offsetTop + firstRowOffset - verticalScrollPosition;\n var cellLeftOffset = this.TD.offsetLeft + firstColumnOffset - horizontalScrollPosition;\n\n var width = (0, _element.innerWidth)(this.TD) - 8;\n var actualVerticalScrollbarWidth = (0, _element.hasVerticalScrollbar)(scrollableContainer) ? scrollbarWidth : 0;\n var actualHorizontalScrollbarWidth = (0, _element.hasHorizontalScrollbar)(scrollableContainer) ? scrollbarWidth : 0;\n var maxWidth = this.instance.view.maximumVisibleElementWidth(cellLeftOffset) - 9 - actualVerticalScrollbarWidth;\n var height = this.TD.scrollHeight + 1;\n var maxHeight = Math.max(this.instance.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth, 23);\n\n var cellComputedStyle = (0, _element.getComputedStyle)(this.TD);\n\n this.TEXTAREA.style.fontSize = cellComputedStyle.fontSize;\n this.TEXTAREA.style.fontFamily = cellComputedStyle.fontFamily;\n this.TEXTAREA.style.backgroundColor = backgroundColor ? backgroundColor : (0, _element.getComputedStyle)(this.TEXTAREA).backgroundColor;\n\n this.autoResize.init(this.TEXTAREA, {\n minHeight: Math.min(height, maxHeight),\n maxHeight: maxHeight, // TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)\n minWidth: Math.min(width, maxWidth),\n maxWidth: maxWidth // TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)\n }, true);\n};\n\nTextEditor.prototype.bindEvents = function () {\n var editor = this;\n\n this.eventManager.addEventListener(this.TEXTAREA, 'cut', function (event) {\n (0, _event.stopPropagation)(event);\n });\n this.eventManager.addEventListener(this.TEXTAREA, 'paste', function (event) {\n (0, _event.stopPropagation)(event);\n });\n\n this.instance.addHook('afterScrollHorizontally', function () {\n editor.refreshDimensions();\n });\n\n this.instance.addHook('afterScrollVertically', function () {\n editor.refreshDimensions();\n });\n\n this.instance.addHook('afterColumnResize', function () {\n editor.refreshDimensions();\n editor.focus();\n });\n\n this.instance.addHook('afterRowResize', function () {\n editor.refreshDimensions();\n editor.focus();\n });\n\n this.instance.addHook('afterDestroy', function () {\n editor.eventManager.destroy();\n });\n};\n\nTextEditor.prototype.destroy = function () {\n this.eventManager.destroy();\n};\n\nexports.default = TextEditor;\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports) {\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(60);\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar redefine = __webpack_require__(28);\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(30);\nvar call = __webpack_require__(104);\nvar isArrayIter = __webpack_require__(105);\nvar anObject = __webpack_require__(18);\nvar toLength = __webpack_require__(25);\nvar getIterFn = __webpack_require__(106);\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar global = __webpack_require__(15);\nvar $export = __webpack_require__(3);\nvar redefine = __webpack_require__(28);\nvar redefineAll = __webpack_require__(62);\nvar meta = __webpack_require__(32);\nvar forOf = __webpack_require__(65);\nvar anInstance = __webpack_require__(64);\nvar isObject = __webpack_require__(9);\nvar fails = __webpack_require__(23);\nvar $iterDetect = __webpack_require__(81);\nvar setToStringTag = __webpack_require__(53);\nvar inheritIfRequired = __webpack_require__(210);\n\nmodule.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME];\n var C = Base;\n var ADDER = IS_MAP ? 'set' : 'add';\n var proto = C && C.prototype;\n var O = {};\n var fixMethod = function (KEY) {\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function (a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a) {\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {\n new C().entries().next();\n }))) {\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if (!ACCEPT_ITERABLES) {\n C = wrapper(function (target, iterable) {\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base(), target, C);\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n // weak collections should not contains .clear method\n if (IS_WEAK && proto.clear) delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar pIE = __webpack_require__(54);\nvar createDesc = __webpack_require__(51);\nvar toIObject = __webpack_require__(24);\nvar toPrimitive = __webpack_require__(75);\nvar has = __webpack_require__(27);\nvar IE8_DOM_DEFINE = __webpack_require__(100);\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = __webpack_require__(22) ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = __webpack_require__(30);\nvar IObject = __webpack_require__(77);\nvar toObject = __webpack_require__(31);\nvar toLength = __webpack_require__(25);\nvar asc = __webpack_require__(211);\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports) {\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n/***/ }),\n/* 70 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar hide = __webpack_require__(29);\nvar redefine = __webpack_require__(28);\nvar fails = __webpack_require__(23);\nvar defined = __webpack_require__(36);\nvar wks = __webpack_require__(12);\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n\n\n/***/ }),\n/* 71 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.DEFAULT_LANGUAGE_CODE = exports.getLanguagesDictionaries = exports.getDefaultLanguageDictionary = exports.hasLanguageDictionary = exports.getLanguageDictionary = exports.registerLanguageDictionary = undefined;\n\nvar _object = __webpack_require__(1);\n\nvar _utils = __webpack_require__(199);\n\nvar _staticRegister2 = __webpack_require__(38);\n\nvar _staticRegister3 = _interopRequireDefault(_staticRegister2);\n\nvar _enUS = __webpack_require__(270);\n\nvar _enUS2 = _interopRequireDefault(_enUS);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar DEFAULT_LANGUAGE_CODE = _enUS2.default.languageCode;\n\nvar _staticRegister = (0, _staticRegister3.default)('languagesDictionaries'),\n registerGloballyLanguageDictionary = _staticRegister.register,\n getGlobalLanguageDictionary = _staticRegister.getItem,\n hasGlobalLanguageDictionary = _staticRegister.hasItem,\n getGlobalLanguagesDictionaries = _staticRegister.getValues;\n\n/**\n * Register language dictionary for specific language code.\n *\n * @param {String|Object} languageCodeOrDictionary Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE' or object representing dictionary.\n * @param {Object} dictionary Dictionary for specific language (optional if first parameter has already dictionary).\n */\n\n\nfunction registerLanguage(languageCodeOrDictionary, dictionary) {\n var languageCode = languageCodeOrDictionary;\n\n // Dictionary passed as first argument.\n if ((0, _object.isObject)(languageCodeOrDictionary)) {\n dictionary = languageCodeOrDictionary;\n languageCode = dictionary.languageCode;\n }\n\n extendLanguageDictionary(languageCode, dictionary);\n registerGloballyLanguageDictionary(languageCode, (0, _object.deepClone)(dictionary));\n\n // We do not allow user to work with dictionary by reference, it can cause lot of bugs.\n return (0, _object.deepClone)(dictionary);\n};\n\n/**\n * Get language dictionary for specific language code.\n *\n * @param {String} languageCode Language code.\n * @returns {Object} Object with constants representing identifiers for translation (as keys) and corresponding translation phrases (as values).\n */\nfunction getLanguage(languageCode) {\n if (!hasLanguage(languageCode)) {\n return null;\n }\n\n return (0, _object.deepClone)(getGlobalLanguageDictionary(languageCode));\n}\n\n/**\n *\n * Get if language with specified language code was registered.\n *\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'.\n * @returns {Boolean}\n */\nfunction hasLanguage(languageCode) {\n return hasGlobalLanguageDictionary(languageCode);\n}\n\n/**\n * Get default language dictionary.\n *\n * @returns {Object} Object with constants representing identifiers for translation (as keys) and corresponding translation phrases (as values).\n */\nfunction getDefaultLanguage() {\n return _enUS2.default;\n}\n\n/**\n * Extend handled dictionary by default language dictionary. As result, if any dictionary key isn't defined for specific language, it will be filled with default language value (\"dictionary gaps\" are supplemented).\n *\n * @private\n * @param {String} languageCode Language code.\n * @param {Object} dictionary Dictionary which is extended.\n */\nfunction extendLanguageDictionary(languageCode, dictionary) {\n if (languageCode !== DEFAULT_LANGUAGE_CODE) {\n (0, _utils.extendNotExistingKeys)(dictionary, getGlobalLanguageDictionary(DEFAULT_LANGUAGE_CODE));\n }\n}\n\n/**\n * Get registered language dictionaries.\n *\n * @returns {Array}\n */\nfunction getLanguages() {\n return getGlobalLanguagesDictionaries();\n}\n\nexports.registerLanguageDictionary = registerLanguage;\nexports.getLanguageDictionary = getLanguage;\nexports.hasLanguageDictionary = hasLanguage;\nexports.getDefaultLanguageDictionary = getDefaultLanguage;\nexports.getLanguagesDictionaries = getLanguages;\nexports.DEFAULT_LANGUAGE_CODE = DEFAULT_LANGUAGE_CODE;\n\n/**\n * Automatically registers default dictionary.\n */\n\nregisterLanguage(_enUS2.default);\n\n/***/ }),\n/* 72 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.SELECTION_TYPES = exports.SELECTION_TYPE_OBJECT = exports.SELECTION_TYPE_ARRAY = exports.SELECTION_TYPE_EMPTY = exports.SELECTION_TYPE_UNRECOGNIZED = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.detectSelectionType = detectSelectionType;\nexports.normalizeSelectionFactory = normalizeSelectionFactory;\nexports.transformSelectionToColumnDistance = transformSelectionToColumnDistance;\nexports.transformSelectionToRowDistance = transformSelectionToRowDistance;\nexports.isValidCoord = isValidCoord;\n\nvar _src = __webpack_require__(4);\n\nvar _array = __webpack_require__(2);\n\nvar _mixed = __webpack_require__(11);\n\nvar SELECTION_TYPE_UNRECOGNIZED = exports.SELECTION_TYPE_UNRECOGNIZED = 0;\nvar SELECTION_TYPE_EMPTY = exports.SELECTION_TYPE_EMPTY = 1;\nvar SELECTION_TYPE_ARRAY = exports.SELECTION_TYPE_ARRAY = 2;\nvar SELECTION_TYPE_OBJECT = exports.SELECTION_TYPE_OBJECT = 3;\nvar SELECTION_TYPES = exports.SELECTION_TYPES = [SELECTION_TYPE_OBJECT, SELECTION_TYPE_ARRAY];\nvar ARRAY_TYPE_PATTERN = [['number'], ['number', 'string'], ['number', 'undefined'], ['number', 'string', 'undefined']];\nvar rootCall = Symbol('root');\nvar childCall = Symbol('child');\n\n/**\n * Detect selection schema structure.\n *\n * @param {*} selectionRanges The selected range or and array of selected ranges. This type of data is produced by\n * `hot.getSelected()`, `hot.getSelectedLast()`, `hot.getSelectedRange()`\n * and `hot.getSelectedRangeLast()` methods.\n * @returns {Number} Returns a number that specifies the type of detected selection schema. If selection schema type\n * is unrecognized than it returns `0`.\n */\nfunction detectSelectionType(selectionRanges) {\n var _callSymbol = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : rootCall;\n\n if (_callSymbol !== rootCall && _callSymbol !== childCall) {\n throw new Error('The second argument is used internally only and cannot be overwritten.');\n }\n\n var isArray = Array.isArray(selectionRanges);\n var isRootCall = _callSymbol === rootCall;\n var result = SELECTION_TYPE_UNRECOGNIZED;\n\n if (isArray) {\n var firstItem = selectionRanges[0];\n\n if (selectionRanges.length === 0) {\n result = SELECTION_TYPE_EMPTY;\n } else if (isRootCall && firstItem instanceof _src.CellRange) {\n result = SELECTION_TYPE_OBJECT;\n } else if (isRootCall && Array.isArray(firstItem)) {\n result = detectSelectionType(firstItem, childCall);\n } else if (selectionRanges.length >= 2 && selectionRanges.length <= 4) {\n var isArrayType = !selectionRanges.some(function (value, index) {\n return !ARRAY_TYPE_PATTERN[index].includes(typeof value === 'undefined' ? 'undefined' : _typeof(value));\n });\n\n if (isArrayType) {\n result = SELECTION_TYPE_ARRAY;\n }\n }\n }\n\n return result;\n}\n\n/**\n * Factory function designed for normalization data schema from different data structures of the selection ranges.\n *\n * @param {String} type Selection type which will be processed.\n * @param {Object} [options]\n * @param {Boolean} [options.keepDirection=false] If `true`, the coordinates which contain the direction of the\n * selected cells won't be changed. Otherwise, the selection will be\n * normalized to values starting from top-left to bottom-right.\n * @param {Function} [options.propToCol] Pass the converting function (usually `datamap.propToCol`) if the column\n * defined as props should be normalized to the numeric values.\n * @returns {Number[]} Returns normalized data about selected range as an array (`[rowStart, columnStart, rowEnd, columnEnd]`).\n */\nfunction normalizeSelectionFactory(type) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$keepDirection = _ref.keepDirection,\n keepDirection = _ref$keepDirection === undefined ? false : _ref$keepDirection,\n propToCol = _ref.propToCol;\n\n if (!SELECTION_TYPES.includes(type)) {\n throw new Error('Unsupported selection ranges schema type was provided.');\n }\n\n return function (selection) {\n var isObjectType = type === SELECTION_TYPE_OBJECT;\n var rowStart = isObjectType ? selection.from.row : selection[0];\n var columnStart = isObjectType ? selection.from.col : selection[1];\n var rowEnd = isObjectType ? selection.to.row : selection[2];\n var columnEnd = isObjectType ? selection.to.col : selection[3];\n\n if (typeof propToCol === 'function') {\n if (typeof columnStart === 'string') {\n columnStart = propToCol(columnStart);\n }\n if (typeof columnEnd === 'string') {\n columnEnd = propToCol(columnEnd);\n }\n }\n\n if ((0, _mixed.isUndefined)(rowEnd)) {\n rowEnd = rowStart;\n }\n if ((0, _mixed.isUndefined)(columnEnd)) {\n columnEnd = columnStart;\n }\n\n if (!keepDirection) {\n var origRowStart = rowStart;\n var origColumnStart = columnStart;\n var origRowEnd = rowEnd;\n var origColumnEnd = columnEnd;\n\n rowStart = Math.min(origRowStart, origRowEnd);\n columnStart = Math.min(origColumnStart, origColumnEnd);\n rowEnd = Math.max(origRowStart, origRowEnd);\n columnEnd = Math.max(origColumnStart, origColumnEnd);\n }\n\n return [rowStart, columnStart, rowEnd, columnEnd];\n };\n}\n\n/**\n * Function transform selection ranges (produced by `hot.getSelected()` and `hot.getSelectedRange()`) to normalized\n * data structure. It merges repeated ranges into consecutive coordinates. The returned structure\n * contains an array of arrays. The single item contains at index 0 visual column index from the selection was\n * started and at index 1 distance as a count of selected columns.\n *\n * @param {Array[]|CellRange[]} selectionRanges Selection ranges produced by Handsontable.\n * @return {Array[]} Returns an array of arrays with ranges defines in that schema:\n * `[[visualColumnStart, distance], [visualColumnStart, distance], ...]`.\n * The column distances are always created starting from the left (zero index) to the\n * right (the latest column index).\n */\nfunction transformSelectionToColumnDistance(selectionRanges) {\n var selectionType = detectSelectionType(selectionRanges);\n\n if (selectionType === SELECTION_TYPE_UNRECOGNIZED || selectionType === SELECTION_TYPE_EMPTY) {\n return [];\n }\n\n var selectionSchemaNormalizer = normalizeSelectionFactory(selectionType);\n var unorderedIndexes = new Set();\n\n // Iterate through all ranges and collect all column indexes which are not saved yet.\n (0, _array.arrayEach)(selectionRanges, function (selection) {\n var _selectionSchemaNorma = selectionSchemaNormalizer(selection),\n _selectionSchemaNorma2 = _slicedToArray(_selectionSchemaNorma, 4),\n columnStart = _selectionSchemaNorma2[1],\n columnEnd = _selectionSchemaNorma2[3];\n\n var amount = columnEnd - columnStart + 1;\n\n (0, _array.arrayEach)(Array.from(new Array(amount), function (_, i) {\n return columnStart + i;\n }), function (index) {\n if (!unorderedIndexes.has(index)) {\n unorderedIndexes.add(index);\n }\n });\n });\n\n // Sort indexes in ascending order to easily detecting non-consecutive columns.\n var orderedIndexes = Array.from(unorderedIndexes).sort(function (a, b) {\n return a - b;\n });\n var normalizedColumnRanges = (0, _array.arrayReduce)(orderedIndexes, function (acc, visualColumnIndex, index, array) {\n if (index !== 0 && visualColumnIndex === array[index - 1] + 1) {\n acc[acc.length - 1][1]++;\n } else {\n acc.push([visualColumnIndex, 1]);\n }\n\n return acc;\n }, []);\n\n return normalizedColumnRanges;\n}\n\n/**\n * Function transform selection ranges (produced by `hot.getSelected()` and `hot.getSelectedRange()`) to normalized\n * data structure. It merges repeated ranges into consecutive coordinates. The returned structure\n * contains an array of arrays. The single item contains at index 0 visual column index from the selection was\n * started and at index 1 distance as a count of selected columns.\n *\n * @param {Array[]|CellRange[]} selectionRanges Selection ranges produced by Handsontable.\n * @return {Array[]} Returns an array of arrays with ranges defines in that schema:\n * `[[visualColumnStart, distance], [visualColumnStart, distance], ...]`.\n * The column distances are always created starting from the left (zero index) to the\n * right (the latest column index).\n */\nfunction transformSelectionToRowDistance(selectionRanges) {\n var selectionType = detectSelectionType(selectionRanges);\n\n if (selectionType === SELECTION_TYPE_UNRECOGNIZED || selectionType === SELECTION_TYPE_EMPTY) {\n return [];\n }\n\n var selectionSchemaNormalizer = normalizeSelectionFactory(selectionType);\n var unorderedIndexes = new Set();\n\n // Iterate through all ranges and collect all column indexes which are not saved yet.\n (0, _array.arrayEach)(selectionRanges, function (selection) {\n var _selectionSchemaNorma3 = selectionSchemaNormalizer(selection),\n _selectionSchemaNorma4 = _slicedToArray(_selectionSchemaNorma3, 3),\n rowStart = _selectionSchemaNorma4[0],\n rowEnd = _selectionSchemaNorma4[2];\n\n var amount = rowEnd - rowStart + 1;\n\n (0, _array.arrayEach)(Array.from(new Array(amount), function (_, i) {\n return rowStart + i;\n }), function (index) {\n if (!unorderedIndexes.has(index)) {\n unorderedIndexes.add(index);\n }\n });\n });\n\n // Sort indexes in ascending order to easily detecting non-consecutive columns.\n var orderedIndexes = Array.from(unorderedIndexes).sort(function (a, b) {\n return a - b;\n });\n var normalizedRowRanges = (0, _array.arrayReduce)(orderedIndexes, function (acc, rowIndex, index, array) {\n if (index !== 0 && rowIndex === array[index - 1] + 1) {\n acc[acc.length - 1][1]++;\n } else {\n acc.push([rowIndex, 1]);\n }\n\n return acc;\n }, []);\n\n return normalizedRowRanges;\n}\n\n/**\n * Check if passed value can be treated as valid cell coordinate. The second argument is\n * used to check if the value doesn't exceed the defined max table rows/columns count.\n *\n * @param {*} coord\n * @param {Number} maxTableItemsCount The value that declares the maximum coordinate that is still validatable.\n * @return {Boolean}\n */\nfunction isValidCoord(coord) {\n var maxTableItemsCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity;\n\n return typeof coord === 'number' && coord >= 0 && coord < maxTableItemsCount;\n};\n\n/***/ }),\n/* 73 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.FIRST_AFTER_SECOND = exports.FIRST_BEFORE_SECOND = exports.DO_NOT_SWAP = undefined;\nexports.getSortFunctionForColumn = getSortFunctionForColumn;\n\nvar _date = __webpack_require__(292);\n\nvar _date2 = _interopRequireDefault(_date);\n\nvar _default = __webpack_require__(293);\n\nvar _default2 = _interopRequireDefault(_default);\n\nvar _numeric = __webpack_require__(294);\n\nvar _numeric2 = _interopRequireDefault(_numeric);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar DO_NOT_SWAP = exports.DO_NOT_SWAP = 0;\nvar FIRST_BEFORE_SECOND = exports.FIRST_BEFORE_SECOND = -1;\nvar FIRST_AFTER_SECOND = exports.FIRST_AFTER_SECOND = 1;\n\n/**\n * Gets sort function for the particular column basing on its column meta.\n *\n * @private\n * @param {Object} columnMeta\n * @returns {Function}\n */\nfunction getSortFunctionForColumn(columnMeta) {\n if (columnMeta.sortFunction) {\n return columnMeta.sortFunction;\n } else if (columnMeta.type === 'date') {\n return _date2.default;\n } else if (columnMeta.type === 'numeric') {\n return _numeric2.default;\n }\n\n return _default2.default;\n}\n\n/***/ }),\n/* 74 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(9);\nvar document = __webpack_require__(15).document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n/* 75 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(9);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n/* 76 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(18);\nvar dPs = __webpack_require__(208);\nvar enumBugKeys = __webpack_require__(80);\nvar IE_PROTO = __webpack_require__(78)('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(74)('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(103).appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n/***/ }),\n/* 77 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(44);\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/***/ }),\n/* 78 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(79)('keys');\nvar uid = __webpack_require__(50);\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/***/ }),\n/* 79 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar core = __webpack_require__(37);\nvar global = __webpack_require__(15);\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: __webpack_require__(49) ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n/* 80 */\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n/* 81 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ITERATOR = __webpack_require__(12)('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n/***/ }),\n/* 82 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(30);\nvar invoke = __webpack_require__(214);\nvar html = __webpack_require__(103);\nvar cel = __webpack_require__(74);\nvar global = __webpack_require__(15);\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (__webpack_require__(44)(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n/***/ }),\n/* 83 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(15);\nvar navigator = global.navigator;\n\nmodule.exports = navigator && navigator.userAgent || '';\n\n\n/***/ }),\n/* 84 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = __webpack_require__(101);\nvar hiddenKeys = __webpack_require__(80).concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n/***/ }),\n/* 85 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = __webpack_require__(144);\nvar defined = __webpack_require__(36);\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n\n\n/***/ }),\n/* 86 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar MATCH = __webpack_require__(12)('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) { /* empty */ }\n } return true;\n};\n\n\n/***/ }),\n/* 87 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $defineProperty = __webpack_require__(20);\nvar createDesc = __webpack_require__(51);\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n/***/ }),\n/* 88 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar addToUnscopables = __webpack_require__(46);\nvar step = __webpack_require__(110);\nvar Iterators = __webpack_require__(52);\nvar toIObject = __webpack_require__(24);\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/***/ }),\n/* 89 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getRegisteredCellTypes = exports.getRegisteredCellTypeNames = exports.hasCellType = exports.getCellType = exports.registerCellType = undefined;\n\nvar _staticRegister2 = __webpack_require__(38);\n\nvar _staticRegister3 = _interopRequireDefault(_staticRegister2);\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar _autocompleteType = __webpack_require__(255);\n\nvar _autocompleteType2 = _interopRequireDefault(_autocompleteType);\n\nvar _checkboxType = __webpack_require__(256);\n\nvar _checkboxType2 = _interopRequireDefault(_checkboxType);\n\nvar _dateType = __webpack_require__(257);\n\nvar _dateType2 = _interopRequireDefault(_dateType);\n\nvar _dropdownType = __webpack_require__(258);\n\nvar _dropdownType2 = _interopRequireDefault(_dropdownType);\n\nvar _handsontableType = __webpack_require__(259);\n\nvar _handsontableType2 = _interopRequireDefault(_handsontableType);\n\nvar _numericType = __webpack_require__(260);\n\nvar _numericType2 = _interopRequireDefault(_numericType);\n\nvar _passwordType = __webpack_require__(261);\n\nvar _passwordType2 = _interopRequireDefault(_passwordType);\n\nvar _textType = __webpack_require__(262);\n\nvar _textType2 = _interopRequireDefault(_textType);\n\nvar _timeType = __webpack_require__(263);\n\nvar _timeType2 = _interopRequireDefault(_timeType);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _staticRegister = (0, _staticRegister3.default)('cellTypes'),\n register = _staticRegister.register,\n getItem = _staticRegister.getItem,\n hasItem = _staticRegister.hasItem,\n getNames = _staticRegister.getNames,\n getValues = _staticRegister.getValues;\n\n_register('autocomplete', _autocompleteType2.default);\n_register('checkbox', _checkboxType2.default);\n_register('date', _dateType2.default);\n_register('dropdown', _dropdownType2.default);\n_register('handsontable', _handsontableType2.default);\n_register('numeric', _numericType2.default);\n_register('password', _passwordType2.default);\n_register('text', _textType2.default);\n_register('time', _timeType2.default);\n\n/**\n * Retrieve cell type object.\n *\n * @param {String} name Cell type identification.\n * @returns {Object} Returns cell type object.\n */\nfunction _getItem(name) {\n if (!hasItem(name)) {\n throw Error('You declared cell type \"' + name + '\" as a string that is not mapped to a known object.\\n Cell type must be an object or a string mapped to an object registered by \"Handsontable.cellTypes.registerCellType\" method');\n }\n\n return getItem(name);\n}\n\n/**\n * Register cell type under specified name.\n *\n * @param {String} name Cell type identification.\n * @param {Object} type An object with contains keys (eq: `editor`, `renderer`, `validator`) which describes specified behaviour of the cell.\n */\nfunction _register(name, type) {\n var editor = type.editor,\n renderer = type.renderer,\n validator = type.validator;\n\n\n if (editor) {\n (0, _editors.registerEditor)(name, editor);\n }\n if (renderer) {\n (0, _renderers.registerRenderer)(name, renderer);\n }\n if (validator) {\n (0, _validators.registerValidator)(name, validator);\n }\n\n register(name, type);\n}\n\nexports.registerCellType = _register;\nexports.getCellType = _getItem;\nexports.hasCellType = hasItem;\nexports.getRegisteredCellTypeNames = getNames;\nexports.getRegisteredCellTypes = getValues;\n\n/***/ }),\n/* 90 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _templateObject = _taggedTemplateLiteral(['Deprecation warning: This method is going to be removed in the next release.\\n If you want to select a cell using props, please use the `selectCell` method.'], ['Deprecation warning: This method is going to be removed in the next release.\\n If you want to select a cell using props, please use the \\\\`selectCell\\\\` method.']);\n\nexports.default = Core;\n\nvar _element = __webpack_require__(0);\n\nvar _setting = __webpack_require__(91);\n\nvar _function = __webpack_require__(43);\n\nvar _console = __webpack_require__(58);\n\nvar _mixed = __webpack_require__(11);\n\nvar _browser = __webpack_require__(39);\n\nvar _dataMap = __webpack_require__(264);\n\nvar _dataMap2 = _interopRequireDefault(_dataMap);\n\nvar _editorManager = __webpack_require__(267);\n\nvar _editorManager2 = _interopRequireDefault(_editorManager);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _object = __webpack_require__(1);\n\nvar _array = __webpack_require__(2);\n\nvar _templateLiteralTag = __webpack_require__(42);\n\nvar _plugins = __webpack_require__(8);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar _string = __webpack_require__(33);\n\nvar _number = __webpack_require__(6);\n\nvar _tableView = __webpack_require__(268);\n\nvar _tableView2 = _interopRequireDefault(_tableView);\n\nvar _dataSource = __webpack_require__(269);\n\nvar _dataSource2 = _interopRequireDefault(_dataSource);\n\nvar _data = __webpack_require__(92);\n\nvar _recordTranslator = __webpack_require__(195);\n\nvar _rootInstance = __webpack_require__(196);\n\nvar _src = __webpack_require__(4);\n\nvar _pluginHooks = __webpack_require__(16);\n\nvar _pluginHooks2 = _interopRequireDefault(_pluginHooks);\n\nvar _defaultSettings = __webpack_require__(197);\n\nvar _defaultSettings2 = _interopRequireDefault(_defaultSettings);\n\nvar _cellTypes = __webpack_require__(89);\n\nvar _i18n = __webpack_require__(198);\n\nvar _dictionariesManager = __webpack_require__(71);\n\nvar _utils = __webpack_require__(199);\n\nvar _keyStateObserver = __webpack_require__(200);\n\nvar _selection = __webpack_require__(201);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar activeGuid = null;\n\n/**\n * Handsontable constructor\n *\n * @core\n * @constructor Core\n * @description\n *\n * After Handsontable is constructed, you can modify the grid behavior using the available public methods.\n *\n * ---\n * ## How to call methods\n *\n * These are 2 equal ways to call a Handsontable method:\n *\n * ```js\n * // all following examples assume that you constructed Handsontable like this\n * const hot = new Handsontable(document.getElementById('example1'), options);\n *\n * // now, to use setDataAtCell method, you can either:\n * ht.setDataAtCell(0, 0, 'new value');\n * ```\n *\n * Alternatively, you can call the method using jQuery wrapper (__obsolete__, requires initialization using our jQuery guide\n * ```js\n * $('#example1').handsontable('setDataAtCell', 0, 0, 'new value');\n * ```\n * ---\n */\nfunction Core(rootElement, userSettings) {\n var _this = this;\n\n var rootInstanceSymbol = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var preventScrollingToCell = false;\n var instance = this;\n var GridSettings = function GridSettings() {};\n var eventManager = new _eventManager2.default(instance);\n var priv = void 0;\n var datamap = void 0;\n var dataSource = void 0;\n var grid = void 0;\n var editorManager = void 0;\n\n (0, _object.extend)(GridSettings.prototype, _defaultSettings2.default.prototype); // create grid settings as a copy of default settings\n (0, _object.extend)(GridSettings.prototype, userSettings); // overwrite defaults with user settings\n (0, _object.extend)(GridSettings.prototype, expandType(userSettings));\n\n (0, _utils.applyLanguageSetting)(GridSettings.prototype, userSettings.language);\n\n if ((0, _rootInstance.hasValidParameter)(rootInstanceSymbol)) {\n (0, _rootInstance.registerAsRootInstance)(this);\n }\n\n (0, _keyStateObserver.startObserving)();\n\n this.isDestroyed = false;\n this.rootElement = rootElement;\n this.isHotTableEnv = (0, _element.isChildOfWebComponentTable)(this.rootElement);\n _eventManager2.default.isHotTableEnv = this.isHotTableEnv;\n\n this.container = document.createElement('div');\n this.renderCall = false;\n\n rootElement.insertBefore(this.container, rootElement.firstChild);\n\n if (false) {}\n\n this.guid = 'ht_' + (0, _string.randomString)(); // this is the namespace for global events\n\n var recordTranslator = (0, _recordTranslator.getTranslator)(instance);\n\n dataSource = new _dataSource2.default(instance);\n\n if (!this.rootElement.id || this.rootElement.id.substring(0, 3) === 'ht_') {\n this.rootElement.id = this.guid; // if root element does not have an id, assign a random id\n }\n priv = {\n cellSettings: [],\n columnSettings: [],\n columnsSettingConflicts: ['data', 'width', 'language'],\n settings: new GridSettings(), // current settings instance\n selRange: null, // exposed by public method `getSelectedRange`\n isPopulated: null,\n scrollable: null,\n firstRun: true\n };\n\n var selection = new _selection.Selection(priv.settings, {\n countCols: function countCols() {\n return instance.countCols();\n },\n countRows: function countRows() {\n return instance.countRows();\n },\n propToCol: function propToCol(prop) {\n return datamap.propToCol(prop);\n },\n isEditorOpened: function isEditorOpened() {\n return instance.getActiveEditor() ? instance.getActiveEditor().isOpened() : false;\n }\n });\n\n this.selection = selection;\n\n this.selection.addLocalHook('beforeSetRangeStart', function (cellCoords) {\n _this.runHooks('beforeSetRangeStart', cellCoords);\n });\n\n this.selection.addLocalHook('beforeSetRangeStartOnly', function (cellCoords) {\n _this.runHooks('beforeSetRangeStartOnly', cellCoords);\n });\n\n this.selection.addLocalHook('beforeSetRangeEnd', function (cellCoords) {\n _this.runHooks('beforeSetRangeEnd', cellCoords);\n\n if (cellCoords.row < 0) {\n cellCoords.row = _this.view.wt.wtTable.getFirstVisibleRow();\n }\n if (cellCoords.col < 0) {\n cellCoords.col = _this.view.wt.wtTable.getFirstVisibleColumn();\n }\n });\n\n this.selection.addLocalHook('afterSetRangeEnd', function (cellCoords) {\n var preventScrolling = (0, _object.createObjectPropListener)(false);\n var selectionRange = _this.selection.getSelectedRange();\n\n var _selectionRange$curre = selectionRange.current(),\n from = _selectionRange$curre.from,\n to = _selectionRange$curre.to;\n\n var selectionLayerLevel = selectionRange.size() - 1;\n\n _this.runHooks('afterSelection', from.row, from.col, to.row, to.col, preventScrolling, selectionLayerLevel);\n _this.runHooks('afterSelectionByProp', from.row, instance.colToProp(from.col), to.row, instance.colToProp(to.col), preventScrolling, selectionLayerLevel);\n\n var isSelectedByAnyHeader = _this.selection.isSelectedByAnyHeader();\n var currentSelectedRange = _this.selection.selectedRange.current();\n\n var scrollToCell = true;\n\n if (preventScrollingToCell) {\n scrollToCell = false;\n }\n\n if (preventScrolling.isTouched()) {\n scrollToCell = !preventScrolling.value;\n }\n\n var isSelectedByRowHeader = _this.selection.isSelectedByRowHeader();\n var isSelectedByColumnHeader = _this.selection.isSelectedByColumnHeader();\n\n if (scrollToCell !== false) {\n if (!isSelectedByAnyHeader) {\n if (currentSelectedRange && !_this.selection.isMultiple()) {\n _this.view.scrollViewport(currentSelectedRange.from);\n } else {\n _this.view.scrollViewport(cellCoords);\n }\n } else if (isSelectedByRowHeader) {\n _this.view.scrollViewportVertically(cellCoords.row);\n } else if (isSelectedByColumnHeader) {\n _this.view.scrollViewportHorizontally(cellCoords.col);\n }\n }\n\n // @TODO: These CSS classes are no longer needed anymore. They are used only as a indicator of the selected\n // rows/columns in the MergedCells plugin (via border.js#L520 in the walkontable module). After fixing\n // the Border class this should be removed.\n if (isSelectedByRowHeader && isSelectedByColumnHeader) {\n (0, _element.addClass)(_this.rootElement, ['ht__selection--rows', 'ht__selection--columns']);\n } else if (isSelectedByRowHeader) {\n (0, _element.removeClass)(_this.rootElement, 'ht__selection--columns');\n (0, _element.addClass)(_this.rootElement, 'ht__selection--rows');\n } else if (isSelectedByColumnHeader) {\n (0, _element.removeClass)(_this.rootElement, 'ht__selection--rows');\n (0, _element.addClass)(_this.rootElement, 'ht__selection--columns');\n } else {\n (0, _element.removeClass)(_this.rootElement, ['ht__selection--rows', 'ht__selection--columns']);\n }\n\n _this._refreshBorders(null);\n });\n\n this.selection.addLocalHook('afterSelectionFinished', function (cellRanges) {\n var selectionLayerLevel = cellRanges.length - 1;\n var _cellRanges$selection = cellRanges[selectionLayerLevel],\n from = _cellRanges$selection.from,\n to = _cellRanges$selection.to;\n\n\n _this.runHooks('afterSelectionEnd', from.row, from.col, to.row, to.col, selectionLayerLevel);\n _this.runHooks('afterSelectionEndByProp', from.row, instance.colToProp(from.col), to.row, instance.colToProp(to.col), selectionLayerLevel);\n });\n\n this.selection.addLocalHook('afterIsMultipleSelection', function (isMultiple) {\n var changedIsMultiple = _this.runHooks('afterIsMultipleSelection', isMultiple.value);\n\n if (isMultiple.value) {\n isMultiple.value = changedIsMultiple;\n }\n });\n\n this.selection.addLocalHook('beforeModifyTransformStart', function (cellCoordsDelta) {\n _this.runHooks('modifyTransformStart', cellCoordsDelta);\n });\n this.selection.addLocalHook('afterModifyTransformStart', function (coords, rowTransformDir, colTransformDir) {\n _this.runHooks('afterModifyTransformStart', coords, rowTransformDir, colTransformDir);\n });\n this.selection.addLocalHook('beforeModifyTransformEnd', function (cellCoordsDelta) {\n _this.runHooks('modifyTransformEnd', cellCoordsDelta);\n });\n this.selection.addLocalHook('afterModifyTransformEnd', function (coords, rowTransformDir, colTransformDir) {\n _this.runHooks('afterModifyTransformEnd', coords, rowTransformDir, colTransformDir);\n });\n this.selection.addLocalHook('afterDeselect', function () {\n editorManager.destroyEditor();\n\n _this._refreshBorders();\n (0, _element.removeClass)(_this.rootElement, ['ht__selection--rows', 'ht__selection--columns']);\n\n _this.runHooks('afterDeselect');\n });\n this.selection.addLocalHook('insertRowRequire', function (totalRows) {\n _this.alter('insert_row', totalRows, 1, 'auto');\n });\n this.selection.addLocalHook('insertColRequire', function (totalCols) {\n _this.alter('insert_col', totalCols, 1, 'auto');\n });\n\n grid = {\n /**\n * Inserts or removes rows and columns.\n *\n * @memberof Core#\n * @function alter\n * @private\n * @param {String} action Possible values: \"insert_row\", \"insert_col\", \"remove_row\", \"remove_col\".\n * @param {Number|Array} index Row or column visual index which from the alter action will be triggered.\n * Alter actions such as \"remove_row\" and \"remove_col\" support array indexes in the\n * format `[[index, amount], [index, amount]...]` this can be used to remove\n * non-consecutive columns or rows in one call.\n * @param {Number} amount Ammount rows or columns to remove.\n * @param {String} [source] Optional. Source of hook runner.\n * @param {Boolean} [keepEmptyRows] Optional. Flag for preventing deletion of empty rows.\n */\n alter: function alter(action, index, amount, source, keepEmptyRows) {\n var delta = void 0;\n\n amount = amount || 1;\n\n function spliceWith(data, startIndex, count, toInject) {\n var valueFactory = function valueFactory() {\n var result = void 0;\n\n if (toInject === 'array') {\n result = [];\n } else if (toInject === 'object') {\n result = {};\n }\n\n return result;\n };\n var spliceArgs = (0, _array.arrayMap)(new Array(count), function () {\n return valueFactory();\n });\n\n spliceArgs.unshift(startIndex, 0);\n data.splice.apply(data, _toConsumableArray(spliceArgs));\n }\n\n var normalizeIndexesGroup = function normalizeIndexesGroup(indexes) {\n if (indexes.length === 0) {\n return [];\n }\n\n var sortedIndexes = [].concat(_toConsumableArray(indexes));\n\n // Sort the indexes in ascending order.\n sortedIndexes.sort(function (_ref, _ref2) {\n var _ref4 = _slicedToArray(_ref, 1),\n indexA = _ref4[0];\n\n var _ref3 = _slicedToArray(_ref2, 1),\n indexB = _ref3[0];\n\n if (indexA === indexB) {\n return 0;\n }\n\n return indexA > indexB ? 1 : -1;\n });\n\n // Normalize the {index, amount} groups into bigger groups.\n var normalizedIndexes = (0, _array.arrayReduce)(sortedIndexes, function (acc, _ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n groupIndex = _ref6[0],\n groupAmount = _ref6[1];\n\n var previousItem = acc[acc.length - 1];\n\n var _previousItem = _slicedToArray(previousItem, 2),\n prevIndex = _previousItem[0],\n prevAmount = _previousItem[1];\n\n var prevLastIndex = prevIndex + prevAmount;\n\n if (groupIndex <= prevLastIndex) {\n var amountToAdd = Math.max(groupAmount - (prevLastIndex - groupIndex), 0);\n\n previousItem[1] += amountToAdd;\n } else {\n acc.push([groupIndex, groupAmount]);\n }\n\n return acc;\n }, [sortedIndexes[0]]);\n\n return normalizedIndexes;\n };\n\n /* eslint-disable no-case-declarations */\n switch (action) {\n case 'insert_row':\n\n var numberOfSourceRows = instance.countSourceRows();\n\n if (instance.getSettings().maxRows === numberOfSourceRows) {\n return;\n }\n\n index = (0, _mixed.isDefined)(index) ? index : numberOfSourceRows;\n\n delta = datamap.createRow(index, amount, source);\n spliceWith(priv.cellSettings, index, amount, 'array');\n\n if (delta) {\n if (selection.isSelected() && selection.selectedRange.current().from.row >= index) {\n selection.selectedRange.current().from.row += delta;\n selection.transformEnd(delta, 0); // will call render() internally\n } else {\n instance._refreshBorders(); // it will call render and prepare methods\n }\n }\n break;\n\n case 'insert_col':\n delta = datamap.createCol(index, amount, source);\n\n for (var row = 0, len = instance.countSourceRows(); row < len; row++) {\n if (priv.cellSettings[row]) {\n spliceWith(priv.cellSettings[row], index, amount);\n }\n }\n\n if (delta) {\n if (Array.isArray(instance.getSettings().colHeaders)) {\n var spliceArray = [index, 0];\n spliceArray.length += delta; // inserts empty (undefined) elements at the end of an array\n Array.prototype.splice.apply(instance.getSettings().colHeaders, spliceArray); // inserts empty (undefined) elements into the colHeader array\n }\n\n if (selection.isSelected() && selection.selectedRange.current().from.col >= index) {\n selection.selectedRange.current().from.col += delta;\n selection.transformEnd(0, delta); // will call render() internally\n } else {\n instance._refreshBorders(); // it will call render and prepare methods\n }\n }\n break;\n\n case 'remove_row':\n\n var removeRow = function removeRow(indexes) {\n var offset = 0;\n\n // Normalize the {index, amount} groups into bigger groups.\n (0, _array.arrayEach)(indexes, function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 2),\n groupIndex = _ref8[0],\n groupAmount = _ref8[1];\n\n var calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countRows() - 1 : Math.max(groupIndex - offset, 0);\n\n // If the 'index' is an integer decrease it by 'offset' otherwise pass it through to make the value\n // compatible with datamap.removeCol method.\n if (Number.isInteger(groupIndex)) {\n groupIndex = Math.max(groupIndex - offset, 0);\n }\n\n // TODO: for datamap.removeRow index should be passed as it is (with undefined and null values). If not, the logic\n // inside the datamap.removeRow breaks the removing functionality.\n datamap.removeRow(groupIndex, groupAmount, source);\n priv.cellSettings.splice(calcIndex, amount);\n\n var totalRows = instance.countRows();\n var fixedRowsTop = instance.getSettings().fixedRowsTop;\n\n if (fixedRowsTop >= calcIndex + 1) {\n instance.getSettings().fixedRowsTop -= Math.min(groupAmount, fixedRowsTop - calcIndex);\n }\n\n var fixedRowsBottom = instance.getSettings().fixedRowsBottom;\n\n if (fixedRowsBottom && calcIndex >= totalRows - fixedRowsBottom) {\n instance.getSettings().fixedRowsBottom -= Math.min(groupAmount, fixedRowsBottom);\n }\n\n offset += groupAmount;\n });\n };\n\n if (Array.isArray(index)) {\n removeRow(normalizeIndexesGroup(index));\n } else {\n removeRow([[index, amount]]);\n }\n\n grid.adjustRowsAndCols();\n instance._refreshBorders(); // it will call render and prepare methods\n break;\n\n case 'remove_col':\n\n var removeCol = function removeCol(indexes) {\n var offset = 0;\n\n // Normalize the {index, amount} groups into bigger groups.\n (0, _array.arrayEach)(indexes, function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n groupIndex = _ref10[0],\n groupAmount = _ref10[1];\n\n var calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countCols() - 1 : Math.max(groupIndex - offset, 0);\n\n var visualColumnIndex = recordTranslator.toPhysicalColumn(calcIndex);\n\n // If the 'index' is an integer decrease it by 'offset' otherwise pass it through to make the value\n // compatible with datamap.removeCol method.\n if (Number.isInteger(groupIndex)) {\n groupIndex = Math.max(groupIndex - offset, 0);\n }\n\n // TODO: for datamap.removeCol index should be passed as it is (with undefined and null values). If not, the logic\n // inside the datamap.removeCol breaks the removing functionality.\n datamap.removeCol(groupIndex, groupAmount, source);\n\n for (var _row = 0, _len = instance.countSourceRows(); _row < _len; _row++) {\n if (priv.cellSettings[_row]) {\n // if row hasn't been rendered it wouldn't have cellSettings\n priv.cellSettings[_row].splice(visualColumnIndex, groupAmount);\n }\n }\n var fixedColumnsLeft = instance.getSettings().fixedColumnsLeft;\n\n if (fixedColumnsLeft >= calcIndex + 1) {\n instance.getSettings().fixedColumnsLeft -= Math.min(groupAmount, fixedColumnsLeft - calcIndex);\n }\n\n if (Array.isArray(instance.getSettings().colHeaders)) {\n if (typeof visualColumnIndex === 'undefined') {\n visualColumnIndex = -1;\n }\n instance.getSettings().colHeaders.splice(visualColumnIndex, groupAmount);\n }\n\n offset += groupAmount;\n });\n };\n\n if (Array.isArray(index)) {\n removeCol(normalizeIndexesGroup(index));\n } else {\n removeCol([[index, amount]]);\n }\n\n grid.adjustRowsAndCols();\n instance._refreshBorders(); // it will call render and prepare methods\n\n break;\n default:\n throw new Error('There is no such action \"' + action + '\"');\n }\n\n if (!keepEmptyRows) {\n grid.adjustRowsAndCols(); // makes sure that we did not add rows that will be removed in next refresh\n }\n },\n\n\n /**\n * Makes sure there are empty rows at the bottom of the table\n */\n adjustRowsAndCols: function adjustRowsAndCols() {\n if (priv.settings.minRows) {\n // should I add empty rows to data source to meet minRows?\n var rows = instance.countRows();\n\n if (rows < priv.settings.minRows) {\n for (var r = 0, minRows = priv.settings.minRows; r < minRows - rows; r++) {\n datamap.createRow(instance.countRows(), 1, 'auto');\n }\n }\n }\n if (priv.settings.minSpareRows) {\n var emptyRows = instance.countEmptyRows(true);\n\n // should I add empty rows to meet minSpareRows?\n if (emptyRows < priv.settings.minSpareRows) {\n for (; emptyRows < priv.settings.minSpareRows && instance.countSourceRows() < priv.settings.maxRows; emptyRows++) {\n datamap.createRow(instance.countRows(), 1, 'auto');\n }\n }\n }\n {\n var emptyCols = void 0;\n\n // count currently empty cols\n if (priv.settings.minCols || priv.settings.minSpareCols) {\n emptyCols = instance.countEmptyCols(true);\n }\n\n // should I add empty cols to meet minCols?\n if (priv.settings.minCols && !priv.settings.columns && instance.countCols() < priv.settings.minCols) {\n for (; instance.countCols() < priv.settings.minCols; emptyCols++) {\n datamap.createCol(instance.countCols(), 1, 'auto');\n }\n }\n // should I add empty cols to meet minSpareCols?\n if (priv.settings.minSpareCols && !priv.settings.columns && instance.dataType === 'array' && emptyCols < priv.settings.minSpareCols) {\n for (; emptyCols < priv.settings.minSpareCols && instance.countCols() < priv.settings.maxCols; emptyCols++) {\n datamap.createCol(instance.countCols(), 1, 'auto');\n }\n }\n }\n var rowCount = instance.countRows();\n var colCount = instance.countCols();\n\n if (rowCount === 0 || colCount === 0) {\n selection.deselect();\n }\n\n if (selection.isSelected()) {\n (0, _array.arrayEach)(selection.selectedRange, function (range) {\n var selectionChanged = false;\n var fromRow = range.from.row;\n var fromCol = range.from.col;\n var toRow = range.to.row;\n var toCol = range.to.col;\n\n // if selection is outside, move selection to last row\n if (fromRow > rowCount - 1) {\n fromRow = rowCount - 1;\n selectionChanged = true;\n\n if (toRow > fromRow) {\n toRow = fromRow;\n }\n } else if (toRow > rowCount - 1) {\n toRow = rowCount - 1;\n selectionChanged = true;\n\n if (fromRow > toRow) {\n fromRow = toRow;\n }\n }\n // if selection is outside, move selection to last row\n if (fromCol > colCount - 1) {\n fromCol = colCount - 1;\n selectionChanged = true;\n\n if (toCol > fromCol) {\n toCol = fromCol;\n }\n } else if (toCol > colCount - 1) {\n toCol = colCount - 1;\n selectionChanged = true;\n\n if (fromCol > toCol) {\n fromCol = toCol;\n }\n }\n\n if (selectionChanged) {\n instance.selectCell(fromRow, fromCol, toRow, toCol);\n }\n });\n }\n if (instance.view) {\n instance.view.wt.wtOverlays.adjustElementsSize();\n }\n },\n\n\n /**\n * Populate the data from the provided 2d array from the given cell coordinates.\n *\n * @private\n * @param {Object} start Start selection position. Visual indexes.\n * @param {Array} input 2d data array.\n * @param {Object} [end] End selection position (only for drag-down mode). Visual indexes.\n * @param {String} [source=\"populateFromArray\"] Source information string.\n * @param {String} [method=\"overwrite\"] Populate method. Possible options: `shift_down`, `shift_right`, `overwrite`.\n * @param {String} direction (left|right|up|down) String specifying the direction.\n * @param {Array} deltas The deltas array. A difference between values of adjacent cells.\n * Useful **only** when the type of handled cells is `numeric`.\n * @returns {Object|undefined} ending td in pasted area (only if any cell was changed).\n */\n populateFromArray: function populateFromArray(start, input, end, source, method, direction, deltas) {\n // TODO: either remove or implement the `direction` argument. Currently it's not working at all.\n var r = void 0;\n var rlen = void 0;\n var c = void 0;\n var clen = void 0;\n var setData = [];\n var current = {};\n\n rlen = input.length;\n\n if (rlen === 0) {\n return false;\n }\n\n var repeatCol = void 0;\n var repeatRow = void 0;\n var cmax = void 0;\n var rmax = void 0;\n\n /* eslint-disable no-case-declarations */\n // insert data with specified pasteMode method\n switch (method) {\n case 'shift_down':\n repeatCol = end ? end.col - start.col + 1 : 0;\n repeatRow = end ? end.row - start.row + 1 : 0;\n input = (0, _data.translateRowsToColumns)(input);\n for (c = 0, clen = input.length, cmax = Math.max(clen, repeatCol); c < cmax; c++) {\n if (c < clen) {\n var _instance;\n\n for (r = 0, rlen = input[c].length; r < repeatRow - rlen; r++) {\n input[c].push(input[c][r % rlen]);\n }\n input[c].unshift(start.col + c, start.row, 0);\n (_instance = instance).spliceCol.apply(_instance, _toConsumableArray(input[c]));\n } else {\n var _instance2;\n\n input[c % clen][0] = start.col + c;\n (_instance2 = instance).spliceCol.apply(_instance2, _toConsumableArray(input[c % clen]));\n }\n }\n break;\n\n case 'shift_right':\n repeatCol = end ? end.col - start.col + 1 : 0;\n repeatRow = end ? end.row - start.row + 1 : 0;\n for (r = 0, rlen = input.length, rmax = Math.max(rlen, repeatRow); r < rmax; r++) {\n if (r < rlen) {\n var _instance3;\n\n for (c = 0, clen = input[r].length; c < repeatCol - clen; c++) {\n input[r].push(input[r][c % clen]);\n }\n input[r].unshift(start.row + r, start.col, 0);\n (_instance3 = instance).spliceRow.apply(_instance3, _toConsumableArray(input[r]));\n } else {\n var _instance4;\n\n input[r % rlen][0] = start.row + r;\n (_instance4 = instance).spliceRow.apply(_instance4, _toConsumableArray(input[r % rlen]));\n }\n }\n break;\n\n case 'overwrite':\n default:\n // overwrite and other not specified options\n current.row = start.row;\n current.col = start.col;\n\n var selected = { // selected range\n row: end && start ? end.row - start.row + 1 : 1,\n col: end && start ? end.col - start.col + 1 : 1\n };\n var skippedRow = 0;\n var skippedColumn = 0;\n var pushData = true;\n var cellMeta = void 0;\n\n var getInputValue = function getInputValue(row) {\n var col = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n var rowValue = input[row % input.length];\n\n if (col !== null) {\n return rowValue[col % rowValue.length];\n }\n\n return rowValue;\n };\n var rowInputLength = input.length;\n var rowSelectionLength = end ? end.row - start.row + 1 : 0;\n\n if (end) {\n rlen = rowSelectionLength;\n } else {\n rlen = Math.max(rowInputLength, rowSelectionLength);\n }\n for (r = 0; r < rlen; r++) {\n if (end && current.row > end.row && rowSelectionLength > rowInputLength || !priv.settings.allowInsertRow && current.row > instance.countRows() - 1 || current.row >= priv.settings.maxRows) {\n break;\n }\n var visualRow = r - skippedRow;\n var colInputLength = getInputValue(visualRow).length;\n var colSelectionLength = end ? end.col - start.col + 1 : 0;\n\n if (end) {\n clen = colSelectionLength;\n } else {\n clen = Math.max(colInputLength, colSelectionLength);\n }\n current.col = start.col;\n cellMeta = instance.getCellMeta(current.row, current.col);\n\n if ((source === 'CopyPaste.paste' || source === 'Autofill.autofill') && cellMeta.skipRowOnPaste) {\n skippedRow++;\n current.row++;\n rlen++;\n /* eslint-disable no-continue */\n continue;\n }\n skippedColumn = 0;\n\n for (c = 0; c < clen; c++) {\n if (end && current.col > end.col && colSelectionLength > colInputLength || !priv.settings.allowInsertColumn && current.col > instance.countCols() - 1 || current.col >= priv.settings.maxCols) {\n break;\n }\n cellMeta = instance.getCellMeta(current.row, current.col);\n\n if ((source === 'CopyPaste.paste' || source === 'Autofill.fill') && cellMeta.skipColumnOnPaste) {\n skippedColumn++;\n current.col++;\n clen++;\n continue;\n }\n if (cellMeta.readOnly) {\n current.col++;\n /* eslint-disable no-continue */\n continue;\n }\n var visualColumn = c - skippedColumn;\n var value = getInputValue(visualRow, visualColumn);\n var orgValue = instance.getDataAtCell(current.row, current.col);\n var index = {\n row: visualRow,\n col: visualColumn\n };\n\n if (source === 'Autofill.fill') {\n var result = instance.runHooks('beforeAutofillInsidePopulate', index, direction, input, deltas, {}, selected);\n\n if (result) {\n value = (0, _mixed.isUndefined)(result.value) ? value : result.value;\n }\n }\n if (value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {\n if (orgValue === null || (typeof orgValue === 'undefined' ? 'undefined' : _typeof(orgValue)) !== 'object') {\n pushData = false;\n } else {\n var orgValueSchema = (0, _object.duckSchema)(orgValue[0] || orgValue);\n var valueSchema = (0, _object.duckSchema)(value[0] || value);\n\n /* eslint-disable max-depth */\n if ((0, _object.isObjectEqual)(orgValueSchema, valueSchema)) {\n value = (0, _object.deepClone)(value);\n } else {\n pushData = false;\n }\n }\n } else if (orgValue !== null && (typeof orgValue === 'undefined' ? 'undefined' : _typeof(orgValue)) === 'object') {\n pushData = false;\n }\n if (pushData) {\n setData.push([current.row, current.col, value]);\n }\n pushData = true;\n current.col++;\n }\n current.row++;\n }\n instance.setDataAtCell(setData, null, null, source || 'populateFromArray');\n break;\n }\n }\n };\n\n /**\n * Internal function to set `language` key of settings.\n *\n * @private\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'\n * @fires Hooks#afterLanguageChange\n */\n function setLanguage(languageCode) {\n var normalizedLanguageCode = (0, _utils.normalizeLanguageCode)(languageCode);\n\n if ((0, _dictionariesManager.hasLanguageDictionary)(normalizedLanguageCode)) {\n instance.runHooks('beforeLanguageChange', normalizedLanguageCode);\n\n GridSettings.prototype.language = normalizedLanguageCode;\n\n instance.runHooks('afterLanguageChange', normalizedLanguageCode);\n } else {\n (0, _utils.warnUserAboutLanguageRegistration)(languageCode);\n }\n }\n\n this.init = function () {\n dataSource.setData(priv.settings.data);\n instance.runHooks('beforeInit');\n\n if ((0, _browser.isMobileBrowser)()) {\n (0, _element.addClass)(instance.rootElement, 'mobile');\n }\n\n this.updateSettings(priv.settings, true);\n\n this.view = new _tableView2.default(this);\n editorManager = _editorManager2.default.getInstance(instance, priv, selection, datamap);\n\n this.forceFullRender = true; // used when data was changed\n\n instance.runHooks('init');\n this.view.render();\n\n if (_typeof(priv.firstRun) === 'object') {\n instance.runHooks('afterChange', priv.firstRun[0], priv.firstRun[1]);\n priv.firstRun = false;\n }\n instance.runHooks('afterInit');\n };\n\n function ValidatorsQueue() {\n // moved this one level up so it can be used in any function here. Probably this should be moved to a separate file\n var resolved = false;\n\n return {\n validatorsInQueue: 0,\n valid: true,\n addValidatorToQueue: function addValidatorToQueue() {\n this.validatorsInQueue++;\n resolved = false;\n },\n removeValidatorFormQueue: function removeValidatorFormQueue() {\n this.validatorsInQueue = this.validatorsInQueue - 1 < 0 ? 0 : this.validatorsInQueue - 1;\n this.checkIfQueueIsEmpty();\n },\n onQueueEmpty: function onQueueEmpty() {},\n checkIfQueueIsEmpty: function checkIfQueueIsEmpty() {\n if (this.validatorsInQueue === 0 && resolved === false) {\n resolved = true;\n this.onQueueEmpty(this.valid);\n }\n }\n };\n }\n\n /**\n * Get parsed number from numeric string.\n *\n * @private\n * @param {String} numericData Float (separated by a dot or a comma) or integer.\n * @returns {Number} Number if we get data in parsable format, not changed value otherwise.\n */\n function getParsedNumber(numericData) {\n // Unifying \"float like\" string. Change from value with comma determiner to value with dot determiner,\n // for example from `450,65` to `450.65`.\n var unifiedNumericData = numericData.replace(',', '.');\n\n if (isNaN(parseFloat(unifiedNumericData)) === false) {\n return parseFloat(unifiedNumericData);\n }\n\n return numericData;\n }\n\n function validateChanges(changes, source, callback) {\n var waitingForValidator = new ValidatorsQueue();\n var isNumericData = function isNumericData(value) {\n return value.length > 0 && /^-?[\\d\\s]*(\\.|,)?\\d*$/.test(value);\n };\n\n waitingForValidator.onQueueEmpty = resolve;\n\n for (var i = changes.length - 1; i >= 0; i--) {\n if (changes[i] === null) {\n changes.splice(i, 1);\n } else {\n var _changes$i = _slicedToArray(changes[i], 4),\n row = _changes$i[0],\n prop = _changes$i[1],\n newValue = _changes$i[3];\n\n var col = datamap.propToCol(prop);\n var cellProperties = instance.getCellMeta(row, col);\n\n if (cellProperties.type === 'numeric' && typeof newValue === 'string' && isNumericData(newValue)) {\n changes[i][3] = getParsedNumber(newValue);\n }\n\n /* eslint-disable no-loop-func */\n if (instance.getCellValidator(cellProperties)) {\n waitingForValidator.addValidatorToQueue();\n instance.validateCell(changes[i][3], cellProperties, function (index, cellPropertiesReference) {\n return function (result) {\n if (typeof result !== 'boolean') {\n throw new Error('Validation error: result is not boolean');\n }\n if (result === false && cellPropertiesReference.allowInvalid === false) {\n changes.splice(index, 1); // cancel the change\n cellPropertiesReference.valid = true; // we cancelled the change, so cell value is still valid\n var cell = instance.getCell(cellPropertiesReference.visualRow, cellPropertiesReference.visualCol);\n (0, _element.removeClass)(cell, instance.getSettings().invalidCellClassName);\n --index;\n }\n waitingForValidator.removeValidatorFormQueue();\n };\n }(i, cellProperties), source);\n }\n }\n }\n waitingForValidator.checkIfQueueIsEmpty();\n\n function resolve() {\n var beforeChangeResult = void 0;\n\n if (changes.length) {\n beforeChangeResult = instance.runHooks('beforeChange', changes, source || 'edit');\n if ((0, _function.isFunction)(beforeChangeResult)) {\n (0, _console.warn)('Your beforeChange callback returns a function. It\\'s not supported since Handsontable 0.12.1 (and the returned function will not be executed).');\n } else if (beforeChangeResult === false) {\n changes.splice(0, changes.length); // invalidate all changes (remove everything from array)\n }\n }\n callback(); // called when async validators are resolved and beforeChange was not async\n }\n }\n\n /**\n * Internal function to apply changes. Called after validateChanges\n *\n * @private\n * @param {Array} changes Array in form of [row, prop, oldValue, newValue]\n * @param {String} source String that identifies how this change will be described in changes array (useful in onChange callback)\n * @fires Hooks#beforeChangeRender\n * @fires Hooks#afterChange\n */\n function applyChanges(changes, source) {\n var i = changes.length - 1;\n\n if (i < 0) {\n return;\n }\n\n for (; i >= 0; i--) {\n var skipThisChange = false;\n\n if (changes[i] === null) {\n changes.splice(i, 1);\n /* eslint-disable no-continue */\n continue;\n }\n\n if (changes[i][2] == null && changes[i][3] == null) {\n /* eslint-disable no-continue */\n continue;\n }\n\n if (priv.settings.allowInsertRow) {\n while (changes[i][0] > instance.countRows() - 1) {\n var numberOfCreatedRows = datamap.createRow(void 0, void 0, source);\n\n if (numberOfCreatedRows === 0) {\n skipThisChange = true;\n break;\n }\n }\n }\n\n if (skipThisChange) {\n /* eslint-disable no-continue */\n continue;\n }\n\n if (instance.dataType === 'array' && (!priv.settings.columns || priv.settings.columns.length === 0) && priv.settings.allowInsertColumn) {\n while (datamap.propToCol(changes[i][1]) > instance.countCols() - 1) {\n datamap.createCol(void 0, void 0, source);\n }\n }\n\n datamap.set(changes[i][0], changes[i][1], changes[i][3]);\n }\n\n instance.forceFullRender = true; // used when data was changed\n grid.adjustRowsAndCols();\n instance.runHooks('beforeChangeRender', changes, source);\n editorManager.lockEditor();\n instance._refreshBorders(null);\n editorManager.unlockEditor();\n instance.view.wt.wtOverlays.adjustElementsSize();\n instance.runHooks('afterChange', changes, source || 'edit');\n\n var activeEditor = instance.getActiveEditor();\n\n if (activeEditor && (0, _mixed.isDefined)(activeEditor.refreshValue)) {\n activeEditor.refreshValue();\n }\n }\n\n /**\n * Validate a single cell.\n *\n * @param {String|Number} value\n * @param cellProperties\n * @param callback\n * @param source\n */\n this.validateCell = function (value, cellProperties, callback, source) {\n var validator = instance.getCellValidator(cellProperties);\n\n // the `canBeValidated = false` argument suggests, that the cell passes validation by default.\n function done(valid) {\n var canBeValidated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n // Fixes GH#3903\n if (!canBeValidated || cellProperties.hidden === true) {\n callback(valid);\n return;\n }\n\n var col = cellProperties.visualCol;\n var row = cellProperties.visualRow;\n var td = instance.getCell(row, col, true);\n\n if (td && td.nodeName !== 'TH') {\n instance.view.wt.wtSettings.settings.cellRenderer(row, col, td);\n }\n callback(valid);\n }\n\n if ((0, _mixed.isRegExp)(validator)) {\n validator = function (expression) {\n return function (cellValue, validatorCallback) {\n validatorCallback(expression.test(cellValue));\n };\n }(validator);\n }\n\n if ((0, _function.isFunction)(validator)) {\n\n value = instance.runHooks('beforeValidate', value, cellProperties.visualRow, cellProperties.prop, source);\n\n // To provide consistent behaviour, validation should be always asynchronous\n instance._registerTimeout(setTimeout(function () {\n validator.call(cellProperties, value, function (valid) {\n valid = instance.runHooks('afterValidate', valid, value, cellProperties.visualRow, cellProperties.prop, source);\n cellProperties.valid = valid;\n\n done(valid);\n instance.runHooks('postAfterValidate', valid, value, cellProperties.visualRow, cellProperties.prop, source);\n });\n }, 0));\n } else {\n // resolve callback even if validator function was not found\n instance._registerTimeout(setTimeout(function () {\n cellProperties.valid = true;\n done(cellProperties.valid, false);\n }, 0));\n }\n };\n\n function setDataInputToArray(row, propOrCol, value) {\n if ((typeof row === 'undefined' ? 'undefined' : _typeof(row)) === 'object') {\n // is it an array of changes\n return row;\n }\n return [[row, propOrCol, value]];\n }\n\n /**\n * @description\n * Set new value to a cell. To change many cells at once (recommended way), pass an array of `changes` in format\n * `[[row, col, value],...]` as the first argument.\n *\n * @memberof Core#\n * @function setDataAtCell\n * @param {Number|Array} row Visual row index or array of changes in format `[[row, col, value],...]`.\n * @param {Number} [column] Visual column index.\n * @param {String} [value] New value.\n * @param {String} [source] String that identifies how this change will be described in the changes array (useful in onAfterChange or onBeforeChange callback).\n */\n this.setDataAtCell = function (row, column, value, source) {\n var input = setDataInputToArray(row, column, value);\n var changes = [];\n var i = void 0;\n var ilen = void 0;\n var prop = void 0;\n\n for (i = 0, ilen = input.length; i < ilen; i++) {\n if (_typeof(input[i]) !== 'object') {\n throw new Error('Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter');\n }\n if (typeof input[i][1] !== 'number') {\n throw new Error('Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`');\n }\n prop = datamap.colToProp(input[i][1]);\n changes.push([input[i][0], prop, dataSource.getAtCell(recordTranslator.toPhysicalRow(input[i][0]), input[i][1]), input[i][2]]);\n }\n\n if (!source && (typeof row === 'undefined' ? 'undefined' : _typeof(row)) === 'object') {\n source = column;\n }\n\n instance.runHooks('afterSetDataAtCell', changes, source);\n\n validateChanges(changes, source, function () {\n applyChanges(changes, source);\n });\n };\n\n /**\n * @description\n * Set new value to a cell. To change many cells at once (recommended way), pass an array of `changes` in format\n * `[[row, prop, value],...]` as the first argument.\n *\n * @memberof Core#\n * @function setDataAtRowProp\n * @param {Number|Array} row Visual row index or array of changes in format `[[row, prop, value], ...]`.\n * @param {String} prop Property name or the source string (e.g. `'first.name'` or `'0'`).\n * @param {String} value Value to be set.\n * @param {String} [source] String that identifies how this change will be described in changes array (useful in onChange callback).\n */\n this.setDataAtRowProp = function (row, prop, value, source) {\n var input = setDataInputToArray(row, prop, value);\n var changes = [];\n var i = void 0;\n var ilen = void 0;\n\n for (i = 0, ilen = input.length; i < ilen; i++) {\n changes.push([input[i][0], input[i][1], dataSource.getAtCell(recordTranslator.toPhysicalRow(input[i][0]), input[i][1]), input[i][2]]);\n }\n\n if (!source && (typeof row === 'undefined' ? 'undefined' : _typeof(row)) === 'object') {\n source = prop;\n }\n\n instance.runHooks('afterSetDataAtRowProp', changes, source);\n\n validateChanges(changes, source, function () {\n applyChanges(changes, source);\n });\n };\n\n /**\n * Listen to the keyboard input on document body. This allows Handsontable to capture keyboard events and respond\n * in the right way.\n *\n * @memberof Core#\n * @function listen\n * @param {Boolean} [modifyDocumentFocus=true] If `true`, currently focused element will be blured (which returns focus\n * to the document.body). Otherwise the active element does not lose its focus.\n * @fires Hooks#afterListen\n */\n this.listen = function () {\n var modifyDocumentFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n if (modifyDocumentFocus) {\n var invalidActiveElement = !document.activeElement || document.activeElement && document.activeElement.nodeName === void 0;\n\n if (document.activeElement && document.activeElement !== document.body && !invalidActiveElement) {\n document.activeElement.blur();\n } else if (invalidActiveElement) {\n // IE\n document.body.focus();\n }\n }\n\n if (instance && !instance.isListening()) {\n activeGuid = instance.guid;\n instance.runHooks('afterListen');\n }\n };\n\n /**\n * Stop listening to keyboard input on the document body. Calling this method makes the Handsontable inactive for\n * any keyboard events.\n *\n * @memberof Core#\n * @function unlisten\n */\n this.unlisten = function () {\n if (this.isListening()) {\n activeGuid = null;\n instance.runHooks('afterUnlisten');\n }\n };\n\n /**\n * Returns `true` if the current Handsontable instance is listening to keyboard input on document body.\n *\n * @memberof Core#\n * @function isListening\n * @returns {Boolean} `true` if the instance is listening, `false` otherwise.\n */\n this.isListening = function () {\n return activeGuid === instance.guid;\n };\n\n /**\n * Destroys the current editor, render the table and prepares the editor of the newly selected cell.\n *\n * @memberof Core#\n * @function destroyEditor\n * @param {Boolean} [revertOriginal=false] If `true`, the previous value will be restored. Otherwise, the edited value will be saved.\n * @param {Boolean} [prepareEditorIfNeeded=true] If `true` the editor under the selected cell will be prepared to open.\n */\n this.destroyEditor = function () {\n var revertOriginal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var prepareEditorIfNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n instance._refreshBorders(revertOriginal, prepareEditorIfNeeded);\n };\n\n /**\n * Populate cells at position with 2D input array (e.g. `[[1, 2], [3, 4]]`). Use `endRow`, `endCol` when you\n * want to cut input when a certain row is reached.\n *\n * Optional `method` argument has the same effect as pasteMode option (see {@link Options#pasteMode}).\n *\n * @memberof Core#\n * @function populateFromArray\n * @param {Number} row Start visual row index.\n * @param {Number} column Start visual column index.\n * @param {Array} input 2d array\n * @param {Number} [endRow] End visual row index (use when you want to cut input when certain row is reached).\n * @param {Number} [endCol] End visual column index (use when you want to cut input when certain column is reached).\n * @param {String} [source=populateFromArray] Used to identify this call in the resulting events (beforeChange, afterChange).\n * @param {String} [method=overwrite] Populate method, possible values: `'shift_down'`, `'shift_right'`, `'overwrite'`.\n * @param {String} direction Populate direction, possible values: `'left'`, `'right'`, `'up'`, `'down'`.\n * @param {Array} deltas The deltas array. A difference between values of adjacent cells.\n * Useful **only** when the type of handled cells is `numeric`.\n */\n this.populateFromArray = function (row, column, input, endRow, endCol, source, method, direction, deltas) {\n var c = void 0;\n\n if (!((typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' && _typeof(input[0]) === 'object')) {\n throw new Error('populateFromArray parameter `input` must be an array of arrays'); // API changed in 0.9-beta2, let's check if you use it correctly\n }\n c = typeof endRow === 'number' ? new _src.CellCoords(endRow, endCol) : null;\n\n return grid.populateFromArray(new _src.CellCoords(row, column), input, c, source, method, direction, deltas);\n };\n\n /**\n * Adds/removes data from the column. This method works the same as Array.splice for arrays (see {@link DataMap#spliceCol}).\n *\n * @memberof Core#\n * @function spliceCol\n * @param {Number} column Index of the column in which do you want to do splice.\n * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end.\n * @param {Number} amount An integer indicating the number of old array elements to remove. If amount is 0, no elements are removed.\n * @param {...Number} [elements] The elements to add to the array. If you don't specify any elements, spliceCol simply removes elements from the array.\n */\n this.spliceCol = function (column, index, amount) {\n var _datamap;\n\n for (var _len2 = arguments.length, elements = Array(_len2 > 3 ? _len2 - 3 : 0), _key = 3; _key < _len2; _key++) {\n elements[_key - 3] = arguments[_key];\n }\n\n return (_datamap = datamap).spliceCol.apply(_datamap, [column, index, amount].concat(elements));\n };\n\n /**\n * Adds/removes data from the row. This method works the same as Array.splice for arrays (see {@link DataMap#spliceRow}).\n *\n * @memberof Core#\n * @function spliceRow\n * @param {Number} row Index of column in which do you want to do splice.\n * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end.\n * @param {Number} amount An integer indicating the number of old array elements to remove. If amount is 0, no elements are removed.\n * @param {...Number} [elements] The elements to add to the array. If you don't specify any elements, spliceCol simply removes elements from the array.\n */\n this.spliceRow = function (row, index, amount) {\n var _datamap2;\n\n for (var _len3 = arguments.length, elements = Array(_len3 > 3 ? _len3 - 3 : 0), _key2 = 3; _key2 < _len3; _key2++) {\n elements[_key2 - 3] = arguments[_key2];\n }\n\n return (_datamap2 = datamap).spliceRow.apply(_datamap2, [row, index, amount].concat(elements));\n };\n\n /**\n * Returns indexes of the currently selected cells as an array of arrays `[[startRow, startCol, endRow, endCol],...]`.\n *\n * Start row and start column are the coordinates of the active cell (where the selection was started).\n *\n * The version 0.36.0 adds a non-consecutive selection feature. Since this version, the method returns an array of arrays.\n * Additionally to collect the coordinates of the currently selected area (as it was previously done by the method)\n * you need to use `getSelectedLast` method.\n *\n * @memberof Core#\n * @function getSelected\n * @returns {Array[]|undefined} An array of arrays of the selection's coordinates.\n */\n this.getSelected = function () {\n // https://github.com/handsontable/handsontable/issues/44 //cjl\n if (selection.isSelected()) {\n return (0, _array.arrayMap)(selection.getSelectedRange(), function (_ref11) {\n var from = _ref11.from,\n to = _ref11.to;\n return [from.row, from.col, to.row, to.col];\n });\n }\n };\n\n /**\n * Returns the last coordinates applied to the table as a an array `[startRow, startCol, endRow, endCol]`.\n *\n * @since 0.36.0\n * @memberof Core#\n * @function getSelectedLast\n * @returns {Array|undefined} An array of the selection's coordinates.\n */\n this.getSelectedLast = function () {\n var selected = this.getSelected();\n var result = void 0;\n\n if (selected && selected.length > 0) {\n result = selected[selected.length - 1];\n }\n\n return result;\n };\n\n /**\n * Returns the current selection as an array of CellRange objects.\n *\n * The version 0.36.0 adds a non-consecutive selection feature. Since this version, the method returns an array of arrays.\n * Additionally to collect the coordinates of the currently selected area (as it was previously done by the method)\n * you need to use `getSelectedRangeLast` method.\n *\n * @memberof Core#\n * @function getSelectedRange\n * @returns {CellRange[]|undefined} Selected range object or undefined if there is no selection.\n */\n this.getSelectedRange = function () {\n // https://github.com/handsontable/handsontable/issues/44 //cjl\n if (selection.isSelected()) {\n return Array.from(selection.getSelectedRange());\n }\n };\n\n /**\n * Returns the last coordinates applied to the table as a CellRange object.\n *\n * @memberof Core#\n * @function getSelectedRangeLast\n * @since 0.36.0\n * @returns {CellRange|undefined} Selected range object or undefined` if there is no selection.\n */\n this.getSelectedRangeLast = function () {\n var selectedRange = this.getSelectedRange();\n var result = void 0;\n\n if (selectedRange && selectedRange.length > 0) {\n result = selectedRange[selectedRange.length - 1];\n }\n\n return result;\n };\n\n /**\n * Erases content from cells that have been selected in the table.\n *\n * @memberof Core#\n * @function emptySelectedCells\n * @since 0.36.0\n */\n this.emptySelectedCells = function () {\n var _this2 = this;\n\n if (!selection.isSelected()) {\n return;\n }\n var changes = [];\n\n (0, _array.arrayEach)(selection.getSelectedRange(), function (cellRange) {\n var topLeft = cellRange.getTopLeftCorner();\n var bottomRight = cellRange.getBottomRightCorner();\n\n (0, _number.rangeEach)(topLeft.row, bottomRight.row, function (row) {\n (0, _number.rangeEach)(topLeft.col, bottomRight.col, function (column) {\n if (!_this2.getCellMeta(row, column).readOnly) {\n changes.push([row, column, '']);\n }\n });\n });\n });\n\n if (changes.length > 0) {\n this.setDataAtCell(changes);\n }\n };\n\n /**\n * Rerender the table. Calling this method starts the process of recalculating, redrawing and applying the changes\n * to the DOM. While rendering the table all cell renderers are recalled.\n *\n * Calling this method manually is not recommended. Handsontable tries to render itself by choosing the most\n * optimal moments in its lifecycle.\n *\n * @memberof Core#\n * @function render\n */\n this.render = function () {\n if (instance.view) {\n instance.renderCall = true;\n instance.forceFullRender = true; // used when data was changed\n editorManager.lockEditor();\n instance._refreshBorders(null);\n editorManager.unlockEditor();\n }\n };\n\n /**\n * Loads new data to Handsontable. Loading new data resets the cell meta.\n *\n * @memberof Core#\n * @function loadData\n * @param {Array} data Array of arrays or array of objects containing data.\n * @fires Hooks#afterLoadData\n * @fires Hooks#afterChange\n */\n this.loadData = function (data) {\n if (Array.isArray(priv.settings.dataSchema)) {\n instance.dataType = 'array';\n } else if ((0, _function.isFunction)(priv.settings.dataSchema)) {\n instance.dataType = 'function';\n } else {\n instance.dataType = 'object';\n }\n\n if (datamap) {\n datamap.destroy();\n }\n datamap = new _dataMap2.default(instance, priv, GridSettings);\n\n if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' && data !== null) {\n if (!(data.push && data.splice)) {\n // check if data is array. Must use duck-type check so Backbone Collections also pass it\n // when data is not an array, attempt to make a single-row array of it\n data = [data];\n }\n } else if (data === null) {\n var dataSchema = datamap.getSchema();\n data = [];\n var row = void 0;\n var r = 0;\n var rlen = 0;\n\n for (r = 0, rlen = priv.settings.startRows; r < rlen; r++) {\n if ((instance.dataType === 'object' || instance.dataType === 'function') && priv.settings.dataSchema) {\n row = (0, _object.deepClone)(dataSchema);\n data.push(row);\n } else if (instance.dataType === 'array') {\n row = (0, _object.deepClone)(dataSchema[0]);\n data.push(row);\n } else {\n row = [];\n\n for (var c = 0, clen = priv.settings.startCols; c < clen; c++) {\n row.push(null);\n }\n\n data.push(row);\n }\n }\n } else {\n throw new Error('loadData only accepts array of objects or array of arrays (' + (typeof data === 'undefined' ? 'undefined' : _typeof(data)) + ' given)');\n }\n\n priv.isPopulated = false;\n GridSettings.prototype.data = data;\n\n if (Array.isArray(data[0])) {\n instance.dataType = 'array';\n }\n\n datamap.dataSource = data;\n dataSource.data = data;\n dataSource.dataType = instance.dataType;\n dataSource.colToProp = datamap.colToProp.bind(datamap);\n dataSource.propToCol = datamap.propToCol.bind(datamap);\n\n clearCellSettingCache();\n\n grid.adjustRowsAndCols();\n instance.runHooks('afterLoadData', priv.firstRun);\n\n if (priv.firstRun) {\n priv.firstRun = [null, 'loadData'];\n } else {\n instance.runHooks('afterChange', null, 'loadData');\n instance.render();\n }\n priv.isPopulated = true;\n\n function clearCellSettingCache() {\n priv.cellSettings.length = 0;\n }\n };\n\n /**\n * Returns the current data object (the same one that was passed by `data` configuration option or `loadData` method,\n * unless the `modifyRow` hook was used to trim some of the rows. If that's the case - use the {@link Core#getSourceData} method.).\n *\n * Optionally you can provide cell range by defining `row`, `column`, `row2`, `column2` to get only a fragment of table data.\n *\n * @memberof Core#\n * @function getData\n * @param {Number} [row] From visual row index.\n * @param {Number} [column] From visual column index.\n * @param {Number} [row2] To visual row index.\n * @param {Number} [column2] To visual column index.\n * @returns {Array[]} Array with the data.\n * @example\n * ```js\n * // Get all data (in order how it is rendered in the table).\n * hot.getData();\n * // Get data fragment (from top-left 0, 0 to bottom-right 3, 3).\n * hot.getData(3, 3);\n * // Get data fragment (from top-left 2, 1 to bottom-right 3, 3).\n * hot.getData(2, 1, 3, 3);\n * ```\n */\n this.getData = function (row, column, row2, column2) {\n if ((0, _mixed.isUndefined)(row)) {\n return datamap.getAll();\n }\n\n return datamap.getRange(new _src.CellCoords(row, column), new _src.CellCoords(row2, column2), datamap.DESTINATION_RENDERER);\n };\n\n /**\n * Returns a string value of the selected range. Each column is separated by tab, each row is separated by a new\n * line character (see {@link DataMap#getCopyableText}).\n *\n * @memberof Core#\n * @function getCopyableText\n * @param {Number} startRow From visual row index.\n * @param {Number} startCol From visual column index.\n * @param {Number} endRow To visual row index.\n * @param {Number} endCol To visual column index.\n * @returns {String}\n */\n this.getCopyableText = function (startRow, startCol, endRow, endCol) {\n return datamap.getCopyableText(new _src.CellCoords(startRow, startCol), new _src.CellCoords(endRow, endCol));\n };\n\n /**\n * Returns the data's copyable value at specified `row` and `column` index (see {@link DataMap#getCopyable}).\n *\n * @memberof Core#\n * @function getCopyableData\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @returns {String}\n */\n this.getCopyableData = function (row, column) {\n return datamap.getCopyable(row, datamap.colToProp(column));\n };\n\n /**\n * Returns schema provided by constructor settings. If it doesn't exist then it returns the schema based on the data\n * structure in the first row.\n *\n * @memberof Core#\n * @function getSchema\n * @returns {Object} Schema object.\n */\n this.getSchema = function () {\n return datamap.getSchema();\n };\n\n /**\n * Use it if you need to change configuration after initialization. The `settings` argument is an object containing the new\n * settings, declared the same way as in the initial settings object.\n *\n * __Note__, that although the `updateSettings` method doesn't overwrite the previously declared settings, it might reset\n * the settings made post-initialization. (for example - ignore changes made using the columnResize feature).\n *\n * @memberof Core#\n * @function updateSettings\n * @param {Object} settings New settings object (see {@link Options}).\n * @param {Boolean} [init=false] Internally used for in initialization mode.\n * @example\n * ```js\n * hot.updateSettings({\n * contextMenu: true,\n * colHeaders: true,\n * fixedRowsTop: 2\n * });\n * ```\n * @fires Hooks#afterCellMetaReset\n * @fires Hooks#afterUpdateSettings\n */\n this.updateSettings = function (settings) {\n var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var columnsAsFunc = false;\n var i = void 0;\n var j = void 0;\n var clen = void 0;\n\n if ((0, _mixed.isDefined)(settings.rows)) {\n throw new Error('\"rows\" setting is no longer supported. do you mean startRows, minRows or maxRows?');\n }\n if ((0, _mixed.isDefined)(settings.cols)) {\n throw new Error('\"cols\" setting is no longer supported. do you mean startCols, minCols or maxCols?');\n }\n\n for (i in settings) {\n if (i === 'data') {\n /* eslint-disable-next-line no-continue */\n continue; // loadData will be triggered later\n } else if (i === 'language') {\n setLanguage(settings.language);\n\n /* eslint-disable-next-line no-continue */\n continue;\n } else if (_pluginHooks2.default.getSingleton().getRegistered().indexOf(i) > -1) {\n if ((0, _function.isFunction)(settings[i]) || Array.isArray(settings[i])) {\n settings[i].initialHook = true;\n instance.addHook(i, settings[i]);\n }\n } else if (!init && (0, _object.hasOwnProperty)(settings, i)) {\n // Update settings\n GridSettings.prototype[i] = settings[i];\n }\n }\n\n // Load data or create data map\n if (settings.data === void 0 && priv.settings.data === void 0) {\n instance.loadData(null); // data source created just now\n } else if (settings.data !== void 0) {\n instance.loadData(settings.data); // data source given as option\n } else if (settings.columns !== void 0) {\n datamap.createMap();\n }\n\n clen = instance.countCols();\n\n var columnSetting = settings.columns || GridSettings.prototype.columns;\n\n // Init columns constructors configuration\n if (columnSetting && (0, _function.isFunction)(columnSetting)) {\n clen = instance.countSourceCols();\n columnsAsFunc = true;\n }\n\n // Clear cellSettings cache\n if (settings.cell !== void 0 || settings.cells !== void 0 || settings.columns !== void 0) {\n priv.cellSettings.length = 0;\n }\n\n if (clen > 0) {\n var proto = void 0;\n var column = void 0;\n\n for (i = 0, j = 0; i < clen; i++) {\n if (columnsAsFunc && !columnSetting(i)) {\n /* eslint-disable no-continue */\n continue;\n }\n priv.columnSettings[j] = (0, _setting.columnFactory)(GridSettings, priv.columnsSettingConflicts);\n\n // shortcut for prototype\n proto = priv.columnSettings[j].prototype;\n\n // Use settings provided by user\n if (columnSetting) {\n if (columnsAsFunc) {\n column = columnSetting(i);\n } else {\n column = columnSetting[j];\n }\n\n if (column) {\n (0, _object.extend)(proto, column);\n (0, _object.extend)(proto, expandType(column));\n }\n }\n\n j++;\n }\n }\n\n if ((0, _mixed.isDefined)(settings.cell)) {\n for (var key in settings.cell) {\n if ((0, _object.hasOwnProperty)(settings.cell, key)) {\n var cell = settings.cell[key];\n\n instance.setCellMetaObject(cell.row, cell.col, cell);\n }\n }\n }\n\n instance.runHooks('afterCellMetaReset');\n\n if ((0, _mixed.isDefined)(settings.className)) {\n if (GridSettings.prototype.className) {\n (0, _element.removeClass)(instance.rootElement, GridSettings.prototype.className);\n }\n if (settings.className) {\n (0, _element.addClass)(instance.rootElement, settings.className);\n }\n }\n\n var currentHeight = instance.rootElement.style.height;\n if (currentHeight !== '') {\n currentHeight = parseInt(instance.rootElement.style.height, 10);\n }\n\n var height = settings.height;\n if ((0, _function.isFunction)(height)) {\n height = height();\n }\n\n if (init) {\n var initialStyle = instance.rootElement.getAttribute('style');\n\n if (initialStyle) {\n instance.rootElement.setAttribute('data-initialstyle', instance.rootElement.getAttribute('style'));\n }\n }\n\n if (height === null) {\n var _initialStyle = instance.rootElement.getAttribute('data-initialstyle');\n\n if (_initialStyle && (_initialStyle.indexOf('height') > -1 || _initialStyle.indexOf('overflow') > -1)) {\n instance.rootElement.setAttribute('style', _initialStyle);\n } else {\n instance.rootElement.style.height = '';\n instance.rootElement.style.overflow = '';\n }\n } else if (height !== void 0) {\n instance.rootElement.style.height = height + 'px';\n instance.rootElement.style.overflow = 'hidden';\n }\n\n if (typeof settings.width !== 'undefined') {\n var width = settings.width;\n\n if ((0, _function.isFunction)(width)) {\n width = width();\n }\n\n instance.rootElement.style.width = width + 'px';\n }\n\n if (!init) {\n datamap.clearLengthCache(); // force clear cache length on updateSettings() #3416\n\n if (instance.view) {\n instance.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked();\n }\n\n instance.runHooks('afterUpdateSettings', settings);\n }\n\n grid.adjustRowsAndCols();\n if (instance.view && !priv.firstRun) {\n instance.forceFullRender = true; // used when data was changed\n editorManager.lockEditor();\n instance._refreshBorders(null);\n editorManager.unlockEditor();\n }\n\n if (!init && instance.view && (currentHeight === '' || height === '' || height === void 0) && currentHeight !== height) {\n instance.view.wt.wtOverlays.updateMainScrollableElements();\n }\n };\n\n /**\n * Get value from the selected cell.\n *\n * @memberof Core#\n * @function getValue\n * @returns {*} Value of selected cell.\n */\n this.getValue = function () {\n var sel = instance.getSelectedLast();\n\n if (GridSettings.prototype.getValue) {\n if ((0, _function.isFunction)(GridSettings.prototype.getValue)) {\n return GridSettings.prototype.getValue.call(instance);\n } else if (sel) {\n return instance.getData()[sel[0][0]][GridSettings.prototype.getValue];\n }\n } else if (sel) {\n return instance.getDataAtCell(sel[0], sel[1]);\n }\n };\n\n function expandType(obj) {\n if (!(0, _object.hasOwnProperty)(obj, 'type')) {\n // ignore obj.prototype.type\n return;\n }\n\n var expandedType = {};\n var type = void 0;\n\n if (_typeof(obj.type) === 'object') {\n type = obj.type;\n } else if (typeof obj.type === 'string') {\n type = (0, _cellTypes.getCellType)(obj.type);\n }\n\n for (var i in type) {\n if ((0, _object.hasOwnProperty)(type, i) && !(0, _object.hasOwnProperty)(obj, i)) {\n expandedType[i] = type[i];\n }\n }\n\n return expandedType;\n }\n\n /**\n * Returns the object settings.\n *\n * @memberof Core#\n * @function getSettings\n * @returns {Object} Object containing the current table settings.\n */\n this.getSettings = function () {\n return priv.settings;\n };\n\n /**\n * Clears the data from the table (the table settings remain intact).\n *\n * @memberof Core#\n * @function clear\n */\n this.clear = function () {\n this.selectAll();\n this.emptySelectedCells();\n };\n\n /**\n * Allows altering the table structure by either inserting/removing rows or columns.\n *\n * @memberof Core#\n * @function alter\n * @param {String} action Possible alter operations:\n * * `'insert_row'`\n * * `'insert_col'`\n * * `'remove_row'`\n * * `'remove_col'`\n * @param {Number|Number[]} index Visual index of the row/column before which the new row/column will be\n * inserted/removed or an array of arrays in format `[[index, amount],...]`.\n * @param {Number} [amount=1] Amount of rows/columns to be inserted or removed.\n * @param {String} [source] Source indicator.\n * @param {Boolean} [keepEmptyRows] Flag for preventing deletion of empty rows.\n * @example\n * ```js\n * // Insert new row above the row at given visual index.\n * hot.alter('insert_row', 10);\n * // Insert 3 new columns before 10th column.\n * hot.alter('insert_col', 10, 3);\n * // Remove 2 rows starting from 10th row.\n * hot.alter('remove_row', 10, 2);\n * // Remove 5 non-contiquous rows (it removes 3 rows from visual index 1 and 2 rows from visual index 5).\n * hot.alter('remove_row', [[1, 3], [5, 2]]);\n * ```\n */\n this.alter = function (action, index, amount, source, keepEmptyRows) {\n grid.alter(action, index, amount, source, keepEmptyRows);\n };\n\n /**\n * Returns a TD element for the given `row` and `column` arguments, if it is rendered on screen.\n * Returns `null` if the TD is not rendered on screen (probably because that part of the table is not visible).\n *\n * @memberof Core#\n * @function getCell\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {Boolean} [topmost=false] If set to `true`, it returns the TD element from the topmost overlay. For example,\n * if the wanted cell is in the range of fixed rows, it will return a TD element from the `top` overlay.\n * @returns {HTMLTableCellElement|null} The cell's TD element.\n */\n this.getCell = function (row, column) {\n var topmost = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n return instance.view.getCellAtCoords(new _src.CellCoords(row, column), topmost);\n };\n\n /**\n * Returns the coordinates of the cell, provided as a HTML table cell element.\n *\n * @memberof Core#\n * @function getCoords\n * @param {HTMLTableCellElement} element The HTML Element representing the cell.\n * @returns {CellCoords} Visual coordinates object.\n * @example\n * ```js\n * hot.getCoords(hot.getCell(1, 1));\n * // it returns CellCoords object instance with props row: 1 and col: 1.\n * ```\n */\n this.getCoords = function (element) {\n return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable, element);\n };\n\n /**\n * Returns the property name that corresponds with the given column index (see {@link DataMap#colToProp}).\n * If the data source is an array of arrays, it returns the columns index.\n *\n * @memberof Core#\n * @function colToProp\n * @param {Number} column Visual column index.\n * @returns {String|Number} Column property or physical column index.\n */\n this.colToProp = function (column) {\n return datamap.colToProp(column);\n };\n\n /**\n * Returns column index that corresponds with the given property (see {@link DataMap#propToCol}).\n *\n * @memberof Core#\n * @function propToCol\n * @param {String|Number} prop Property name or physical column index.\n * @returns {Number} Visual column index.\n */\n this.propToCol = function (prop) {\n return datamap.propToCol(prop);\n };\n\n /**\n * Translate physical row index into visual.\n *\n * This method is useful when you want to retrieve visual row index which can be reordered, moved or trimmed\n * based on a physical index\n *\n * @memberof Core#\n * @function toVisualRow\n * @param {Number} row Physical row index.\n * @returns {Number} Returns visual row index.\n */\n this.toVisualRow = function (row) {\n return recordTranslator.toVisualRow(row);\n };\n\n /**\n * Translate physical column index into visual.\n *\n * This method is useful when you want to retrieve visual column index which can be reordered, moved or trimmed\n * based on a physical index\n *\n * @memberof Core#\n * @function toVisualColumn\n * @param {Number} column Physical column index.\n * @returns {Number} Returns visual column index.\n */\n this.toVisualColumn = function (column) {\n return recordTranslator.toVisualColumn(column);\n };\n\n /**\n * Translate visual row index into physical.\n *\n * This method is useful when you want to retrieve physical row index based on a visual index which can be\n * reordered, moved or trimmed.\n *\n * @memberof Core#\n * @function toPhysicalRow\n * @param {Number} row Visual row index.\n * @returns {Number} Returns physical row index.\n */\n this.toPhysicalRow = function (row) {\n return recordTranslator.toPhysicalRow(row);\n };\n\n /**\n * Translate visual column index into physical.\n *\n * This method is useful when you want to retrieve physical column index based on a visual index which can be\n * reordered, moved or trimmed.\n *\n * @memberof Core#\n * @function toPhysicalColumn\n * @param {Number} column Visual column index.\n * @returns {Number} Returns physical column index.\n */\n this.toPhysicalColumn = function (column) {\n return recordTranslator.toPhysicalColumn(column);\n };\n\n /**\n * @description\n * Returns the cell value at `row`, `column`.\n *\n * __Note__: If data is reordered, sorted or trimmed, the currently visible order will be used.\n *\n * @memberof Core#\n * @function getDataAtCell\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @returns {*} Data at cell.\n */\n this.getDataAtCell = function (row, column) {\n return datamap.get(row, datamap.colToProp(column));\n };\n\n /**\n * Returns value at visual `row` and `prop` indexes (see {@link DataMap#get}).\n *\n * __Note__: If data is reordered, sorted or trimmed, the currently visible order will be used.\n *\n * @memberof Core#\n * @function getDataAtRowProp\n * @param {Number} row Visual row index.\n * @param {String} prop Property name.\n * @returns {*} Cell value.\n */\n this.getDataAtRowProp = function (row, prop) {\n return datamap.get(row, prop);\n };\n\n /**\n * @description\n * Returns array of column values from the data source.\n *\n * __Note__: If columns were reordered or sorted, the currently visible order will be used.\n *\n * @memberof Core#\n * @function getDataAtCol\n * @param {Number} column Visual column index.\n * @returns {Array} Array of cell values.\n */\n this.getDataAtCol = function (column) {\n var _ref12;\n\n return (_ref12 = []).concat.apply(_ref12, _toConsumableArray(datamap.getRange(new _src.CellCoords(0, column), new _src.CellCoords(priv.settings.data.length - 1, column), datamap.DESTINATION_RENDERER)));\n };\n\n /**\n * Given the object property name (e.g. `'first.name'` or `'0'`), returns an array of column's values from the table data.\n * You can also provide a column index as the first argument.\n *\n * @memberof Core#\n * @function getDataAtProp\n * @param {String|Number} prop Property name or physical column index.\n * @returns {Array} Array of cell values.\n */\n // TODO: Getting data from `datamap` should work on visual indexes.\n this.getDataAtProp = function (prop) {\n var _ref13;\n\n var range = datamap.getRange(new _src.CellCoords(0, datamap.propToCol(prop)), new _src.CellCoords(priv.settings.data.length - 1, datamap.propToCol(prop)), datamap.DESTINATION_RENDERER);\n\n return (_ref13 = []).concat.apply(_ref13, _toConsumableArray(range));\n };\n\n /**\n * Returns the source data object (the same that was passed by `data` configuration option or `loadData` method).\n * Optionally you can provide a cell range by using the `row`, `column`, `row2`, `column2` arguments, to get only a\n * fragment of the table data.\n *\n * __Note__: This method does not participate in data transformation. If the visual data of the table is reordered,\n * sorted or trimmed only physical indexes are correct.\n *\n * @memberof Core#\n * @function getSourceData\n * @param {Number} [row] From physical row index.\n * @param {Number} [column] From physical column index (or visual index, if data type is an array of objects).\n * @param {Number} [row2] To physical row index.\n * @param {Number} [column2] To physical column index (or visual index, if data type is an array of objects).\n * @returns {Array[]|Object[]} The table data.\n */\n this.getSourceData = function (row, column, row2, column2) {\n var data = void 0;\n\n if (row === void 0) {\n data = dataSource.getData();\n } else {\n data = dataSource.getByRange(new _src.CellCoords(row, column), new _src.CellCoords(row2, column2));\n }\n\n return data;\n };\n\n /**\n * Returns the source data object as an arrays of arrays format even when source data was provided in another format.\n * Optionally you can provide a cell range by using the `row`, `column`, `row2`, `column2` arguments, to get only a\n * fragment of the table data.\n *\n * __Note__: This method does not participate in data transformation. If the visual data of the table is reordered,\n * sorted or trimmed only physical indexes are correct.\n *\n * @memberof Core#\n * @function getSourceDataArray\n * @param {Number} [row] From physical row index.\n * @param {Number} [column] From physical column index (or visual index, if data type is an array of objects).\n * @param {Number} [row2] To physical row index.\n * @param {Number} [column2] To physical column index (or visual index, if data type is an array of objects).\n * @returns {Array} An array of arrays.\n */\n this.getSourceDataArray = function (row, column, row2, column2) {\n var data = void 0;\n\n if (row === void 0) {\n data = dataSource.getData(true);\n } else {\n data = dataSource.getByRange(new _src.CellCoords(row, column), new _src.CellCoords(row2, column2), true);\n }\n\n return data;\n };\n\n /**\n * Returns an array of column values from the data source.\n *\n * @memberof Core#\n * @function getSourceDataAtCol\n * @param {Number} column Visual column index.\n * @returns {Array} Array of the column's cell values.\n */\n // TODO: Getting data from `sourceData` should work always on physical indexes.\n this.getSourceDataAtCol = function (column) {\n return dataSource.getAtColumn(column);\n };\n\n /**\n * Returns a single row of the data (array or object, depending on what data format you use).\n *\n * __Note__: This method does not participate in data transformation. If the visual data of the table is reordered,\n * sorted or trimmed only physical indexes are correct.\n *\n * @memberof Core#\n * @function getSourceDataAtRow\n * @param {Number} row Physical row index.\n * @returns {Array|Object} Single row of data.\n */\n this.getSourceDataAtRow = function (row) {\n return dataSource.getAtRow(row);\n };\n\n /**\n * Returns a single value from the data source.\n *\n * @memberof Core#\n * @function getSourceDataAtCell\n * @param {Number} row Physical row index.\n * @param {Number} column Visual column index.\n * @returns {*} Cell data.\n */\n // TODO: Getting data from `sourceData` should work always on physical indexes.\n this.getSourceDataAtCell = function (row, column) {\n return dataSource.getAtCell(row, column);\n };\n\n /**\n * @description\n * Returns a single row of the data.\n *\n * __Note__: If rows were reordered, sorted or trimmed, the currently visible order will be used.\n *\n * @memberof Core#\n * @function getDataAtRow\n * @param {Number} row Visual row index.\n * @returns {Array} Array of row's cell data.\n */\n this.getDataAtRow = function (row) {\n var data = datamap.getRange(new _src.CellCoords(row, 0), new _src.CellCoords(row, this.countCols() - 1), datamap.DESTINATION_RENDERER);\n\n return data[0] || [];\n };\n\n /**\n * @description\n * Returns a data type defined in the Handsontable settings under the `type` key ([Options#type](http://docs.handsontable.com/Options.html#type)).\n * If there are cells with different types in the selected range, it returns `'mixed'`.\n *\n * __Note__: If data is reordered, sorted or trimmed, the currently visible order will be used.\n *\n * @memberof Core#\n * @function getDataType\n * @param {Number} rowFrom From visual row index.\n * @param {Number} columnFrom From visual column index.\n * @param {Number} rowTo To visual row index.\n * @param {Number} columnTo To visual column index.\n * @returns {String} Cell type (e.q: `'mixed'`, `'text'`, `'numeric'`, `'autocomplete'`).\n */\n this.getDataType = function (rowFrom, columnFrom, rowTo, columnTo) {\n var _this3 = this;\n\n var previousType = null;\n var currentType = null;\n\n if (rowFrom === void 0) {\n rowFrom = 0;\n rowTo = this.countRows();\n columnFrom = 0;\n columnTo = this.countCols();\n }\n if (rowTo === void 0) {\n rowTo = rowFrom;\n }\n if (columnTo === void 0) {\n columnTo = columnFrom;\n }\n var type = 'mixed';\n\n (0, _number.rangeEach)(Math.min(rowFrom, rowTo), Math.max(rowFrom, rowTo), function (row) {\n var isTypeEqual = true;\n\n (0, _number.rangeEach)(Math.min(columnFrom, columnTo), Math.max(columnFrom, columnTo), function (column) {\n var cellType = _this3.getCellMeta(row, column);\n\n currentType = cellType.type;\n\n if (previousType) {\n isTypeEqual = previousType === currentType;\n } else {\n previousType = currentType;\n }\n\n return isTypeEqual;\n });\n type = isTypeEqual ? currentType : 'mixed';\n\n return isTypeEqual;\n });\n\n return type;\n };\n\n /**\n * Remove a property defined by the `key` argument from the cell meta object for the provided `row` and `column` coordinates.\n *\n * @memberof Core#\n * @function removeCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String} key Property name.\n * @fires Hooks#beforeRemoveCellMeta\n * @fires Hooks#afterRemoveCellMeta\n */\n this.removeCellMeta = function (row, column, key) {\n var _recordTranslator$toP = recordTranslator.toPhysical(row, column),\n _recordTranslator$toP2 = _slicedToArray(_recordTranslator$toP, 2),\n physicalRow = _recordTranslator$toP2[0],\n physicalColumn = _recordTranslator$toP2[1];\n\n var cachedValue = priv.cellSettings[physicalRow][physicalColumn][key];\n\n var hookResult = instance.runHooks('beforeRemoveCellMeta', row, column, key, cachedValue);\n\n if (hookResult !== false) {\n delete priv.cellSettings[physicalRow][physicalColumn][key];\n\n instance.runHooks('afterRemoveCellMeta', row, column, key, cachedValue);\n }\n\n cachedValue = null;\n };\n\n /**\n * Remove one or more rows from the cell meta object.\n *\n * @since 0.30.0\n * @param {Number} index An integer that specifies at what position to add/remove items, Use negative values to specify the position from the end of the array.\n * @param {Number} deleteAmount The number of items to be removed. If set to 0, no items will be removed.\n * @param {Array} items The new items to be added to the array.\n */\n this.spliceCellsMeta = function (index, deleteAmount) {\n var _priv$cellSettings;\n\n for (var _len4 = arguments.length, items = Array(_len4 > 2 ? _len4 - 2 : 0), _key3 = 2; _key3 < _len4; _key3++) {\n items[_key3 - 2] = arguments[_key3];\n }\n\n (_priv$cellSettings = priv.cellSettings).splice.apply(_priv$cellSettings, [index, deleteAmount].concat(items));\n };\n\n /**\n * Set cell meta data object defined by `prop` to the corresponding params `row` and `column`.\n *\n * @memberof Core#\n * @function setCellMetaObject\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {Object} prop Meta object.\n */\n this.setCellMetaObject = function (row, column, prop) {\n if ((typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) === 'object') {\n for (var key in prop) {\n if ((0, _object.hasOwnProperty)(prop, key)) {\n var value = prop[key];\n this.setCellMeta(row, column, key, value);\n }\n }\n }\n };\n\n /**\n * Sets a property defined by the `key` property to the meta object of a cell corresponding to params `row` and `column`.\n *\n * @memberof Core#\n * @function setCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @param {String} key Property name.\n * @param {String} value Property value.\n * @fires Hooks#afterSetCellMeta\n */\n this.setCellMeta = function (row, column, key, value) {\n var _recordTranslator$toP3 = recordTranslator.toPhysical(row, column),\n _recordTranslator$toP4 = _slicedToArray(_recordTranslator$toP3, 2),\n physicalRow = _recordTranslator$toP4[0],\n physicalColumn = _recordTranslator$toP4[1];\n\n if (!priv.columnSettings[physicalColumn]) {\n priv.columnSettings[physicalColumn] = (0, _setting.columnFactory)(GridSettings, priv.columnsSettingConflicts);\n }\n\n if (!priv.cellSettings[physicalRow]) {\n priv.cellSettings[physicalRow] = [];\n }\n if (!priv.cellSettings[physicalRow][physicalColumn]) {\n priv.cellSettings[physicalRow][physicalColumn] = new priv.columnSettings[physicalColumn]();\n }\n priv.cellSettings[physicalRow][physicalColumn][key] = value;\n instance.runHooks('afterSetCellMeta', row, column, key, value);\n };\n\n /**\n * Get all the cells meta settings at least once generated in the table (in order of cell initialization).\n *\n * @memberof Core#\n * @function getCellsMeta\n * @returns {Array} Returns an array of ColumnSettings object instances.\n */\n this.getCellsMeta = function () {\n return (0, _array.arrayFlatten)(priv.cellSettings);\n };\n\n /**\n * Returns the cell properties object for the given `row` and `column` coordinates.\n *\n * @memberof Core#\n * @function getCellMeta\n * @param {Number} row Visual row index.\n * @param {Number} column Visual column index.\n * @returns {Object} The cell properties object.\n * @fires Hooks#beforeGetCellMeta\n * @fires Hooks#afterGetCellMeta\n */\n this.getCellMeta = function (row, column) {\n var prop = datamap.colToProp(column);\n var cellProperties = void 0;\n\n var _recordTranslator$toP5 = recordTranslator.toPhysical(row, column),\n _recordTranslator$toP6 = _slicedToArray(_recordTranslator$toP5, 2),\n physicalRow = _recordTranslator$toP6[0],\n physicalColumn = _recordTranslator$toP6[1];\n\n // Workaround for #11. Connected also with #3849. It should be fixed within #4497.\n\n\n if (physicalRow === null) {\n physicalRow = row;\n }\n\n if (!priv.columnSettings[physicalColumn]) {\n priv.columnSettings[physicalColumn] = (0, _setting.columnFactory)(GridSettings, priv.columnsSettingConflicts);\n }\n\n if (!priv.cellSettings[physicalRow]) {\n priv.cellSettings[physicalRow] = [];\n }\n if (!priv.cellSettings[physicalRow][physicalColumn]) {\n priv.cellSettings[physicalRow][physicalColumn] = new priv.columnSettings[physicalColumn]();\n }\n\n cellProperties = priv.cellSettings[physicalRow][physicalColumn]; // retrieve cellProperties from cache\n\n cellProperties.row = physicalRow;\n cellProperties.col = physicalColumn;\n cellProperties.visualRow = row;\n cellProperties.visualCol = column;\n cellProperties.prop = prop;\n cellProperties.instance = instance;\n\n instance.runHooks('beforeGetCellMeta', row, column, cellProperties);\n (0, _object.extend)(cellProperties, expandType(cellProperties)); // for `type` added in beforeGetCellMeta\n\n if (cellProperties.cells) {\n var settings = cellProperties.cells.call(cellProperties, physicalRow, physicalColumn, prop);\n\n if (settings) {\n (0, _object.extend)(cellProperties, settings);\n (0, _object.extend)(cellProperties, expandType(settings)); // for `type` added in cells\n }\n }\n\n instance.runHooks('afterGetCellMeta', row, column, cellProperties);\n\n return cellProperties;\n };\n\n /**\n * Returns an array of cell meta objects for specyfied physical row index.\n *\n * @memberof Core#\n * @function getCellMetaAtRow\n * @param {Number} row Physical row index.\n * @returns {Array}\n */\n this.getCellMetaAtRow = function (row) {\n return priv.cellSettings[row];\n };\n\n /**\n * Checks if the data format and config allows user to modify the column structure.\n *\n * @memberof Core#\n * @function isColumnModificationAllowed\n * @returns {Boolean}\n */\n this.isColumnModificationAllowed = function () {\n return !(instance.dataType === 'object' || instance.getSettings().columns);\n };\n\n var rendererLookup = (0, _data.cellMethodLookupFactory)('renderer');\n\n /**\n * Returns the cell renderer function by given `row` and `column` arguments.\n *\n * @memberof Core#\n * @function getCellRenderer\n * @param {Number|Object} row Visual row index or cell meta object (see {@link Core#getCellMeta}).\n * @param {Number} column Visual column index.\n * @returns {Function} The renderer function.\n * @example\n * ```js\n * // Get cell renderer using `row` and `column` coordinates.\n * hot.getCellRenderer(1, 1);\n * // Get cell renderer using cell meta object.\n * hot.getCellRenderer(hot.getCellMeta(1, 1));\n * ```\n */\n this.getCellRenderer = function (row, column) {\n return (0, _renderers.getRenderer)(rendererLookup.call(this, row, column));\n };\n\n /**\n * Returns the cell editor class by the provided `row` and `column` arguments.\n *\n * @memberof Core#\n * @function getCellEditor\n * @param {Number} row Visual row index or cell meta object (see {@link Core#getCellMeta}).\n * @param {Number} column Visual column index.\n * @returns {Function} The editor class.\n * @example\n * ```js\n * // Get cell editor class using `row` and `column` coordinates.\n * hot.getCellEditor(1, 1);\n * // Get cell editor class using cell meta object.\n * hot.getCellEditor(hot.getCellMeta(1, 1));\n * ```\n */\n this.getCellEditor = (0, _data.cellMethodLookupFactory)('editor');\n\n var validatorLookup = (0, _data.cellMethodLookupFactory)('validator');\n\n /**\n * Returns the cell validator by `row` and `column`.\n *\n * @memberof Core#\n * @function getCellValidator\n * @param {Number|Object} row Visual row index or cell meta object (see {@link Core#getCellMeta}).\n * @param {Number} column Visual column index.\n * @returns {Function|RegExp|undefined} The validator function.\n * @example\n * ```js\n * // Get cell valiator using `row` and `column` coordinates.\n * hot.getCellValidator(1, 1);\n * // Get cell valiator using cell meta object.\n * hot.getCellValidator(hot.getCellMeta(1, 1));\n * ```\n */\n this.getCellValidator = function (row, column) {\n var validator = validatorLookup.call(this, row, column);\n\n if (typeof validator === 'string') {\n validator = (0, _validators.getValidator)(validator);\n }\n\n return validator;\n };\n\n /**\n * Validates all cells using their validator functions and calls callback when finished.\n *\n * If one of the cells is invalid, the callback will be fired with `'valid'` arguments as `false` - otherwise it\n * would equal `true`.\n *\n * @memberof Core#\n * @function validateCells\n * @param {Function} [callback] The callback function.\n * @example\n * ```js\n * hot.validateCells((valid) => {\n * if (valid) {\n * // ... code for validated cells\n * }\n * })\n * ```\n */\n this.validateCells = function (callback) {\n this._validateCells(callback);\n };\n\n /**\n * Validates rows using their validator functions and calls callback when finished.\n *\n * If one of the cells is invalid, the callback will be fired with `'valid'` arguments as `false` - otherwise it\n * would equal `true`.\n *\n * @memberof Core#\n * @function validateRows\n * @param {Array} [rows] Array of validation target visual row indexes.\n * @param {Function} [callback] The callback function.\n * @example\n * ```js\n * hot.validateRows([3, 4, 5], (valid) => {\n * if (valid) {\n * // ... code for validated rows\n * }\n * })\n * ```\n */\n this.validateRows = function (rows, callback) {\n if (!Array.isArray(rows)) {\n throw new Error('validateRows parameter `rows` must be an array');\n }\n this._validateCells(callback, rows);\n };\n\n /**\n * Validates columns using their validator functions and calls callback when finished.\n *\n * If one of the cells is invalid, the callback will be fired with `'valid'` arguments as `false` - otherwise it\n * would equal `true`.\n *\n * @memberof Core#\n * @function validateColumns\n * @param {Array} [columns] Array of validation target visual columns indexes.\n * @param {Function} [callback] The callback function.\n * @example\n * ```js\n * hot.validateColumns([3, 4, 5], (valid) => {\n * if (valid) {\n * // ... code for validated columns\n * }\n * })\n * ```\n */\n this.validateColumns = function (columns, callback) {\n if (!Array.isArray(columns)) {\n throw new Error('validateColumns parameter `columns` must be an array');\n }\n this._validateCells(callback, undefined, columns);\n };\n\n /**\n * Validates all cells using their validator functions and calls callback when finished.\n *\n * If one of the cells is invalid, the callback will be fired with `'valid'` arguments as `false` - otherwise it would equal `true`.\n *\n * Private use intended.\n *\n * @private\n * @memberof Core#\n * @function _validateCells\n * @param {Function} [callback] The callback function.\n * @param {Array} [rows] An array of validation target visual row indexes.\n * @param {Array} [columns] An array of validation target visual column indexes.\n */\n this._validateCells = function (callback, rows, columns) {\n var waitingForValidator = new ValidatorsQueue();\n\n if (callback) {\n waitingForValidator.onQueueEmpty = callback;\n }\n\n var i = instance.countRows() - 1;\n\n while (i >= 0) {\n if (rows !== undefined && rows.indexOf(i) === -1) {\n i--;\n continue;\n }\n var j = instance.countCols() - 1;\n\n while (j >= 0) {\n if (columns !== undefined && columns.indexOf(j) === -1) {\n j--;\n continue;\n }\n waitingForValidator.addValidatorToQueue();\n\n instance.validateCell(instance.getDataAtCell(i, j), instance.getCellMeta(i, j), function (result) {\n if (typeof result !== 'boolean') {\n throw new Error('Validation error: result is not boolean');\n }\n if (result === false) {\n waitingForValidator.valid = false;\n }\n waitingForValidator.removeValidatorFormQueue();\n }, 'validateCells');\n j--;\n }\n i--;\n }\n waitingForValidator.checkIfQueueIsEmpty();\n };\n\n /**\n * Returns an array of row headers' values (if they are enabled). If param `row` was given, it returns the header of the given row as a string.\n *\n * @memberof Core#\n * @function getRowHeader\n * @param {Number} [row] Visual row index.\n * @fires Hooks#modifyRowHeader\n * @returns {Array|String|Number} Array of header values / single header value.\n */\n this.getRowHeader = function (row) {\n var rowHeader = priv.settings.rowHeaders;\n\n if (row !== void 0) {\n row = instance.runHooks('modifyRowHeader', row);\n }\n if (row === void 0) {\n rowHeader = [];\n (0, _number.rangeEach)(instance.countRows() - 1, function (i) {\n rowHeader.push(instance.getRowHeader(i));\n });\n } else if (Array.isArray(rowHeader) && rowHeader[row] !== void 0) {\n rowHeader = rowHeader[row];\n } else if ((0, _function.isFunction)(rowHeader)) {\n rowHeader = rowHeader(row);\n } else if (rowHeader && typeof rowHeader !== 'string' && typeof rowHeader !== 'number') {\n rowHeader = row + 1;\n }\n\n return rowHeader;\n };\n\n /**\n * Returns information about if this table is configured to display row headers.\n *\n * @memberof Core#\n * @function hasRowHeaders\n * @returns {Boolean} `true` if the instance has the row headers enabled, `false` otherwise.\n */\n this.hasRowHeaders = function () {\n return !!priv.settings.rowHeaders;\n };\n\n /**\n * Returns information about if this table is configured to display column headers.\n *\n * @memberof Core#\n * @function hasColHeaders\n * @returns {Boolean} `true` if the instance has the column headers enabled, `false` otherwise.\n */\n this.hasColHeaders = function () {\n if (priv.settings.colHeaders !== void 0 && priv.settings.colHeaders !== null) {\n // Polymer has empty value = null\n return !!priv.settings.colHeaders;\n }\n for (var i = 0, ilen = instance.countCols(); i < ilen; i++) {\n if (instance.getColHeader(i)) {\n return true;\n }\n }\n\n return false;\n };\n\n /**\n * Returns an array of column headers (in string format, if they are enabled). If param `column` is given, it\n * returns the header at the given column.\n *\n * @memberof Core#\n * @function getColHeader\n * @param {Number} [column] Visual column index.\n * @fires Hooks#modifyColHeader\n * @returns {Array|String|Number} The column header(s).\n */\n this.getColHeader = function (column) {\n var columnsAsFunc = priv.settings.columns && (0, _function.isFunction)(priv.settings.columns);\n var result = priv.settings.colHeaders;\n\n column = instance.runHooks('modifyColHeader', column);\n\n if (column === void 0) {\n var out = [];\n var ilen = columnsAsFunc ? instance.countSourceCols() : instance.countCols();\n\n for (var i = 0; i < ilen; i++) {\n out.push(instance.getColHeader(i));\n }\n\n result = out;\n } else {\n var translateVisualIndexToColumns = function translateVisualIndexToColumns(visualColumnIndex) {\n var arr = [];\n var columnsLen = instance.countSourceCols();\n var index = 0;\n\n for (; index < columnsLen; index++) {\n if ((0, _function.isFunction)(instance.getSettings().columns) && instance.getSettings().columns(index)) {\n arr.push(index);\n }\n }\n\n return arr[visualColumnIndex];\n };\n var baseCol = column;\n column = instance.runHooks('modifyCol', column);\n\n var prop = translateVisualIndexToColumns(column);\n\n if (priv.settings.columns && (0, _function.isFunction)(priv.settings.columns) && priv.settings.columns(prop) && priv.settings.columns(prop).title) {\n result = priv.settings.columns(prop).title;\n } else if (priv.settings.columns && priv.settings.columns[column] && priv.settings.columns[column].title) {\n result = priv.settings.columns[column].title;\n } else if (Array.isArray(priv.settings.colHeaders) && priv.settings.colHeaders[column] !== void 0) {\n result = priv.settings.colHeaders[column];\n } else if ((0, _function.isFunction)(priv.settings.colHeaders)) {\n result = priv.settings.colHeaders(column);\n } else if (priv.settings.colHeaders && typeof priv.settings.colHeaders !== 'string' && typeof priv.settings.colHeaders !== 'number') {\n result = (0, _data.spreadsheetColumnLabel)(baseCol); // see #1458\n }\n }\n\n return result;\n };\n\n /**\n * Return column width from settings (no guessing). Private use intended.\n *\n * @private\n * @memberof Core#\n * @function _getColWidthFromSettings\n * @param {Number} col Visual col index.\n * @returns {Number}\n */\n this._getColWidthFromSettings = function (col) {\n var cellProperties = instance.getCellMeta(0, col);\n var width = cellProperties.width;\n\n if (width === void 0 || width === priv.settings.width) {\n width = cellProperties.colWidths;\n }\n if (width !== void 0 && width !== null) {\n switch (typeof width === 'undefined' ? 'undefined' : _typeof(width)) {\n case 'object':\n // array\n width = width[col];\n break;\n\n case 'function':\n width = width(col);\n break;\n default:\n break;\n }\n if (typeof width === 'string') {\n width = parseInt(width, 10);\n }\n }\n\n return width;\n };\n\n /**\n * Returns the width of the requested column.\n *\n * @memberof Core#\n * @function getColWidth\n * @param {Number} column Visual column index.\n * @returns {Number} Column width.\n * @fires Hooks#modifyColWidth\n */\n this.getColWidth = function (column) {\n var width = instance._getColWidthFromSettings(column);\n\n width = instance.runHooks('modifyColWidth', width, column);\n\n if (width === void 0) {\n width = _src.ViewportColumnsCalculator.DEFAULT_WIDTH;\n }\n\n return width;\n };\n\n /**\n * Return row height from settings (no guessing). Private use intended.\n *\n * @private\n * @memberof Core#\n * @function _getRowHeightFromSettings\n * @param {Number} row Visual row index.\n * @returns {Number}\n */\n this._getRowHeightFromSettings = function (row) {\n // let cellProperties = instance.getCellMeta(row, 0);\n // let height = cellProperties.height;\n //\n // if (height === void 0 || height === priv.settings.height) {\n // height = cellProperties.rowHeights;\n // }\n var height = priv.settings.rowHeights;\n\n if (height !== void 0 && height !== null) {\n switch (typeof height === 'undefined' ? 'undefined' : _typeof(height)) {\n case 'object':\n // array\n height = height[row];\n break;\n\n case 'function':\n height = height(row);\n break;\n default:\n break;\n }\n if (typeof height === 'string') {\n height = parseInt(height, 10);\n }\n }\n\n return height;\n };\n\n /**\n * Returns the row height.\n *\n * @memberof Core#\n * @function getRowHeight\n * @param {Number} row Visual row index.\n * @returns {Number} The given row's height.\n * @fires Hooks#modifyRowHeight\n */\n this.getRowHeight = function (row) {\n var height = instance._getRowHeightFromSettings(row);\n\n height = instance.runHooks('modifyRowHeight', height, row);\n\n return height;\n };\n\n /**\n * Returns the total number of rows in the data source.\n *\n * @memberof Core#\n * @function countSourceRows\n * @returns {Number} Total number of rows.\n */\n this.countSourceRows = function () {\n var sourceLength = instance.runHooks('modifySourceLength');\n return sourceLength || (instance.getSourceData() ? instance.getSourceData().length : 0);\n };\n\n /**\n * Returns the total number of columns in the data source.\n *\n * @memberof Core#\n * @function countSourceCols\n * @returns {Number} Total number of columns.\n */\n this.countSourceCols = function () {\n var len = 0;\n var obj = instance.getSourceData() && instance.getSourceData()[0] ? instance.getSourceData()[0] : [];\n\n if ((0, _object.isObject)(obj)) {\n len = (0, _object.deepObjectSize)(obj);\n } else {\n len = obj.length || 0;\n }\n\n return len;\n };\n\n /**\n * Returns the total number of visual rows in the table.\n *\n * @memberof Core#\n * @function countRows\n * @returns {Number} Total number of rows.\n */\n this.countRows = function () {\n return datamap.getLength();\n };\n\n /**\n * Returns the total number of visible columns in the table.\n *\n * @memberof Core#\n * @function countCols\n * @returns {Number} Total number of columns.\n */\n this.countCols = function () {\n var maxCols = this.getSettings().maxCols;\n var dataHasLength = false;\n var dataLen = 0;\n\n if (instance.dataType === 'array') {\n dataHasLength = priv.settings.data && priv.settings.data[0] && priv.settings.data[0].length;\n }\n\n if (dataHasLength) {\n dataLen = priv.settings.data[0].length;\n }\n\n if (priv.settings.columns) {\n var columnsIsFunction = (0, _function.isFunction)(priv.settings.columns);\n\n if (columnsIsFunction) {\n if (instance.dataType === 'array') {\n var columnLen = 0;\n\n for (var i = 0; i < dataLen; i++) {\n if (priv.settings.columns(i)) {\n columnLen++;\n }\n }\n\n dataLen = columnLen;\n } else if (instance.dataType === 'object' || instance.dataType === 'function') {\n dataLen = datamap.colToPropCache.length;\n }\n } else {\n dataLen = priv.settings.columns.length;\n }\n } else if (instance.dataType === 'object' || instance.dataType === 'function') {\n dataLen = datamap.colToPropCache.length;\n }\n\n return Math.min(maxCols, dataLen);\n };\n\n /**\n * Returns an visual index of the first rendered row.\n *\n * @memberof Core#\n * @function rowOffset\n * @returns {Number} Visual index of first rendered row.\n */\n this.rowOffset = function () {\n return instance.view.wt.wtTable.getFirstRenderedRow();\n };\n\n /**\n * Returns the visual index of the first rendered column.\n *\n * @memberof Core#\n * @function colOffset\n * @returns {Number} Visual index of the first visible column.\n */\n this.colOffset = function () {\n return instance.view.wt.wtTable.getFirstRenderedColumn();\n };\n\n /**\n * Returns the number of rendered rows (including rows partially or fully rendered outside viewport).\n *\n * @memberof Core#\n * @function countRenderedRows\n * @returns {Number} Returns -1 if table is not visible.\n */\n this.countRenderedRows = function () {\n return instance.view.wt.drawn ? instance.view.wt.wtTable.getRenderedRowsCount() : -1;\n };\n\n /**\n * Returns the number of visible rows (rendered rows that fully fit inside viewport).\n *\n * @memberof Core#\n * @function countVisibleRows\n * @returns {Number} Number of visible rows or -1.\n */\n this.countVisibleRows = function () {\n return instance.view.wt.drawn ? instance.view.wt.wtTable.getVisibleRowsCount() : -1;\n };\n\n /**\n * Returns the number of rendered columns (including columns partially or fully rendered outside viewport).\n *\n * @memberof Core#\n * @function countRenderedCols\n * @returns {Number} Returns -1 if table is not visible.\n */\n this.countRenderedCols = function () {\n return instance.view.wt.drawn ? instance.view.wt.wtTable.getRenderedColumnsCount() : -1;\n };\n\n /**\n * Returns the number of visible columns. Returns -1 if table is not visible\n *\n * @memberof Core#\n * @function countVisibleCols\n * @return {Number} Number of visible columns or -1.\n */\n this.countVisibleCols = function () {\n return instance.view.wt.drawn ? instance.view.wt.wtTable.getVisibleColumnsCount() : -1;\n };\n\n /**\n * Returns the number of empty rows. If the optional ending parameter is `true`, returns the\n * number of empty rows at the bottom of the table.\n *\n * @memberof Core#\n * @function countEmptyRows\n * @param {Boolean} [ending=false] If `true`, will only count empty rows at the end of the data source.\n * @returns {Number} Count empty rows.\n */\n this.countEmptyRows = function () {\n var ending = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var emptyRows = 0;\n\n (0, _number.rangeEachReverse)(instance.countRows() - 1, function (visualIndex) {\n if (instance.isEmptyRow(visualIndex)) {\n emptyRows += 1;\n } else if (ending === true) {\n return false;\n }\n });\n\n return emptyRows;\n };\n\n /**\n * Returns the number of empty columns. If the optional ending parameter is `true`, returns the number of empty\n * columns at right hand edge of the table.\n *\n * @memberof Core#\n * @function countEmptyCols\n * @param {Boolean} [ending=false] If `true`, will only count empty columns at the end of the data source row.\n * @returns {Number} Count empty cols.\n */\n this.countEmptyCols = function () {\n var ending = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (instance.countRows() < 1) {\n return 0;\n }\n\n var emptyColumns = 0;\n\n (0, _number.rangeEachReverse)(instance.countCols() - 1, function (visualIndex) {\n if (instance.isEmptyCol(visualIndex)) {\n emptyColumns += 1;\n } else if (ending === true) {\n return false;\n }\n });\n\n return emptyColumns;\n };\n\n /**\n * Check if all cells in the row declared by the `row` argument are empty.\n *\n * @memberof Core#\n * @function isEmptyRow\n * @param {Number} row Visual row index.\n * @returns {Boolean} `true` if the row at the given `row` is empty, `false` otherwise.\n */\n this.isEmptyRow = function (row) {\n return priv.settings.isEmptyRow.call(instance, row);\n };\n\n /**\n * Check if all cells in the the column declared by the `column` argument are empty.\n *\n * @memberof Core#\n * @function isEmptyCol\n * @param {Number} column Column index.\n * @returns {Boolean} `true` if the column at the given `col` is empty, `false` otherwise.\n */\n this.isEmptyCol = function (column) {\n return priv.settings.isEmptyCol.call(instance, column);\n };\n\n /**\n * Select cell specified by `row` and `column` values or a range of cells finishing at `endRow`, `endCol`. If the table\n * was configured to support data column properties that properties can be used to making a selection.\n *\n * By default, viewport will be scrolled to the selection. After the `selectCell` method had finished, the instance\n * will be listening to keyboard input on the document.\n *\n * @example\n * ```js\n * // select a single cell\n * hot.selectCell(2, 4);\n * // select a single cell using column property\n * hot.selectCell(2, 'address');\n * // select a range of cells\n * hot.selectCell(2, 4, 3, 5);\n * // select a range of cells using column properties\n * hot.selectCell(2, 'address', 3, 'phone_number');\n * // select a range of cells without scrolling to them\n * hot.selectCell(2, 'address', 3, 'phone_number', false);\n * ```\n *\n * @memberof Core#\n * @function selectCell\n * @param {Number} row Visual row index.\n * @param {Number|String} column Visual column index or column property.\n * @param {Number} [endRow] Visual end row index (if selecting a range).\n * @param {Number|String} [endColumn] Visual end column index or column property (if selecting a range).\n * @param {Boolean} [scrollToCell=true] If `true`, the viewport will be scrolled to the selection.\n * @param {Boolean} [changeListener=true] If `false`, Handsontable will not change keyboard events listener to himself.\n * @returns {Boolean} `true` if selection was successful, `false` otherwise.\n */\n this.selectCell = function (row, column, endRow, endColumn) {\n var scrollToCell = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n var changeListener = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;\n\n if ((0, _mixed.isUndefined)(row) || (0, _mixed.isUndefined)(column)) {\n return false;\n }\n\n return this.selectCells([[row, column, endRow, endColumn]], scrollToCell, changeListener);\n };\n\n /**\n * Make multiple, non-contiguous selection specified by `row` and `column` values or a range of cells\n * finishing at `endRow`, `endColumn`. The method supports two input formats which are the same as that\n * produces by `getSelected` and `getSelectedRange` methods.\n *\n * By default, viewport will be scrolled to selection. After the `selectCells` method had finished, the instance\n * will be listening to keyboard input on the document.\n *\n * @example\n * ```js\n * // Using an array of arrays.\n * hot.selectCells([[1, 1, 2, 2], [3, 3], [6, 2, 0, 2]]);\n * // Using an array of arrays with defined columns as props.\n * hot.selectCells([[1, 'id', 2, 'first_name'], [3, 'full_name'], [6, 'last_name', 0, 'first_name']]);\n * // Using an array of CellRange objects (produced by `.getSelectedRange()` method).\n * const selected = hot.getSelectedRange();\n *\n * selected[0].from.row = 0;\n * selected[0].from.col = 0;\n *\n * hot.selectCells(selected);\n * ```\n *\n * @memberof Core#\n * @since 0.38.0\n * @function selectCells\n * @param {Array[]|CellRange[]} coords Visual coords passed as an array of array (`[[rowStart, columnStart, rowEnd, columnEnd], ...]`)\n * the same format as `getSelected` method returns or as an CellRange objects\n * which is the same format what `getSelectedRange` method returns.\n * @param {Boolean} [scrollToCell=true] If `true`, the viewport will be scrolled to the selection.\n * @param {Boolean} [changeListener=true] If `false`, Handsontable will not change keyboard events listener to himself.\n * @returns {Boolean} `true` if selection was successful, `false` otherwise.\n */\n this.selectCells = function () {\n var coords = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [[]];\n var scrollToCell = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var changeListener = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (scrollToCell === false) {\n preventScrollingToCell = true;\n }\n\n var wasSelected = selection.selectCells(coords);\n\n if (wasSelected && changeListener) {\n instance.listen();\n }\n preventScrollingToCell = false;\n\n return wasSelected;\n };\n\n /**\n * Select the cell specified by the `row` and `prop` arguments, or a range finishing at `endRow`, `endProp`.\n * By default, viewport will be scrolled to selection.\n *\n * @deprecated\n * @memberof Core#\n * @function selectCellByProp\n * @param {Number} row Visual row index.\n * @param {String} prop Property name.\n * @param {Number} [endRow] visual end row index (if selecting a range).\n * @param {String} [endProp] End property name (if selecting a range).\n * @param {Boolean} [scrollToCell=true] If `true`, viewport will be scrolled to the selection.\n * @param {Boolean} [changeListener=true] If `false`, Handsontable will not change keyboard events listener to himself.\n * @returns {Boolean} `true` if selection was successful, `false` otherwise.\n */\n this.selectCellByProp = function (row, prop, endRow, endProp) {\n var scrollToCell = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n var changeListener = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;\n\n (0, _console.warn)((0, _templateLiteralTag.toSingleLine)(_templateObject));\n\n return this.selectCells([[row, prop, endRow, endProp]], scrollToCell, changeListener);\n };\n\n /**\n * Select column specified by `startColumn` visual index, column property or a range of columns finishing at `endColumn`.\n *\n * @example\n * ```js\n * // Select column using visual index.\n * hot.selectColumns(1);\n * // Select column using column property.\n * hot.selectColumns('id');\n * // Select range of columns using visual indexes.\n * hot.selectColumns(1, 4);\n * // Select range of columns using column properties.\n * hot.selectColumns('id', 'last_name');\n * ```\n *\n * @memberof Core#\n * @since 0.38.0\n * @function selectColumns\n * @param {Number} startColumn The visual column index from which the selection starts.\n * @param {Number} [endColumn=startColumn] The visual column index to which the selection finishes. If `endColumn`\n * is not defined the column defined by `startColumn` will be selected.\n * @returns {Boolean} `true` if selection was successful, `false` otherwise.\n */\n this.selectColumns = function (startColumn) {\n var endColumn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : startColumn;\n\n return selection.selectColumns(startColumn, endColumn);\n };\n\n /**\n * Select row specified by `startRow` visual index or a range of rows finishing at `endRow`.\n *\n * @example\n * ```js\n * // Select row using visual index.\n * hot.selectRows(1);\n * // Select range of rows using visual indexes.\n * hot.selectRows(1, 4);\n * ```\n *\n * @memberof Core#\n * @since 0.38.0\n * @function selectRows\n * @param {Number} startRow The visual row index from which the selection starts.\n * @param {Number} [endRow=startRow] The visual row index to which the selection finishes. If `endRow`\n * is not defined the row defined by `startRow` will be selected.\n * @returns {Boolean} `true` if selection was successful, `false` otherwise.\n */\n this.selectRows = function (startRow) {\n var endRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : startRow;\n\n return selection.selectRows(startRow, endRow);\n };\n\n /**\n * Deselects the current cell selection on the table.\n *\n * @memberof Core#\n * @function deselectCell\n */\n this.deselectCell = function () {\n selection.deselect();\n };\n\n /**\n * Select the whole table. The previous selection will be overwritten.\n *\n * @since 0.38.2\n * @memberof Core#\n * @function selectAll\n */\n this.selectAll = function () {\n preventScrollingToCell = true;\n selection.selectAll();\n preventScrollingToCell = false;\n };\n\n /**\n * Scroll viewport to coordinates specified by the `row` and `column` arguments.\n *\n * @memberof Core#\n * @function scrollViewportTo\n * @param {Number} [row] Visual row index.\n * @param {Number} [column] Visual column index.\n * @param {Boolean} [snapToBottom = false] If `true`, viewport is scrolled to show the cell on the bottom of the table.\n * @param {Boolean} [snapToRight = false] If `true`, viewport is scrolled to show the cell on the right side of the table.\n * @returns {Boolean} `true` if scroll was successful, `false` otherwise.\n */\n this.scrollViewportTo = function (row, column) {\n var snapToBottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var snapToRight = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n var snapToTop = !snapToBottom;\n var snapToLeft = !snapToRight;\n var result = false;\n\n if (row !== void 0 && column !== void 0) {\n result = instance.view.scrollViewport(new _src.CellCoords(row, column), snapToTop, snapToRight, snapToBottom, snapToLeft);\n }\n if (typeof row === 'number' && typeof column !== 'number') {\n result = instance.view.scrollViewportVertically(row, snapToTop, snapToBottom);\n }\n if (typeof column === 'number' && typeof row !== 'number') {\n result = instance.view.scrollViewportHorizontally(column, snapToRight, snapToLeft);\n }\n\n return result;\n };\n\n /**\n * Removes the table from the DOM and destroys the instance of the Handsontable.\n *\n * @memberof Core#\n * @function destroy\n * @fires Hooks#afterDestroy\n */\n this.destroy = function () {\n instance._clearTimeouts();\n instance._clearImmediates();\n\n if (instance.view) {\n // in case HT is destroyed before initialization has finished\n instance.view.destroy();\n }\n if (dataSource) {\n dataSource.destroy();\n }\n dataSource = null;\n\n (0, _keyStateObserver.stopObserving)();\n\n if (false) { var licenseInfo; }\n (0, _element.empty)(instance.rootElement);\n eventManager.destroy();\n\n if (editorManager) {\n editorManager.destroy();\n }\n\n instance.runHooks('afterDestroy');\n _pluginHooks2.default.getSingleton().destroy(instance);\n\n for (var i in instance) {\n if ((0, _object.hasOwnProperty)(instance, i)) {\n // replace instance methods with post mortem\n if ((0, _function.isFunction)(instance[i])) {\n instance[i] = postMortem(i);\n } else if (i !== 'guid') {\n // replace instance properties with null (restores memory)\n // it should not be necessary but this prevents a memory leak side effects that show itself in Jasmine tests\n instance[i] = null;\n }\n }\n }\n instance.isDestroyed = true;\n\n // replace private properties with null (restores memory)\n // it should not be necessary but this prevents a memory leak side effects that show itself in Jasmine tests\n if (datamap) {\n datamap.destroy();\n }\n datamap = null;\n priv = null;\n grid = null;\n selection = null;\n editorManager = null;\n instance = null;\n GridSettings = null;\n };\n\n /**\n * Replacement for all methods after Handsotnable was destroyed.\n *\n * @private\n */\n function postMortem(method) {\n return function () {\n throw new Error('The \"' + method + '\" method cannot be called because this Handsontable instance has been destroyed');\n };\n }\n\n /**\n * Returns the active editor class instance.\n *\n * @memberof Core#\n * @function getActiveEditor\n * @returns {BaseEditor} The active editor instance.\n */\n this.getActiveEditor = function () {\n return editorManager.getActiveEditor();\n };\n\n /**\n * Returns plugin instance by provided its name.\n *\n * @memberof Core#\n * @function getPlugin\n * @param {String} pluginName The plugin name.\n * @returns {BasePlugin} The plugin instance.\n */\n this.getPlugin = function (pluginName) {\n return (0, _plugins.getPlugin)(this, pluginName);\n };\n\n /**\n * Returns the Handsontable instance.\n *\n * @memberof Core#\n * @function getInstance\n * @returns {Handsontable} The Handsontable instance.\n */\n this.getInstance = function () {\n return instance;\n };\n\n /**\n * Adds listener to the specified hook name (only for this Handsontable instance).\n *\n * @memberof Core#\n * @function addHook\n * @see Hooks#add\n * @param {String} key Hook name (see {@link Hooks}).\n * @param {Function|Array} callback Function or array of functions.\n * @example\n * ```js\n * hot.addHook('beforeInit', myCallback);\n * ```\n */\n this.addHook = function (key, callback) {\n _pluginHooks2.default.getSingleton().add(key, callback, instance);\n };\n\n /**\n * Check if for a specified hook name there are added listeners (only for this Handsontable instance). All available\n * hooks you will find {@link Hooks}.\n *\n * @memberof Core#\n * @function hasHook\n * @see Hooks#has\n * @param {String} key Hook name\n * @return {Boolean}\n *\n * @example\n * ```js\n * const hasBeforeInitListeners = hot.hasHook('beforeInit');\n * ```\n */\n this.hasHook = function (key) {\n return _pluginHooks2.default.getSingleton().has(key, instance);\n };\n\n /**\n * Adds listener to specified hook name (only for this Handsontable instance). After the listener is triggered,\n * it will be automatically removed.\n *\n * @memberof Core#\n * @function addHookOnce\n * @see Hooks#once\n * @param {String} key Hook name (see {@link Hooks}).\n * @param {Function|Array} callback Function or array of functions.\n * @example\n * ```js\n * hot.addHookOnce('beforeInit', myCallback);\n * ```\n */\n this.addHookOnce = function (key, callback) {\n _pluginHooks2.default.getSingleton().once(key, callback, instance);\n };\n\n /**\n * Removes the hook listener previously registered with {@link Core#addHook}.\n *\n * @memberof Core#\n * @function removeHook\n * @see Hooks#remove\n * @param {String} key Hook name.\n * @param {Function} callback Reference to the function which has been registered using {@link Core#addHook}.\n *\n * @example\n * ```js\n * hot.removeHook('beforeInit', myCallback);\n * ```\n */\n this.removeHook = function (key, callback) {\n _pluginHooks2.default.getSingleton().remove(key, callback, instance);\n };\n\n /**\n * Run the callbacks for the hook provided in the `key` argument using the parameters given in the other arguments.\n *\n * @memberof Core#\n * @function runHooks\n * @see Hooks#run\n * @param {String} key Hook name.\n * @param {*} [p1] Argument passed to the callback.\n * @param {*} [p2] Argument passed to the callback.\n * @param {*} [p3] Argument passed to the callback.\n * @param {*} [p4] Argument passed to the callback.\n * @param {*} [p5] Argument passed to the callback.\n * @param {*} [p6] Argument passed to the callback.\n * @returns {*}\n *\n * @example\n * ```js\n * // Run built-in hook\n * hot.runHooks('beforeInit');\n * // Run custom hook\n * hot.runHooks('customAction', 10, 'foo');\n * ```\n */\n this.runHooks = function (key, p1, p2, p3, p4, p5, p6) {\n return _pluginHooks2.default.getSingleton().run(instance, key, p1, p2, p3, p4, p5, p6);\n };\n\n /**\n * Get language phrase for specified dictionary key.\n *\n * @memberof Core#\n * @function getTranslatedPhrase\n * @since 0.35.0\n * @param {String} dictionaryKey Constant which is dictionary key.\n * @param {*} extraArguments Arguments which will be handled by formatters.\n * @returns {String}\n */\n this.getTranslatedPhrase = function (dictionaryKey, extraArguments) {\n return (0, _i18n.getTranslatedPhrase)(priv.settings.language, dictionaryKey, extraArguments);\n };\n\n this.timeouts = [];\n\n /**\n * Sets timeout. Purpose of this method is to clear all known timeouts when `destroy` method is called.\n *\n * @param {Number|Function} handle Handler returned from setTimeout or function to execute (it will be automatically wraped\n * by setTimeout function).\n * @param {Number} [delay=0] If first argument is passed as a function this argument set delay of the execution of that function.\n * @private\n */\n this._registerTimeout = function (handle) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n if (typeof handle === 'function') {\n handle = setTimeout(handle, delay);\n }\n\n this.timeouts.push(handle);\n };\n\n /**\n * Clears all known timeouts.\n *\n * @private\n */\n this._clearTimeouts = function () {\n (0, _array.arrayEach)(this.timeouts, function (handler) {\n clearTimeout(handler);\n });\n };\n\n this.immediates = [];\n\n /**\n * Execute function execution to the next event loop cycle. Purpose of this method is to clear all known timeouts when `destroy` method is called.\n *\n * @param {Function} callback Function to be delayed in execution.\n * @private\n */\n this._registerImmediate = function (callback) {\n this.immediates.push(setImmediate(callback));\n };\n\n /**\n * Clears all known timeouts.\n *\n * @private\n */\n this._clearImmediates = function () {\n (0, _array.arrayEach)(this.immediates, function (handler) {\n clearImmediate(handler);\n });\n };\n\n /**\n * Refresh selection borders. This is temporary method relic after selection rewrite.\n *\n * @private\n * @param {Boolean} [revertOriginal=false] If `true`, the previous value will be restored. Otherwise, the edited value will be saved.\n * @param {Boolean} [prepareEditorIfNeeded=true] If `true` the editor under the selected cell will be prepared to open.\n */\n this._refreshBorders = function () {\n var revertOriginal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var prepareEditorIfNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n editorManager.destroyEditor(revertOriginal);\n instance.view.render();\n\n if (prepareEditorIfNeeded && selection.isSelected()) {\n editorManager.prepareEditor();\n }\n };\n\n _pluginHooks2.default.getSingleton().run(instance, 'construct');\n};\n\n/***/ }),\n/* 91 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.columnFactory = columnFactory;\n\nvar _object = __webpack_require__(1);\n\n/* eslint-disable import/prefer-default-export */\n/**\n * Factory for columns constructors.\n *\n * @param {Object} GridSettings\n * @param {Array} conflictList\n * @return {Object} ColumnSettings\n */\nfunction columnFactory(GridSettings, conflictList) {\n function ColumnSettings() {};\n\n (0, _object.inherit)(ColumnSettings, GridSettings);\n\n // Clear conflict settings\n for (var i = 0, len = conflictList.length; i < len; i++) {\n ColumnSettings.prototype[conflictList[i]] = void 0;\n }\n\n return ColumnSettings;\n}\n\n/***/ }),\n/* 92 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.spreadsheetColumnLabel = spreadsheetColumnLabel;\nexports.spreadsheetColumnIndex = spreadsheetColumnIndex;\nexports.createSpreadsheetData = createSpreadsheetData;\nexports.createSpreadsheetObjectData = createSpreadsheetObjectData;\nexports.createEmptySpreadsheetData = createEmptySpreadsheetData;\nexports.translateRowsToColumns = translateRowsToColumns;\nexports.cellMethodLookupFactory = cellMethodLookupFactory;\n\nvar _cellTypes = __webpack_require__(89);\n\nvar _object = __webpack_require__(1);\n\nvar COLUMN_LABEL_BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\nvar COLUMN_LABEL_BASE_LENGTH = COLUMN_LABEL_BASE.length;\n\n/**\n * Generates spreadsheet-like column names: A, B, C, ..., Z, AA, AB, etc.\n *\n * @param {Number} index Column index.\n * @returns {String}\n */\nfunction spreadsheetColumnLabel(index) {\n var dividend = index + 1;\n var columnLabel = '';\n var modulo = void 0;\n\n while (dividend > 0) {\n modulo = (dividend - 1) % COLUMN_LABEL_BASE_LENGTH;\n columnLabel = String.fromCharCode(65 + modulo) + columnLabel;\n dividend = parseInt((dividend - modulo) / COLUMN_LABEL_BASE_LENGTH, 10);\n }\n\n return columnLabel;\n}\n\n/**\n * Generates spreadsheet-like column index from theirs labels: A, B, C ...., Z, AA, AB, etc.\n *\n * @param {String} label Column label.\n * @returns {Number}\n */\nfunction spreadsheetColumnIndex(label) {\n var result = 0;\n\n if (label) {\n for (var i = 0, j = label.length - 1; i < label.length; i += 1, j -= 1) {\n result += Math.pow(COLUMN_LABEL_BASE_LENGTH, j) * (COLUMN_LABEL_BASE.indexOf(label[i]) + 1);\n }\n }\n --result;\n\n return result;\n}\n\n/**\n * Creates 2D array of Excel-like values \"A1\", \"A2\", ...\n *\n * @param {Number} rows Number of rows to generate.\n * @param {Number} columns Number of columns to generate.\n * @returns {Array}\n */\nfunction createSpreadsheetData() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 100;\n var columns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;\n\n var _rows = [];\n var i = void 0;\n var j = void 0;\n\n for (i = 0; i < rows; i++) {\n var row = [];\n\n for (j = 0; j < columns; j++) {\n row.push(spreadsheetColumnLabel(j) + (i + 1));\n }\n _rows.push(row);\n }\n\n return _rows;\n}\n\n/**\n * Creates 2D array of Excel-like values \"A1\", \"A2\", as an array of objects.\n *\n * @param {Number} rows Number of rows to generate.\n * @param {Number} colCount Number of columns to generate.\n * @returns {Array}\n */\nfunction createSpreadsheetObjectData() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 100;\n var colCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;\n\n var _rows = [];\n var i = void 0;\n var j = void 0;\n\n for (i = 0; i < rows; i++) {\n var row = {};\n\n for (j = 0; j < colCount; j++) {\n row['prop' + j] = spreadsheetColumnLabel(j) + (i + 1);\n }\n _rows.push(row);\n }\n\n return _rows;\n}\n\n/**\n * Generates an empty data object.\n *\n * @param {Number} rows Number of rows to generate.\n * @param {Number} columns Number of columns to generate\n * @returns {Array}\n */\nfunction createEmptySpreadsheetData(rows, columns) {\n var data = [];\n var row = void 0;\n\n for (var i = 0; i < rows; i++) {\n row = [];\n for (var j = 0; j < columns; j++) {\n row.push('');\n }\n data.push(row);\n }\n\n return data;\n}\n\nfunction translateRowsToColumns(input) {\n var output = [];\n var i = void 0;\n var ilen = void 0;\n var j = void 0;\n var jlen = void 0;\n var olen = 0;\n\n for (i = 0, ilen = input.length; i < ilen; i++) {\n for (j = 0, jlen = input[i].length; j < jlen; j++) {\n if (j === olen) {\n output.push([]);\n olen++;\n }\n output[j].push(input[i][j]);\n }\n }\n\n return output;\n}\n\n/**\n * Factory that produces a function for searching methods (or any properties) which could be defined directly in\n * table configuration or implicitly, within cell type definition.\n *\n * For example: renderer can be defined explicitly using \"renderer\" property in column configuration or it can be\n * defined implicitly using \"type\" property.\n *\n * Methods/properties defined explicitly always takes precedence over those defined through \"type\".\n *\n * If the method/property is not found in an object, searching is continued recursively through prototype chain, until\n * it reaches the Object.prototype.\n *\n *\n * @param methodName {String} name of the method/property to search (i.e. 'renderer', 'validator', 'copyable')\n * @param allowUndefined {Boolean} [optional] if false, the search is continued if methodName has not been found in cell \"type\"\n * @returns {Function}\n */\nfunction cellMethodLookupFactory(methodName, allowUndefined) {\n\n allowUndefined = typeof allowUndefined === 'undefined' ? true : allowUndefined;\n\n return function cellMethodLookup(row, col) {\n return function getMethodFromProperties(properties) {\n\n if (!properties) {\n return; // method not found\n } else if ((0, _object.hasOwnProperty)(properties, methodName) && properties[methodName] !== void 0) {\n // check if it is own and is not empty\n return properties[methodName]; // method defined directly\n } else if ((0, _object.hasOwnProperty)(properties, 'type') && properties.type) {\n // check if it is own and is not empty\n if (typeof properties.type !== 'string') {\n throw new Error('Cell type must be a string ');\n }\n\n var type = (0, _cellTypes.getCellType)(properties.type);\n\n if ((0, _object.hasOwnProperty)(type, methodName)) {\n return type[methodName]; // method defined in type.\n } else if (allowUndefined) {\n return; // method does not defined in type (eg. validator), returns undefined\n }\n }\n\n return getMethodFromProperties(Object.getPrototypeOf(properties));\n }(typeof row === 'number' ? this.getCellMeta(row, col) : row);\n };\n}\n\n/***/ }),\n/* 93 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _array = __webpack_require__(2);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class GhostTable\n * @util\n */\nvar GhostTable = function () {\n function GhostTable(hotInstance) {\n _classCallCheck(this, GhostTable);\n\n /**\n * Handsontable instance.\n *\n * @type {Core}\n */\n this.hot = hotInstance;\n /**\n * Container element where every table will be injected.\n *\n * @type {HTMLElement|null}\n */\n this.container = null;\n /**\n * Flag which determine is table was injected to DOM.\n *\n * @type {Boolean}\n */\n this.injected = false;\n /**\n * Added rows collection.\n *\n * @type {Array}\n */\n this.rows = [];\n /**\n * Added columns collection.\n *\n * @type {Array}\n */\n this.columns = [];\n /**\n * Samples prepared for calculations.\n *\n * @type {Map}\n * @default {null}\n */\n this.samples = null;\n /**\n * Ghost table settings.\n *\n * @type {Object}\n * @default {Object}\n */\n this.settings = {\n useHeaders: true\n };\n }\n\n /**\n * Add row.\n *\n * @param {Number} row Row index.\n * @param {Map} samples Samples Map object.\n */\n\n\n _createClass(GhostTable, [{\n key: 'addRow',\n value: function addRow(row, samples) {\n if (this.columns.length) {\n throw new Error('Doesn\\'t support multi-dimensional table');\n }\n if (!this.rows.length) {\n this.container = this.createContainer(this.hot.rootElement.className);\n }\n var rowObject = { row: row };\n this.rows.push(rowObject);\n\n this.samples = samples;\n this.table = this.createTable(this.hot.table.className);\n this.table.colGroup.appendChild(this.createColGroupsCol());\n this.table.tr.appendChild(this.createRow(row));\n this.container.container.appendChild(this.table.fragment);\n\n rowObject.table = this.table.table;\n }\n\n /**\n * Add a row consisting of the column headers.\n */\n\n }, {\n key: 'addColumnHeadersRow',\n value: function addColumnHeadersRow(samples) {\n if (this.hot.getColHeader(0) != null) {\n var rowObject = { row: -1 };\n this.rows.push(rowObject);\n\n this.container = this.createContainer(this.hot.rootElement.className);\n\n this.samples = samples;\n this.table = this.createTable(this.hot.table.className);\n this.table.colGroup.appendChild(this.createColGroupsCol());\n this.table.tHead.appendChild(this.createColumnHeadersRow());\n this.container.container.appendChild(this.table.fragment);\n\n rowObject.table = this.table.table;\n }\n }\n\n /**\n * Add column.\n *\n * @param {Number} column Column index.\n * @param {Map} samples Samples Map object.\n */\n\n }, {\n key: 'addColumn',\n value: function addColumn(column, samples) {\n if (this.rows.length) {\n throw new Error('Doesn\\'t support multi-dimensional table');\n }\n if (!this.columns.length) {\n this.container = this.createContainer(this.hot.rootElement.className);\n }\n var columnObject = { col: column };\n this.columns.push(columnObject);\n\n this.samples = samples;\n this.table = this.createTable(this.hot.table.className);\n\n if (this.getSetting('useHeaders') && this.hot.getColHeader(column) !== null) {\n this.hot.view.appendColHeader(column, this.table.th);\n }\n this.table.tBody.appendChild(this.createCol(column));\n this.container.container.appendChild(this.table.fragment);\n\n columnObject.table = this.table.table;\n }\n\n /**\n * Get calculated heights.\n *\n * @param {Function} callback Callback which will be fired for each calculated row.\n */\n\n }, {\n key: 'getHeights',\n value: function getHeights(callback) {\n if (!this.injected) {\n this.injectTable();\n }\n (0, _array.arrayEach)(this.rows, function (row) {\n // -1 <- reduce border-top from table\n callback(row.row, (0, _element.outerHeight)(row.table) - 1);\n });\n }\n\n /**\n * Get calculated widths.\n *\n * @param {Function} callback Callback which will be fired for each calculated column.\n */\n\n }, {\n key: 'getWidths',\n value: function getWidths(callback) {\n if (!this.injected) {\n this.injectTable();\n }\n (0, _array.arrayEach)(this.columns, function (column) {\n callback(column.col, (0, _element.outerWidth)(column.table));\n });\n }\n\n /**\n * Set the Ghost Table settings to the provided object.\n *\n * @param {Object} settings New Ghost Table Settings\n */\n\n }, {\n key: 'setSettings',\n value: function setSettings(settings) {\n this.settings = settings;\n }\n\n /**\n * Set a single setting of the Ghost Table.\n *\n * @param {String} name Setting name.\n * @param {*} value Setting value.\n */\n\n }, {\n key: 'setSetting',\n value: function setSetting(name, value) {\n if (!this.settings) {\n this.settings = {};\n }\n\n this.settings[name] = value;\n }\n\n /**\n * Get the Ghost Table settings.\n *\n * @returns {Object|null}\n */\n\n }, {\n key: 'getSettings',\n value: function getSettings() {\n return this.settings;\n }\n\n /**\n * Get a single Ghost Table setting.\n *\n * @param {String} name\n * @returns {Boolean|null}\n */\n\n }, {\n key: 'getSetting',\n value: function getSetting(name) {\n if (this.settings) {\n return this.settings[name];\n }\n return null;\n }\n\n /**\n * Create colgroup col elements.\n *\n * @returns {DocumentFragment}\n */\n\n }, {\n key: 'createColGroupsCol',\n value: function createColGroupsCol() {\n var _this = this;\n\n var d = document;\n var fragment = d.createDocumentFragment();\n\n if (this.hot.hasRowHeaders()) {\n fragment.appendChild(this.createColElement(-1));\n }\n\n this.samples.forEach(function (sample) {\n (0, _array.arrayEach)(sample.strings, function (string) {\n fragment.appendChild(_this.createColElement(string.col));\n });\n });\n\n return fragment;\n }\n\n /**\n * Create table row element.\n *\n * @param {Number} row Row index.\n * @returns {DocumentFragment} Returns created table row elements.\n */\n\n }, {\n key: 'createRow',\n value: function createRow(row) {\n var _this2 = this;\n\n var d = document;\n var fragment = d.createDocumentFragment();\n var th = d.createElement('th');\n\n if (this.hot.hasRowHeaders()) {\n this.hot.view.appendRowHeader(row, th);\n\n fragment.appendChild(th);\n }\n\n this.samples.forEach(function (sample) {\n (0, _array.arrayEach)(sample.strings, function (string) {\n var column = string.col;\n var cellProperties = _this2.hot.getCellMeta(row, column);\n\n cellProperties.col = column;\n cellProperties.row = row;\n\n var renderer = _this2.hot.getCellRenderer(cellProperties);\n var td = d.createElement('td');\n\n renderer(_this2.hot, td, row, column, _this2.hot.colToProp(column), string.value, cellProperties);\n fragment.appendChild(td);\n });\n });\n\n return fragment;\n }\n }, {\n key: 'createColumnHeadersRow',\n value: function createColumnHeadersRow() {\n var _this3 = this;\n\n var d = document;\n var fragment = d.createDocumentFragment();\n\n if (this.hot.hasRowHeaders()) {\n var th = d.createElement('th');\n this.hot.view.appendColHeader(-1, th);\n fragment.appendChild(th);\n }\n\n this.samples.forEach(function (sample) {\n (0, _array.arrayEach)(sample.strings, function (string) {\n var column = string.col;\n\n var th = d.createElement('th');\n\n _this3.hot.view.appendColHeader(column, th);\n fragment.appendChild(th);\n });\n });\n\n return fragment;\n }\n\n /**\n * Create table column elements.\n *\n * @param {Number} column Column index.\n * @returns {DocumentFragment} Returns created column table column elements.\n */\n\n }, {\n key: 'createCol',\n value: function createCol(column) {\n var _this4 = this;\n\n var d = document;\n var fragment = d.createDocumentFragment();\n\n this.samples.forEach(function (sample) {\n (0, _array.arrayEach)(sample.strings, function (string) {\n var row = string.row;\n var cellProperties = _this4.hot.getCellMeta(row, column);\n\n cellProperties.col = column;\n cellProperties.row = row;\n\n var renderer = _this4.hot.getCellRenderer(cellProperties);\n var td = d.createElement('td');\n var tr = d.createElement('tr');\n\n renderer(_this4.hot, td, row, column, _this4.hot.colToProp(column), string.value, cellProperties);\n tr.appendChild(td);\n fragment.appendChild(tr);\n });\n });\n\n return fragment;\n }\n\n /**\n * Remove table from document and reset internal state.\n */\n\n }, {\n key: 'clean',\n value: function clean() {\n this.rows.length = 0;\n this.rows[-1] = void 0;\n this.columns.length = 0;\n\n if (this.samples) {\n this.samples.clear();\n }\n this.samples = null;\n this.removeTable();\n }\n\n /**\n * Inject generated table into document.\n *\n * @param {HTMLElement} [parent=null]\n */\n\n }, {\n key: 'injectTable',\n value: function injectTable() {\n var parent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (!this.injected) {\n (parent || this.hot.rootElement).appendChild(this.container.fragment);\n this.injected = true;\n }\n }\n\n /**\n * Remove table from document.\n */\n\n }, {\n key: 'removeTable',\n value: function removeTable() {\n if (this.injected && this.container.container.parentNode) {\n this.container.container.parentNode.removeChild(this.container.container);\n this.container = null;\n this.injected = false;\n }\n }\n\n /**\n * Create col element.\n *\n * @param {Number} column Column index.\n * @returns {HTMLElement}\n */\n\n }, {\n key: 'createColElement',\n value: function createColElement(column) {\n var d = document;\n var col = d.createElement('col');\n\n col.style.width = this.hot.view.wt.wtTable.getStretchedColumnWidth(column) + 'px';\n\n return col;\n }\n\n /**\n * Create table element.\n *\n * @param {String} className\n * @returns {Object}\n */\n\n }, {\n key: 'createTable',\n value: function createTable() {\n var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var d = document;\n var fragment = d.createDocumentFragment();\n var table = d.createElement('table');\n var tHead = d.createElement('thead');\n var tBody = d.createElement('tbody');\n var colGroup = d.createElement('colgroup');\n var tr = d.createElement('tr');\n var th = d.createElement('th');\n\n if (this.isVertical()) {\n table.appendChild(colGroup);\n }\n if (this.isHorizontal()) {\n tr.appendChild(th);\n tHead.appendChild(tr);\n table.style.tableLayout = 'auto';\n table.style.width = 'auto';\n }\n table.appendChild(tHead);\n\n if (this.isVertical()) {\n tBody.appendChild(tr);\n }\n table.appendChild(tBody);\n (0, _element.addClass)(table, className);\n fragment.appendChild(table);\n\n return { fragment: fragment, table: table, tHead: tHead, tBody: tBody, colGroup: colGroup, tr: tr, th: th };\n }\n\n /**\n * Create container for tables.\n *\n * @param {String} className\n * @returns {Object}\n */\n\n }, {\n key: 'createContainer',\n value: function createContainer() {\n var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var d = document;\n var fragment = d.createDocumentFragment();\n var container = d.createElement('div');\n\n className = 'htGhostTable htAutoSize ' + className.trim();\n (0, _element.addClass)(container, className);\n fragment.appendChild(container);\n\n return { fragment: fragment, container: container };\n }\n\n /**\n * Checks if table is raised vertically (checking rows).\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isVertical',\n value: function isVertical() {\n return !!(this.rows.length && !this.columns.length);\n }\n\n /**\n * Checks if table is raised horizontally (checking columns).\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isHorizontal',\n value: function isHorizontal() {\n return !!(this.columns.length && !this.rows.length);\n }\n }]);\n\n return GhostTable;\n}();\n\nexports.default = GhostTable;\n\n/***/ }),\n/* 94 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _array = __webpack_require__(2);\n\nvar _object = __webpack_require__(1);\n\nvar _number = __webpack_require__(6);\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar MIXIN_NAME = 'arrayMapper';\n\n/**\n * @type {Object}\n */\nvar arrayMapper = {\n _arrayMap: [],\n\n /**\n * Get translated index by its physical index.\n *\n * @param {Number} physicalIndex Physical index.\n * @return {Number|null} Returns translated index mapped by passed physical index.\n */\n getValueByIndex: function getValueByIndex(physicalIndex) {\n var length = this._arrayMap.length;\n var translatedIndex = null;\n\n if (physicalIndex < length) {\n translatedIndex = this._arrayMap[physicalIndex];\n }\n\n return translatedIndex;\n },\n\n\n /**\n * Get physical index by its translated index.\n *\n * @param {*} translatedIndex Value to search.\n * @returns {Number|null} Returns a physical index of the array mapper.\n */\n getIndexByValue: function getIndexByValue(translatedIndex) {\n var physicalIndex = void 0;\n\n // eslint-disable-next-line no-cond-assign, no-return-assign\n return (physicalIndex = this._arrayMap.indexOf(translatedIndex)) === -1 ? null : physicalIndex;\n },\n\n\n /**\n * Insert new items to array mapper starting at passed index. New entries will be a continuation of last value in the array.\n *\n * @param {Number} physicalIndex Array index.\n * @param {Number} [amount=1] Defines how many items will be created to an array.\n * @returns {Array} Returns added items.\n */\n insertItems: function insertItems(physicalIndex) {\n var _this = this;\n\n var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n var newIndex = (0, _array.arrayMax)(this._arrayMap) + 1;\n var addedItems = [];\n\n (0, _number.rangeEach)(amount - 1, function (count) {\n addedItems.push(_this._arrayMap.splice(physicalIndex + count, 0, newIndex + count));\n });\n\n return addedItems;\n },\n\n\n /**\n * Remove items from array mapper.\n *\n * @param {Number} physicalIndex Array index.\n * @param {Number} [amount=1] Defines how many items will be created to an array.\n * @returns {Array} Returns removed items.\n */\n removeItems: function removeItems(physicalIndex) {\n var _this2 = this;\n\n var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n var removedItems = [];\n\n if (Array.isArray(physicalIndex)) {\n var mapCopy = [].concat(this._arrayMap);\n\n // Sort descending\n physicalIndex.sort(function (a, b) {\n return b - a;\n });\n\n removedItems = (0, _array.arrayReduce)(physicalIndex, function (acc, item) {\n _this2._arrayMap.splice(item, 1);\n\n return acc.concat(mapCopy.slice(item, item + 1));\n }, []);\n } else {\n removedItems = this._arrayMap.splice(physicalIndex, amount);\n }\n\n return removedItems;\n },\n\n\n /**\n * Unshift items (remove and shift chunk of array to the left).\n *\n * @param {Number|Array} physicalIndex Array index or Array of indexes to unshift.\n * @param {Number} [amount=1] Defines how many items will be removed from an array (when index is passed as number).\n */\n unshiftItems: function unshiftItems(physicalIndex) {\n var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n var removedItems = this.removeItems(physicalIndex, amount);\n\n function countRowShift(logicalRow) {\n // Todo: compare perf between reduce vs sort->each->brake\n return (0, _array.arrayReduce)(removedItems, function (count, removedLogicalRow) {\n if (logicalRow > removedLogicalRow) {\n count++;\n }\n\n return count;\n }, 0);\n }\n\n this._arrayMap = (0, _array.arrayMap)(this._arrayMap, function (logicalRow) {\n var rowShift = countRowShift(logicalRow);\n\n if (rowShift) {\n logicalRow -= rowShift;\n }\n\n return logicalRow;\n });\n },\n\n\n /**\n * Shift (right shifting) items starting at passed index.\n *\n * @param {Number} physicalIndex Array index.\n * @param {Number} [amount=1] Defines how many items will be created to an array.\n */\n shiftItems: function shiftItems(physicalIndex) {\n var _this3 = this;\n\n var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n this._arrayMap = (0, _array.arrayMap)(this._arrayMap, function (row) {\n if (row >= physicalIndex) {\n row += amount;\n }\n return row;\n });\n\n (0, _number.rangeEach)(amount - 1, function (count) {\n _this3._arrayMap.splice(physicalIndex + count, 0, physicalIndex + count);\n });\n },\n\n\n /**\n * Swap indexes in arrayMapper.\n *\n * @param {Number} physicalIndexFrom index to move.\n * @param {Number} physicalIndexTo index to.\n */\n swapIndexes: function swapIndexes(physicalIndexFrom, physicalIndexTo) {\n var _arrayMap;\n\n (_arrayMap = this._arrayMap).splice.apply(_arrayMap, [physicalIndexTo, 0].concat(_toConsumableArray(this._arrayMap.splice(physicalIndexFrom, 1))));\n },\n\n\n /**\n * Clear all stored index<->value information from an array.\n */\n clearMap: function clearMap() {\n this._arrayMap.length = 0;\n }\n};\n\n(0, _object.defineGetter)(arrayMapper, 'MIXIN_NAME', MIXIN_NAME, {\n writable: false,\n enumerable: false\n});\n\nexports.default = arrayMapper;\n\n/***/ }),\n/* 95 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = separatorItem;\nvar KEY = exports.KEY = '---------';\n\nfunction separatorItem() {\n return {\n name: KEY\n };\n}\n\n/***/ }),\n/* 96 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.ITEMS = exports.UNDO = exports.SEPARATOR = exports.ROW_BELOW = exports.ROW_ABOVE = exports.REMOVE_ROW = exports.REMOVE_COLUMN = exports.REDO = exports.READ_ONLY = exports.COLUMN_RIGHT = exports.COLUMN_LEFT = exports.CLEAR_COLUMN = exports.ALIGNMENT = undefined;\n\nvar _predefinedItems2;\n\nvar _alignment = __webpack_require__(305);\n\nObject.defineProperty(exports, 'ALIGNMENT', {\n enumerable: true,\n get: function get() {\n return _alignment.KEY;\n }\n});\n\nvar _clearColumn = __webpack_require__(306);\n\nObject.defineProperty(exports, 'CLEAR_COLUMN', {\n enumerable: true,\n get: function get() {\n return _clearColumn.KEY;\n }\n});\n\nvar _columnLeft = __webpack_require__(307);\n\nObject.defineProperty(exports, 'COLUMN_LEFT', {\n enumerable: true,\n get: function get() {\n return _columnLeft.KEY;\n }\n});\n\nvar _columnRight = __webpack_require__(308);\n\nObject.defineProperty(exports, 'COLUMN_RIGHT', {\n enumerable: true,\n get: function get() {\n return _columnRight.KEY;\n }\n});\n\nvar _readOnly = __webpack_require__(309);\n\nObject.defineProperty(exports, 'READ_ONLY', {\n enumerable: true,\n get: function get() {\n return _readOnly.KEY;\n }\n});\n\nvar _redo = __webpack_require__(310);\n\nObject.defineProperty(exports, 'REDO', {\n enumerable: true,\n get: function get() {\n return _redo.KEY;\n }\n});\n\nvar _removeColumn = __webpack_require__(311);\n\nObject.defineProperty(exports, 'REMOVE_COLUMN', {\n enumerable: true,\n get: function get() {\n return _removeColumn.KEY;\n }\n});\n\nvar _removeRow = __webpack_require__(312);\n\nObject.defineProperty(exports, 'REMOVE_ROW', {\n enumerable: true,\n get: function get() {\n return _removeRow.KEY;\n }\n});\n\nvar _rowAbove = __webpack_require__(313);\n\nObject.defineProperty(exports, 'ROW_ABOVE', {\n enumerable: true,\n get: function get() {\n return _rowAbove.KEY;\n }\n});\n\nvar _rowBelow = __webpack_require__(314);\n\nObject.defineProperty(exports, 'ROW_BELOW', {\n enumerable: true,\n get: function get() {\n return _rowBelow.KEY;\n }\n});\n\nvar _separator = __webpack_require__(95);\n\nObject.defineProperty(exports, 'SEPARATOR', {\n enumerable: true,\n get: function get() {\n return _separator.KEY;\n }\n});\n\nvar _undo = __webpack_require__(315);\n\nObject.defineProperty(exports, 'UNDO', {\n enumerable: true,\n get: function get() {\n return _undo.KEY;\n }\n});\nexports.predefinedItems = predefinedItems;\nexports.addItem = addItem;\n\nvar _object = __webpack_require__(1);\n\nvar _alignment2 = _interopRequireDefault(_alignment);\n\nvar _clearColumn2 = _interopRequireDefault(_clearColumn);\n\nvar _columnLeft2 = _interopRequireDefault(_columnLeft);\n\nvar _columnRight2 = _interopRequireDefault(_columnRight);\n\nvar _readOnly2 = _interopRequireDefault(_readOnly);\n\nvar _redo2 = _interopRequireDefault(_redo);\n\nvar _removeColumn2 = _interopRequireDefault(_removeColumn);\n\nvar _removeRow2 = _interopRequireDefault(_removeRow);\n\nvar _rowAbove2 = _interopRequireDefault(_rowAbove);\n\nvar _rowBelow2 = _interopRequireDefault(_rowBelow);\n\nvar _separator2 = _interopRequireDefault(_separator);\n\nvar _undo2 = _interopRequireDefault(_undo);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ITEMS = exports.ITEMS = [_rowAbove.KEY, _rowBelow.KEY, _columnLeft.KEY, _columnRight.KEY, _clearColumn.KEY, _removeRow.KEY, _removeColumn.KEY, _undo.KEY, _redo.KEY, _readOnly.KEY, _alignment.KEY, _separator.KEY];\n\nvar _predefinedItems = (_predefinedItems2 = {}, _defineProperty(_predefinedItems2, _separator.KEY, _separator2.default), _defineProperty(_predefinedItems2, _rowAbove.KEY, _rowAbove2.default), _defineProperty(_predefinedItems2, _rowBelow.KEY, _rowBelow2.default), _defineProperty(_predefinedItems2, _columnLeft.KEY, _columnLeft2.default), _defineProperty(_predefinedItems2, _columnRight.KEY, _columnRight2.default), _defineProperty(_predefinedItems2, _clearColumn.KEY, _clearColumn2.default), _defineProperty(_predefinedItems2, _removeRow.KEY, _removeRow2.default), _defineProperty(_predefinedItems2, _removeColumn.KEY, _removeColumn2.default), _defineProperty(_predefinedItems2, _undo.KEY, _undo2.default), _defineProperty(_predefinedItems2, _redo.KEY, _redo2.default), _defineProperty(_predefinedItems2, _readOnly.KEY, _readOnly2.default), _defineProperty(_predefinedItems2, _alignment.KEY, _alignment2.default), _predefinedItems2);\n\n/**\n * Gets new object with all predefined menu items.\n *\n * @returns {Object}\n */\nfunction predefinedItems() {\n var items = {};\n\n (0, _object.objectEach)(_predefinedItems, function (itemFactory, key) {\n items[key] = itemFactory();\n });\n\n return items;\n}\n\n/**\n * Add new predefined menu item to the collection.\n *\n * @param {String} key Menu command id.\n * @param {Object} item Object command descriptor.\n */\nfunction addItem(key, item) {\n if (ITEMS.indexOf(key) === -1) {\n _predefinedItems[key] = item;\n }\n}\n\n/***/ }),\n/* 97 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _templateObject = _taggedTemplateLiteral(['The merged cell declared with {row: ', ', col: ', ', rowspan: \\n ', ', colspan: ', '} contains negative values, which is not supported. It \\n will not be added to the collection.'], ['The merged cell declared with {row: ', ', col: ', ', rowspan: \\n ', ', colspan: ', '} contains negative values, which is not supported. It \\n will not be added to the collection.']),\n _templateObject2 = _taggedTemplateLiteral(['The merged cell declared at [', ', ', '] is positioned (or positioned partially) \\n outside of the table range. It was not added to the table, please fix your setup.'], ['The merged cell declared at [', ', ', '] is positioned (or positioned partially) \\n outside of the table range. It was not added to the table, please fix your setup.']),\n _templateObject3 = _taggedTemplateLiteral(['The merged cell declared at [', ', ', '] has both \"rowspan\" \\n and \"colspan\" declared as \"1\", which makes it a single cell. It cannot be added to the collection.'], ['The merged cell declared at [', ', ', '] has both \"rowspan\" \\n and \"colspan\" declared as \"1\", which makes it a single cell. It cannot be added to the collection.']),\n _templateObject4 = _taggedTemplateLiteral(['The merged cell declared at [', ', ', '] has \"rowspan\" or \"colspan\" declared as \\n \"0\", which is not supported. It cannot be added to the collection.'], ['The merged cell declared at [', ', ', '] has \"rowspan\" or \"colspan\" declared as \\n \"0\", which is not supported. It cannot be added to the collection.']);\n\nvar _index = __webpack_require__(4);\n\nvar _templateLiteralTag = __webpack_require__(42);\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * The `MergedCellCoords` class represents a single merged cell.\n *\n * @class MergedCellCoords\n * @plugin MergeCells\n */\nvar MergedCellCoords = function () {\n function MergedCellCoords(row, column, rowspan, colspan) {\n _classCallCheck(this, MergedCellCoords);\n\n /**\n * The index of the topmost merged cell row.\n *\n * @type {Number}\n */\n this.row = row;\n /**\n * The index of the leftmost column.\n *\n * @type {Number}\n */\n this.col = column;\n /**\n * The `rowspan` value of the merged cell.\n *\n * @type {Number}\n */\n this.rowspan = rowspan;\n /**\n * The `colspan` value of the merged cell.\n *\n * @type {Number}\n */\n this.colspan = colspan;\n /**\n * `true` only if the merged cell is bound to be removed.\n *\n * @type {Boolean}\n */\n this.removed = false;\n }\n\n /**\n * Get a warning message for when the declared merged cell data contains negative values.\n *\n * @param {Object} newMergedCell Object containg information about the merged cells that was about to be added.\n * @return {String}\n */\n\n\n _createClass(MergedCellCoords, [{\n key: 'normalize',\n\n\n /**\n * Sanitize (prevent from going outside the boundaries) the merged cell.\n *\n * @param hotInstance\n */\n value: function normalize(hotInstance) {\n var totalRows = hotInstance.countRows();\n var totalColumns = hotInstance.countCols();\n\n if (this.row < 0) {\n this.row = 0;\n } else if (this.row > totalRows - 1) {\n this.row = totalRows - 1;\n }\n\n if (this.col < 0) {\n this.col = 0;\n } else if (this.col > totalColumns - 1) {\n this.col = totalColumns - 1;\n }\n\n if (this.row + this.rowspan > totalRows - 1) {\n this.rowspan = totalRows - this.row;\n }\n\n if (this.col + this.colspan > totalColumns - 1) {\n this.colspan = totalColumns - this.col;\n }\n }\n\n /**\n * Returns `true` if the provided coordinates are inside the merged cell.\n *\n * @param {Number} row The row index.\n * @param {Number} column The column index.\n * @return {Boolean}\n */\n\n }, {\n key: 'includes',\n value: function includes(row, column) {\n return this.row <= row && this.col <= column && this.row + this.rowspan - 1 >= row && this.col + this.colspan - 1 >= column;\n }\n\n /**\n * Returns `true` if the provided `column` property is within the column span of the merged cell.\n *\n * @param {Number} column The column index.\n * @return {Boolean}\n */\n\n }, {\n key: 'includesHorizontally',\n value: function includesHorizontally(column) {\n return this.col <= column && this.col + this.colspan - 1 >= column;\n }\n\n /**\n * Returns `true` if the provided `row` property is within the row span of the merged cell.\n *\n * @param {Number} row Row index.\n * @return {Boolean}\n */\n\n }, {\n key: 'includesVertically',\n value: function includesVertically(row) {\n return this.row <= row && this.row + this.rowspan - 1 >= row;\n }\n\n /**\n * Shift (and possibly resize, if needed) the merged cell.\n *\n * @param {Array} shiftVector 2-element array containing the information on the shifting in the `x` and `y` axis.\n * @param {Number} indexOfChange Index of the preceding change.\n * @returns {Boolean} Returns `false` if the whole merged cell was removed.\n */\n\n }, {\n key: 'shift',\n value: function shift(shiftVector, indexOfChange) {\n var shiftValue = shiftVector[0] || shiftVector[1];\n var shiftedIndex = indexOfChange + Math.abs(shiftVector[0] || shiftVector[1]) - 1;\n var span = shiftVector[0] ? 'colspan' : 'rowspan';\n var index = shiftVector[0] ? 'col' : 'row';\n var changeStart = Math.min(indexOfChange, shiftedIndex);\n var changeEnd = Math.max(indexOfChange, shiftedIndex);\n var mergeStart = this[index];\n var mergeEnd = this[index] + this[span] - 1;\n\n if (mergeStart >= indexOfChange) {\n this[index] += shiftValue;\n }\n\n // adding rows/columns\n if (shiftValue > 0) {\n if (indexOfChange <= mergeEnd && indexOfChange > mergeStart) {\n this[span] += shiftValue;\n }\n\n // removing rows/columns\n } else if (shiftValue < 0) {\n\n // removing the whole merge\n if (changeStart <= mergeStart && changeEnd >= mergeEnd) {\n this.removed = true;\n return false;\n\n // removing the merge partially, including the beginning\n } else if (mergeStart >= changeStart && mergeStart <= changeEnd) {\n var removedOffset = changeEnd - mergeStart + 1;\n var preRemovedOffset = Math.abs(shiftValue) - removedOffset;\n\n this[index] -= preRemovedOffset + shiftValue;\n this[span] -= removedOffset;\n\n // removing the middle part of the merge\n } else if (mergeStart <= changeStart && mergeEnd >= changeEnd) {\n this[span] += shiftValue;\n\n // removing the end part of the merge\n } else if (mergeStart <= changeStart && mergeEnd >= changeStart && mergeEnd < changeEnd) {\n var removedPart = mergeEnd - changeStart + 1;\n\n this[span] -= removedPart;\n }\n }\n\n return true;\n }\n\n /**\n * Check if the second provided merged cell is \"farther\" in the provided direction.\n *\n * @param {MergedCellCoords} mergedCell The merged cell to check.\n * @param {String} direction Drag direction.\n * @return {Boolean|null} `true` if the second provided merged cell is \"farther\".\n */\n\n }, {\n key: 'isFarther',\n value: function isFarther(mergedCell, direction) {\n if (!mergedCell) {\n return true;\n }\n\n if (direction === 'down') {\n return mergedCell.row + mergedCell.rowspan - 1 < this.row + this.rowspan - 1;\n } else if (direction === 'up') {\n return mergedCell.row > this.row;\n } else if (direction === 'right') {\n return mergedCell.col + mergedCell.colspan - 1 < this.col + this.colspan - 1;\n } else if (direction === 'left') {\n return mergedCell.col > this.col;\n }\n return null;\n }\n\n /**\n * Get the bottom row index of the merged cell.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getLastRow',\n value: function getLastRow() {\n return this.row + this.rowspan - 1;\n }\n\n /**\n * Get the rightmost column index of the merged cell.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getLastColumn',\n value: function getLastColumn() {\n return this.col + this.colspan - 1;\n }\n\n /**\n * Get the range coordinates of the merged cell.\n *\n * @return {CellRange}\n */\n\n }, {\n key: 'getRange',\n value: function getRange() {\n return new _index.CellRange(new _index.CellCoords(this.row, this.col), new _index.CellCoords(this.row, this.col), new _index.CellCoords(this.getLastRow(), this.getLastColumn()));\n }\n }], [{\n key: 'NEGATIVE_VALUES_WARNING',\n value: function NEGATIVE_VALUES_WARNING(newMergedCell) {\n return (0, _templateLiteralTag.toSingleLine)(_templateObject, newMergedCell.row, newMergedCell.col, newMergedCell.rowspan, newMergedCell.colspan);\n }\n\n /**\n * Get a warning message for when the declared merged cell data contains values exceeding the table limits.\n *\n * @param {Object} newMergedCell Object containg information about the merged cells that was about to be added.\n * @return {String}\n */\n\n }, {\n key: 'IS_OUT_OF_BOUNDS_WARNING',\n value: function IS_OUT_OF_BOUNDS_WARNING(newMergedCell) {\n return (0, _templateLiteralTag.toSingleLine)(_templateObject2, newMergedCell.row, newMergedCell.col);\n }\n\n /**\n * Get a warning message for when the declared merged cell data represents a single cell.\n *\n * @param {Object} newMergedCell Object containg information about the merged cells that was about to be added.\n * @return {String}\n */\n\n }, {\n key: 'IS_SINGLE_CELL',\n value: function IS_SINGLE_CELL(newMergedCell) {\n return (0, _templateLiteralTag.toSingleLine)(_templateObject3, newMergedCell.row, newMergedCell.col);\n }\n\n /**\n * Get a warning message for when the declared merged cell data contains \"colspan\" or \"rowspan\", that equals 0.\n *\n * @param {Object} newMergedCell Object containg information about the merged cells that was about to be added.\n * @return {String}\n */\n\n }, {\n key: 'ZERO_SPAN_WARNING',\n value: function ZERO_SPAN_WARNING(newMergedCell) {\n return (0, _templateLiteralTag.toSingleLine)(_templateObject4, newMergedCell.row, newMergedCell.col);\n }\n\n /**\n * Check whether the values provided for a merged cell contain any negative values.\n *\n * @param {Object} mergedCellInfo Object containing the `row`, `col`, `rowspan` and `colspan` properties.\n * @return {Boolean}\n */\n\n }, {\n key: 'containsNegativeValues',\n value: function containsNegativeValues(mergedCellInfo) {\n return mergedCellInfo.row < 0 || mergedCellInfo.col < 0 || mergedCellInfo.rowspan < 0 || mergedCellInfo.colspan < 0;\n }\n\n /**\n * Check whether the provided merged cell information object represents a single cell.\n *\n * @private\n * @param {Object} mergedCellInfo An object with `row`, `col`, `rowspan` and `colspan` properties.\n * @return {Boolean}\n */\n\n }, {\n key: 'isSingleCell',\n value: function isSingleCell(mergedCellInfo) {\n return mergedCellInfo.colspan === 1 && mergedCellInfo.rowspan === 1;\n }\n\n /**\n * Check whether the provided merged cell information object contains a rowspan or colspan of 0.\n *\n * @private\n * @param {Object} mergedCellInfo An object with `row`, `col`, `rowspan` and `colspan` properties.\n * @return {Boolean}\n */\n\n }, {\n key: 'containsZeroSpan',\n value: function containsZeroSpan(mergedCellInfo) {\n return mergedCellInfo.colspan === 0 || mergedCellInfo.rowspan === 0;\n }\n\n /**\n * Check whether the provided merged cell object is to be declared out of bounds of the table.\n *\n * @param {Object} mergeCell Object containing the `row`, `col`, `rowspan` and `colspan` properties.\n * @param {Number} rowCount Number of rows in the table.\n * @param {Number} columnCount Number of rows in the table.\n * @return {Boolean}\n */\n\n }, {\n key: 'isOutOfBounds',\n value: function isOutOfBounds(mergeCell, rowCount, columnCount) {\n return mergeCell.row < 0 || mergeCell.col < 0 || mergeCell.row >= rowCount || mergeCell.row + mergeCell.rowspan - 1 >= rowCount || mergeCell.col >= columnCount || mergeCell.col + mergeCell.colspan - 1 >= columnCount;\n }\n }]);\n\n return MergedCellCoords;\n}();\n\nexports.default = MergedCellCoords;\n\n/***/ }),\n/* 98 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar strong = __webpack_require__(99);\nvar validate = __webpack_require__(45);\nvar MAP = 'Map';\n\n// 23.1 Map Objects\nmodule.exports = __webpack_require__(66)(MAP, function (get) {\n return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key) {\n var entry = strong.getEntry(validate(this, MAP), key);\n return entry && entry.v;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value) {\n return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);\n }\n}, strong, true);\n\n\n/***/ }),\n/* 99 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar dP = __webpack_require__(20).f;\nvar create = __webpack_require__(76);\nvar redefineAll = __webpack_require__(62);\nvar ctx = __webpack_require__(30);\nvar anInstance = __webpack_require__(64);\nvar forOf = __webpack_require__(65);\nvar $iterDefine = __webpack_require__(108);\nvar step = __webpack_require__(110);\nvar setSpecies = __webpack_require__(111);\nvar DESCRIPTORS = __webpack_require__(22);\nvar fastKey = __webpack_require__(32).fastKey;\nvar validate = __webpack_require__(45);\nvar SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function (that, key) {\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return that._i[index];\n // frozen object case\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key) return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p) entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = validate(this, NAME);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.n;\n var prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev) prev.n = next;\n if (next) next.p = prev;\n if (that._f == entry) that._f = next;\n if (that._l == entry) that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n validate(this, NAME);\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(validate(this, NAME), key);\n }\n });\n if (DESCRIPTORS) dP(C.prototype, 'size', {\n get: function () {\n return validate(this, NAME)[SIZE];\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var entry = getEntry(that, key);\n var prev, index;\n // change existing entry\n if (entry) {\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if (!that._f) that._f = entry;\n if (prev) prev.n = entry;\n that[SIZE]++;\n // add to index\n if (index !== 'F') that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function (C, NAME, IS_MAP) {\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function (iterated, kind) {\n this._t = validate(iterated, NAME); // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function () {\n var that = this;\n var kind = that._k;\n var entry = that._l;\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n // get next entry\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if (kind == 'keys') return step(0, entry.k);\n if (kind == 'values') return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/***/ }),\n/* 100 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = !__webpack_require__(22) && !__webpack_require__(23)(function () {\n return Object.defineProperty(__webpack_require__(74)('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 101 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(27);\nvar toIObject = __webpack_require__(24);\nvar arrayIndexOf = __webpack_require__(102)(false);\nvar IE_PROTO = __webpack_require__(78)('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n/* 102 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = __webpack_require__(24);\nvar toLength = __webpack_require__(25);\nvar toAbsoluteIndex = __webpack_require__(61);\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n/***/ }),\n/* 103 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar document = __webpack_require__(15).document;\nmodule.exports = document && document.documentElement;\n\n\n/***/ }),\n/* 104 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// call something on iterator step with safe closing on error\nvar anObject = __webpack_require__(18);\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/***/ }),\n/* 105 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// check on default Array iterator\nvar Iterators = __webpack_require__(52);\nvar ITERATOR = __webpack_require__(12)('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/***/ }),\n/* 106 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(107);\nvar ITERATOR = __webpack_require__(12)('iterator');\nvar Iterators = __webpack_require__(52);\nmodule.exports = __webpack_require__(37).getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/***/ }),\n/* 107 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = __webpack_require__(44);\nvar TAG = __webpack_require__(12)('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/***/ }),\n/* 108 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(49);\nvar $export = __webpack_require__(3);\nvar redefine = __webpack_require__(28);\nvar hide = __webpack_require__(29);\nvar Iterators = __webpack_require__(52);\nvar $iterCreate = __webpack_require__(209);\nvar setToStringTag = __webpack_require__(53);\nvar getPrototypeOf = __webpack_require__(109);\nvar ITERATOR = __webpack_require__(12)('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/***/ }),\n/* 109 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = __webpack_require__(27);\nvar toObject = __webpack_require__(31);\nvar IE_PROTO = __webpack_require__(78)('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n/***/ }),\n/* 110 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n/***/ }),\n/* 111 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar global = __webpack_require__(15);\nvar dP = __webpack_require__(20);\nvar DESCRIPTORS = __webpack_require__(22);\nvar SPECIES = __webpack_require__(12)('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n/***/ }),\n/* 112 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = __webpack_require__(9);\nvar anObject = __webpack_require__(18);\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = __webpack_require__(30)(Function.call, __webpack_require__(67).f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/***/ }),\n/* 113 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar strong = __webpack_require__(99);\nvar validate = __webpack_require__(45);\nvar SET = 'Set';\n\n// 23.2 Set Objects\nmodule.exports = __webpack_require__(66)(SET, function (get) {\n return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/***/ }),\n/* 114 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar each = __webpack_require__(68)(0);\nvar redefine = __webpack_require__(28);\nvar meta = __webpack_require__(32);\nvar assign = __webpack_require__(116);\nvar weak = __webpack_require__(117);\nvar isObject = __webpack_require__(9);\nvar fails = __webpack_require__(23);\nvar validate = __webpack_require__(45);\nvar WEAK_MAP = 'WeakMap';\nvar getWeak = meta.getWeak;\nvar isExtensible = Object.isExtensible;\nvar uncaughtFrozenStore = weak.ufstore;\nvar tmp = {};\nvar InternalMap;\n\nvar wrapper = function (get) {\n return function WeakMap() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n};\n\nvar methods = {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key) {\n if (isObject(key)) {\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);\n return data ? data[this._i] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value) {\n return weak.def(validate(this, WEAK_MAP), key, value);\n }\n};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = module.exports = __webpack_require__(66)(WEAK_MAP, wrapper, methods, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {\n InternalMap = weak.getConstructor(wrapper, WEAK_MAP);\n assign(InternalMap.prototype, methods);\n meta.NEED = true;\n each(['delete', 'has', 'get', 'set'], function (key) {\n var proto = $WeakMap.prototype;\n var method = proto[key];\n redefine(proto, key, function (a, b) {\n // store frozen objects on internal weakmap shim\n if (isObject(a) && !isExtensible(a)) {\n if (!this._f) this._f = new InternalMap();\n var result = this._f[key](a, b);\n return key == 'set' ? this : result;\n // store all the rest on native weakmap\n } return method.call(this, a, b);\n });\n });\n}\n\n\n/***/ }),\n/* 115 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.2.2 IsArray(argument)\nvar cof = __webpack_require__(44);\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n/***/ }),\n/* 116 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = __webpack_require__(35);\nvar gOPS = __webpack_require__(69);\nvar pIE = __webpack_require__(54);\nvar toObject = __webpack_require__(31);\nvar IObject = __webpack_require__(77);\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || __webpack_require__(23)(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n/***/ }),\n/* 117 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar redefineAll = __webpack_require__(62);\nvar getWeak = __webpack_require__(32).getWeak;\nvar anObject = __webpack_require__(18);\nvar isObject = __webpack_require__(9);\nvar anInstance = __webpack_require__(64);\nvar forOf = __webpack_require__(65);\nvar createArrayMethod = __webpack_require__(68);\nvar $has = __webpack_require__(27);\nvar validate = __webpack_require__(45);\nvar arrayFind = createArrayMethod(5);\nvar arrayFindIndex = createArrayMethod(6);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (that) {\n return that._l || (that._l = new UncaughtFrozenStore());\n};\nvar UncaughtFrozenStore = function () {\n this.a = [];\n};\nvar findUncaughtFrozen = function (store, key) {\n return arrayFind(store.a, function (it) {\n return it[0] === key;\n });\n};\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function (key) {\n var index = arrayFindIndex(this.a, function (it) {\n return it[0] === key;\n });\n if (~index) this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = id++; // collection id\n that._l = undefined; // leak store for uncaught frozen objects\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function (key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);\n return data && $has(data, this._i) && delete data[this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);\n return data && $has(data, this._i);\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var data = getWeak(anObject(key), true);\n if (data === true) uncaughtFrozenStore(that).set(key, value);\n else data[that._i] = value;\n return that;\n },\n ufstore: uncaughtFrozenStore\n};\n\n\n/***/ }),\n/* 118 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar weak = __webpack_require__(117);\nvar validate = __webpack_require__(45);\nvar WEAK_SET = 'WeakSet';\n\n// 23.4 WeakSet Objects\n__webpack_require__(66)(WEAK_SET, function (get) {\n return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.4.3.1 WeakSet.prototype.add(value)\n add: function add(value) {\n return weak.def(validate(this, WEAK_SET), value, true);\n }\n}, weak, false, true);\n\n\n/***/ }),\n/* 119 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(49);\nvar global = __webpack_require__(15);\nvar ctx = __webpack_require__(30);\nvar classof = __webpack_require__(107);\nvar $export = __webpack_require__(3);\nvar isObject = __webpack_require__(9);\nvar aFunction = __webpack_require__(63);\nvar anInstance = __webpack_require__(64);\nvar forOf = __webpack_require__(65);\nvar speciesConstructor = __webpack_require__(213);\nvar task = __webpack_require__(82).set;\nvar microtask = __webpack_require__(215)();\nvar newPromiseCapabilityModule = __webpack_require__(120);\nvar perform = __webpack_require__(216);\nvar userAgent = __webpack_require__(83);\nvar promiseResolve = __webpack_require__(217);\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8 || '';\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[__webpack_require__(12)('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function')\n && promise.then(empty) instanceof FakePromise\n // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // we can't detect it synchronously, so just check versions\n && v8.indexOf('6.6') !== 0\n && userAgent.indexOf('Chrome/66') === -1;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // may throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n if (domain && !exited) domain.exit();\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = __webpack_require__(62)($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\n__webpack_require__(53)($Promise, PROMISE);\n__webpack_require__(111)(PROMISE);\nWrapper = __webpack_require__(37)[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(81)(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n/***/ }),\n/* 120 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = __webpack_require__(63);\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n/***/ }),\n/* 121 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// ECMAScript 6 symbols shim\nvar global = __webpack_require__(15);\nvar has = __webpack_require__(27);\nvar DESCRIPTORS = __webpack_require__(22);\nvar $export = __webpack_require__(3);\nvar redefine = __webpack_require__(28);\nvar META = __webpack_require__(32).KEY;\nvar $fails = __webpack_require__(23);\nvar shared = __webpack_require__(79);\nvar setToStringTag = __webpack_require__(53);\nvar uid = __webpack_require__(50);\nvar wks = __webpack_require__(12);\nvar wksExt = __webpack_require__(122);\nvar wksDefine = __webpack_require__(218);\nvar enumKeys = __webpack_require__(219);\nvar isArray = __webpack_require__(115);\nvar anObject = __webpack_require__(18);\nvar isObject = __webpack_require__(9);\nvar toIObject = __webpack_require__(24);\nvar toPrimitive = __webpack_require__(75);\nvar createDesc = __webpack_require__(51);\nvar _create = __webpack_require__(76);\nvar gOPNExt = __webpack_require__(123);\nvar $GOPD = __webpack_require__(67);\nvar $DP = __webpack_require__(20);\nvar $keys = __webpack_require__(35);\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n __webpack_require__(84).f = gOPNExt.f = $getOwnPropertyNames;\n __webpack_require__(54).f = $propertyIsEnumerable;\n __webpack_require__(69).f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !__webpack_require__(49)) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(29)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/***/ }),\n/* 122 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports.f = __webpack_require__(12);\n\n\n/***/ }),\n/* 123 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = __webpack_require__(24);\nvar gOPN = __webpack_require__(84).f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n/***/ }),\n/* 124 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.5 Object.freeze(O)\nvar isObject = __webpack_require__(9);\nvar meta = __webpack_require__(32).onFreeze;\n\n__webpack_require__(26)('freeze', function ($freeze) {\n return function freeze(it) {\n return $freeze && isObject(it) ? $freeze(meta(it)) : it;\n };\n});\n\n\n/***/ }),\n/* 125 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.17 Object.seal(O)\nvar isObject = __webpack_require__(9);\nvar meta = __webpack_require__(32).onFreeze;\n\n__webpack_require__(26)('seal', function ($seal) {\n return function seal(it) {\n return $seal && isObject(it) ? $seal(meta(it)) : it;\n };\n});\n\n\n/***/ }),\n/* 126 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.15 Object.preventExtensions(O)\nvar isObject = __webpack_require__(9);\nvar meta = __webpack_require__(32).onFreeze;\n\n__webpack_require__(26)('preventExtensions', function ($preventExtensions) {\n return function preventExtensions(it) {\n return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;\n };\n});\n\n\n/***/ }),\n/* 127 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.12 Object.isFrozen(O)\nvar isObject = __webpack_require__(9);\n\n__webpack_require__(26)('isFrozen', function ($isFrozen) {\n return function isFrozen(it) {\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n\n\n/***/ }),\n/* 128 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.13 Object.isSealed(O)\nvar isObject = __webpack_require__(9);\n\n__webpack_require__(26)('isSealed', function ($isSealed) {\n return function isSealed(it) {\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n };\n});\n\n\n/***/ }),\n/* 129 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.11 Object.isExtensible(O)\nvar isObject = __webpack_require__(9);\n\n__webpack_require__(26)('isExtensible', function ($isExtensible) {\n return function isExtensible(it) {\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n };\n});\n\n\n/***/ }),\n/* 130 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = __webpack_require__(24);\nvar $getOwnPropertyDescriptor = __webpack_require__(67).f;\n\n__webpack_require__(26)('getOwnPropertyDescriptor', function () {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n\n/***/ }),\n/* 131 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = __webpack_require__(31);\nvar $getPrototypeOf = __webpack_require__(109);\n\n__webpack_require__(26)('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/***/ }),\n/* 132 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 Object.keys(O)\nvar toObject = __webpack_require__(31);\nvar $keys = __webpack_require__(35);\n\n__webpack_require__(26)('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n/***/ }),\n/* 133 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.7 Object.getOwnPropertyNames(O)\n__webpack_require__(26)('getOwnPropertyNames', function () {\n return __webpack_require__(123).f;\n});\n\n\n/***/ }),\n/* 134 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.3.1 Object.assign(target, source)\nvar $export = __webpack_require__(3);\n\n$export($export.S + $export.F, 'Object', { assign: __webpack_require__(116) });\n\n\n/***/ }),\n/* 135 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.3.10 Object.is(value1, value2)\nvar $export = __webpack_require__(3);\n$export($export.S, 'Object', { is: __webpack_require__(220) });\n\n\n/***/ }),\n/* 136 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = __webpack_require__(3);\n$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(112).set });\n\n\n/***/ }),\n/* 137 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(20).f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || __webpack_require__(22) && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n\n\n/***/ }),\n/* 138 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $export = __webpack_require__(3);\nvar toIObject = __webpack_require__(24);\nvar toLength = __webpack_require__(25);\n\n$export($export.S, 'String', {\n // 21.1.2.4 String.raw(callSite, ...substitutions)\n raw: function raw(callSite) {\n var tpl = toIObject(callSite.raw);\n var len = toLength(tpl.length);\n var aLen = arguments.length;\n var res = [];\n var i = 0;\n while (len > i) {\n res.push(String(tpl[i++]));\n if (i < aLen) res.push(String(arguments[i]));\n } return res.join('');\n }\n});\n\n\n/***/ }),\n/* 139 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $export = __webpack_require__(3);\nvar toAbsoluteIndex = __webpack_require__(61);\nvar fromCharCode = String.fromCharCode;\nvar $fromCodePoint = String.fromCodePoint;\n\n// length should be 1, old FF problem\n$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {\n // 21.1.2.2 String.fromCodePoint(...codePoints)\n fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars\n var res = [];\n var aLen = arguments.length;\n var i = 0;\n var code;\n while (aLen > i) {\n code = +arguments[i++];\n if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');\n res.push(code < 0x10000\n ? fromCharCode(code)\n : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)\n );\n } return res.join('');\n }\n});\n\n\n/***/ }),\n/* 140 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $export = __webpack_require__(3);\nvar $at = __webpack_require__(221)(false);\n$export($export.P, 'String', {\n // 21.1.3.3 String.prototype.codePointAt(pos)\n codePointAt: function codePointAt(pos) {\n return $at(this, pos);\n }\n});\n\n\n/***/ }),\n/* 141 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $export = __webpack_require__(3);\n\n$export($export.P, 'String', {\n // 21.1.3.13 String.prototype.repeat(count)\n repeat: __webpack_require__(142)\n});\n\n\n/***/ }),\n/* 142 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar toInteger = __webpack_require__(60);\nvar defined = __webpack_require__(36);\n\nmodule.exports = function repeat(count) {\n var str = String(defined(this));\n var res = '';\n var n = toInteger(count);\n if (n < 0 || n == Infinity) throw RangeError(\"Count can't be negative\");\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;\n return res;\n};\n\n\n/***/ }),\n/* 143 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// 21.1.3.18 String.prototype.startsWith(searchString [, position ])\n\nvar $export = __webpack_require__(3);\nvar toLength = __webpack_require__(25);\nvar context = __webpack_require__(85);\nvar STARTS_WITH = 'startsWith';\nvar $startsWith = ''[STARTS_WITH];\n\n$export($export.P + $export.F * __webpack_require__(86)(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = context(this, searchString, STARTS_WITH);\n var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n\n\n/***/ }),\n/* 144 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.2.8 IsRegExp(argument)\nvar isObject = __webpack_require__(9);\nvar cof = __webpack_require__(44);\nvar MATCH = __webpack_require__(12)('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n\n\n/***/ }),\n/* 145 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])\n\nvar $export = __webpack_require__(3);\nvar toLength = __webpack_require__(25);\nvar context = __webpack_require__(85);\nvar ENDS_WITH = 'endsWith';\nvar $endsWith = ''[ENDS_WITH];\n\n$export($export.P + $export.F * __webpack_require__(86)(ENDS_WITH), 'String', {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = context(this, searchString, ENDS_WITH);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = toLength(that.length);\n var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);\n var search = String(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n\n\n/***/ }),\n/* 146 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n\nvar $export = __webpack_require__(3);\nvar context = __webpack_require__(85);\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * __webpack_require__(86)(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n/* 147 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 21.2.5.3 get RegExp.prototype.flags()\nif (__webpack_require__(22) && /./g.flags != 'g') __webpack_require__(20).f(RegExp.prototype, 'flags', {\n configurable: true,\n get: __webpack_require__(222)\n});\n\n\n/***/ }),\n/* 148 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// @@match logic\n__webpack_require__(70)('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n\n\n/***/ }),\n/* 149 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// @@replace logic\n__webpack_require__(70)('replace', 2, function (defined, REPLACE, $replace) {\n // 21.1.3.14 String.prototype.replace(searchValue, replaceValue)\n return [function replace(searchValue, replaceValue) {\n 'use strict';\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n }, $replace];\n});\n\n\n/***/ }),\n/* 150 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// @@split logic\n__webpack_require__(70)('split', 2, function (defined, SPLIT, $split) {\n 'use strict';\n var isRegExp = __webpack_require__(144);\n var _split = $split;\n var $push = [].push;\n var $SPLIT = 'split';\n var LENGTH = 'length';\n var LAST_INDEX = 'lastIndex';\n if (\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ) {\n var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group\n // based on es5-shim implementation, need to rework it\n $split = function (separator, limit) {\n var string = String(this);\n if (separator === undefined && limit === 0) return [];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) return _split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var separator2, match, lastIndex, lastLength, i;\n // Doesn't need flags gy, but they don't hurt\n if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\\\s)', flags);\n while (match = separatorCopy.exec(string)) {\n // `separatorCopy.lastIndex` is not reliable cross-browser\n lastIndex = match.index + match[0][LENGTH];\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG\n // eslint-disable-next-line no-loop-func\n if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {\n for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;\n });\n if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if (output[LENGTH] >= splitLimit) break;\n }\n if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if (lastLastIndex === string[LENGTH]) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {\n $split = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);\n };\n }\n // 21.1.3.17 String.prototype.split(separator, limit)\n return [function split(separator, limit) {\n var O = defined(this);\n var fn = separator == undefined ? undefined : separator[SPLIT];\n return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);\n }, $split];\n});\n\n\n/***/ }),\n/* 151 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// @@search logic\n__webpack_require__(70)('search', 1, function (defined, SEARCH, $search) {\n // 21.1.3.15 String.prototype.search(regexp)\n return [function search(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[SEARCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));\n }, $search];\n});\n\n\n/***/ }),\n/* 152 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar ctx = __webpack_require__(30);\nvar $export = __webpack_require__(3);\nvar toObject = __webpack_require__(31);\nvar call = __webpack_require__(104);\nvar isArrayIter = __webpack_require__(105);\nvar toLength = __webpack_require__(25);\nvar createProperty = __webpack_require__(87);\nvar getIterFn = __webpack_require__(106);\n\n$export($export.S + $export.F * !__webpack_require__(81)(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n/***/ }),\n/* 153 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $export = __webpack_require__(3);\nvar createProperty = __webpack_require__(87);\n\n// WebKit Array.of isn't generic\n$export($export.S + $export.F * __webpack_require__(23)(function () {\n function F() { /* empty */ }\n return !(Array.of.call(F) instanceof F);\n}), 'Array', {\n // 22.1.2.3 Array.of( ...items)\n of: function of(/* ...args */) {\n var index = 0;\n var aLen = arguments.length;\n var result = new (typeof this == 'function' ? this : Array)(aLen);\n while (aLen > index) createProperty(result, index, arguments[index++]);\n result.length = aLen;\n return result;\n }\n});\n\n\n/***/ }),\n/* 154 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar $export = __webpack_require__(3);\n\n$export($export.P, 'Array', { copyWithin: __webpack_require__(223) });\n\n__webpack_require__(46)('copyWithin');\n\n\n/***/ }),\n/* 155 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = __webpack_require__(3);\nvar $find = __webpack_require__(68)(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n__webpack_require__(46)(KEY);\n\n\n/***/ }),\n/* 156 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = __webpack_require__(3);\nvar $find = __webpack_require__(68)(6);\nvar KEY = 'findIndex';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n__webpack_require__(46)(KEY);\n\n\n/***/ }),\n/* 157 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export = __webpack_require__(3);\n\n$export($export.P, 'Array', { fill: __webpack_require__(224) });\n\n__webpack_require__(46)('fill');\n\n\n/***/ }),\n/* 158 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.2 Number.isFinite(number)\nvar $export = __webpack_require__(3);\nvar _isFinite = __webpack_require__(15).isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n\n\n/***/ }),\n/* 159 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.3 Number.isInteger(number)\nvar $export = __webpack_require__(3);\n\n$export($export.S, 'Number', { isInteger: __webpack_require__(160) });\n\n\n/***/ }),\n/* 160 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.3 Number.isInteger(number)\nvar isObject = __webpack_require__(9);\nvar floor = Math.floor;\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n/***/ }),\n/* 161 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.5 Number.isSafeInteger(number)\nvar $export = __webpack_require__(3);\nvar isInteger = __webpack_require__(160);\nvar abs = Math.abs;\n\n$export($export.S, 'Number', {\n isSafeInteger: function isSafeInteger(number) {\n return isInteger(number) && abs(number) <= 0x1fffffffffffff;\n }\n});\n\n\n/***/ }),\n/* 162 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.4 Number.isNaN(number)\nvar $export = __webpack_require__(3);\n\n$export($export.S, 'Number', {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare\n return number != number;\n }\n});\n\n\n/***/ }),\n/* 163 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.1 Number.EPSILON\nvar $export = __webpack_require__(3);\n\n$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });\n\n\n/***/ }),\n/* 164 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.10 Number.MIN_SAFE_INTEGER\nvar $export = __webpack_require__(3);\n\n$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });\n\n\n/***/ }),\n/* 165 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 20.1.2.6 Number.MAX_SAFE_INTEGER\nvar $export = __webpack_require__(3);\n\n$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });\n\n\n/***/ }),\n/* 166 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// https://github.com/tc39/Array.prototype.includes\nvar $export = __webpack_require__(3);\nvar $includes = __webpack_require__(102)(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n__webpack_require__(46)('includes');\n\n\n/***/ }),\n/* 167 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = __webpack_require__(3);\nvar $values = __webpack_require__(168)(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n\n\n/***/ }),\n/* 168 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getKeys = __webpack_require__(35);\nvar toIObject = __webpack_require__(24);\nvar isEnum = __webpack_require__(54).f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n\n\n/***/ }),\n/* 169 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = __webpack_require__(3);\nvar $entries = __webpack_require__(168)(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\n\n/***/ }),\n/* 170 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = __webpack_require__(3);\nvar ownKeys = __webpack_require__(225);\nvar toIObject = __webpack_require__(24);\nvar gOPD = __webpack_require__(67);\nvar createProperty = __webpack_require__(87);\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n\n\n/***/ }),\n/* 171 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = __webpack_require__(3);\nvar $pad = __webpack_require__(172);\nvar userAgent = __webpack_require__(83);\n\n// https://github.com/zloirock/core-js/issues/280\n$export($export.P + $export.F * /Version\\/10\\.\\d+(\\.\\d+)? Safari\\//.test(userAgent), 'String', {\n padStart: function padStart(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n\n\n/***/ }),\n/* 172 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = __webpack_require__(25);\nvar repeat = __webpack_require__(142);\nvar defined = __webpack_require__(36);\n\nmodule.exports = function (that, maxLength, fillString, left) {\n var S = String(defined(that));\n var stringLength = S.length;\n var fillStr = fillString === undefined ? ' ' : String(fillString);\n var intMaxLength = toLength(maxLength);\n if (intMaxLength <= stringLength || fillStr == '') return S;\n var fillLen = intMaxLength - stringLength;\n var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n\n\n/***/ }),\n/* 173 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = __webpack_require__(3);\nvar $pad = __webpack_require__(172);\nvar userAgent = __webpack_require__(83);\n\n// https://github.com/zloirock/core-js/issues/280\n$export($export.P + $export.F * /Version\\/10\\.\\d+(\\.\\d+)? Safari\\//.test(userAgent), 'String', {\n padEnd: function padEnd(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n\n\n/***/ }),\n/* 174 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $export = __webpack_require__(3);\nvar $task = __webpack_require__(82);\n$export($export.G + $export.B, {\n setImmediate: $task.set,\n clearImmediate: $task.clear\n});\n\n\n/***/ }),\n/* 175 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $iterators = __webpack_require__(88);\nvar getKeys = __webpack_require__(35);\nvar redefine = __webpack_require__(28);\nvar global = __webpack_require__(15);\nvar hide = __webpack_require__(29);\nvar Iterators = __webpack_require__(52);\nvar wks = __webpack_require__(12);\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n\n\n/***/ }),\n/* 176 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar privatePool = new WeakMap();\n\n/**\n * Calculates indexes of columns to render OR columns that are visible.\n * To redo the calculation, you need to create a new calculator.\n *\n * @class ViewportColumnsCalculator\n */\n\nvar ViewportColumnsCalculator = function () {\n _createClass(ViewportColumnsCalculator, null, [{\n key: 'DEFAULT_WIDTH',\n\n /**\n * Default column width\n *\n * @type {Number}\n */\n get: function get() {\n return 50;\n }\n\n /**\n * @param {Number} viewportWidth Width of the viewport\n * @param {Number} scrollOffset Current horizontal scroll position of the viewport\n * @param {Number} totalColumns Total number of rows\n * @param {Function} columnWidthFn Function that returns the width of the column at a given index (in px)\n * @param {Function} overrideFn Function that changes calculated this.startRow, this.endRow (used by MergeCells plugin)\n * @param {Boolean} onlyFullyVisible if `true`, only startRow and endRow will be indexes of rows that are fully in viewport\n * @param {Boolean} stretchH\n * @param {Function} [stretchingColumnWidthFn] Function that returns the new width of the stretched column.\n */\n\n }]);\n\n function ViewportColumnsCalculator(viewportWidth, scrollOffset, totalColumns, columnWidthFn, overrideFn, onlyFullyVisible, stretchH) {\n var stretchingColumnWidthFn = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : function (width) {\n return width;\n };\n\n _classCallCheck(this, ViewportColumnsCalculator);\n\n privatePool.set(this, {\n viewportWidth: viewportWidth,\n scrollOffset: scrollOffset,\n totalColumns: totalColumns,\n columnWidthFn: columnWidthFn,\n overrideFn: overrideFn,\n onlyFullyVisible: onlyFullyVisible,\n stretchingColumnWidthFn: stretchingColumnWidthFn\n });\n\n /**\n * Number of rendered/visible columns\n *\n * @type {Number}\n */\n this.count = 0;\n\n /**\n * Index of the first rendered/visible column (can be overwritten using overrideFn)\n *\n * @type {Number|null}\n */\n this.startColumn = null;\n\n /**\n * Index of the last rendered/visible column (can be overwritten using overrideFn)\n *\n * @type {null}\n */\n this.endColumn = null;\n\n /**\n * Position of the first rendered/visible column (in px)\n *\n * @type {Number|null}\n */\n this.startPosition = null;\n\n this.stretchAllRatio = 0;\n this.stretchLastWidth = 0;\n this.stretch = stretchH;\n this.totalTargetWidth = 0;\n this.needVerifyLastColumnWidth = true;\n this.stretchAllColumnsWidth = [];\n\n this.calculate();\n }\n\n /**\n * Calculates viewport\n */\n\n\n _createClass(ViewportColumnsCalculator, [{\n key: 'calculate',\n value: function calculate() {\n var sum = 0;\n var needReverse = true;\n var startPositions = [];\n var columnWidth = void 0;\n\n var priv = privatePool.get(this);\n var onlyFullyVisible = priv.onlyFullyVisible;\n var overrideFn = priv.overrideFn;\n var scrollOffset = priv.scrollOffset;\n var totalColumns = priv.totalColumns;\n var viewportWidth = priv.viewportWidth;\n\n for (var i = 0; i < totalColumns; i++) {\n columnWidth = this._getColumnWidth(i);\n\n if (sum <= scrollOffset && !onlyFullyVisible) {\n this.startColumn = i;\n }\n\n // +1 pixel for row header width compensation for horizontal scroll > 0\n var compensatedViewportWidth = scrollOffset > 0 ? viewportWidth + 1 : viewportWidth;\n\n if (sum >= scrollOffset && sum + columnWidth <= scrollOffset + compensatedViewportWidth) {\n if (this.startColumn == null) {\n this.startColumn = i;\n }\n this.endColumn = i;\n }\n startPositions.push(sum);\n sum += columnWidth;\n\n if (!onlyFullyVisible) {\n this.endColumn = i;\n }\n if (sum >= scrollOffset + viewportWidth) {\n needReverse = false;\n break;\n }\n }\n\n if (this.endColumn === totalColumns - 1 && needReverse) {\n this.startColumn = this.endColumn;\n\n while (this.startColumn > 0) {\n var viewportSum = startPositions[this.endColumn] + columnWidth - startPositions[this.startColumn - 1];\n\n if (viewportSum <= viewportWidth || !onlyFullyVisible) {\n this.startColumn--;\n }\n if (viewportSum > viewportWidth) {\n break;\n }\n }\n }\n\n if (this.startColumn !== null && overrideFn) {\n overrideFn(this);\n }\n this.startPosition = startPositions[this.startColumn];\n\n if (this.startPosition === void 0) {\n this.startPosition = null;\n }\n if (this.startColumn !== null) {\n this.count = this.endColumn - this.startColumn + 1;\n }\n }\n\n /**\n * Recalculate columns stretching.\n *\n * @param {Number} totalWidth\n */\n\n }, {\n key: 'refreshStretching',\n value: function refreshStretching(totalWidth) {\n if (this.stretch === 'none') {\n return;\n }\n this.totalTargetWidth = totalWidth;\n\n var priv = privatePool.get(this);\n var totalColumns = priv.totalColumns;\n var sumAll = 0;\n\n for (var i = 0; i < totalColumns; i++) {\n var columnWidth = this._getColumnWidth(i);\n var permanentColumnWidth = priv.stretchingColumnWidthFn(void 0, i);\n\n if (typeof permanentColumnWidth === 'number') {\n totalWidth -= permanentColumnWidth;\n } else {\n sumAll += columnWidth;\n }\n }\n var remainingSize = totalWidth - sumAll;\n\n if (this.stretch === 'all' && remainingSize > 0) {\n this.stretchAllRatio = totalWidth / sumAll;\n this.stretchAllColumnsWidth = [];\n this.needVerifyLastColumnWidth = true;\n } else if (this.stretch === 'last' && totalWidth !== Infinity) {\n var _columnWidth = this._getColumnWidth(totalColumns - 1);\n var lastColumnWidth = remainingSize + _columnWidth;\n\n this.stretchLastWidth = lastColumnWidth >= 0 ? lastColumnWidth : _columnWidth;\n }\n }\n\n /**\n * Get stretched column width based on stretchH (all or last) setting passed in handsontable instance.\n *\n * @param {Number} column\n * @param {Number} baseWidth\n * @returns {Number|null}\n */\n\n }, {\n key: 'getStretchedColumnWidth',\n value: function getStretchedColumnWidth(column, baseWidth) {\n var result = null;\n\n if (this.stretch === 'all' && this.stretchAllRatio !== 0) {\n result = this._getStretchedAllColumnWidth(column, baseWidth);\n } else if (this.stretch === 'last' && this.stretchLastWidth !== 0) {\n result = this._getStretchedLastColumnWidth(column);\n }\n\n return result;\n }\n\n /**\n * @param {Number} column\n * @param {Number} baseWidth\n * @returns {Number}\n * @private\n */\n\n }, {\n key: '_getStretchedAllColumnWidth',\n value: function _getStretchedAllColumnWidth(column, baseWidth) {\n var sumRatioWidth = 0;\n var priv = privatePool.get(this);\n var totalColumns = priv.totalColumns;\n\n if (!this.stretchAllColumnsWidth[column]) {\n var stretchedWidth = Math.round(baseWidth * this.stretchAllRatio);\n var newStretchedWidth = priv.stretchingColumnWidthFn(stretchedWidth, column);\n\n if (newStretchedWidth === void 0) {\n this.stretchAllColumnsWidth[column] = stretchedWidth;\n } else {\n this.stretchAllColumnsWidth[column] = isNaN(newStretchedWidth) ? this._getColumnWidth(column) : newStretchedWidth;\n }\n }\n\n if (this.stretchAllColumnsWidth.length === totalColumns && this.needVerifyLastColumnWidth) {\n this.needVerifyLastColumnWidth = false;\n\n for (var i = 0; i < this.stretchAllColumnsWidth.length; i++) {\n sumRatioWidth += this.stretchAllColumnsWidth[i];\n }\n if (sumRatioWidth !== this.totalTargetWidth) {\n this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length - 1] += this.totalTargetWidth - sumRatioWidth;\n }\n }\n\n return this.stretchAllColumnsWidth[column];\n }\n\n /**\n * @param {Number} column\n * @returns {Number|null}\n * @private\n */\n\n }, {\n key: '_getStretchedLastColumnWidth',\n value: function _getStretchedLastColumnWidth(column) {\n var priv = privatePool.get(this);\n var totalColumns = priv.totalColumns;\n\n if (column === totalColumns - 1) {\n return this.stretchLastWidth;\n }\n\n return null;\n }\n\n /**\n * @param {Number} column Column index.\n * @returns {Number}\n * @private\n */\n\n }, {\n key: '_getColumnWidth',\n value: function _getColumnWidth(column) {\n var width = privatePool.get(this).columnWidthFn(column);\n\n if (width === void 0) {\n width = ViewportColumnsCalculator.DEFAULT_WIDTH;\n }\n\n return width;\n }\n }]);\n\n return ViewportColumnsCalculator;\n}();\n\nexports.default = ViewportColumnsCalculator;\n\n/***/ }),\n/* 177 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar privatePool = new WeakMap();\n\n/**\n * Calculates indexes of rows to render OR rows that are visible.\n * To redo the calculation, you need to create a new calculator.\n *\n * @class ViewportRowsCalculator\n */\n\nvar ViewportRowsCalculator = function () {\n _createClass(ViewportRowsCalculator, null, [{\n key: \"DEFAULT_HEIGHT\",\n\n /**\n * Default row height\n *\n * @type {Number}\n */\n get: function get() {\n return 23;\n }\n\n /**\n * @param {Number} viewportHeight Height of the viewport\n * @param {Number} scrollOffset Current vertical scroll position of the viewport\n * @param {Number} totalRows Total number of rows\n * @param {Function} rowHeightFn Function that returns the height of the row at a given index (in px)\n * @param {Function} overrideFn Function that changes calculated this.startRow, this.endRow (used by MergeCells plugin)\n * @param {Boolean} onlyFullyVisible if `true`, only startRow and endRow will be indexes of rows that are fully in viewport\n * @param {Number} horizontalScrollbarHeight\n */\n\n }]);\n\n function ViewportRowsCalculator(viewportHeight, scrollOffset, totalRows, rowHeightFn, overrideFn, onlyFullyVisible, horizontalScrollbarHeight) {\n _classCallCheck(this, ViewportRowsCalculator);\n\n privatePool.set(this, {\n viewportHeight: viewportHeight,\n scrollOffset: scrollOffset,\n totalRows: totalRows,\n rowHeightFn: rowHeightFn,\n overrideFn: overrideFn,\n onlyFullyVisible: onlyFullyVisible,\n horizontalScrollbarHeight: horizontalScrollbarHeight\n });\n\n /**\n * Number of rendered/visible rows\n *\n * @type {Number}\n */\n this.count = 0;\n\n /**\n * Index of the first rendered/visible row (can be overwritten using overrideFn)\n *\n * @type {Number|null}\n */\n this.startRow = null;\n\n /**\n * Index of the last rendered/visible row (can be overwritten using overrideFn)\n *\n * @type {null}\n */\n this.endRow = null;\n\n /**\n * Position of the first rendered/visible row (in px)\n *\n * @type {Number|null}\n */\n this.startPosition = null;\n\n this.calculate();\n }\n\n /**\n * Calculates viewport\n */\n\n\n _createClass(ViewportRowsCalculator, [{\n key: \"calculate\",\n value: function calculate() {\n var sum = 0;\n var needReverse = true;\n var startPositions = [];\n\n var priv = privatePool.get(this);\n var onlyFullyVisible = priv.onlyFullyVisible;\n var overrideFn = priv.overrideFn;\n var rowHeightFn = priv.rowHeightFn;\n var scrollOffset = priv.scrollOffset;\n var totalRows = priv.totalRows;\n var viewportHeight = priv.viewportHeight;\n var horizontalScrollbarHeight = priv.horizontalScrollbarHeight || 0;\n var rowHeight = void 0;\n\n // Calculate the number (start and end index) of rows needed\n for (var i = 0; i < totalRows; i++) {\n rowHeight = rowHeightFn(i);\n\n if (rowHeight === undefined) {\n rowHeight = ViewportRowsCalculator.DEFAULT_HEIGHT;\n }\n if (sum <= scrollOffset && !onlyFullyVisible) {\n this.startRow = i;\n }\n\n // the row is within the \"visible range\"\n if (sum >= scrollOffset && sum + rowHeight <= scrollOffset + viewportHeight - horizontalScrollbarHeight) {\n if (this.startRow === null) {\n this.startRow = i;\n }\n this.endRow = i;\n }\n startPositions.push(sum);\n sum += rowHeight;\n\n if (!onlyFullyVisible) {\n this.endRow = i;\n }\n if (sum >= scrollOffset + viewportHeight - horizontalScrollbarHeight) {\n needReverse = false;\n break;\n }\n }\n\n // If the estimation has reached the last row and there is still some space available in the viewport,\n // we need to render in reverse in order to fill the whole viewport with rows\n if (this.endRow === totalRows - 1 && needReverse) {\n this.startRow = this.endRow;\n\n while (this.startRow > 0) {\n // rowHeight is the height of the last row\n var viewportSum = startPositions[this.endRow] + rowHeight - startPositions[this.startRow - 1];\n\n if (viewportSum <= viewportHeight - horizontalScrollbarHeight || !onlyFullyVisible) {\n this.startRow--;\n }\n if (viewportSum >= viewportHeight - horizontalScrollbarHeight) {\n break;\n }\n }\n }\n\n if (this.startRow !== null && overrideFn) {\n overrideFn(this);\n }\n this.startPosition = startPositions[this.startRow];\n\n if (this.startPosition === void 0) {\n this.startPosition = null;\n }\n if (this.startRow !== null) {\n this.count = this.endRow - this.startRow + 1;\n }\n }\n }]);\n\n return ViewportRowsCalculator;\n}();\n\nexports.default = ViewportRowsCalculator;\n\n/***/ }),\n/* 178 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _coords = __webpack_require__(56);\n\nvar _coords2 = _interopRequireDefault(_coords);\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\n/**\n * CellRange holds cell coordinates as {@link CellCoords} instances. This object represent unit of the selection layer which\n * can contains multiple contiquous cells or single cell.\n *\n * @util\n */\nvar CellRange = function () {\n function CellRange(highlight) {\n var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : highlight;\n var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : highlight;\n\n _classCallCheck(this, CellRange);\n\n /**\n * Used to draw bold border around a cell where selection was started and to edit the cell when you press Enter.\n *\n * @type {CellCoords}\n */\n this.highlight = highlight;\n /**\n * Usually the same as highlight, but in Excel there is distinction - one can change highlight within a selection.\n *\n * @type {CellCoords}\n */\n this.from = from;\n /**\n * End selection.\n *\n * @type {CellCoords}\n */\n this.to = to;\n }\n\n /**\n * Set the new coordinates for highlighting selection.\n *\n * @param {CellCoords} coords Coordinates to use.\n */\n\n\n _createClass(CellRange, [{\n key: 'setHighlight',\n value: function setHighlight(coords) {\n this.highlight = coords;\n\n return this;\n }\n\n /**\n * Set the new coordinates where selection starts from.\n *\n * @param {CellCoords} coords Coordinates to use.\n */\n\n }, {\n key: 'setFrom',\n value: function setFrom(coords) {\n this.from = coords;\n\n return this;\n }\n\n /**\n * Set new coordinates where selection ends from.\n *\n * @param {CellCoords} coords Coordinates to use.\n */\n\n }, {\n key: 'setTo',\n value: function setTo(coords) {\n this.to = coords;\n\n return this;\n }\n\n /**\n * Checks if given coordinates are valid in context of a given Walkontable instance.\n *\n * @param {Walkontable} wot The Walkontable instance.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isValid',\n value: function isValid(wot) {\n return this.from.isValid(wot) && this.to.isValid(wot);\n }\n\n /**\n * Checks if this cell range is restricted to one cell\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isSingle',\n value: function isSingle() {\n return this.from.row === this.to.row && this.from.col === this.to.col;\n }\n\n /**\n * Returns selected range height (in number of rows).\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getHeight',\n value: function getHeight() {\n return Math.max(this.from.row, this.to.row) - Math.min(this.from.row, this.to.row) + 1;\n }\n\n /**\n * Returns selected range width (in number of columns).\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getWidth',\n value: function getWidth() {\n return Math.max(this.from.col, this.to.col) - Math.min(this.from.col, this.to.col) + 1;\n }\n\n /**\n * Checks if given cell coordinates are within `from` and `to` cell coordinates of this range.\n *\n * @param {CellCoords} cellCoords The cell coordinates to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'includes',\n value: function includes(cellCoords) {\n var row = cellCoords.row,\n col = cellCoords.col;\n\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n\n return topLeft.row <= row && bottomRight.row >= row && topLeft.col <= col && bottomRight.col >= col;\n }\n\n /**\n * Checks if given range is within of this range.\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'includesRange',\n value: function includesRange(cellRange) {\n return this.includes(cellRange.getTopLeftCorner()) && this.includes(cellRange.getBottomRightCorner());\n }\n\n /**\n * Checks if given range is equal to this range.\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isEqual',\n value: function isEqual(cellRange) {\n return Math.min(this.from.row, this.to.row) === Math.min(cellRange.from.row, cellRange.to.row) && Math.max(this.from.row, this.to.row) === Math.max(cellRange.from.row, cellRange.to.row) && Math.min(this.from.col, this.to.col) === Math.min(cellRange.from.col, cellRange.to.col) && Math.max(this.from.col, this.to.col) === Math.max(cellRange.from.col, cellRange.to.col);\n }\n\n /**\n * Checks if tested range overlaps with the range. Range A is considered to to be overlapping with range B\n * if intersection of A and B or B and A is not empty.\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'overlaps',\n value: function overlaps(cellRange) {\n return cellRange.isSouthEastOf(this.getTopLeftCorner()) && cellRange.isNorthWestOf(this.getBottomRightCorner());\n }\n\n /**\n * Checks if tested coordinates are positioned in south-east from this cell range.\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isSouthEastOf',\n value: function isSouthEastOf(cellRange) {\n return this.getTopLeftCorner().isSouthEastOf(cellRange) || this.getBottomRightCorner().isSouthEastOf(cellRange);\n }\n\n /**\n * Checks if tested coordinates are positioned in north-west from this cell range.\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isNorthWestOf',\n value: function isNorthWestOf(cellRange) {\n return this.getTopLeftCorner().isNorthWestOf(cellRange) || this.getBottomRightCorner().isNorthWestOf(cellRange);\n }\n\n /**\n * Returns `true` if the provided range is overlapping the current range horizontally (e.g. the current range's last\n * column is 5 and the provided range's first column is 3).\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isOverlappingHorizontally',\n value: function isOverlappingHorizontally(cellRange) {\n return this.getTopRightCorner().col >= cellRange.getTopLeftCorner().col && this.getTopRightCorner().col <= cellRange.getTopRightCorner().col || this.getTopLeftCorner().col <= cellRange.getTopRightCorner().col && this.getTopLeftCorner().col >= cellRange.getTopLeftCorner().col;\n }\n\n /**\n * Returns `true` if the provided range is overlapping the current range vertically (e.g. the current range's last\n * row is 5 and the provided range's first row is 3).\n *\n * @param {CellRange} cellRange The cells range to check.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isOverlappingVertically',\n value: function isOverlappingVertically(cellRange) {\n return this.getBottomRightCorner().row >= cellRange.getTopRightCorner().row && this.getBottomRightCorner().row <= cellRange.getBottomRightCorner().row || this.getTopRightCorner().row <= cellRange.getBottomRightCorner().row && this.getTopRightCorner().row >= cellRange.getTopRightCorner().row;\n }\n\n /**\n * Adds a cell to a range (only if exceeds corners of the range). Returns information if range was expanded.\n *\n * @param {CellCoords} cellCoords\n * @returns {Boolean}\n */\n\n }, {\n key: 'expand',\n value: function expand(cellCoords) {\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n\n if (cellCoords.row < topLeft.row || cellCoords.col < topLeft.col || cellCoords.row > bottomRight.row || cellCoords.col > bottomRight.col) {\n this.from = new _coords2.default(Math.min(topLeft.row, cellCoords.row), Math.min(topLeft.col, cellCoords.col));\n this.to = new _coords2.default(Math.max(bottomRight.row, cellCoords.row), Math.max(bottomRight.col, cellCoords.col));\n\n return true;\n }\n\n return false;\n }\n\n /**\n * Expand the current object by the range passed in the first argument.\n *\n * @param {CellRange} expandingRange Object extending the range.\n * @returns {Boolean}\n */\n\n }, {\n key: 'expandByRange',\n value: function expandByRange(expandingRange) {\n if (this.includesRange(expandingRange) || !this.overlaps(expandingRange)) {\n return false;\n }\n\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n var initialDirection = this.getDirection();\n\n var expandingTopLeft = expandingRange.getTopLeftCorner();\n var expandingBottomRight = expandingRange.getBottomRightCorner();\n\n var resultTopRow = Math.min(topLeft.row, expandingTopLeft.row);\n var resultTopCol = Math.min(topLeft.col, expandingTopLeft.col);\n var resultBottomRow = Math.max(bottomRight.row, expandingBottomRight.row);\n var resultBottomCol = Math.max(bottomRight.col, expandingBottomRight.col);\n\n var finalFrom = new _coords2.default(resultTopRow, resultTopCol);\n var finalTo = new _coords2.default(resultBottomRow, resultBottomCol);\n\n this.from = finalFrom;\n this.to = finalTo;\n\n this.setDirection(initialDirection);\n\n if (this.highlight.row === this.getBottomRightCorner().row && this.getVerticalDirection() === 'N-S') {\n this.flipDirectionVertically();\n }\n\n if (this.highlight.col === this.getTopRightCorner().col && this.getHorizontalDirection() === 'W-E') {\n this.flipDirectionHorizontally();\n }\n\n return true;\n }\n\n /**\n * Gets the direction of the selection.\n *\n * @returns {String} Returns one of the values: `'NW-SE'`, `'NE-SW'`, `'SE-NW'`, `'SW-NE'`.\n */\n\n }, {\n key: 'getDirection',\n value: function getDirection() {\n if (this.from.isNorthWestOf(this.to)) {\n // NorthWest - SouthEast\n return 'NW-SE';\n } else if (this.from.isNorthEastOf(this.to)) {\n // NorthEast - SouthWest\n return 'NE-SW';\n } else if (this.from.isSouthEastOf(this.to)) {\n // SouthEast - NorthWest\n return 'SE-NW';\n } else if (this.from.isSouthWestOf(this.to)) {\n // SouthWest - NorthEast\n return 'SW-NE';\n }\n }\n\n /**\n * Sets the direction of the selection.\n *\n * @param {String} direction One of the values: `'NW-SE'`, `'NE-SW'`, `'SE-NW'`, `'SW-NE'`.\n */\n\n }, {\n key: 'setDirection',\n value: function setDirection(direction) {\n switch (direction) {\n case 'NW-SE':\n var _ref = [this.getTopLeftCorner(), this.getBottomRightCorner()];\n this.from = _ref[0];\n this.to = _ref[1];\n\n break;\n case 'NE-SW':\n var _ref2 = [this.getTopRightCorner(), this.getBottomLeftCorner()];\n this.from = _ref2[0];\n this.to = _ref2[1];\n\n break;\n case 'SE-NW':\n var _ref3 = [this.getBottomRightCorner(), this.getTopLeftCorner()];\n this.from = _ref3[0];\n this.to = _ref3[1];\n\n break;\n case 'SW-NE':\n var _ref4 = [this.getBottomLeftCorner(), this.getTopRightCorner()];\n this.from = _ref4[0];\n this.to = _ref4[1];\n\n break;\n default:\n break;\n }\n }\n\n /**\n * Gets the vertical direction of the range.\n *\n * @returns {String} Returns one of the values: `N-S` (north->south), `S-N` (south->north).\n */\n\n }, {\n key: 'getVerticalDirection',\n value: function getVerticalDirection() {\n return ['NE-SW', 'NW-SE'].indexOf(this.getDirection()) > -1 ? 'N-S' : 'S-N';\n }\n\n /**\n * Gets the horizontal direction of the range.\n *\n * @returns {String} Returns one of the values: `W-E` (west->east), `E-W` (east->west).\n */\n\n }, {\n key: 'getHorizontalDirection',\n value: function getHorizontalDirection() {\n return ['NW-SE', 'SW-NE'].indexOf(this.getDirection()) > -1 ? 'W-E' : 'E-W';\n }\n\n /**\n * Flip the direction vertically. (e.g. `NW-SE` changes to `SW-NE`).\n */\n\n }, {\n key: 'flipDirectionVertically',\n value: function flipDirectionVertically() {\n var direction = this.getDirection();\n switch (direction) {\n case 'NW-SE':\n this.setDirection('SW-NE');\n break;\n case 'NE-SW':\n this.setDirection('SE-NW');\n break;\n case 'SE-NW':\n this.setDirection('NE-SW');\n break;\n case 'SW-NE':\n this.setDirection('NW-SE');\n break;\n default:\n break;\n }\n }\n\n /**\n * Flip the direction horizontally. (e.g. `NW-SE` changes to `NE-SW`).\n */\n\n }, {\n key: 'flipDirectionHorizontally',\n value: function flipDirectionHorizontally() {\n var direction = this.getDirection();\n switch (direction) {\n case 'NW-SE':\n this.setDirection('NE-SW');\n break;\n case 'NE-SW':\n this.setDirection('NW-SE');\n break;\n case 'SE-NW':\n this.setDirection('SW-NE');\n break;\n case 'SW-NE':\n this.setDirection('SE-NW');\n break;\n default:\n break;\n }\n }\n\n /**\n * Gets the top left corner of this range.\n *\n * @returns {CellCoords}\n */\n\n }, {\n key: 'getTopLeftCorner',\n value: function getTopLeftCorner() {\n return new _coords2.default(Math.min(this.from.row, this.to.row), Math.min(this.from.col, this.to.col));\n }\n\n /**\n * Gets the bottom right corner of this range.\n *\n * @returns {CellCoords}\n */\n\n }, {\n key: 'getBottomRightCorner',\n value: function getBottomRightCorner() {\n return new _coords2.default(Math.max(this.from.row, this.to.row), Math.max(this.from.col, this.to.col));\n }\n\n /**\n * Gets the top right corner of this range.\n *\n * @returns {CellCoords}\n */\n\n }, {\n key: 'getTopRightCorner',\n value: function getTopRightCorner() {\n return new _coords2.default(Math.min(this.from.row, this.to.row), Math.max(this.from.col, this.to.col));\n }\n\n /**\n * Gets the bottom left corner of this range.\n *\n * @returns {CellCoords}\n */\n\n }, {\n key: 'getBottomLeftCorner',\n value: function getBottomLeftCorner() {\n return new _coords2.default(Math.max(this.from.row, this.to.row), Math.min(this.from.col, this.to.col));\n }\n\n /**\n * Checks if coordinates match to one of the 4th corners of this range.\n *\n * @param {CellCoords} coords Cell coordinates to check.\n * @param {CellRange} [expandedRange]\n * @returns {Boolean}\n */\n\n }, {\n key: 'isCorner',\n value: function isCorner(coords, expandedRange) {\n if (expandedRange && expandedRange.includes(coords) && (this.getTopLeftCorner().isEqual(new _coords2.default(expandedRange.from.row, expandedRange.from.col)) || this.getTopRightCorner().isEqual(new _coords2.default(expandedRange.from.row, expandedRange.to.col)) || this.getBottomLeftCorner().isEqual(new _coords2.default(expandedRange.to.row, expandedRange.from.col)) || this.getBottomRightCorner().isEqual(new _coords2.default(expandedRange.to.row, expandedRange.to.col)))) {\n return true;\n }\n\n return coords.isEqual(this.getTopLeftCorner()) || coords.isEqual(this.getTopRightCorner()) || coords.isEqual(this.getBottomLeftCorner()) || coords.isEqual(this.getBottomRightCorner());\n }\n\n /**\n * Gets coordinates of the corner which is opposite to the matched. When the passed coordinates matched to the\n * bottom-right corner of this range then the coordinates for top-left will be returned.\n *\n * @param {CellCoords} coords Cell coordinates to check.\n * @param {CellRange} [expandedRange]\n * @returns {CellCoords}\n */\n\n }, {\n key: 'getOppositeCorner',\n value: function getOppositeCorner(coords, expandedRange) {\n if (!(coords instanceof _coords2.default)) {\n return false;\n }\n\n if (expandedRange) {\n if (expandedRange.includes(coords)) {\n if (this.getTopLeftCorner().isEqual(new _coords2.default(expandedRange.from.row, expandedRange.from.col))) {\n return this.getBottomRightCorner();\n }\n if (this.getTopRightCorner().isEqual(new _coords2.default(expandedRange.from.row, expandedRange.to.col))) {\n return this.getBottomLeftCorner();\n }\n if (this.getBottomLeftCorner().isEqual(new _coords2.default(expandedRange.to.row, expandedRange.from.col))) {\n return this.getTopRightCorner();\n }\n if (this.getBottomRightCorner().isEqual(new _coords2.default(expandedRange.to.row, expandedRange.to.col))) {\n return this.getTopLeftCorner();\n }\n }\n }\n\n if (coords.isEqual(this.getBottomRightCorner())) {\n return this.getTopLeftCorner();\n } else if (coords.isEqual(this.getTopLeftCorner())) {\n return this.getBottomRightCorner();\n } else if (coords.isEqual(this.getTopRightCorner())) {\n return this.getBottomLeftCorner();\n } else if (coords.isEqual(this.getBottomLeftCorner())) {\n return this.getTopRightCorner();\n }\n }\n\n /**\n * @param {CellRange} range\n * @returns {Array}\n */\n\n }, {\n key: 'getBordersSharedWith',\n value: function getBordersSharedWith(range) {\n if (!this.includesRange(range)) {\n return [];\n }\n\n var thisBorders = {\n top: Math.min(this.from.row, this.to.row),\n bottom: Math.max(this.from.row, this.to.row),\n left: Math.min(this.from.col, this.to.col),\n right: Math.max(this.from.col, this.to.col)\n };\n var rangeBorders = {\n top: Math.min(range.from.row, range.to.row),\n bottom: Math.max(range.from.row, range.to.row),\n left: Math.min(range.from.col, range.to.col),\n right: Math.max(range.from.col, range.to.col)\n };\n var result = [];\n\n if (thisBorders.top === rangeBorders.top) {\n result.push('top');\n }\n if (thisBorders.right === rangeBorders.right) {\n result.push('right');\n }\n if (thisBorders.bottom === rangeBorders.bottom) {\n result.push('bottom');\n }\n if (thisBorders.left === rangeBorders.left) {\n result.push('left');\n }\n\n return result;\n }\n\n /**\n * Get inner selected cell coords defined by this range\n *\n * @returns {Array}\n */\n\n }, {\n key: 'getInner',\n value: function getInner() {\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n var out = [];\n\n for (var r = topLeft.row; r <= bottomRight.row; r++) {\n for (var c = topLeft.col; c <= bottomRight.col; c++) {\n if (!(this.from.row === r && this.from.col === c) && !(this.to.row === r && this.to.col === c)) {\n out.push(new _coords2.default(r, c));\n }\n }\n }\n return out;\n }\n\n /**\n * Get all selected cell coords defined by this range\n *\n * @returns {Array}\n */\n\n }, {\n key: 'getAll',\n value: function getAll() {\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n var out = [];\n\n for (var r = topLeft.row; r <= bottomRight.row; r++) {\n for (var c = topLeft.col; c <= bottomRight.col; c++) {\n if (topLeft.row === r && topLeft.col === c) {\n out.push(topLeft);\n } else if (bottomRight.row === r && bottomRight.col === c) {\n out.push(bottomRight);\n } else {\n out.push(new _coords2.default(r, c));\n }\n }\n }\n\n return out;\n }\n\n /**\n * Runs a callback function against all cells in the range. You can break the iteration by returning\n * `false` in the callback function\n *\n * @param callback {Function}\n */\n\n }, {\n key: 'forAll',\n value: function forAll(callback) {\n var topLeft = this.getTopLeftCorner();\n var bottomRight = this.getBottomRightCorner();\n\n for (var r = topLeft.row; r <= bottomRight.row; r++) {\n for (var c = topLeft.col; c <= bottomRight.col; c++) {\n var breakIteration = callback(r, c);\n\n if (breakIteration === false) {\n return;\n }\n }\n }\n }\n\n /**\n * Convert CellRange to literal object.\n *\n * @return {Object} Returns a literal object with `from` and `to` properties which each of that object\n * contains `row` and `col` keys.\n */\n\n }, {\n key: 'toObject',\n value: function toObject() {\n return {\n from: this.from.toObject(),\n to: this.to.toObject()\n };\n }\n }]);\n\n return CellRange;\n}();\n\nexports.default = CellRange;\n\n/***/ }),\n/* 179 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class ColumnFilter\n */\nvar ColumnFilter = function () {\n /**\n * @param {Number} offset\n * @param {Number} total\n * @param {Number} countTH\n */\n function ColumnFilter(offset, total, countTH) {\n _classCallCheck(this, ColumnFilter);\n\n this.offset = offset;\n this.total = total;\n this.countTH = countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n\n _createClass(ColumnFilter, [{\n key: \"offsetted\",\n value: function offsetted(index) {\n return index + this.offset;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"unOffsetted\",\n value: function unOffsetted(index) {\n return index - this.offset;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"renderedToSource\",\n value: function renderedToSource(index) {\n return this.offsetted(index);\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"sourceToRendered\",\n value: function sourceToRendered(index) {\n return this.unOffsetted(index);\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"offsettedTH\",\n value: function offsettedTH(index) {\n return index - this.countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"unOffsettedTH\",\n value: function unOffsettedTH(index) {\n return index + this.countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"visibleRowHeadedColumnToSourceColumn\",\n value: function visibleRowHeadedColumnToSourceColumn(index) {\n return this.renderedToSource(this.offsettedTH(index));\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"sourceColumnToVisibleRowHeadedColumn\",\n value: function sourceColumnToVisibleRowHeadedColumn(index) {\n return this.unOffsettedTH(this.sourceToRendered(index));\n }\n }]);\n\n return ColumnFilter;\n}();\n\nexports.default = ColumnFilter;\n\n/***/ }),\n/* 180 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class RowFilter\n */\nvar RowFilter = function () {\n /**\n * @param {Number} offset\n * @param {Number} total\n * @param {Number} countTH\n */\n function RowFilter(offset, total, countTH) {\n _classCallCheck(this, RowFilter);\n\n this.offset = offset;\n this.total = total;\n this.countTH = countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n\n _createClass(RowFilter, [{\n key: \"offsetted\",\n value: function offsetted(index) {\n return index + this.offset;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"unOffsetted\",\n value: function unOffsetted(index) {\n return index - this.offset;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"renderedToSource\",\n value: function renderedToSource(index) {\n return this.offsetted(index);\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"sourceToRendered\",\n value: function sourceToRendered(index) {\n return this.unOffsetted(index);\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"offsettedTH\",\n value: function offsettedTH(index) {\n return index - this.countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"unOffsettedTH\",\n value: function unOffsettedTH(index) {\n return index + this.countTH;\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"visibleColHeadedRowToSourceRow\",\n value: function visibleColHeadedRowToSourceRow(index) {\n return this.renderedToSource(this.offsettedTH(index));\n }\n\n /**\n * @param index\n * @returns {Number}\n */\n\n }, {\n key: \"sourceRowToVisibleColHeadedRow\",\n value: function sourceRowToVisibleColHeadedRow(index) {\n return this.unOffsettedTH(this.sourceToRendered(index));\n }\n }]);\n\n return RowFilter;\n}();\n\nexports.default = RowFilter;\n\n/***/ }),\n/* 181 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nvar _string = __webpack_require__(33);\n\nvar _event = __webpack_require__(182);\n\nvar _event2 = _interopRequireDefault(_event);\n\nvar _overlays = __webpack_require__(183);\n\nvar _overlays2 = _interopRequireDefault(_overlays);\n\nvar _scroll = __webpack_require__(184);\n\nvar _scroll2 = _interopRequireDefault(_scroll);\n\nvar _settings = __webpack_require__(185);\n\nvar _settings2 = _interopRequireDefault(_settings);\n\nvar _table = __webpack_require__(186);\n\nvar _table2 = _interopRequireDefault(_table);\n\nvar _viewport = __webpack_require__(188);\n\nvar _viewport2 = _interopRequireDefault(_viewport);\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\n/**\n * @class Walkontable\n */\nvar Walkontable = function () {\n /**\n * @param {Object} settings\n */\n function Walkontable(settings) {\n _classCallCheck(this, Walkontable);\n\n var originalHeaders = [];\n\n // this is the namespace for global events\n this.guid = 'wt_' + (0, _string.randomString)();\n\n // bootstrap from settings\n if (settings.cloneSource) {\n this.cloneSource = settings.cloneSource;\n this.cloneOverlay = settings.cloneOverlay;\n this.wtSettings = settings.cloneSource.wtSettings;\n this.wtTable = new _table2.default(this, settings.table, settings.wtRootElement);\n this.wtScroll = new _scroll2.default(this);\n this.wtViewport = settings.cloneSource.wtViewport;\n this.wtEvent = new _event2.default(this);\n this.selections = this.cloneSource.selections;\n } else {\n this.wtSettings = new _settings2.default(this, settings);\n this.wtTable = new _table2.default(this, settings.table);\n this.wtScroll = new _scroll2.default(this);\n this.wtViewport = new _viewport2.default(this);\n this.wtEvent = new _event2.default(this);\n this.selections = this.getSetting('selections');\n this.wtOverlays = new _overlays2.default(this);\n this.exportSettingsAsClassNames();\n }\n\n // find original headers\n if (this.wtTable.THEAD.childNodes.length && this.wtTable.THEAD.childNodes[0].childNodes.length) {\n for (var c = 0, clen = this.wtTable.THEAD.childNodes[0].childNodes.length; c < clen; c++) {\n originalHeaders.push(this.wtTable.THEAD.childNodes[0].childNodes[c].innerHTML);\n }\n if (!this.getSetting('columnHeaders').length) {\n this.update('columnHeaders', [function (column, TH) {\n (0, _element.fastInnerText)(TH, originalHeaders[column]);\n }]);\n }\n }\n this.drawn = false;\n this.drawInterrupted = false;\n }\n\n /**\n * Force rerender of Walkontable\n *\n * @param {Boolean} [fastDraw=false] When `true`, try to refresh only the positions of borders without rerendering\n * the data. It will only work if Table.draw() does not force\n * rendering anyway\n * @returns {Walkontable}\n */\n\n\n _createClass(Walkontable, [{\n key: 'draw',\n value: function draw() {\n var fastDraw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n this.drawInterrupted = false;\n\n if (!fastDraw && !(0, _element.isVisible)(this.wtTable.TABLE)) {\n // draw interrupted because TABLE is not visible\n this.drawInterrupted = true;\n } else {\n this.wtTable.draw(fastDraw);\n }\n\n return this;\n }\n\n /**\n * Returns the TD at coords. If topmost is set to true, returns TD from the topmost overlay layer,\n * if not set or set to false, returns TD from the master table.\n *\n * @param {CellCoords} coords\n * @param {Boolean} [topmost=false]\n * @returns {Object}\n */\n\n }, {\n key: 'getCell',\n value: function getCell(coords) {\n var topmost = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!topmost) {\n return this.wtTable.getCell(coords);\n }\n\n var totalRows = this.wtSettings.getSetting('totalRows');\n var fixedRowsTop = this.wtSettings.getSetting('fixedRowsTop');\n var fixedRowsBottom = this.wtSettings.getSetting('fixedRowsBottom');\n var fixedColumns = this.wtSettings.getSetting('fixedColumnsLeft');\n\n if (coords.row < fixedRowsTop && coords.col < fixedColumns) {\n return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(coords);\n } else if (coords.row < fixedRowsTop) {\n return this.wtOverlays.topOverlay.clone.wtTable.getCell(coords);\n } else if (coords.col < fixedColumns && coords.row >= totalRows - fixedRowsBottom) {\n if (this.wtOverlays.bottomLeftCornerOverlay && this.wtOverlays.bottomLeftCornerOverlay.clone) {\n return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(coords);\n }\n } else if (coords.col < fixedColumns) {\n return this.wtOverlays.leftOverlay.clone.wtTable.getCell(coords);\n } else if (coords.row < totalRows && coords.row > totalRows - fixedRowsBottom) {\n if (this.wtOverlays.bottomOverlay && this.wtOverlays.bottomOverlay.clone) {\n return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(coords);\n }\n }\n\n return this.wtTable.getCell(coords);\n }\n\n /**\n * @param {Object} settings\n * @param {*} value\n * @returns {Walkontable}\n */\n\n }, {\n key: 'update',\n value: function update(settings, value) {\n return this.wtSettings.update(settings, value);\n }\n\n /**\n * Scrolls the viewport to a cell (rerenders if needed).\n *\n * @param {CellCoords} coords\n * @param {Boolean} [snapToTop]\n * @param {Boolean} [snapToRight]\n * @param {Boolean} [snapToBottom]\n * @param {Boolean} [snapToLeft]\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollViewport',\n value: function scrollViewport(coords, snapToTop, snapToRight, snapToBottom, snapToLeft) {\n return this.wtScroll.scrollViewport(coords, snapToTop, snapToRight, snapToBottom, snapToLeft);\n }\n\n /**\n * Scrolls the viewport to a column (rerenders if needed).\n *\n * @param {Number} column Visual column index.\n * @param {Boolean} [snapToRight]\n * @param {Boolean} [snapToLeft]\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollViewportHorizontally',\n value: function scrollViewportHorizontally(column, snapToRight, snapToLeft) {\n return this.wtScroll.scrollViewportHorizontally(column, snapToRight, snapToLeft);\n }\n\n /**\n * Scrolls the viewport to a row (rerenders if needed).\n *\n * @param {Number} row Visual row index.\n * @param {Boolean} [snapToTop]\n * @param {Boolean} [snapToBottom]\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollViewportVertically',\n value: function scrollViewportVertically(row, snapToTop, snapToBottom) {\n return this.wtScroll.scrollViewportVertically(row, snapToTop, snapToBottom);\n }\n\n /**\n * @returns {Array}\n */\n\n }, {\n key: 'getViewport',\n value: function getViewport() {\n return [this.wtTable.getFirstVisibleRow(), this.wtTable.getFirstVisibleColumn(), this.wtTable.getLastVisibleRow(), this.wtTable.getLastVisibleColumn()];\n }\n\n /**\n * Get overlay name\n *\n * @returns {String}\n */\n\n }, {\n key: 'getOverlayName',\n value: function getOverlayName() {\n return this.cloneOverlay ? this.cloneOverlay.type : 'master';\n }\n\n /**\n * Check overlay type of this Walkontable instance.\n *\n * @param {String} name Clone type @see {Overlay.CLONE_TYPES}.\n * @returns {Boolean}\n */\n\n }, {\n key: 'isOverlayName',\n value: function isOverlayName(name) {\n if (this.cloneOverlay) {\n return this.cloneOverlay.type === name;\n }\n\n return false;\n }\n\n /**\n * Export settings as class names added to the parent element of the table.\n */\n\n }, {\n key: 'exportSettingsAsClassNames',\n value: function exportSettingsAsClassNames() {\n var _this = this;\n\n var toExport = {\n rowHeaders: ['array'],\n columnHeaders: ['array']\n };\n var allClassNames = [];\n var newClassNames = [];\n\n (0, _object.objectEach)(toExport, function (optionType, key) {\n if (optionType.indexOf('array') > -1 && _this.getSetting(key).length) {\n newClassNames.push('ht' + (0, _string.toUpperCaseFirst)(key));\n }\n allClassNames.push('ht' + (0, _string.toUpperCaseFirst)(key));\n });\n (0, _element.removeClass)(this.wtTable.wtRootElement.parentNode, allClassNames);\n (0, _element.addClass)(this.wtTable.wtRootElement.parentNode, newClassNames);\n }\n\n /**\n * Get/Set Walkontable instance setting\n *\n * @param {String} key\n * @param {*} [param1]\n * @param {*} [param2]\n * @param {*} [param3]\n * @param {*} [param4]\n * @returns {*}\n */\n\n }, {\n key: 'getSetting',\n value: function getSetting(key, param1, param2, param3, param4) {\n // this is faster than .apply - https://github.com/handsontable/handsontable/wiki/JavaScript-&-DOM-performance-tips\n return this.wtSettings.getSetting(key, param1, param2, param3, param4);\n }\n\n /**\n * Checks if setting exists\n *\n * @param {String} key\n * @returns {Boolean}\n */\n\n }, {\n key: 'hasSetting',\n value: function hasSetting(key) {\n return this.wtSettings.has(key);\n }\n\n /**\n * Destroy instance\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n this.wtOverlays.destroy();\n this.wtEvent.destroy();\n }\n }]);\n\n return Walkontable;\n}();\n\nexports.default = Walkontable;\n\n/***/ }),\n/* 182 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _function = __webpack_require__(43);\n\nvar _browser = __webpack_require__(39);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n *\n */\nfunction Event(instance) {\n var that = this;\n var eventManager = new _eventManager2.default(instance);\n var selectedCellBeforeTouchEnd = void 0;\n\n this.instance = instance;\n\n var dblClickOrigin = [null, null];\n this.dblClickTimeout = [null, null];\n\n var onMouseDown = function onMouseDown(event) {\n var activeElement = document.activeElement;\n var getParentNode = (0, _function.partial)(_element.getParent, event.realTarget);\n var realTarget = event.realTarget;\n\n // ignore focusable element from mouse down processing (https://github.com/handsontable/handsontable/issues/3555)\n if (realTarget === activeElement || getParentNode(0) === activeElement || getParentNode(1) === activeElement) {\n return;\n }\n\n var cell = that.parentCell(realTarget);\n\n if ((0, _element.hasClass)(realTarget, 'corner')) {\n that.instance.getSetting('onCellCornerMouseDown', event, realTarget);\n } else if (cell.TD) {\n if (that.instance.hasSetting('onCellMouseDown')) {\n that.instance.getSetting('onCellMouseDown', event, cell.coords, cell.TD, that.instance);\n }\n }\n\n if (event.button !== 2) {\n // if not right mouse button\n if (cell.TD) {\n dblClickOrigin[0] = cell.TD;\n clearTimeout(that.dblClickTimeout[0]);\n that.dblClickTimeout[0] = setTimeout(function () {\n dblClickOrigin[0] = null;\n }, 1000);\n }\n }\n };\n\n var onContextMenu = function onContextMenu(event) {\n if (that.instance.hasSetting('onCellContextMenu')) {\n var cell = that.parentCell(event.realTarget);\n\n if (cell.TD) {\n that.instance.getSetting('onCellContextMenu', event, cell.coords, cell.TD, that.instance);\n }\n }\n };\n\n var onTouchMove = function onTouchMove() {\n that.instance.touchMoving = true;\n };\n\n var onTouchStart = function onTouchStart(event) {\n eventManager.addEventListener(this, 'touchmove', onTouchMove);\n\n // Prevent cell selection when scrolling with touch event - not the best solution performance-wise\n that.checkIfTouchMove = setTimeout(function () {\n if (that.instance.touchMoving === true) {\n that.instance.touchMoving = void 0;\n\n eventManager.removeEventListener('touchmove', onTouchMove, false);\n }\n\n onMouseDown(event);\n }, 30);\n };\n\n var onMouseOver = function onMouseOver(event) {\n var table = void 0;\n var td = void 0;\n var mainWOT = void 0;\n\n if (that.instance.hasSetting('onCellMouseOver')) {\n table = that.instance.wtTable.TABLE;\n td = (0, _element.closestDown)(event.realTarget, ['TD', 'TH'], table);\n mainWOT = that.instance.cloneSource || that.instance;\n\n if (td && td !== mainWOT.lastMouseOver && (0, _element.isChildOf)(td, table)) {\n mainWOT.lastMouseOver = td;\n\n that.instance.getSetting('onCellMouseOver', event, that.instance.wtTable.getCoords(td), td, that.instance);\n }\n }\n };\n\n var onMouseOut = function onMouseOut(event) {\n var table = void 0;\n var lastTD = void 0;\n var nextTD = void 0;\n\n if (that.instance.hasSetting('onCellMouseOut')) {\n table = that.instance.wtTable.TABLE;\n lastTD = (0, _element.closestDown)(event.realTarget, ['TD', 'TH'], table);\n nextTD = (0, _element.closestDown)(event.relatedTarget, ['TD', 'TH'], table);\n\n if (lastTD && lastTD !== nextTD && (0, _element.isChildOf)(lastTD, table)) {\n that.instance.getSetting('onCellMouseOut', event, that.instance.wtTable.getCoords(lastTD), lastTD, that.instance);\n }\n }\n };\n\n var onMouseUp = function onMouseUp(event) {\n if (event.button !== 2) {\n // if not right mouse button\n var cell = that.parentCell(event.realTarget);\n\n if (cell.TD === dblClickOrigin[0] && cell.TD === dblClickOrigin[1]) {\n if ((0, _element.hasClass)(event.realTarget, 'corner')) {\n that.instance.getSetting('onCellCornerDblClick', event, cell.coords, cell.TD, that.instance);\n } else {\n that.instance.getSetting('onCellDblClick', event, cell.coords, cell.TD, that.instance);\n }\n\n dblClickOrigin[0] = null;\n dblClickOrigin[1] = null;\n } else if (cell.TD === dblClickOrigin[0]) {\n that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);\n\n dblClickOrigin[1] = cell.TD;\n clearTimeout(that.dblClickTimeout[1]);\n that.dblClickTimeout[1] = setTimeout(function () {\n dblClickOrigin[1] = null;\n }, 500);\n } else if (cell.TD && that.instance.hasSetting('onCellMouseUp')) {\n that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);\n }\n }\n };\n\n var selectedCellWasTouched = function selectedCellWasTouched(touchTarget) {\n var cellUnderFinger = that.parentCell(touchTarget);\n var coordsOfCellUnderFinger = cellUnderFinger.coords;\n\n if (selectedCellBeforeTouchEnd && coordsOfCellUnderFinger) {\n var _ref = [coordsOfCellUnderFinger.row, selectedCellBeforeTouchEnd.from.row],\n rowTouched = _ref[0],\n rowSelected = _ref[1];\n var _ref2 = [coordsOfCellUnderFinger.col, selectedCellBeforeTouchEnd.from.col],\n colTouched = _ref2[0],\n colSelected = _ref2[1];\n\n\n return rowTouched === rowSelected && colTouched === colSelected;\n }\n\n return false;\n };\n\n var onTouchEnd = function onTouchEnd(event) {\n var excludeTags = ['A', 'BUTTON', 'INPUT'];\n var target = event.target;\n\n // touched link which was placed inside a cell (a cell with DOM `a` element) WILL NOT trigger the below function calls\n // and as consequence will behave as standard (open the link).\n if (selectedCellWasTouched(target) === false || excludeTags.includes(target.tagName) === false) {\n event.preventDefault();\n onMouseUp(event);\n }\n };\n\n eventManager.addEventListener(this.instance.wtTable.holder, 'mousedown', onMouseDown);\n eventManager.addEventListener(this.instance.wtTable.holder, 'contextmenu', onContextMenu);\n eventManager.addEventListener(this.instance.wtTable.TABLE, 'mouseover', onMouseOver);\n eventManager.addEventListener(this.instance.wtTable.TABLE, 'mouseout', onMouseOut);\n eventManager.addEventListener(this.instance.wtTable.holder, 'mouseup', onMouseUp);\n\n // check if full HOT instance, or detached WOT AND run on mobile device\n if (this.instance.wtTable.holder.parentNode.parentNode && (0, _browser.isMobileBrowser)() && !that.instance.wtTable.isWorkingOnClone()) {\n var classSelector = '.' + this.instance.wtTable.holder.parentNode.className.split(' ').join('.');\n\n eventManager.addEventListener(this.instance.wtTable.holder, 'touchstart', function (event) {\n selectedCellBeforeTouchEnd = instance.selections.getCell().cellRange;\n\n that.instance.touchApplied = true;\n if ((0, _element.isChildOf)(event.target, classSelector)) {\n onTouchStart.call(event.target, event);\n }\n });\n eventManager.addEventListener(this.instance.wtTable.holder, 'touchend', function (event) {\n that.instance.touchApplied = false;\n if ((0, _element.isChildOf)(event.target, classSelector)) {\n onTouchEnd.call(event.target, event);\n }\n });\n\n if (!that.instance.momentumScrolling) {\n that.instance.momentumScrolling = {};\n }\n eventManager.addEventListener(this.instance.wtTable.holder, 'scroll', function () {\n clearTimeout(that.instance.momentumScrolling._timeout);\n\n if (!that.instance.momentumScrolling.ongoing) {\n that.instance.getSetting('onBeforeTouchScroll');\n }\n that.instance.momentumScrolling.ongoing = true;\n\n that.instance.momentumScrolling._timeout = setTimeout(function () {\n if (!that.instance.touchApplied) {\n that.instance.momentumScrolling.ongoing = false;\n\n that.instance.getSetting('onAfterMomentumScroll');\n }\n }, 200);\n });\n }\n\n eventManager.addEventListener(window, 'resize', function () {\n if (that.instance.getSetting('stretchH') !== 'none') {\n that.instance.draw();\n }\n });\n\n this.destroy = function () {\n clearTimeout(this.dblClickTimeout[0]);\n clearTimeout(this.dblClickTimeout[1]);\n\n eventManager.destroy();\n };\n}\n\nEvent.prototype.parentCell = function (elem) {\n var cell = {};\n var TABLE = this.instance.wtTable.TABLE;\n var TD = (0, _element.closestDown)(elem, ['TD', 'TH'], TABLE);\n\n if (TD) {\n cell.coords = this.instance.wtTable.getCoords(TD);\n cell.TD = TD;\n } else if ((0, _element.hasClass)(elem, 'wtBorder') && (0, _element.hasClass)(elem, 'current')) {\n cell.coords = this.instance.selections.getCell().cellRange.highlight;\n cell.TD = this.instance.wtTable.getCell(cell.coords);\n } else if ((0, _element.hasClass)(elem, 'wtBorder') && (0, _element.hasClass)(elem, 'area')) {\n if (this.instance.selections.createOrGetArea().cellRange) {\n cell.coords = this.instance.selections.createOrGetArea().cellRange.to;\n cell.TD = this.instance.wtTable.getCell(cell.coords);\n }\n }\n\n return cell;\n};\n\nexports.default = Event;\n\n/***/ }),\n/* 183 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _array = __webpack_require__(2);\n\nvar _unicode = __webpack_require__(21);\n\nvar _browser = __webpack_require__(39);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\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\n/**\n * @class Overlays\n */\nvar Overlays = function () {\n /**\n * @param {Walkontable} wotInstance\n */\n function Overlays(wotInstance) {\n _classCallCheck(this, Overlays);\n\n /**\n * Sometimes `line-height` might be set to 'normal'. In that case, a default `font-size` should be multiplied by roughly 1.2.\n * https://developer.mozilla.org/pl/docs/Web/CSS/line-height#Values\n */\n var BODY_LINE_HEIGHT = parseInt(getComputedStyle(document.body).lineHeight, 10);\n var FALLBACK_BODY_LINE_HEIGHT = parseInt(getComputedStyle(document.body).fontSize, 10) * 1.2;\n\n this.wot = wotInstance;\n\n // legacy support\n this.instance = this.wot;\n this.eventManager = new _eventManager2.default(this.wot);\n\n this.wot.update('scrollbarWidth', (0, _element.getScrollbarWidth)());\n this.wot.update('scrollbarHeight', (0, _element.getScrollbarWidth)());\n\n this.scrollableElement = (0, _element.getScrollableElement)(this.wot.wtTable.TABLE);\n\n this.prepareOverlays();\n\n this.destroyed = false;\n this.keyPressed = false;\n this.spreaderLastSize = {\n width: null,\n height: null\n };\n this.overlayScrollPositions = {\n master: {\n top: 0,\n left: 0\n },\n top: {\n top: null,\n left: 0\n },\n bottom: {\n top: null,\n left: 0\n },\n left: {\n top: 0,\n left: null\n }\n };\n\n this.pendingScrollCallbacks = {\n master: {\n top: 0,\n left: 0\n },\n top: {\n left: 0\n },\n bottom: {\n left: 0\n },\n left: {\n top: 0\n }\n };\n\n this.verticalScrolling = false;\n this.horizontalScrolling = false;\n this.delegatedScrollCallback = false;\n\n this.registeredListeners = [];\n\n this.browserLineHeight = BODY_LINE_HEIGHT || FALLBACK_BODY_LINE_HEIGHT;\n\n this.registerListeners();\n }\n\n /**\n * Prepare overlays based on user settings.\n *\n * @returns {Boolean} Returns `true` if changes applied to overlay needs scroll synchronization.\n */\n\n\n _createClass(Overlays, [{\n key: 'prepareOverlays',\n value: function prepareOverlays() {\n var syncScroll = false;\n\n if (this.topOverlay) {\n syncScroll = this.topOverlay.updateStateOfRendering() || syncScroll;\n } else {\n this.topOverlay = _base2.default.createOverlay(_base2.default.CLONE_TOP, this.wot);\n }\n\n if (!_base2.default.hasOverlay(_base2.default.CLONE_BOTTOM)) {\n this.bottomOverlay = {\n needFullRender: false,\n updateStateOfRendering: function updateStateOfRendering() {\n return false;\n }\n };\n }\n if (!_base2.default.hasOverlay(_base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n this.bottomLeftCornerOverlay = {\n needFullRender: false,\n updateStateOfRendering: function updateStateOfRendering() {\n return false;\n }\n };\n }\n\n if (this.bottomOverlay) {\n syncScroll = this.bottomOverlay.updateStateOfRendering() || syncScroll;\n } else {\n this.bottomOverlay = _base2.default.createOverlay(_base2.default.CLONE_BOTTOM, this.wot);\n }\n\n if (this.leftOverlay) {\n syncScroll = this.leftOverlay.updateStateOfRendering() || syncScroll;\n } else {\n this.leftOverlay = _base2.default.createOverlay(_base2.default.CLONE_LEFT, this.wot);\n }\n\n if (this.topOverlay.needFullRender && this.leftOverlay.needFullRender) {\n if (this.topLeftCornerOverlay) {\n syncScroll = this.topLeftCornerOverlay.updateStateOfRendering() || syncScroll;\n } else {\n this.topLeftCornerOverlay = _base2.default.createOverlay(_base2.default.CLONE_TOP_LEFT_CORNER, this.wot);\n }\n }\n\n if (this.bottomOverlay.needFullRender && this.leftOverlay.needFullRender) {\n if (this.bottomLeftCornerOverlay) {\n syncScroll = this.bottomLeftCornerOverlay.updateStateOfRendering() || syncScroll;\n } else {\n this.bottomLeftCornerOverlay = _base2.default.createOverlay(_base2.default.CLONE_BOTTOM_LEFT_CORNER, this.wot);\n }\n }\n\n if (this.wot.getSetting('debug') && !this.debug) {\n this.debug = _base2.default.createOverlay(_base2.default.CLONE_DEBUG, this.wot);\n }\n\n return syncScroll;\n }\n\n /**\n * Refresh and redraw table\n */\n\n }, {\n key: 'refreshAll',\n value: function refreshAll() {\n if (!this.wot.drawn) {\n return;\n }\n if (!this.wot.wtTable.holder.parentNode) {\n // Walkontable was detached from DOM, but this handler was not removed\n this.destroy();\n\n return;\n }\n this.wot.draw(true);\n\n if (this.verticalScrolling) {\n this.leftOverlay.onScroll();\n }\n\n if (this.horizontalScrolling) {\n this.topOverlay.onScroll();\n }\n\n this.verticalScrolling = false;\n this.horizontalScrolling = false;\n }\n\n /**\n * Register all necessary event listeners.\n */\n\n }, {\n key: 'registerListeners',\n value: function registerListeners() {\n var _this = this;\n\n var topOverlayScrollable = this.topOverlay.mainTableScrollableElement;\n var leftOverlayScrollable = this.leftOverlay.mainTableScrollableElement;\n\n var listenersToRegister = [];\n listenersToRegister.push([document.documentElement, 'keydown', function (event) {\n return _this.onKeyDown(event);\n }]);\n listenersToRegister.push([document.documentElement, 'keyup', function () {\n return _this.onKeyUp();\n }]);\n listenersToRegister.push([document, 'visibilitychange', function () {\n return _this.onKeyUp();\n }]);\n listenersToRegister.push([topOverlayScrollable, 'scroll', function (event) {\n return _this.onTableScroll(event);\n }]);\n\n if (topOverlayScrollable !== leftOverlayScrollable) {\n listenersToRegister.push([leftOverlayScrollable, 'scroll', function (event) {\n return _this.onTableScroll(event);\n }]);\n }\n\n var isHighPixelRatio = window.devicePixelRatio && window.devicePixelRatio > 1;\n\n if (isHighPixelRatio || !(0, _browser.isChrome)()) {\n listenersToRegister.push([this.instance.wtTable.wtRootElement.parentNode, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n } else {\n if (this.topOverlay.needFullRender) {\n listenersToRegister.push([this.topOverlay.clone.wtTable.holder, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n }\n\n if (this.bottomOverlay.needFullRender) {\n listenersToRegister.push([this.bottomOverlay.clone.wtTable.holder, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n }\n\n if (this.leftOverlay.needFullRender) {\n listenersToRegister.push([this.leftOverlay.clone.wtTable.holder, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n }\n\n if (this.topLeftCornerOverlay && this.topLeftCornerOverlay.needFullRender) {\n listenersToRegister.push([this.topLeftCornerOverlay.clone.wtTable.holder, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n }\n\n if (this.bottomLeftCornerOverlay && this.bottomLeftCornerOverlay.needFullRender) {\n listenersToRegister.push([this.bottomLeftCornerOverlay.clone.wtTable.holder, 'wheel', function (event) {\n return _this.onCloneWheel(event);\n }]);\n }\n }\n\n if (this.topOverlay.trimmingContainer !== window && this.leftOverlay.trimmingContainer !== window) {\n // This is necessary?\n // eventManager.addEventListener(window, 'scroll', (event) => this.refreshAll(event));\n listenersToRegister.push([window, 'wheel', function (event) {\n var overlay = void 0;\n var deltaY = event.wheelDeltaY || event.deltaY;\n var deltaX = event.wheelDeltaX || event.deltaX;\n\n if (_this.topOverlay.clone.wtTable.holder.contains(event.realTarget)) {\n overlay = 'top';\n } else if (_this.bottomOverlay.clone && _this.bottomOverlay.clone.wtTable.holder.contains(event.realTarget)) {\n overlay = 'bottom';\n } else if (_this.leftOverlay.clone.wtTable.holder.contains(event.realTarget)) {\n overlay = 'left';\n } else if (_this.topLeftCornerOverlay && _this.topLeftCornerOverlay.clone && _this.topLeftCornerOverlay.clone.wtTable.holder.contains(event.realTarget)) {\n overlay = 'topLeft';\n } else if (_this.bottomLeftCornerOverlay && _this.bottomLeftCornerOverlay.clone && _this.bottomLeftCornerOverlay.clone.wtTable.holder.contains(event.realTarget)) {\n overlay = 'bottomLeft';\n }\n\n if (overlay === 'top' && deltaY !== 0 || overlay === 'left' && deltaX !== 0 || overlay === 'bottom' && deltaY !== 0 || (overlay === 'topLeft' || overlay === 'bottomLeft') && (deltaY !== 0 || deltaX !== 0)) {\n\n event.preventDefault();\n }\n }]);\n }\n\n while (listenersToRegister.length) {\n var listener = listenersToRegister.pop();\n this.eventManager.addEventListener(listener[0], listener[1], listener[2]);\n\n this.registeredListeners.push(listener);\n }\n }\n\n /**\n * Deregister all previously registered listeners.\n */\n\n }, {\n key: 'deregisterListeners',\n value: function deregisterListeners() {\n while (this.registeredListeners.length) {\n var listener = this.registeredListeners.pop();\n this.eventManager.removeEventListener(listener[0], listener[1], listener[2]);\n }\n }\n\n /**\n * Scroll listener\n *\n * @param {Event} event\n */\n\n }, {\n key: 'onTableScroll',\n value: function onTableScroll(event) {\n // There was if statement which controlled flow of this function. It avoided the execution of the next lines\n // on mobile devices. It was changed. Broader description of this case is included within issue #4856.\n\n var masterHorizontal = this.leftOverlay.mainTableScrollableElement;\n var masterVertical = this.topOverlay.mainTableScrollableElement;\n var target = event.target;\n\n // For key press, sync only master -> overlay position because while pressing Walkontable.render is triggered\n // by hot.refreshBorder\n if (this.keyPressed) {\n if (masterVertical !== window && target !== window && !event.target.contains(masterVertical) || masterHorizontal !== window && target !== window && !event.target.contains(masterHorizontal)) {\n return;\n }\n }\n\n this.syncScrollPositions(event);\n }\n\n /**\n * Wheel listener for cloned overlays.\n *\n * @param {Event} event\n */\n\n }, {\n key: 'onCloneWheel',\n value: function onCloneWheel(event) {\n if (this.scrollableElement !== window) {\n event.preventDefault();\n }\n // There was if statement which controlled flow of this function. It avoided the execution of the next lines\n // on mobile devices. It was changed. Broader description of this case is included within issue #4856.\n\n var masterHorizontal = this.leftOverlay.mainTableScrollableElement;\n var masterVertical = this.topOverlay.mainTableScrollableElement;\n var target = event.target;\n\n // For key press, sync only master -> overlay position because while pressing Walkontable.render is triggered\n // by hot.refreshBorder\n var shouldNotWheelVertically = masterVertical !== window && target !== window && !event.target.contains(masterVertical);\n var shouldNotWheelHorizontally = masterHorizontal !== window && target !== window && !event.target.contains(masterHorizontal);\n\n if (this.keyPressed && (shouldNotWheelVertically || shouldNotWheelHorizontally)) {\n return;\n }\n\n this.translateMouseWheelToScroll(event);\n }\n\n /**\n * Key down listener\n */\n\n }, {\n key: 'onKeyDown',\n value: function onKeyDown(event) {\n this.keyPressed = (0, _unicode.isKey)(event.keyCode, 'ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT');\n }\n\n /**\n * Key up listener\n */\n\n }, {\n key: 'onKeyUp',\n value: function onKeyUp() {\n this.keyPressed = false;\n }\n\n /**\n * Translate wheel event into scroll event and sync scroll overlays position\n *\n * @private\n * @param {Event} event\n * @returns {Boolean}\n */\n\n }, {\n key: 'translateMouseWheelToScroll',\n value: function translateMouseWheelToScroll(event) {\n var deltaY = isNaN(event.deltaY) ? -1 * event.wheelDeltaY : event.deltaY;\n var deltaX = isNaN(event.deltaX) ? -1 * event.wheelDeltaX : event.deltaX;\n\n if (event.deltaMode === 1) {\n deltaX += deltaX * this.browserLineHeight;\n deltaY += deltaY * this.browserLineHeight;\n }\n\n this.scrollVertically(deltaY);\n this.scrollHorizontally(deltaX);\n\n return false;\n }\n }, {\n key: 'scrollVertically',\n value: function scrollVertically(distance) {\n if (distance === 0) {\n return 0;\n }\n this.scrollableElement.scrollTop += distance;\n }\n }, {\n key: 'scrollHorizontally',\n value: function scrollHorizontally(distance) {\n if (distance === 0) {\n return 0;\n }\n this.scrollableElement.scrollLeft += distance;\n }\n\n /**\n * Synchronize scroll position between master table and overlay table.\n *\n * @private\n * @param {Event|Object} event\n */\n\n }, {\n key: 'syncScrollPositions',\n value: function syncScrollPositions() {\n if (this.destroyed) {\n return;\n }\n\n var topHolder = this.topOverlay.clone.wtTable.holder;\n var leftHolder = this.leftOverlay.clone.wtTable.holder;\n\n var _ref = [this.scrollableElement.scrollLeft, this.scrollableElement.scrollTop],\n scrollLeft = _ref[0],\n scrollTop = _ref[1];\n\n\n this.horizontalScrolling = topHolder.scrollLeft !== scrollLeft;\n this.verticalScrolling = leftHolder.scrollTop !== scrollTop;\n\n if (this.horizontalScrolling) {\n topHolder.scrollLeft = scrollLeft;\n\n var bottomHolder = this.bottomOverlay.needFullRender ? this.bottomOverlay.clone.wtTable.holder : null;\n\n if (bottomHolder) {\n bottomHolder.scrollLeft = scrollLeft;\n }\n }\n\n if (this.verticalScrolling) {\n leftHolder.scrollTop = scrollTop;\n }\n\n this.refreshAll();\n }\n\n /**\n * Synchronize overlay scrollbars with the master scrollbar\n */\n\n }, {\n key: 'syncScrollWithMaster',\n value: function syncScrollWithMaster() {\n var master = this.topOverlay.mainTableScrollableElement;\n var scrollLeft = master.scrollLeft,\n scrollTop = master.scrollTop;\n\n\n if (this.topOverlay.needFullRender) {\n this.topOverlay.clone.wtTable.holder.scrollLeft = scrollLeft;\n }\n if (this.bottomOverlay.needFullRender) {\n this.bottomOverlay.clone.wtTable.holder.scrollLeft = scrollLeft;\n }\n if (this.leftOverlay.needFullRender) {\n this.leftOverlay.clone.wtTable.holder.scrollTop = scrollTop;\n }\n }\n\n /**\n * Update the main scrollable elements for all the overlays.\n */\n\n }, {\n key: 'updateMainScrollableElements',\n value: function updateMainScrollableElements() {\n this.deregisterListeners();\n\n this.leftOverlay.updateMainScrollableElement();\n this.topOverlay.updateMainScrollableElement();\n\n if (this.bottomOverlay.needFullRender) {\n this.bottomOverlay.updateMainScrollableElement();\n }\n\n this.scrollableElement = (0, _element.getScrollableElement)(this.wot.wtTable.TABLE);\n\n this.registerListeners();\n }\n\n /**\n *\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n this.eventManager.destroy();\n this.topOverlay.destroy();\n\n if (this.bottomOverlay.clone) {\n this.bottomOverlay.destroy();\n }\n this.leftOverlay.destroy();\n\n if (this.topLeftCornerOverlay) {\n this.topLeftCornerOverlay.destroy();\n }\n\n if (this.bottomLeftCornerOverlay && this.bottomLeftCornerOverlay.clone) {\n this.bottomLeftCornerOverlay.destroy();\n }\n\n if (this.debug) {\n this.debug.destroy();\n }\n this.destroyed = true;\n }\n\n /**\n * @param {Boolean} [fastDraw=false]\n */\n\n }, {\n key: 'refresh',\n value: function refresh() {\n var fastDraw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (this.topOverlay.areElementSizesAdjusted && this.leftOverlay.areElementSizesAdjusted) {\n var container = this.wot.wtTable.wtRootElement.parentNode || this.wot.wtTable.wtRootElement;\n var width = container.clientWidth;\n var height = container.clientHeight;\n\n if (width !== this.spreaderLastSize.width || height !== this.spreaderLastSize.height) {\n this.spreaderLastSize.width = width;\n this.spreaderLastSize.height = height;\n this.adjustElementsSize();\n }\n }\n\n if (this.bottomOverlay.clone) {\n this.bottomOverlay.refresh(fastDraw);\n }\n\n this.leftOverlay.refresh(fastDraw);\n this.topOverlay.refresh(fastDraw);\n\n if (this.topLeftCornerOverlay) {\n this.topLeftCornerOverlay.refresh(fastDraw);\n }\n\n if (this.bottomLeftCornerOverlay && this.bottomLeftCornerOverlay.clone) {\n this.bottomLeftCornerOverlay.refresh(fastDraw);\n }\n\n if (this.debug) {\n this.debug.refresh(fastDraw);\n }\n }\n\n /**\n * Adjust overlays elements size and master table size\n *\n * @param {Boolean} [force=false]\n */\n\n }, {\n key: 'adjustElementsSize',\n value: function adjustElementsSize() {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var totalColumns = this.wot.getSetting('totalColumns');\n var totalRows = this.wot.getSetting('totalRows');\n var headerRowSize = this.wot.wtViewport.getRowHeaderWidth();\n var headerColumnSize = this.wot.wtViewport.getColumnHeaderHeight();\n var hiderStyle = this.wot.wtTable.hider.style;\n\n hiderStyle.width = headerRowSize + this.leftOverlay.sumCellSizes(0, totalColumns) + 'px';\n hiderStyle.height = headerColumnSize + this.topOverlay.sumCellSizes(0, totalRows) + 1 + 'px';\n\n this.topOverlay.adjustElementsSize(force);\n this.leftOverlay.adjustElementsSize(force);\n\n if (this.bottomOverlay.clone) {\n this.bottomOverlay.adjustElementsSize(force);\n }\n }\n\n /**\n *\n */\n\n }, {\n key: 'applyToDOM',\n value: function applyToDOM() {\n if (!this.topOverlay.areElementSizesAdjusted || !this.leftOverlay.areElementSizesAdjusted) {\n this.adjustElementsSize();\n }\n this.topOverlay.applyToDOM();\n\n if (this.bottomOverlay.clone) {\n this.bottomOverlay.applyToDOM();\n }\n\n this.leftOverlay.applyToDOM();\n }\n\n /**\n * Get the parent overlay of the provided element.\n *\n * @param {HTMLElement} element\n * @returns {Object|null}\n */\n\n }, {\n key: 'getParentOverlay',\n value: function getParentOverlay(element) {\n if (!element) {\n return null;\n }\n\n var overlays = [this.topOverlay, this.leftOverlay, this.bottomOverlay, this.topLeftCornerOverlay, this.bottomLeftCornerOverlay];\n var result = null;\n\n (0, _array.arrayEach)(overlays, function (elem) {\n if (!elem) {\n return;\n }\n\n if (elem.clone && elem.clone.wtTable.TABLE.contains(element)) {\n result = elem.clone;\n }\n });\n\n return result;\n }\n }]);\n\n return Overlays;\n}();\n\nexports.default = Overlays;\n\n/***/ }),\n/* 184 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _number = __webpack_require__(6);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class Scroll\n */\nvar Scroll = function () {\n /**\n * @param {Walkontable} wotInstance\n */\n function Scroll(wotInstance) {\n _classCallCheck(this, Scroll);\n\n this.wot = wotInstance;\n\n // legacy support\n this.instance = wotInstance;\n }\n\n /**\n * Scrolls viewport to a cell.\n *\n * @param {CellCoords} coords\n * @param {Boolean} [snapToTop]\n * @param {Boolean} [snapToRight]\n * @param {Boolean} [snapToBottom]\n * @param {Boolean} [snapToLeft]\n * @returns {Boolean}\n */\n\n\n _createClass(Scroll, [{\n key: 'scrollViewport',\n value: function scrollViewport(coords, snapToTop, snapToRight, snapToBottom, snapToLeft) {\n var scrolledHorizontally = this.scrollViewportHorizontally(coords.col, snapToRight, snapToLeft);\n var scrolledVertically = this.scrollViewportVertically(coords.row, snapToTop, snapToBottom);\n\n return scrolledHorizontally || scrolledVertically;\n }\n\n /**\n * Scrolls viewport to a column.\n *\n * @param {Number} column Visual column index.\n * @param {Boolean} [snapToRight]\n * @param {Boolean} [snapToLeft]\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollViewportHorizontally',\n value: function scrollViewportHorizontally(column, snapToRight, snapToLeft) {\n if (!this.wot.drawn) {\n return false;\n }\n\n var _getVariables2 = this._getVariables(),\n fixedColumnsLeft = _getVariables2.fixedColumnsLeft,\n leftOverlay = _getVariables2.leftOverlay,\n totalColumns = _getVariables2.totalColumns;\n\n var result = false;\n\n if (column >= 0 && column <= Math.max(totalColumns - 1, 0)) {\n if (column >= fixedColumnsLeft && (column < this.getFirstVisibleColumn() || snapToLeft)) {\n result = leftOverlay.scrollTo(column);\n } else if (column > this.getLastVisibleColumn() || snapToRight) {\n result = leftOverlay.scrollTo(column, true);\n }\n }\n\n return result;\n }\n\n /**\n * Scrolls viewport to a row.\n *\n * @param {Number} row Visual row index.\n * @param {Boolean} [snapToTop]\n * @param {Boolean} [snapToBottom]\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollViewportVertically',\n value: function scrollViewportVertically(row, snapToTop, snapToBottom) {\n if (!this.wot.drawn) {\n return false;\n }\n\n var _getVariables3 = this._getVariables(),\n fixedRowsBottom = _getVariables3.fixedRowsBottom,\n fixedRowsTop = _getVariables3.fixedRowsTop,\n topOverlay = _getVariables3.topOverlay,\n totalRows = _getVariables3.totalRows;\n\n var result = false;\n\n if (row >= 0 && row <= Math.max(totalRows - 1, 0)) {\n if (row >= fixedRowsTop && (row < this.getFirstVisibleRow() || snapToTop)) {\n result = topOverlay.scrollTo(row);\n } else if (row > this.getLastVisibleRow() && row < totalRows - fixedRowsBottom || snapToBottom) {\n result = topOverlay.scrollTo(row, true);\n }\n }\n\n return result;\n }\n\n /**\n * Get first visible row based on virtual dom and how table is visible in browser window viewport.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getFirstVisibleRow',\n value: function getFirstVisibleRow() {\n var _getVariables4 = this._getVariables(),\n topOverlay = _getVariables4.topOverlay,\n wtTable = _getVariables4.wtTable,\n wtViewport = _getVariables4.wtViewport,\n totalRows = _getVariables4.totalRows,\n fixedRowsTop = _getVariables4.fixedRowsTop;\n\n var firstVisibleRow = wtTable.getFirstVisibleRow();\n\n if (topOverlay.mainTableScrollableElement === window) {\n var rootElementOffset = (0, _element.offset)(wtTable.wtRootElement);\n var totalTableHeight = (0, _element.innerHeight)(wtTable.hider);\n var windowHeight = (0, _element.innerHeight)(window);\n var windowScrollTop = (0, _element.getScrollTop)(window);\n\n // Only calculate firstVisibleRow when table didn't filled (from up) whole viewport space\n if (rootElementOffset.top + totalTableHeight - windowHeight <= windowScrollTop) {\n var rowsHeight = wtViewport.getColumnHeaderHeight();\n\n rowsHeight += topOverlay.sumCellSizes(0, fixedRowsTop);\n\n (0, _number.rangeEachReverse)(totalRows, 1, function (row) {\n rowsHeight += topOverlay.sumCellSizes(row - 1, row);\n\n if (rootElementOffset.top + totalTableHeight - rowsHeight <= windowScrollTop) {\n // Return physical row + 1\n firstVisibleRow = row;\n\n return false;\n }\n });\n }\n }\n\n return firstVisibleRow;\n }\n\n /**\n * Get last visible row based on virtual dom and how table is visible in browser window viewport.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getLastVisibleRow',\n value: function getLastVisibleRow() {\n var _getVariables5 = this._getVariables(),\n topOverlay = _getVariables5.topOverlay,\n wtTable = _getVariables5.wtTable,\n wtViewport = _getVariables5.wtViewport,\n totalRows = _getVariables5.totalRows;\n\n var lastVisibleRow = wtTable.getLastVisibleRow();\n\n if (topOverlay.mainTableScrollableElement === window) {\n var rootElementOffset = (0, _element.offset)(wtTable.wtRootElement);\n var windowHeight = (0, _element.innerHeight)(window);\n var windowScrollTop = (0, _element.getScrollTop)(window);\n\n // Only calculate lastVisibleRow when table didn't filled (from bottom) whole viewport space\n if (rootElementOffset.top > windowScrollTop) {\n var rowsHeight = wtViewport.getColumnHeaderHeight();\n\n (0, _number.rangeEach)(1, totalRows, function (row) {\n rowsHeight += topOverlay.sumCellSizes(row - 1, row);\n\n if (rootElementOffset.top + rowsHeight - windowScrollTop >= windowHeight) {\n // Return physical row - 1 (-2 because rangeEach gives row index + 1 - sumCellSizes requirements)\n lastVisibleRow = row - 2;\n\n return false;\n }\n });\n }\n }\n\n return lastVisibleRow;\n }\n\n /**\n * Get first visible column based on virtual dom and how table is visible in browser window viewport.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getFirstVisibleColumn',\n value: function getFirstVisibleColumn() {\n var _getVariables6 = this._getVariables(),\n leftOverlay = _getVariables6.leftOverlay,\n wtTable = _getVariables6.wtTable,\n wtViewport = _getVariables6.wtViewport,\n totalColumns = _getVariables6.totalColumns;\n\n var firstVisibleColumn = wtTable.getFirstVisibleColumn();\n\n if (leftOverlay.mainTableScrollableElement === window) {\n var rootElementOffset = (0, _element.offset)(wtTable.wtRootElement);\n var totalTableWidth = (0, _element.innerWidth)(wtTable.hider);\n var windowWidth = (0, _element.innerWidth)(window);\n var windowScrollLeft = (0, _element.getScrollLeft)(window);\n\n // Only calculate firstVisibleColumn when table didn't filled (from left) whole viewport space\n if (rootElementOffset.left + totalTableWidth - windowWidth <= windowScrollLeft) {\n var columnsWidth = wtViewport.getRowHeaderWidth();\n\n (0, _number.rangeEachReverse)(totalColumns, 1, function (column) {\n columnsWidth += leftOverlay.sumCellSizes(column - 1, column);\n\n if (rootElementOffset.left + totalTableWidth - columnsWidth <= windowScrollLeft) {\n // Return physical column + 1\n firstVisibleColumn = column;\n\n return false;\n }\n });\n }\n }\n\n return firstVisibleColumn;\n }\n\n /**\n * Get last visible column based on virtual dom and how table is visible in browser window viewport.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getLastVisibleColumn',\n value: function getLastVisibleColumn() {\n var _getVariables7 = this._getVariables(),\n leftOverlay = _getVariables7.leftOverlay,\n wtTable = _getVariables7.wtTable,\n wtViewport = _getVariables7.wtViewport,\n totalColumns = _getVariables7.totalColumns;\n\n var lastVisibleColumn = wtTable.getLastVisibleColumn();\n\n if (leftOverlay.mainTableScrollableElement === window) {\n var rootElementOffset = (0, _element.offset)(wtTable.wtRootElement);\n var windowWidth = (0, _element.innerWidth)(window);\n var windowScrollLeft = (0, _element.getScrollLeft)(window);\n\n // Only calculate lastVisibleColumn when table didn't filled (from right) whole viewport space\n if (rootElementOffset.left > windowScrollLeft) {\n var columnsWidth = wtViewport.getRowHeaderWidth();\n\n (0, _number.rangeEach)(1, totalColumns, function (column) {\n columnsWidth += leftOverlay.sumCellSizes(column - 1, column);\n\n if (rootElementOffset.left + columnsWidth - windowScrollLeft >= windowWidth) {\n // Return physical column - 1 (-2 because rangeEach gives column index + 1 - sumCellSizes requirements)\n lastVisibleColumn = column - 2;\n\n return false;\n }\n });\n }\n }\n\n return lastVisibleColumn;\n }\n\n /**\n * Returns collection of variables used to rows and columns visibility calculations.\n *\n * @returns {Object}\n * @private\n */\n\n }, {\n key: '_getVariables',\n value: function _getVariables() {\n var wot = this.wot;\n var topOverlay = wot.wtOverlays.topOverlay;\n var leftOverlay = wot.wtOverlays.leftOverlay;\n var wtTable = wot.wtTable;\n var wtViewport = wot.wtViewport;\n var totalRows = wot.getSetting('totalRows');\n var totalColumns = wot.getSetting('totalColumns');\n var fixedRowsTop = wot.getSetting('fixedRowsTop');\n var fixedRowsBottom = wot.getSetting('fixedRowsBottom');\n var fixedColumnsLeft = wot.getSetting('fixedColumnsLeft');\n\n return {\n topOverlay: topOverlay,\n leftOverlay: leftOverlay,\n wtTable: wtTable,\n wtViewport: wtViewport,\n totalRows: totalRows,\n totalColumns: totalColumns,\n fixedRowsTop: fixedRowsTop,\n fixedRowsBottom: fixedRowsBottom,\n fixedColumnsLeft: fixedColumnsLeft\n };\n }\n }]);\n\n return Scroll;\n}();\n\nexports.default = Scroll;\n\n/***/ }),\n/* 185 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class Settings\n */\nvar Settings = function () {\n /**\n * @param {Walkontable} wotInstance\n * @param {Object} settings\n */\n function Settings(wotInstance, settings) {\n var _this = this;\n\n _classCallCheck(this, Settings);\n\n this.wot = wotInstance;\n\n // legacy support\n this.instance = wotInstance;\n\n // default settings. void 0 means it is required, null means it can be empty\n this.defaults = {\n table: void 0,\n debug: false, // shows WalkontableDebugOverlay\n\n // presentation mode\n externalRowCalculator: false,\n stretchH: 'none', // values: all, last, none\n currentRowClassName: null,\n currentColumnClassName: null,\n preventOverflow: function preventOverflow() {\n return false;\n },\n\n\n // data source\n data: void 0,\n freezeOverlays: false,\n fixedColumnsLeft: 0,\n fixedRowsTop: 0,\n fixedRowsBottom: 0,\n minSpareRows: 0,\n\n // this must be array of functions: [function (row, TH) {}]\n rowHeaders: function rowHeaders() {\n return [];\n },\n\n\n // this must be array of functions: [function (column, TH) {}]\n columnHeaders: function columnHeaders() {\n return [];\n },\n\n totalRows: void 0,\n totalColumns: void 0,\n cellRenderer: function cellRenderer(row, column, TD) {\n var cellData = _this.getSetting('data', row, column);\n\n (0, _element.fastInnerText)(TD, cellData === void 0 || cellData === null ? '' : cellData);\n },\n\n // columnWidth: 50,\n columnWidth: function columnWidth() {\n // return undefined means use default size for the rendered cell content\n },\n rowHeight: function rowHeight() {\n // return undefined means use default size for the rendered cell content\n },\n\n defaultRowHeight: 23,\n defaultColumnWidth: 50,\n selections: null,\n hideBorderOnMouseDownOver: false,\n viewportRowCalculatorOverride: null,\n viewportColumnCalculatorOverride: null,\n\n // callbacks\n onCellMouseDown: null,\n onCellContextMenu: null,\n onCellMouseOver: null,\n onCellMouseOut: null,\n onCellMouseUp: null,\n\n // onCellMouseOut: null,\n onCellDblClick: null,\n onCellCornerMouseDown: null,\n onCellCornerDblClick: null,\n beforeDraw: null,\n onDraw: null,\n onBeforeRemoveCellClassNames: null,\n onAfterDrawSelection: null,\n onBeforeDrawBorders: null,\n onScrollVertically: null,\n onScrollHorizontally: null,\n onBeforeTouchScroll: null,\n onAfterMomentumScroll: null,\n onBeforeStretchingColumnWidth: function onBeforeStretchingColumnWidth(width) {\n return width;\n },\n onModifyRowHeaderWidth: null,\n onModifyGetCellCoords: null,\n\n // constants\n scrollbarWidth: 10,\n scrollbarHeight: 10,\n\n renderAllRows: false,\n groups: false,\n rowHeaderWidth: null,\n columnHeaderHeight: null,\n headerClassName: null\n };\n\n // reference to settings\n this.settings = {};\n\n for (var i in this.defaults) {\n if ((0, _object.hasOwnProperty)(this.defaults, i)) {\n if (settings[i] !== void 0) {\n this.settings[i] = settings[i];\n } else if (this.defaults[i] === void 0) {\n throw new Error('A required setting \"' + i + '\" was not provided');\n } else {\n this.settings[i] = this.defaults[i];\n }\n }\n }\n }\n\n /**\n * Update settings\n *\n * @param {Object} settings\n * @param {*} value\n * @returns {Walkontable}\n */\n\n\n _createClass(Settings, [{\n key: 'update',\n value: function update(settings, value) {\n if (value === void 0) {\n // settings is object\n for (var i in settings) {\n if ((0, _object.hasOwnProperty)(settings, i)) {\n this.settings[i] = settings[i];\n }\n }\n } else {\n // if value is defined then settings is the key\n this.settings[settings] = value;\n }\n return this.wot;\n }\n\n /**\n * Get setting by name\n *\n * @param {String} key\n * @param {*} param1\n * @param {*} param2\n * @param {*} param3\n * @param {*} param4\n * @returns {*}\n */\n\n }, {\n key: 'getSetting',\n value: function getSetting(key, param1, param2, param3, param4) {\n if (typeof this.settings[key] === 'function') {\n // this is faster than .apply - https://github.com/handsontable/handsontable/wiki/JavaScript-&-DOM-performance-tips\n return this.settings[key](param1, param2, param3, param4);\n } else if (param1 !== void 0 && Array.isArray(this.settings[key])) {\n // perhaps this can be removed, it is only used in tests\n return this.settings[key][param1];\n }\n\n return this.settings[key];\n }\n\n /**\n * Checks if setting exists\n *\n * @param {Boolean} key\n * @returns {Boolean}\n */\n\n }, {\n key: 'has',\n value: function has(key) {\n return !!this.settings[key];\n }\n }]);\n\n return Settings;\n}();\n\nexports.default = Settings;\n\n/***/ }),\n/* 186 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _element = __webpack_require__(0);\n\nvar _function = __webpack_require__(43);\n\nvar _coords = __webpack_require__(56);\n\nvar _coords2 = _interopRequireDefault(_coords);\n\nvar _column = __webpack_require__(179);\n\nvar _column2 = _interopRequireDefault(_column);\n\nvar _row = __webpack_require__(180);\n\nvar _row2 = _interopRequireDefault(_row);\n\nvar _tableRenderer = __webpack_require__(187);\n\nvar _tableRenderer2 = _interopRequireDefault(_tableRenderer);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n *\n */\nvar Table = function () {\n /**\n * @param {Walkontable} wotInstance\n * @param {HTMLTableElement} table\n */\n function Table(wotInstance, table) {\n var _this = this;\n\n _classCallCheck(this, Table);\n\n this.wot = wotInstance;\n\n // legacy support\n this.instance = this.wot;\n this.TABLE = table;\n this.TBODY = null;\n this.THEAD = null;\n this.COLGROUP = null;\n this.tableOffset = 0;\n this.holderOffset = 0;\n\n (0, _element.removeTextNodes)(this.TABLE);\n\n this.spreader = this.createSpreader(this.TABLE);\n this.hider = this.createHider(this.spreader);\n this.holder = this.createHolder(this.hider);\n\n this.wtRootElement = this.holder.parentNode;\n this.alignOverlaysWithTrimmingContainer();\n this.fixTableDomTree();\n\n this.colgroupChildrenLength = this.COLGROUP.childNodes.length;\n this.theadChildrenLength = this.THEAD.firstChild ? this.THEAD.firstChild.childNodes.length : 0;\n this.tbodyChildrenLength = this.TBODY.childNodes.length;\n\n this.rowFilter = null;\n this.columnFilter = null;\n this.correctHeaderWidth = false;\n\n var origRowHeaderWidth = this.wot.wtSettings.settings.rowHeaderWidth;\n\n // Fix for jumping row headers (https://github.com/handsontable/handsontable/issues/3850)\n this.wot.wtSettings.settings.rowHeaderWidth = function () {\n return _this._modifyRowHeaderWidth(origRowHeaderWidth);\n };\n }\n\n /**\n *\n */\n\n\n _createClass(Table, [{\n key: 'fixTableDomTree',\n value: function fixTableDomTree() {\n this.TBODY = this.TABLE.querySelector('tbody');\n\n if (!this.TBODY) {\n this.TBODY = document.createElement('tbody');\n this.TABLE.appendChild(this.TBODY);\n }\n this.THEAD = this.TABLE.querySelector('thead');\n\n if (!this.THEAD) {\n this.THEAD = document.createElement('thead');\n this.TABLE.insertBefore(this.THEAD, this.TBODY);\n }\n this.COLGROUP = this.TABLE.querySelector('colgroup');\n\n if (!this.COLGROUP) {\n this.COLGROUP = document.createElement('colgroup');\n this.TABLE.insertBefore(this.COLGROUP, this.THEAD);\n }\n\n if (this.wot.getSetting('columnHeaders').length && !this.THEAD.childNodes.length) {\n this.THEAD.appendChild(document.createElement('TR'));\n }\n }\n\n /**\n * @param table\n * @returns {HTMLElement}\n */\n\n }, {\n key: 'createSpreader',\n value: function createSpreader(table) {\n var parent = table.parentNode;\n var spreader = void 0;\n\n if (!parent || parent.nodeType !== 1 || !(0, _element.hasClass)(parent, 'wtHolder')) {\n spreader = document.createElement('div');\n spreader.className = 'wtSpreader';\n\n if (parent) {\n // if TABLE is detached (e.g. in Jasmine test), it has no parentNode so we cannot attach holder to it\n parent.insertBefore(spreader, table);\n }\n spreader.appendChild(table);\n }\n spreader.style.position = 'relative';\n\n return spreader;\n }\n\n /**\n * @param spreader\n * @returns {HTMLElement}\n */\n\n }, {\n key: 'createHider',\n value: function createHider(spreader) {\n var parent = spreader.parentNode;\n var hider = void 0;\n\n if (!parent || parent.nodeType !== 1 || !(0, _element.hasClass)(parent, 'wtHolder')) {\n hider = document.createElement('div');\n hider.className = 'wtHider';\n\n if (parent) {\n // if TABLE is detached (e.g. in Jasmine test), it has no parentNode so we cannot attach holder to it\n parent.insertBefore(hider, spreader);\n }\n hider.appendChild(spreader);\n }\n\n return hider;\n }\n\n /**\n *\n * @param hider\n * @returns {HTMLElement}\n */\n\n }, {\n key: 'createHolder',\n value: function createHolder(hider) {\n var parent = hider.parentNode;\n var holder = void 0;\n\n if (!parent || parent.nodeType !== 1 || !(0, _element.hasClass)(parent, 'wtHolder')) {\n holder = document.createElement('div');\n holder.style.position = 'relative';\n holder.className = 'wtHolder';\n\n if (parent) {\n // if TABLE is detached (e.g. in Jasmine test), it has no parentNode so we cannot attach holder to it\n parent.insertBefore(holder, hider);\n }\n if (!this.isWorkingOnClone()) {\n holder.parentNode.className += 'ht_master handsontable';\n }\n holder.appendChild(hider);\n }\n\n return holder;\n }\n }, {\n key: 'alignOverlaysWithTrimmingContainer',\n value: function alignOverlaysWithTrimmingContainer() {\n var trimmingElement = (0, _element.getTrimmingContainer)(this.wtRootElement);\n\n if (!this.isWorkingOnClone()) {\n this.holder.parentNode.style.position = 'relative';\n\n if (trimmingElement === window) {\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (!preventOverflow) {\n this.holder.style.overflow = 'visible';\n this.wtRootElement.style.overflow = 'visible';\n }\n } else {\n this.holder.style.width = (0, _element.getStyle)(trimmingElement, 'width');\n this.holder.style.height = (0, _element.getStyle)(trimmingElement, 'height');\n this.holder.style.overflow = '';\n }\n }\n }\n }, {\n key: 'isWorkingOnClone',\n value: function isWorkingOnClone() {\n return !!this.wot.cloneSource;\n }\n\n /**\n * Redraws the table\n *\n * @param {Boolean} fastDraw If TRUE, will try to avoid full redraw and only update the border positions. If FALSE or UNDEFINED, will perform a full redraw\n * @returns {Table}\n */\n\n }, {\n key: 'draw',\n value: function draw(fastDraw) {\n var _wot = this.wot,\n wtOverlays = _wot.wtOverlays,\n wtViewport = _wot.wtViewport;\n\n var totalRows = this.instance.getSetting('totalRows');\n var rowHeaders = this.wot.getSetting('rowHeaders').length;\n var columnHeaders = this.wot.getSetting('columnHeaders').length;\n var syncScroll = false;\n\n if (!this.isWorkingOnClone()) {\n this.holderOffset = (0, _element.offset)(this.holder);\n fastDraw = wtViewport.createRenderCalculators(fastDraw);\n\n if (rowHeaders && !this.wot.getSetting('fixedColumnsLeft')) {\n var leftScrollPos = wtOverlays.leftOverlay.getScrollPosition();\n var previousState = this.correctHeaderWidth;\n\n this.correctHeaderWidth = leftScrollPos > 0;\n\n if (previousState !== this.correctHeaderWidth) {\n fastDraw = false;\n }\n }\n }\n\n if (!this.isWorkingOnClone()) {\n syncScroll = wtOverlays.prepareOverlays();\n }\n\n if (fastDraw) {\n if (!this.isWorkingOnClone()) {\n // in case we only scrolled without redraw, update visible rows information in oldRowsCalculator\n wtViewport.createVisibleCalculators();\n }\n if (wtOverlays) {\n wtOverlays.refresh(true);\n }\n } else {\n if (this.isWorkingOnClone()) {\n this.tableOffset = this.wot.cloneSource.wtTable.tableOffset;\n } else {\n this.tableOffset = (0, _element.offset)(this.TABLE);\n }\n var startRow = void 0;\n\n if (_base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_DEBUG) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_TOP) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_TOP_LEFT_CORNER)) {\n startRow = 0;\n } else if (_base2.default.isOverlayTypeOf(this.instance.cloneOverlay, _base2.default.CLONE_BOTTOM) || _base2.default.isOverlayTypeOf(this.instance.cloneOverlay, _base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n startRow = Math.max(totalRows - this.wot.getSetting('fixedRowsBottom'), 0);\n } else {\n startRow = wtViewport.rowsRenderCalculator.startRow;\n }\n var startColumn = void 0;\n\n if (_base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_DEBUG) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_LEFT) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_TOP_LEFT_CORNER) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n startColumn = 0;\n } else {\n startColumn = wtViewport.columnsRenderCalculator.startColumn;\n }\n this.rowFilter = new _row2.default(startRow, totalRows, columnHeaders);\n this.columnFilter = new _column2.default(startColumn, this.wot.getSetting('totalColumns'), rowHeaders);\n\n this.alignOverlaysWithTrimmingContainer();\n this._doDraw(); // creates calculator after draw\n }\n this.refreshSelections(fastDraw);\n\n if (!this.isWorkingOnClone()) {\n wtOverlays.topOverlay.resetFixedPosition();\n\n if (wtOverlays.bottomOverlay.clone) {\n wtOverlays.bottomOverlay.resetFixedPosition();\n }\n\n wtOverlays.leftOverlay.resetFixedPosition();\n\n if (wtOverlays.topLeftCornerOverlay) {\n wtOverlays.topLeftCornerOverlay.resetFixedPosition();\n }\n\n if (wtOverlays.bottomLeftCornerOverlay && wtOverlays.bottomLeftCornerOverlay.clone) {\n wtOverlays.bottomLeftCornerOverlay.resetFixedPosition();\n }\n }\n if (syncScroll) {\n wtOverlays.syncScrollWithMaster();\n }\n this.wot.drawn = true;\n\n return this;\n }\n }, {\n key: '_doDraw',\n value: function _doDraw() {\n var wtRenderer = new _tableRenderer2.default(this);\n\n wtRenderer.render();\n }\n }, {\n key: 'removeClassFromCells',\n value: function removeClassFromCells(className) {\n var nodes = this.TABLE.querySelectorAll('.' + className);\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n (0, _element.removeClass)(nodes[i], className);\n }\n }\n\n /**\n * Refresh the table selection by re-rendering Selection instances connected with that instance.\n *\n * @param {Boolean} fastDraw If fast drawing is enabled than additionally className clearing is applied.\n */\n\n }, {\n key: 'refreshSelections',\n value: function refreshSelections(fastDraw) {\n if (!this.wot.selections) {\n return;\n }\n var highlights = Array.from(this.wot.selections);\n var len = highlights.length;\n\n if (fastDraw) {\n var classesToRemove = [];\n\n for (var i = 0; i < len; i++) {\n var _highlights$i$setting = highlights[i].settings,\n highlightHeaderClassName = _highlights$i$setting.highlightHeaderClassName,\n highlightRowClassName = _highlights$i$setting.highlightRowClassName,\n highlightColumnClassName = _highlights$i$setting.highlightColumnClassName;\n\n var classNames = highlights[i].classNames;\n var classNamesLength = classNames.length;\n\n for (var j = 0; j < classNamesLength; j++) {\n if (!classesToRemove.includes(classNames[j])) {\n classesToRemove.push(classNames[j]);\n }\n }\n\n if (highlightHeaderClassName && !classesToRemove.includes(highlightHeaderClassName)) {\n classesToRemove.push(highlightHeaderClassName);\n }\n if (highlightRowClassName && !classesToRemove.includes(highlightRowClassName)) {\n classesToRemove.push(highlightRowClassName);\n }\n if (highlightColumnClassName && !classesToRemove.includes(highlightColumnClassName)) {\n classesToRemove.push(highlightColumnClassName);\n }\n }\n\n var additionalClassesToRemove = this.wot.getSetting('onBeforeRemoveCellClassNames');\n\n if (Array.isArray(additionalClassesToRemove)) {\n for (var _i = 0; _i < additionalClassesToRemove.length; _i++) {\n classesToRemove.push(additionalClassesToRemove[_i]);\n }\n }\n\n var classesToRemoveLength = classesToRemove.length;\n\n for (var _i2 = 0; _i2 < classesToRemoveLength; _i2++) {\n // there was no rerender, so we need to remove classNames by ourselves\n this.removeClassFromCells(classesToRemove[_i2]);\n }\n }\n\n for (var _i3 = 0; _i3 < len; _i3++) {\n highlights[_i3].draw(this.wot, fastDraw);\n }\n }\n\n /**\n * Get cell element at coords.\n *\n * @param {CellCoords} coords\n * @returns {HTMLElement|Number} HTMLElement on success or Number one of the exit codes on error:\n * -1 row before viewport\n * -2 row after viewport\n */\n\n }, {\n key: 'getCell',\n value: function getCell(coords) {\n var row = coords.row;\n var column = coords.col;\n var hookResult = this.wot.getSetting('onModifyGetCellCoords', row, column);\n\n if (hookResult && Array.isArray(hookResult)) {\n var _hookResult = _slicedToArray(hookResult, 2);\n\n row = _hookResult[0];\n column = _hookResult[1];\n }\n\n if (this.isRowBeforeRenderedRows(row)) {\n // row before rendered rows\n return -1;\n } else if (this.isRowAfterRenderedRows(row)) {\n // row after rendered rows\n return -2;\n }\n\n var TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];\n\n if (TR) {\n return TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(column)];\n }\n }\n\n /**\n * getColumnHeader\n *\n * @param {Number} col Column index\n * @param {Number} [level=0] Header level (0 = most distant to the table)\n * @returns {Object} HTMLElement on success or undefined on error\n */\n\n }, {\n key: 'getColumnHeader',\n value: function getColumnHeader(col) {\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var TR = this.THEAD.childNodes[level];\n\n if (TR) {\n return TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(col)];\n }\n }\n\n /**\n * getRowHeader\n *\n * @param {Number} row Row index\n * @returns {HTMLElement} HTMLElement on success or Number one of the exit codes on error: `null table doesn't have row headers`\n */\n\n }, {\n key: 'getRowHeader',\n value: function getRowHeader(row) {\n if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {\n return null;\n }\n var TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];\n\n if (TR) {\n return TR.childNodes[0];\n }\n }\n\n /**\n * Returns cell coords object for a given TD (or a child element of a TD element).\n *\n * @param {HTMLTableCellElement} TD A cell DOM element (or a child of one).\n * @returns {CellCoords|null} The coordinates of the provided TD element (or the closest TD element) or null, if the provided element is not applicable.\n */\n\n }, {\n key: 'getCoords',\n value: function getCoords(TD) {\n if (TD.nodeName !== 'TD' && TD.nodeName !== 'TH') {\n TD = (0, _element.closest)(TD, ['TD', 'TH']);\n }\n\n if (TD === null) {\n return null;\n }\n\n var TR = TD.parentNode;\n var CONTAINER = TR.parentNode;\n var row = (0, _element.index)(TR);\n var col = TD.cellIndex;\n\n if ((0, _element.overlayContainsElement)(_base2.default.CLONE_TOP_LEFT_CORNER, TD) || (0, _element.overlayContainsElement)(_base2.default.CLONE_TOP, TD)) {\n if (CONTAINER.nodeName === 'THEAD') {\n row -= CONTAINER.childNodes.length;\n }\n } else if (CONTAINER === this.THEAD) {\n row = this.rowFilter.visibleColHeadedRowToSourceRow(row);\n } else {\n row = this.rowFilter.renderedToSource(row);\n }\n\n if ((0, _element.overlayContainsElement)(_base2.default.CLONE_TOP_LEFT_CORNER, TD) || (0, _element.overlayContainsElement)(_base2.default.CLONE_LEFT, TD)) {\n col = this.columnFilter.offsettedTH(col);\n } else {\n col = this.columnFilter.visibleRowHeadedColumnToSourceColumn(col);\n }\n\n return new _coords2.default(row, col);\n }\n }, {\n key: 'getTrForRow',\n value: function getTrForRow(row) {\n return this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];\n }\n }, {\n key: 'getFirstRenderedRow',\n value: function getFirstRenderedRow() {\n return this.wot.wtViewport.rowsRenderCalculator.startRow;\n }\n }, {\n key: 'getFirstVisibleRow',\n value: function getFirstVisibleRow() {\n return this.wot.wtViewport.rowsVisibleCalculator.startRow;\n }\n }, {\n key: 'getFirstRenderedColumn',\n value: function getFirstRenderedColumn() {\n return this.wot.wtViewport.columnsRenderCalculator.startColumn;\n }\n\n /**\n * @returns {Number} Returns -1 if no row is visible\n */\n\n }, {\n key: 'getFirstVisibleColumn',\n value: function getFirstVisibleColumn() {\n return this.wot.wtViewport.columnsVisibleCalculator.startColumn;\n }\n\n /**\n * @returns {Number} Returns -1 if no row is visible\n */\n\n }, {\n key: 'getLastRenderedRow',\n value: function getLastRenderedRow() {\n return this.wot.wtViewport.rowsRenderCalculator.endRow;\n }\n }, {\n key: 'getLastVisibleRow',\n value: function getLastVisibleRow() {\n return this.wot.wtViewport.rowsVisibleCalculator.endRow;\n }\n }, {\n key: 'getLastRenderedColumn',\n value: function getLastRenderedColumn() {\n return this.wot.wtViewport.columnsRenderCalculator.endColumn;\n }\n\n /**\n * @returns {Number} Returns -1 if no column is visible\n */\n\n }, {\n key: 'getLastVisibleColumn',\n value: function getLastVisibleColumn() {\n return this.wot.wtViewport.columnsVisibleCalculator.endColumn;\n }\n }, {\n key: 'isRowBeforeRenderedRows',\n value: function isRowBeforeRenderedRows(row) {\n return this.rowFilter && this.rowFilter.sourceToRendered(row) < 0 && row >= 0;\n }\n }, {\n key: 'isRowAfterViewport',\n value: function isRowAfterViewport(row) {\n return this.rowFilter && this.rowFilter.sourceToRendered(row) > this.getLastVisibleRow();\n }\n }, {\n key: 'isRowAfterRenderedRows',\n value: function isRowAfterRenderedRows(row) {\n return this.rowFilter && this.rowFilter.sourceToRendered(row) > this.getLastRenderedRow();\n }\n }, {\n key: 'isColumnBeforeViewport',\n value: function isColumnBeforeViewport(column) {\n return this.columnFilter && this.columnFilter.sourceToRendered(column) < 0 && column >= 0;\n }\n }, {\n key: 'isColumnAfterViewport',\n value: function isColumnAfterViewport(column) {\n return this.columnFilter && this.columnFilter.sourceToRendered(column) > this.getLastVisibleColumn();\n }\n }, {\n key: 'isLastRowFullyVisible',\n value: function isLastRowFullyVisible() {\n return this.getLastVisibleRow() === this.getLastRenderedRow();\n }\n }, {\n key: 'isLastColumnFullyVisible',\n value: function isLastColumnFullyVisible() {\n return this.getLastVisibleColumn() === this.getLastRenderedColumn();\n }\n }, {\n key: 'getRenderedColumnsCount',\n value: function getRenderedColumnsCount() {\n var columnsCount = this.wot.wtViewport.columnsRenderCalculator.count;\n var totalColumns = this.wot.getSetting('totalColumns');\n\n if (this.wot.isOverlayName(_base2.default.CLONE_DEBUG)) {\n columnsCount = totalColumns;\n } else if (this.wot.isOverlayName(_base2.default.CLONE_LEFT) || this.wot.isOverlayName(_base2.default.CLONE_TOP_LEFT_CORNER) || this.wot.isOverlayName(_base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n return Math.min(this.wot.getSetting('fixedColumnsLeft'), totalColumns);\n }\n\n return columnsCount;\n }\n }, {\n key: 'getRenderedRowsCount',\n value: function getRenderedRowsCount() {\n var rowsCount = this.wot.wtViewport.rowsRenderCalculator.count;\n var totalRows = this.wot.getSetting('totalRows');\n\n if (this.wot.isOverlayName(_base2.default.CLONE_DEBUG)) {\n rowsCount = totalRows;\n } else if (this.wot.isOverlayName(_base2.default.CLONE_TOP) || this.wot.isOverlayName(_base2.default.CLONE_TOP_LEFT_CORNER)) {\n rowsCount = Math.min(this.wot.getSetting('fixedRowsTop'), totalRows);\n } else if (this.wot.isOverlayName(_base2.default.CLONE_BOTTOM) || this.wot.isOverlayName(_base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n rowsCount = Math.min(this.wot.getSetting('fixedRowsBottom'), totalRows);\n }\n\n return rowsCount;\n }\n }, {\n key: 'getVisibleRowsCount',\n value: function getVisibleRowsCount() {\n return this.wot.wtViewport.rowsVisibleCalculator.count;\n }\n }, {\n key: 'allRowsInViewport',\n value: function allRowsInViewport() {\n return this.wot.getSetting('totalRows') === this.getVisibleRowsCount();\n }\n\n /**\n * Checks if any of the row's cells content exceeds its initial height, and if so, returns the oversized height\n *\n * @param {Number} sourceRow\n * @returns {Number}\n */\n\n }, {\n key: 'getRowHeight',\n value: function getRowHeight(sourceRow) {\n var height = this.wot.wtSettings.settings.rowHeight(sourceRow);\n var oversizedHeight = this.wot.wtViewport.oversizedRows[sourceRow];\n\n if (oversizedHeight !== void 0) {\n height = height === void 0 ? oversizedHeight : Math.max(height, oversizedHeight);\n }\n\n return height;\n }\n }, {\n key: 'getColumnHeaderHeight',\n value: function getColumnHeaderHeight(level) {\n var height = this.wot.wtSettings.settings.defaultRowHeight;\n var oversizedHeight = this.wot.wtViewport.oversizedColumnHeaders[level];\n\n if (oversizedHeight !== void 0) {\n height = height ? Math.max(height, oversizedHeight) : oversizedHeight;\n }\n\n return height;\n }\n }, {\n key: 'getVisibleColumnsCount',\n value: function getVisibleColumnsCount() {\n return this.wot.wtViewport.columnsVisibleCalculator.count;\n }\n }, {\n key: 'allColumnsInViewport',\n value: function allColumnsInViewport() {\n return this.wot.getSetting('totalColumns') === this.getVisibleColumnsCount();\n }\n }, {\n key: 'getColumnWidth',\n value: function getColumnWidth(sourceColumn) {\n var width = this.wot.wtSettings.settings.columnWidth;\n\n if (typeof width === 'function') {\n width = width(sourceColumn);\n } else if ((typeof width === 'undefined' ? 'undefined' : _typeof(width)) === 'object') {\n width = width[sourceColumn];\n }\n\n return width || this.wot.wtSettings.settings.defaultColumnWidth;\n }\n }, {\n key: 'getStretchedColumnWidth',\n value: function getStretchedColumnWidth(sourceColumn) {\n var columnWidth = this.getColumnWidth(sourceColumn);\n var width = columnWidth == null ? this.instance.wtSettings.settings.defaultColumnWidth : columnWidth;\n var calculator = this.wot.wtViewport.columnsRenderCalculator;\n\n if (calculator) {\n var stretchedWidth = calculator.getStretchedColumnWidth(sourceColumn, width);\n\n if (stretchedWidth) {\n width = stretchedWidth;\n }\n }\n\n return width;\n }\n\n /**\n * Modify row header widths provided by user in class contructor.\n *\n * @private\n */\n\n }, {\n key: '_modifyRowHeaderWidth',\n value: function _modifyRowHeaderWidth(rowHeaderWidthFactory) {\n var widths = (0, _function.isFunction)(rowHeaderWidthFactory) ? rowHeaderWidthFactory() : null;\n\n if (Array.isArray(widths)) {\n widths = [].concat(_toConsumableArray(widths));\n widths[widths.length - 1] = this._correctRowHeaderWidth(widths[widths.length - 1]);\n } else {\n widths = this._correctRowHeaderWidth(widths);\n }\n\n return widths;\n }\n\n /**\n * Correct row header width if necessary.\n *\n * @private\n */\n\n }, {\n key: '_correctRowHeaderWidth',\n value: function _correctRowHeaderWidth(width) {\n if (typeof width !== 'number') {\n width = this.wot.getSetting('defaultColumnWidth');\n }\n if (this.correctHeaderWidth) {\n width++;\n }\n\n return width;\n }\n }]);\n\n return Table;\n}();\n\nexports.default = Table;\n\n/***/ }),\n/* 187 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _templateObject = _taggedTemplateLiteral(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number \\n of rendered rows by specifying the table height and/or turning off the \"renderAllRows\" option.'], ['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number \\n of rendered rows by specifying the table height and/or turning off the \"renderAllRows\" option.']);\n\nvar _element = __webpack_require__(0);\n\nvar _console = __webpack_require__(58);\n\nvar _templateLiteralTag = __webpack_require__(42);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar performanceWarningAppeared = false;\n\n/**\n * @class TableRenderer\n */\n\nvar TableRenderer = function () {\n /**\n * @param {WalkontableTable} wtTable\n */\n function TableRenderer(wtTable) {\n _classCallCheck(this, TableRenderer);\n\n this.wtTable = wtTable;\n this.wot = wtTable.instance;\n\n // legacy support\n this.instance = wtTable.instance;\n\n this.rowFilter = wtTable.rowFilter;\n this.columnFilter = wtTable.columnFilter;\n\n this.TABLE = wtTable.TABLE;\n this.THEAD = wtTable.THEAD;\n this.TBODY = wtTable.TBODY;\n this.COLGROUP = wtTable.COLGROUP;\n\n this.rowHeaders = [];\n this.rowHeaderCount = 0;\n this.columnHeaders = [];\n this.columnHeaderCount = 0;\n this.fixedRowsTop = 0;\n this.fixedRowsBottom = 0;\n }\n\n /**\n *\n */\n\n\n _createClass(TableRenderer, [{\n key: 'render',\n value: function render() {\n if (!this.wtTable.isWorkingOnClone()) {\n var skipRender = {};\n this.wot.getSetting('beforeDraw', true, skipRender);\n\n if (skipRender.skipRender === true) {\n return;\n }\n }\n\n this.rowHeaders = this.wot.getSetting('rowHeaders');\n this.rowHeaderCount = this.rowHeaders.length;\n this.fixedRowsTop = this.wot.getSetting('fixedRowsTop');\n this.fixedRowsBottom = this.wot.getSetting('fixedRowsBottom');\n this.columnHeaders = this.wot.getSetting('columnHeaders');\n this.columnHeaderCount = this.columnHeaders.length;\n\n var columnsToRender = this.wtTable.getRenderedColumnsCount();\n var rowsToRender = this.wtTable.getRenderedRowsCount();\n var totalColumns = this.wot.getSetting('totalColumns');\n var totalRows = this.wot.getSetting('totalRows');\n var workspaceWidth = void 0;\n var adjusted = false;\n\n if (_base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_BOTTOM) || _base2.default.isOverlayTypeOf(this.wot.cloneOverlay, _base2.default.CLONE_BOTTOM_LEFT_CORNER)) {\n\n // do NOT render headers on the bottom or bottom-left corner overlay\n this.columnHeaders = [];\n this.columnHeaderCount = 0;\n }\n\n if (totalColumns >= 0) {\n // prepare COL and TH elements for rendering\n this.adjustAvailableNodes();\n adjusted = true;\n\n // adjust column widths according to user widths settings\n this.renderColumnHeaders();\n\n // Render table rows\n this.renderRows(totalRows, rowsToRender, columnsToRender);\n\n if (!this.wtTable.isWorkingOnClone()) {\n workspaceWidth = this.wot.wtViewport.getWorkspaceWidth();\n this.wot.wtViewport.containerWidth = null;\n }\n\n this.adjustColumnWidths(columnsToRender);\n this.markOversizedColumnHeaders();\n this.adjustColumnHeaderHeights();\n }\n\n if (!adjusted) {\n this.adjustAvailableNodes();\n }\n this.removeRedundantRows(rowsToRender);\n\n if (!this.wtTable.isWorkingOnClone() || this.wot.isOverlayName(_base2.default.CLONE_BOTTOM)) {\n this.markOversizedRows();\n }\n if (!this.wtTable.isWorkingOnClone()) {\n this.wot.wtViewport.createVisibleCalculators();\n this.wot.wtOverlays.refresh(false);\n\n this.wot.wtOverlays.applyToDOM();\n\n var hiderWidth = (0, _element.outerWidth)(this.wtTable.hider);\n var tableWidth = (0, _element.outerWidth)(this.wtTable.TABLE);\n\n if (hiderWidth !== 0 && tableWidth !== hiderWidth) {\n // Recalculate the column widths, if width changes made in the overlays removed the scrollbar, thus changing the viewport width.\n this.adjustColumnWidths(columnsToRender);\n }\n\n if (workspaceWidth !== this.wot.wtViewport.getWorkspaceWidth()) {\n // workspace width changed though to shown/hidden vertical scrollbar. Let's reapply stretching\n this.wot.wtViewport.containerWidth = null;\n\n var firstRendered = this.wtTable.getFirstRenderedColumn();\n var lastRendered = this.wtTable.getLastRenderedColumn();\n var defaultColumnWidth = this.wot.getSetting('defaultColumnWidth');\n var rowHeaderWidthSetting = this.wot.getSetting('rowHeaderWidth');\n\n rowHeaderWidthSetting = this.instance.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);\n\n if (rowHeaderWidthSetting != null) {\n for (var i = 0; i < this.rowHeaderCount; i++) {\n var width = Array.isArray(rowHeaderWidthSetting) ? rowHeaderWidthSetting[i] : rowHeaderWidthSetting;\n\n width = width == null ? defaultColumnWidth : width;\n\n this.COLGROUP.childNodes[i].style.width = width + 'px';\n }\n }\n\n for (var _i = firstRendered; _i < lastRendered; _i++) {\n var _width = this.wtTable.getStretchedColumnWidth(_i);\n var renderedIndex = this.columnFilter.sourceToRendered(_i);\n\n this.COLGROUP.childNodes[renderedIndex + this.rowHeaderCount].style.width = _width + 'px';\n }\n }\n\n this.wot.getSetting('onDraw', true);\n } else if (this.wot.isOverlayName(_base2.default.CLONE_BOTTOM)) {\n this.wot.cloneSource.wtOverlays.adjustElementsSize();\n }\n }\n\n /**\n * @param {Number} renderedRowsCount\n */\n\n }, {\n key: 'removeRedundantRows',\n value: function removeRedundantRows(renderedRowsCount) {\n while (this.wtTable.tbodyChildrenLength > renderedRowsCount) {\n this.TBODY.removeChild(this.TBODY.lastChild);\n this.wtTable.tbodyChildrenLength--;\n }\n }\n\n /**\n * @param {Number} totalRows\n * @param {Number} rowsToRender\n * @param {Number} columnsToRender\n */\n\n }, {\n key: 'renderRows',\n value: function renderRows(totalRows, rowsToRender, columnsToRender) {\n var TR = void 0;\n var visibleRowIndex = 0;\n var sourceRowIndex = this.rowFilter.renderedToSource(visibleRowIndex);\n var isWorkingOnClone = this.wtTable.isWorkingOnClone();\n\n while (sourceRowIndex < totalRows && sourceRowIndex >= 0) {\n if (!performanceWarningAppeared && visibleRowIndex > 1000) {\n performanceWarningAppeared = true;\n (0, _console.warn)((0, _templateLiteralTag.toSingleLine)(_templateObject));\n }\n if (rowsToRender !== void 0 && visibleRowIndex === rowsToRender) {\n // We have as much rows as needed for this clone\n break;\n }\n TR = this.getOrCreateTrForRow(visibleRowIndex, TR);\n\n // Render row headers\n this.renderRowHeaders(sourceRowIndex, TR);\n // Add and/or remove TDs to TR to match the desired number\n this.adjustColumns(TR, columnsToRender + this.rowHeaderCount);\n // Render cells\n this.renderCells(sourceRowIndex, TR, columnsToRender);\n\n if (!isWorkingOnClone ||\n // Necessary to refresh oversized row heights after editing cell in overlays\n this.wot.isOverlayName(_base2.default.CLONE_BOTTOM)) {\n // Reset the oversized row cache for this row\n this.resetOversizedRow(sourceRowIndex);\n }\n\n if (TR.firstChild) {\n // if I have 2 fixed columns with one-line content and the 3rd column has a multiline content, this is\n // the way to make sure that the overlay will has same row height\n var height = this.wot.wtTable.getRowHeight(sourceRowIndex);\n\n if (height) {\n // Decrease height. 1 pixel will be \"replaced\" by 1px border top\n height--;\n TR.firstChild.style.height = height + 'px';\n } else {\n TR.firstChild.style.height = '';\n }\n }\n visibleRowIndex++;\n sourceRowIndex = this.rowFilter.renderedToSource(visibleRowIndex);\n }\n }\n\n /**\n * Reset the oversized row cache for the provided index\n *\n * @param {Number} sourceRow Row index\n */\n\n }, {\n key: 'resetOversizedRow',\n value: function resetOversizedRow(sourceRow) {\n if (this.wot.getSetting('externalRowCalculator')) {\n return;\n }\n if (this.wot.wtViewport.oversizedRows && this.wot.wtViewport.oversizedRows[sourceRow]) {\n this.wot.wtViewport.oversizedRows[sourceRow] = void 0;\n }\n }\n\n /**\n * Check if any of the rendered rows is higher than expected, and if so, cache them\n */\n\n }, {\n key: 'markOversizedRows',\n value: function markOversizedRows() {\n if (this.wot.getSetting('externalRowCalculator')) {\n return;\n }\n var rowCount = this.instance.wtTable.TBODY.childNodes.length;\n var expectedTableHeight = rowCount * this.instance.wtSettings.settings.defaultRowHeight;\n var actualTableHeight = (0, _element.innerHeight)(this.instance.wtTable.TBODY) - 1;\n var previousRowHeight = void 0;\n var rowInnerHeight = void 0;\n var sourceRowIndex = void 0;\n var currentTr = void 0;\n var rowHeader = void 0;\n\n if (expectedTableHeight === actualTableHeight && !this.instance.getSetting('fixedRowsBottom')) {\n // If the actual table height equals rowCount * default single row height, no row is oversized -> no need to iterate over them\n return;\n }\n\n while (rowCount) {\n rowCount--;\n sourceRowIndex = this.instance.wtTable.rowFilter.renderedToSource(rowCount);\n previousRowHeight = this.instance.wtTable.getRowHeight(sourceRowIndex);\n currentTr = this.instance.wtTable.getTrForRow(sourceRowIndex);\n rowHeader = currentTr.querySelector('th');\n\n if (rowHeader) {\n rowInnerHeight = (0, _element.innerHeight)(rowHeader);\n } else {\n rowInnerHeight = (0, _element.innerHeight)(currentTr) - 1;\n }\n\n if (!previousRowHeight && this.instance.wtSettings.settings.defaultRowHeight < rowInnerHeight || previousRowHeight < rowInnerHeight) {\n this.instance.wtViewport.oversizedRows[sourceRowIndex] = ++rowInnerHeight;\n }\n }\n }\n\n /**\n * Check if any of the rendered columns is higher than expected, and if so, cache them.\n */\n\n }, {\n key: 'markOversizedColumnHeaders',\n value: function markOversizedColumnHeaders() {\n var overlayName = this.wot.getOverlayName();\n\n if (!this.columnHeaderCount || this.wot.wtViewport.hasOversizedColumnHeadersMarked[overlayName] || this.wtTable.isWorkingOnClone()) {\n return;\n }\n var columnCount = this.wtTable.getRenderedColumnsCount();\n\n for (var i = 0; i < this.columnHeaderCount; i++) {\n for (var renderedColumnIndex = -1 * this.rowHeaderCount; renderedColumnIndex < columnCount; renderedColumnIndex++) {\n this.markIfOversizedColumnHeader(renderedColumnIndex);\n }\n }\n this.wot.wtViewport.hasOversizedColumnHeadersMarked[overlayName] = true;\n }\n\n /**\n *\n */\n\n }, {\n key: 'adjustColumnHeaderHeights',\n value: function adjustColumnHeaderHeights() {\n var columnHeaders = this.wot.getSetting('columnHeaders');\n var children = this.wot.wtTable.THEAD.childNodes;\n var oversizedColumnHeaders = this.wot.wtViewport.oversizedColumnHeaders;\n\n for (var i = 0, len = columnHeaders.length; i < len; i++) {\n if (oversizedColumnHeaders[i]) {\n if (!children[i] || children[i].childNodes.length === 0) {\n return;\n }\n children[i].childNodes[0].style.height = oversizedColumnHeaders[i] + 'px';\n }\n }\n }\n\n /**\n * Check if column header for the specified column is higher than expected, and if so, cache it\n *\n * @param {Number} col Index of column\n */\n\n }, {\n key: 'markIfOversizedColumnHeader',\n value: function markIfOversizedColumnHeader(col) {\n var sourceColIndex = this.wot.wtTable.columnFilter.renderedToSource(col);\n var level = this.columnHeaderCount;\n var defaultRowHeight = this.wot.wtSettings.settings.defaultRowHeight;\n var previousColHeaderHeight = void 0;\n var currentHeader = void 0;\n var currentHeaderHeight = void 0;\n var columnHeaderHeightSetting = this.wot.getSetting('columnHeaderHeight') || [];\n\n while (level) {\n level--;\n\n previousColHeaderHeight = this.wot.wtTable.getColumnHeaderHeight(level);\n currentHeader = this.wot.wtTable.getColumnHeader(sourceColIndex, level);\n\n if (!currentHeader) {\n /* eslint-disable no-continue */\n continue;\n }\n currentHeaderHeight = (0, _element.innerHeight)(currentHeader);\n\n if (!previousColHeaderHeight && defaultRowHeight < currentHeaderHeight || previousColHeaderHeight < currentHeaderHeight) {\n this.wot.wtViewport.oversizedColumnHeaders[level] = currentHeaderHeight;\n }\n\n if (Array.isArray(columnHeaderHeightSetting)) {\n if (columnHeaderHeightSetting[level] != null) {\n this.wot.wtViewport.oversizedColumnHeaders[level] = columnHeaderHeightSetting[level];\n }\n } else if (!isNaN(columnHeaderHeightSetting)) {\n this.wot.wtViewport.oversizedColumnHeaders[level] = columnHeaderHeightSetting;\n }\n\n if (this.wot.wtViewport.oversizedColumnHeaders[level] < (columnHeaderHeightSetting[level] || columnHeaderHeightSetting)) {\n this.wot.wtViewport.oversizedColumnHeaders[level] = columnHeaderHeightSetting[level] || columnHeaderHeightSetting;\n }\n }\n }\n\n /**\n * @param {Number} sourceRowIndex\n * @param {HTMLTableRowElement} TR\n * @param {Number} columnsToRender\n * @returns {HTMLTableCellElement}\n */\n\n }, {\n key: 'renderCells',\n value: function renderCells(sourceRowIndex, TR, columnsToRender) {\n var TD = void 0;\n var sourceColIndex = void 0;\n\n for (var visibleColIndex = 0; visibleColIndex < columnsToRender; visibleColIndex++) {\n sourceColIndex = this.columnFilter.renderedToSource(visibleColIndex);\n\n if (visibleColIndex === 0) {\n TD = TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(sourceColIndex)];\n } else {\n TD = TD.nextSibling; // http://jsperf.com/nextsibling-vs-indexed-childnodes\n }\n // If the number of headers has been reduced, we need to replace excess TH with TD\n if (TD.nodeName === 'TH') {\n TD = replaceThWithTd(TD, TR);\n }\n if (!(0, _element.hasClass)(TD, 'hide')) {\n TD.className = '';\n }\n TD.removeAttribute('style');\n this.wot.wtSettings.settings.cellRenderer(sourceRowIndex, sourceColIndex, TD);\n }\n\n return TD;\n }\n\n /**\n * @param {Number} columnsToRender Number of columns to render.\n */\n\n }, {\n key: 'adjustColumnWidths',\n value: function adjustColumnWidths(columnsToRender) {\n var scrollbarCompensation = 0;\n var sourceInstance = this.wot.cloneSource ? this.wot.cloneSource : this.wot;\n var mainHolder = sourceInstance.wtTable.holder;\n var defaultColumnWidth = this.wot.getSetting('defaultColumnWidth');\n var rowHeaderWidthSetting = this.wot.getSetting('rowHeaderWidth');\n\n if (mainHolder.offsetHeight < mainHolder.scrollHeight) {\n scrollbarCompensation = (0, _element.getScrollbarWidth)();\n }\n this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth() - scrollbarCompensation);\n\n rowHeaderWidthSetting = this.instance.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);\n\n if (rowHeaderWidthSetting != null) {\n for (var i = 0; i < this.rowHeaderCount; i++) {\n var width = Array.isArray(rowHeaderWidthSetting) ? rowHeaderWidthSetting[i] : rowHeaderWidthSetting;\n\n width = width == null ? defaultColumnWidth : width;\n\n this.COLGROUP.childNodes[i].style.width = width + 'px';\n }\n }\n\n for (var renderedColIndex = 0; renderedColIndex < columnsToRender; renderedColIndex++) {\n var _width2 = this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(renderedColIndex));\n\n this.COLGROUP.childNodes[renderedColIndex + this.rowHeaderCount].style.width = _width2 + 'px';\n }\n }\n\n /**\n * @param {HTMLTableCellElement} TR\n */\n\n }, {\n key: 'appendToTbody',\n value: function appendToTbody(TR) {\n this.TBODY.appendChild(TR);\n this.wtTable.tbodyChildrenLength++;\n }\n\n /**\n * @param {Number} rowIndex\n * @param {HTMLTableRowElement} currentTr\n * @returns {HTMLTableCellElement}\n */\n\n }, {\n key: 'getOrCreateTrForRow',\n value: function getOrCreateTrForRow(rowIndex, currentTr) {\n var TR = void 0;\n\n if (rowIndex >= this.wtTable.tbodyChildrenLength) {\n TR = this.createRow();\n this.appendToTbody(TR);\n } else if (rowIndex === 0) {\n TR = this.TBODY.firstChild;\n } else {\n // http://jsperf.com/nextsibling-vs-indexed-childnodes\n TR = currentTr.nextSibling;\n }\n if (TR.className) {\n TR.removeAttribute('class');\n }\n\n return TR;\n }\n\n /**\n * @returns {HTMLTableCellElement}\n */\n\n }, {\n key: 'createRow',\n value: function createRow() {\n var TR = document.createElement('TR');\n\n for (var visibleColIndex = 0; visibleColIndex < this.rowHeaderCount; visibleColIndex++) {\n TR.appendChild(document.createElement('TH'));\n }\n\n return TR;\n }\n\n /**\n * @param {Number} row\n * @param {Number} col\n * @param {HTMLTableCellElement} TH\n */\n\n }, {\n key: 'renderRowHeader',\n value: function renderRowHeader(row, col, TH) {\n TH.className = '';\n TH.removeAttribute('style');\n this.rowHeaders[col](row, TH, col);\n }\n\n /**\n * @param {Number} row\n * @param {HTMLTableCellElement} TR\n */\n\n }, {\n key: 'renderRowHeaders',\n value: function renderRowHeaders(row, TR) {\n for (var TH = TR.firstChild, visibleColIndex = 0; visibleColIndex < this.rowHeaderCount; visibleColIndex++) {\n // If the number of row headers increased we need to create TH or replace an existing TD node with TH\n if (!TH) {\n TH = document.createElement('TH');\n TR.appendChild(TH);\n } else if (TH.nodeName === 'TD') {\n TH = replaceTdWithTh(TH, TR);\n }\n this.renderRowHeader(row, visibleColIndex, TH);\n // http://jsperf.com/nextsibling-vs-indexed-childnodes\n TH = TH.nextSibling;\n }\n }\n\n /**\n * Adjust the number of COL and TH elements to match the number of columns and headers that need to be rendered\n */\n\n }, {\n key: 'adjustAvailableNodes',\n value: function adjustAvailableNodes() {\n this.adjustColGroups();\n this.adjustThead();\n }\n\n /**\n * Renders the column headers\n */\n\n }, {\n key: 'renderColumnHeaders',\n value: function renderColumnHeaders() {\n if (!this.columnHeaderCount) {\n return;\n }\n var columnCount = this.wtTable.getRenderedColumnsCount();\n\n for (var i = 0; i < this.columnHeaderCount; i++) {\n var TR = this.getTrForColumnHeaders(i);\n\n for (var renderedColumnIndex = -1 * this.rowHeaderCount; renderedColumnIndex < columnCount; renderedColumnIndex++) {\n var sourceCol = this.columnFilter.renderedToSource(renderedColumnIndex);\n\n this.renderColumnHeader(i, sourceCol, TR.childNodes[renderedColumnIndex + this.rowHeaderCount]);\n }\n }\n }\n\n /**\n * Adjusts the number of COL elements to match the number of columns that need to be rendered\n */\n\n }, {\n key: 'adjustColGroups',\n value: function adjustColGroups() {\n var columnCount = this.wtTable.getRenderedColumnsCount();\n\n while (this.wtTable.colgroupChildrenLength < columnCount + this.rowHeaderCount) {\n this.COLGROUP.appendChild(document.createElement('COL'));\n this.wtTable.colgroupChildrenLength++;\n }\n while (this.wtTable.colgroupChildrenLength > columnCount + this.rowHeaderCount) {\n this.COLGROUP.removeChild(this.COLGROUP.lastChild);\n this.wtTable.colgroupChildrenLength--;\n }\n if (this.rowHeaderCount) {\n (0, _element.addClass)(this.COLGROUP.childNodes[0], 'rowHeader');\n }\n }\n\n /**\n * Adjusts the number of TH elements in THEAD to match the number of headers and columns that need to be rendered\n */\n\n }, {\n key: 'adjustThead',\n value: function adjustThead() {\n var columnCount = this.wtTable.getRenderedColumnsCount();\n var TR = this.THEAD.firstChild;\n\n if (this.columnHeaders.length) {\n for (var i = 0, len = this.columnHeaders.length; i < len; i++) {\n TR = this.THEAD.childNodes[i];\n\n if (!TR) {\n TR = document.createElement('TR');\n this.THEAD.appendChild(TR);\n }\n this.theadChildrenLength = TR.childNodes.length;\n\n while (this.theadChildrenLength < columnCount + this.rowHeaderCount) {\n TR.appendChild(document.createElement('TH'));\n this.theadChildrenLength++;\n }\n while (this.theadChildrenLength > columnCount + this.rowHeaderCount) {\n TR.removeChild(TR.lastChild);\n this.theadChildrenLength--;\n }\n }\n var theadChildrenLength = this.THEAD.childNodes.length;\n\n if (theadChildrenLength > this.columnHeaders.length) {\n for (var _i2 = this.columnHeaders.length; _i2 < theadChildrenLength; _i2++) {\n this.THEAD.removeChild(this.THEAD.lastChild);\n }\n }\n } else if (TR) {\n (0, _element.empty)(TR);\n }\n }\n\n /**\n * @param {Number} index\n * @returns {HTMLTableCellElement}\n */\n\n }, {\n key: 'getTrForColumnHeaders',\n value: function getTrForColumnHeaders(index) {\n return this.THEAD.childNodes[index];\n }\n\n /**\n * @param {Number} row\n * @param {Number} col\n * @param {HTMLTableCellElement} TH\n * @returns {*}\n */\n\n }, {\n key: 'renderColumnHeader',\n value: function renderColumnHeader(row, col, TH) {\n TH.className = '';\n TH.removeAttribute('style');\n\n return this.columnHeaders[row](col, TH, row);\n }\n\n /**\n * Add and/or remove the TDs to match the desired number\n *\n * @param {HTMLTableCellElement} TR Table row in question\n * @param {Number} desiredCount The desired number of TDs in the TR\n */\n\n }, {\n key: 'adjustColumns',\n value: function adjustColumns(TR, desiredCount) {\n var count = TR.childNodes.length;\n\n while (count < desiredCount) {\n var TD = document.createElement('TD');\n\n TR.appendChild(TD);\n count++;\n }\n while (count > desiredCount) {\n TR.removeChild(TR.lastChild);\n count--;\n }\n }\n\n /**\n * @param {Number} columnsToRender\n */\n\n }, {\n key: 'removeRedundantColumns',\n value: function removeRedundantColumns(columnsToRender) {\n while (this.wtTable.tbodyChildrenLength > columnsToRender) {\n this.TBODY.removeChild(this.TBODY.lastChild);\n this.wtTable.tbodyChildrenLength--;\n }\n }\n }]);\n\n return TableRenderer;\n}();\n\nfunction replaceTdWithTh(TD, TR) {\n var TH = document.createElement('TH');\n\n TR.insertBefore(TH, TD);\n TR.removeChild(TD);\n\n return TH;\n}\n\nfunction replaceThWithTd(TH, TR) {\n var TD = document.createElement('TD');\n\n TR.insertBefore(TD, TH);\n TR.removeChild(TH);\n\n return TD;\n}\n\nexports.default = TableRenderer;\n\n/***/ }),\n/* 188 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _viewportColumns = __webpack_require__(176);\n\nvar _viewportColumns2 = _interopRequireDefault(_viewportColumns);\n\nvar _viewportRows = __webpack_require__(177);\n\nvar _viewportRows2 = _interopRequireDefault(_viewportRows);\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\n/**\n * @class Viewport\n */\nvar Viewport = function () {\n /**\n * @param wotInstance\n */\n function Viewport(wotInstance) {\n var _this = this;\n\n _classCallCheck(this, Viewport);\n\n this.wot = wotInstance;\n // legacy support\n this.instance = this.wot;\n\n this.oversizedRows = [];\n this.oversizedColumnHeaders = [];\n this.hasOversizedColumnHeadersMarked = {};\n this.clientHeight = 0;\n this.containerWidth = NaN;\n this.rowHeaderWidth = NaN;\n this.rowsVisibleCalculator = null;\n this.columnsVisibleCalculator = null;\n\n this.eventManager = new _eventManager2.default(this.wot);\n this.eventManager.addEventListener(window, 'resize', function () {\n _this.clientHeight = _this.getWorkspaceHeight();\n });\n }\n\n /**\n * @returns {number}\n */\n\n\n _createClass(Viewport, [{\n key: 'getWorkspaceHeight',\n value: function getWorkspaceHeight() {\n var trimmingContainer = this.instance.wtOverlays.topOverlay.trimmingContainer;\n var elemHeight = void 0;\n var height = 0;\n\n if (trimmingContainer === window) {\n height = document.documentElement.clientHeight;\n } else {\n elemHeight = (0, _element.outerHeight)(trimmingContainer);\n // returns height without DIV scrollbar\n height = elemHeight > 0 && trimmingContainer.clientHeight > 0 ? trimmingContainer.clientHeight : Infinity;\n }\n\n return height;\n }\n }, {\n key: 'getWorkspaceWidth',\n value: function getWorkspaceWidth() {\n var width = void 0;\n var totalColumns = this.wot.getSetting('totalColumns');\n var trimmingContainer = this.instance.wtOverlays.leftOverlay.trimmingContainer;\n var overflow = void 0;\n var stretchSetting = this.wot.getSetting('stretchH');\n var docOffsetWidth = document.documentElement.offsetWidth;\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (preventOverflow) {\n return (0, _element.outerWidth)(this.instance.wtTable.wtRootElement);\n }\n\n if (this.wot.getSetting('freezeOverlays')) {\n width = Math.min(docOffsetWidth - this.getWorkspaceOffset().left, docOffsetWidth);\n } else {\n width = Math.min(this.getContainerFillWidth(), docOffsetWidth - this.getWorkspaceOffset().left, docOffsetWidth);\n }\n\n if (trimmingContainer === window && totalColumns > 0 && this.sumColumnWidths(0, totalColumns - 1) > width) {\n // in case sum of column widths is higher than available stylesheet width, let's assume using the whole window\n // otherwise continue below, which will allow stretching\n // this is used in `scroll_window.html`\n // TODO test me\n return document.documentElement.clientWidth;\n }\n\n if (trimmingContainer !== window) {\n overflow = (0, _element.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer, 'overflow');\n\n if (overflow === 'scroll' || overflow === 'hidden' || overflow === 'auto') {\n // this is used in `scroll.html`\n // TODO test me\n return Math.max(width, trimmingContainer.clientWidth);\n }\n }\n\n if (stretchSetting === 'none' || !stretchSetting) {\n // if no stretching is used, return the maximum used workspace width\n return Math.max(width, (0, _element.outerWidth)(this.instance.wtTable.TABLE));\n }\n\n // if stretching is used, return the actual container width, so the columns can fit inside it\n return width;\n }\n\n /**\n * Checks if viewport has vertical scroll\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'hasVerticalScroll',\n value: function hasVerticalScroll() {\n return this.getWorkspaceActualHeight() > this.getWorkspaceHeight();\n }\n\n /**\n * Checks if viewport has horizontal scroll\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'hasHorizontalScroll',\n value: function hasHorizontalScroll() {\n return this.getWorkspaceActualWidth() > this.getWorkspaceWidth();\n }\n\n /**\n * @param from\n * @param length\n * @returns {Number}\n */\n\n }, {\n key: 'sumColumnWidths',\n value: function sumColumnWidths(from, length) {\n var sum = 0;\n\n while (from < length) {\n sum += this.wot.wtTable.getColumnWidth(from);\n from++;\n }\n\n return sum;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getContainerFillWidth',\n value: function getContainerFillWidth() {\n if (this.containerWidth) {\n return this.containerWidth;\n }\n var mainContainer = this.instance.wtTable.holder;\n var fillWidth = void 0;\n var dummyElement = void 0;\n\n dummyElement = document.createElement('div');\n dummyElement.style.width = '100%';\n dummyElement.style.height = '1px';\n mainContainer.appendChild(dummyElement);\n fillWidth = dummyElement.offsetWidth;\n\n this.containerWidth = fillWidth;\n mainContainer.removeChild(dummyElement);\n\n return fillWidth;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getWorkspaceOffset',\n value: function getWorkspaceOffset() {\n return (0, _element.offset)(this.wot.wtTable.TABLE);\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getWorkspaceActualHeight',\n value: function getWorkspaceActualHeight() {\n return (0, _element.outerHeight)(this.wot.wtTable.TABLE);\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getWorkspaceActualWidth',\n value: function getWorkspaceActualWidth() {\n return (0, _element.outerWidth)(this.wot.wtTable.TABLE) || (0, _element.outerWidth)(this.wot.wtTable.TBODY) || (0, _element.outerWidth)(this.wot.wtTable.THEAD); // IE8 reports 0 as <table> offsetWidth;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getColumnHeaderHeight',\n value: function getColumnHeaderHeight() {\n if (isNaN(this.columnHeaderHeight)) {\n this.columnHeaderHeight = (0, _element.outerHeight)(this.wot.wtTable.THEAD);\n }\n\n return this.columnHeaderHeight;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getViewportHeight',\n value: function getViewportHeight() {\n var containerHeight = this.getWorkspaceHeight();\n var columnHeaderHeight = void 0;\n\n if (containerHeight === Infinity) {\n return containerHeight;\n }\n columnHeaderHeight = this.getColumnHeaderHeight();\n\n if (columnHeaderHeight > 0) {\n containerHeight -= columnHeaderHeight;\n }\n\n return containerHeight;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getRowHeaderWidth',\n value: function getRowHeaderWidth() {\n var rowHeadersHeightSetting = this.instance.getSetting('rowHeaderWidth');\n var rowHeaders = this.instance.getSetting('rowHeaders');\n\n if (rowHeadersHeightSetting) {\n this.rowHeaderWidth = 0;\n\n for (var i = 0, len = rowHeaders.length; i < len; i++) {\n this.rowHeaderWidth += rowHeadersHeightSetting[i] || rowHeadersHeightSetting;\n }\n }\n\n if (this.wot.cloneSource) {\n return this.wot.cloneSource.wtViewport.getRowHeaderWidth();\n }\n\n if (isNaN(this.rowHeaderWidth)) {\n\n if (rowHeaders.length) {\n var TH = this.instance.wtTable.TABLE.querySelector('TH');\n this.rowHeaderWidth = 0;\n\n for (var _i = 0, _len = rowHeaders.length; _i < _len; _i++) {\n if (TH) {\n this.rowHeaderWidth += (0, _element.outerWidth)(TH);\n TH = TH.nextSibling;\n } else {\n // yes this is a cheat but it worked like that before, just taking assumption from CSS instead of measuring.\n // TODO: proper fix\n this.rowHeaderWidth += 50;\n }\n }\n } else {\n this.rowHeaderWidth = 0;\n }\n }\n\n this.rowHeaderWidth = this.instance.getSetting('onModifyRowHeaderWidth', this.rowHeaderWidth) || this.rowHeaderWidth;\n\n return this.rowHeaderWidth;\n }\n\n /**\n * @returns {Number}\n */\n\n }, {\n key: 'getViewportWidth',\n value: function getViewportWidth() {\n var containerWidth = this.getWorkspaceWidth();\n var rowHeaderWidth = void 0;\n\n if (containerWidth === Infinity) {\n return containerWidth;\n }\n rowHeaderWidth = this.getRowHeaderWidth();\n\n if (rowHeaderWidth > 0) {\n return containerWidth - rowHeaderWidth;\n }\n\n return containerWidth;\n }\n\n /**\n * Creates:\n * - rowsRenderCalculator (before draw, to qualify rows for rendering)\n * - rowsVisibleCalculator (after draw, to measure which rows are actually visible)\n *\n * @returns {ViewportRowsCalculator}\n */\n\n }, {\n key: 'createRowsCalculator',\n value: function createRowsCalculator() {\n var _this2 = this;\n\n var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var height = void 0;\n var pos = void 0;\n var fixedRowsTop = void 0;\n var scrollbarHeight = void 0;\n var fixedRowsBottom = void 0;\n var fixedRowsHeight = void 0;\n var totalRows = void 0;\n\n this.rowHeaderWidth = NaN;\n\n if (this.wot.wtSettings.settings.renderAllRows && !visible) {\n height = Infinity;\n } else {\n height = this.getViewportHeight();\n }\n pos = this.wot.wtOverlays.topOverlay.getScrollPosition() - this.wot.wtOverlays.topOverlay.getTableParentOffset();\n\n if (pos < 0) {\n pos = 0;\n }\n fixedRowsTop = this.wot.getSetting('fixedRowsTop');\n fixedRowsBottom = this.wot.getSetting('fixedRowsBottom');\n totalRows = this.wot.getSetting('totalRows');\n\n if (fixedRowsTop) {\n fixedRowsHeight = this.wot.wtOverlays.topOverlay.sumCellSizes(0, fixedRowsTop);\n pos += fixedRowsHeight;\n height -= fixedRowsHeight;\n }\n\n if (fixedRowsBottom && this.wot.wtOverlays.bottomOverlay.clone) {\n fixedRowsHeight = this.wot.wtOverlays.bottomOverlay.sumCellSizes(totalRows - fixedRowsBottom, totalRows);\n\n height -= fixedRowsHeight;\n }\n\n if (this.wot.wtTable.holder.clientHeight === this.wot.wtTable.holder.offsetHeight) {\n scrollbarHeight = 0;\n } else {\n scrollbarHeight = (0, _element.getScrollbarWidth)();\n }\n\n return new _viewportRows2.default(height, pos, this.wot.getSetting('totalRows'), function (sourceRow) {\n return _this2.wot.wtTable.getRowHeight(sourceRow);\n }, visible ? null : this.wot.wtSettings.settings.viewportRowCalculatorOverride, visible, scrollbarHeight);\n }\n\n /**\n * Creates:\n * - columnsRenderCalculator (before draw, to qualify columns for rendering)\n * - columnsVisibleCalculator (after draw, to measure which columns are actually visible)\n *\n * @returns {ViewportRowsCalculator}\n */\n\n }, {\n key: 'createColumnsCalculator',\n value: function createColumnsCalculator() {\n var _this3 = this;\n\n var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var width = this.getViewportWidth();\n var pos = void 0;\n var fixedColumnsLeft = void 0;\n\n this.columnHeaderHeight = NaN;\n\n pos = this.wot.wtOverlays.leftOverlay.getScrollPosition() - this.wot.wtOverlays.leftOverlay.getTableParentOffset();\n\n if (pos < 0) {\n pos = 0;\n }\n fixedColumnsLeft = this.wot.getSetting('fixedColumnsLeft');\n\n if (fixedColumnsLeft) {\n var fixedColumnsWidth = this.wot.wtOverlays.leftOverlay.sumCellSizes(0, fixedColumnsLeft);\n pos += fixedColumnsWidth;\n width -= fixedColumnsWidth;\n }\n if (this.wot.wtTable.holder.clientWidth !== this.wot.wtTable.holder.offsetWidth) {\n width -= (0, _element.getScrollbarWidth)();\n }\n\n return new _viewportColumns2.default(width, pos, this.wot.getSetting('totalColumns'), function (sourceCol) {\n return _this3.wot.wtTable.getColumnWidth(sourceCol);\n }, visible ? null : this.wot.wtSettings.settings.viewportColumnCalculatorOverride, visible, this.wot.getSetting('stretchH'), function (stretchedWidth, column) {\n return _this3.wot.getSetting('onBeforeStretchingColumnWidth', stretchedWidth, column);\n });\n }\n\n /**\n * Creates rowsRenderCalculator and columnsRenderCalculator (before draw, to determine what rows and\n * cols should be rendered)\n *\n * @param fastDraw {Boolean} If `true`, will try to avoid full redraw and only update the border positions.\n * If `false` or `undefined`, will perform a full redraw\n * @returns fastDraw {Boolean} The fastDraw value, possibly modified\n */\n\n }, {\n key: 'createRenderCalculators',\n value: function createRenderCalculators() {\n var fastDraw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (fastDraw) {\n var proposedRowsVisibleCalculator = this.createRowsCalculator(true);\n var proposedColumnsVisibleCalculator = this.createColumnsCalculator(true);\n\n if (!(this.areAllProposedVisibleRowsAlreadyRendered(proposedRowsVisibleCalculator) && this.areAllProposedVisibleColumnsAlreadyRendered(proposedColumnsVisibleCalculator))) {\n fastDraw = false;\n }\n }\n\n if (!fastDraw) {\n this.rowsRenderCalculator = this.createRowsCalculator();\n this.columnsRenderCalculator = this.createColumnsCalculator();\n }\n // delete temporarily to make sure that renderers always use rowsRenderCalculator, not rowsVisibleCalculator\n this.rowsVisibleCalculator = null;\n this.columnsVisibleCalculator = null;\n\n return fastDraw;\n }\n\n /**\n * Creates rowsVisibleCalculator and columnsVisibleCalculator (after draw, to determine what are\n * the actually visible rows and columns)\n */\n\n }, {\n key: 'createVisibleCalculators',\n value: function createVisibleCalculators() {\n this.rowsVisibleCalculator = this.createRowsCalculator(true);\n this.columnsVisibleCalculator = this.createColumnsCalculator(true);\n }\n\n /**\n * Returns information whether proposedRowsVisibleCalculator viewport\n * is contained inside rows rendered in previous draw (cached in rowsRenderCalculator)\n *\n * @param {Object} proposedRowsVisibleCalculator\n * @returns {Boolean} Returns `true` if all proposed visible rows are already rendered (meaning: redraw is not needed).\n * Returns `false` if at least one proposed visible row is not already rendered (meaning: redraw is needed)\n */\n\n }, {\n key: 'areAllProposedVisibleRowsAlreadyRendered',\n value: function areAllProposedVisibleRowsAlreadyRendered(proposedRowsVisibleCalculator) {\n if (this.rowsVisibleCalculator) {\n if (proposedRowsVisibleCalculator.startRow < this.rowsRenderCalculator.startRow || proposedRowsVisibleCalculator.startRow === this.rowsRenderCalculator.startRow && proposedRowsVisibleCalculator.startRow > 0) {\n return false;\n } else if (proposedRowsVisibleCalculator.endRow > this.rowsRenderCalculator.endRow || proposedRowsVisibleCalculator.endRow === this.rowsRenderCalculator.endRow && proposedRowsVisibleCalculator.endRow < this.wot.getSetting('totalRows') - 1) {\n return false;\n }\n return true;\n }\n\n return false;\n }\n\n /**\n * Returns information whether proposedColumnsVisibleCalculator viewport\n * is contained inside column rendered in previous draw (cached in columnsRenderCalculator)\n *\n * @param {Object} proposedColumnsVisibleCalculator\n * @returns {Boolean} Returns `true` if all proposed visible columns are already rendered (meaning: redraw is not needed).\n * Returns `false` if at least one proposed visible column is not already rendered (meaning: redraw is needed)\n */\n\n }, {\n key: 'areAllProposedVisibleColumnsAlreadyRendered',\n value: function areAllProposedVisibleColumnsAlreadyRendered(proposedColumnsVisibleCalculator) {\n if (this.columnsVisibleCalculator) {\n if (proposedColumnsVisibleCalculator.startColumn < this.columnsRenderCalculator.startColumn || proposedColumnsVisibleCalculator.startColumn === this.columnsRenderCalculator.startColumn && proposedColumnsVisibleCalculator.startColumn > 0) {\n return false;\n } else if (proposedColumnsVisibleCalculator.endColumn > this.columnsRenderCalculator.endColumn || proposedColumnsVisibleCalculator.endColumn === this.columnsRenderCalculator.endColumn && proposedColumnsVisibleCalculator.endColumn < this.wot.getSetting('totalColumns') - 1) {\n return false;\n }\n return true;\n }\n\n return false;\n }\n\n /**\n * Resets values in keys of the hasOversizedColumnHeadersMarked object after updateSettings.\n */\n\n }, {\n key: 'resetHasOversizedColumnHeadersMarked',\n value: function resetHasOversizedColumnHeadersMarked() {\n (0, _object.objectEach)(this.hasOversizedColumnHeadersMarked, function (value, key, object) {\n object[key] = void 0;\n });\n }\n }]);\n\n return Viewport;\n}();\n\nexports.default = Viewport;\n\n/***/ }),\n/* 189 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _element = __webpack_require__(0);\n\nvar _event = __webpack_require__(13);\n\nvar _object = __webpack_require__(1);\n\nvar _browser = __webpack_require__(39);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _coords = __webpack_require__(56);\n\nvar _coords2 = _interopRequireDefault(_coords);\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\n/**\n *\n */\nvar Border = function () {\n /**\n * @param {Walkontable} wotInstance\n * @param {Object} settings\n */\n function Border(wotInstance, settings) {\n _classCallCheck(this, Border);\n\n if (!settings) {\n return;\n }\n this.eventManager = new _eventManager2.default(wotInstance);\n this.instance = wotInstance;\n this.wot = wotInstance;\n this.settings = settings;\n this.mouseDown = false;\n this.main = null;\n\n this.top = null;\n this.left = null;\n this.bottom = null;\n this.right = null;\n\n this.topStyle = null;\n this.leftStyle = null;\n this.bottomStyle = null;\n this.rightStyle = null;\n\n this.cornerDefaultStyle = {\n width: '6px',\n height: '6px',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: '#FFF'\n };\n this.corner = null;\n this.cornerStyle = null;\n\n this.createBorders(settings);\n this.registerListeners();\n }\n\n /**\n * Register all necessary events\n */\n\n\n _createClass(Border, [{\n key: 'registerListeners',\n value: function registerListeners() {\n var _this2 = this;\n\n this.eventManager.addEventListener(document.body, 'mousedown', function () {\n return _this2.onMouseDown();\n });\n this.eventManager.addEventListener(document.body, 'mouseup', function () {\n return _this2.onMouseUp();\n });\n\n var _loop = function _loop(c, len) {\n _this2.eventManager.addEventListener(_this2.main.childNodes[c], 'mouseenter', function (event) {\n return _this2.onMouseEnter(event, _this2.main.childNodes[c]);\n });\n };\n\n for (var c = 0, len = this.main.childNodes.length; c < len; c++) {\n _loop(c, len);\n }\n }\n\n /**\n * Mouse down listener\n *\n * @private\n */\n\n }, {\n key: 'onMouseDown',\n value: function onMouseDown() {\n this.mouseDown = true;\n }\n\n /**\n * Mouse up listener\n *\n * @private\n */\n\n }, {\n key: 'onMouseUp',\n value: function onMouseUp() {\n this.mouseDown = false;\n }\n\n /**\n * Mouse enter listener for fragment selection functionality.\n *\n * @private\n * @param {Event} event Dom event\n * @param {HTMLElement} parentElement Part of border element.\n */\n\n }, {\n key: 'onMouseEnter',\n value: function onMouseEnter(event, parentElement) {\n if (!this.mouseDown || !this.wot.getSetting('hideBorderOnMouseDownOver')) {\n return;\n }\n event.preventDefault();\n (0, _event.stopImmediatePropagation)(event);\n\n var _this = this;\n var bounds = parentElement.getBoundingClientRect();\n // Hide border to prevents selection jumping when fragmentSelection is enabled.\n parentElement.style.display = 'none';\n\n function isOutside(mouseEvent) {\n if (mouseEvent.clientY < Math.floor(bounds.top)) {\n return true;\n }\n if (mouseEvent.clientY > Math.ceil(bounds.top + bounds.height)) {\n return true;\n }\n if (mouseEvent.clientX < Math.floor(bounds.left)) {\n return true;\n }\n if (mouseEvent.clientX > Math.ceil(bounds.left + bounds.width)) {\n return true;\n }\n }\n\n function handler(handlerEvent) {\n if (isOutside(handlerEvent)) {\n _this.eventManager.removeEventListener(document.body, 'mousemove', handler);\n parentElement.style.display = 'block';\n }\n }\n\n this.eventManager.addEventListener(document.body, 'mousemove', handler);\n }\n\n /**\n * Create border elements\n *\n * @param {Object} settings\n */\n\n }, {\n key: 'createBorders',\n value: function createBorders(settings) {\n this.main = document.createElement('div');\n\n var borderDivs = ['top', 'left', 'bottom', 'right', 'corner'];\n var style = this.main.style;\n style.position = 'absolute';\n style.top = 0;\n style.left = 0;\n\n for (var i = 0; i < 5; i++) {\n var position = borderDivs[i];\n var div = document.createElement('div');\n\n div.className = 'wtBorder ' + (this.settings.className || ''); // + borderDivs[i];\n\n if (this.settings[position] && this.settings[position].hide) {\n div.className += ' hidden';\n }\n style = div.style;\n style.backgroundColor = this.settings[position] && this.settings[position].color ? this.settings[position].color : settings.border.color;\n style.height = this.settings[position] && this.settings[position].width ? this.settings[position].width + 'px' : settings.border.width + 'px';\n style.width = this.settings[position] && this.settings[position].width ? this.settings[position].width + 'px' : settings.border.width + 'px';\n\n this.main.appendChild(div);\n }\n this.top = this.main.childNodes[0];\n this.left = this.main.childNodes[1];\n this.bottom = this.main.childNodes[2];\n this.right = this.main.childNodes[3];\n\n this.topStyle = this.top.style;\n this.leftStyle = this.left.style;\n this.bottomStyle = this.bottom.style;\n this.rightStyle = this.right.style;\n\n this.corner = this.main.childNodes[4];\n this.corner.className += ' corner';\n this.cornerStyle = this.corner.style;\n this.cornerStyle.width = this.cornerDefaultStyle.width;\n this.cornerStyle.height = this.cornerDefaultStyle.height;\n this.cornerStyle.border = [this.cornerDefaultStyle.borderWidth, this.cornerDefaultStyle.borderStyle, this.cornerDefaultStyle.borderColor].join(' ');\n\n if ((0, _browser.isMobileBrowser)()) {\n this.createMultipleSelectorHandles();\n }\n this.disappear();\n\n var bordersHolder = this.wot.wtTable.bordersHolder;\n\n if (!bordersHolder) {\n bordersHolder = document.createElement('div');\n bordersHolder.className = 'htBorders';\n this.wot.wtTable.bordersHolder = bordersHolder;\n this.wot.wtTable.spreader.appendChild(bordersHolder);\n }\n bordersHolder.appendChild(this.main);\n }\n\n /**\n * Create multiple selector handler for mobile devices\n */\n\n }, {\n key: 'createMultipleSelectorHandles',\n value: function createMultipleSelectorHandles() {\n this.selectionHandles = {\n topLeft: document.createElement('DIV'),\n topLeftHitArea: document.createElement('DIV'),\n bottomRight: document.createElement('DIV'),\n bottomRightHitArea: document.createElement('DIV')\n };\n var width = 10;\n var hitAreaWidth = 40;\n\n this.selectionHandles.topLeft.className = 'topLeftSelectionHandle';\n this.selectionHandles.topLeftHitArea.className = 'topLeftSelectionHandle-HitArea';\n this.selectionHandles.bottomRight.className = 'bottomRightSelectionHandle';\n this.selectionHandles.bottomRightHitArea.className = 'bottomRightSelectionHandle-HitArea';\n\n this.selectionHandles.styles = {\n topLeft: this.selectionHandles.topLeft.style,\n topLeftHitArea: this.selectionHandles.topLeftHitArea.style,\n bottomRight: this.selectionHandles.bottomRight.style,\n bottomRightHitArea: this.selectionHandles.bottomRightHitArea.style\n };\n\n var hitAreaStyle = {\n position: 'absolute',\n height: hitAreaWidth + 'px',\n width: hitAreaWidth + 'px',\n 'border-radius': parseInt(hitAreaWidth / 1.5, 10) + 'px'\n };\n\n for (var prop in hitAreaStyle) {\n if ((0, _object.hasOwnProperty)(hitAreaStyle, prop)) {\n this.selectionHandles.styles.bottomRightHitArea[prop] = hitAreaStyle[prop];\n this.selectionHandles.styles.topLeftHitArea[prop] = hitAreaStyle[prop];\n }\n }\n\n var handleStyle = {\n position: 'absolute',\n height: width + 'px',\n width: width + 'px',\n 'border-radius': parseInt(width / 1.5, 10) + 'px',\n background: '#F5F5FF',\n border: '1px solid #4285c8'\n };\n\n for (var _prop in handleStyle) {\n if ((0, _object.hasOwnProperty)(handleStyle, _prop)) {\n this.selectionHandles.styles.bottomRight[_prop] = handleStyle[_prop];\n this.selectionHandles.styles.topLeft[_prop] = handleStyle[_prop];\n }\n }\n this.main.appendChild(this.selectionHandles.topLeft);\n this.main.appendChild(this.selectionHandles.bottomRight);\n this.main.appendChild(this.selectionHandles.topLeftHitArea);\n this.main.appendChild(this.selectionHandles.bottomRightHitArea);\n }\n }, {\n key: 'isPartRange',\n value: function isPartRange(row, col) {\n var areaSelection = this.wot.selections.createOrGetArea();\n\n if (areaSelection.cellRange) {\n if (row !== areaSelection.cellRange.to.row || col !== areaSelection.cellRange.to.col) {\n return true;\n }\n }\n\n return false;\n }\n }, {\n key: 'updateMultipleSelectionHandlesPosition',\n value: function updateMultipleSelectionHandlesPosition(row, col, top, left, width, height) {\n var handleWidth = parseInt(this.selectionHandles.styles.topLeft.width, 10);\n var hitAreaWidth = parseInt(this.selectionHandles.styles.topLeftHitArea.width, 10);\n\n this.selectionHandles.styles.topLeft.top = parseInt(top - handleWidth, 10) + 'px';\n this.selectionHandles.styles.topLeft.left = parseInt(left - handleWidth, 10) + 'px';\n\n this.selectionHandles.styles.topLeftHitArea.top = parseInt(top - hitAreaWidth / 4 * 3, 10) + 'px';\n this.selectionHandles.styles.topLeftHitArea.left = parseInt(left - hitAreaWidth / 4 * 3, 10) + 'px';\n\n this.selectionHandles.styles.bottomRight.top = parseInt(top + height, 10) + 'px';\n this.selectionHandles.styles.bottomRight.left = parseInt(left + width, 10) + 'px';\n\n this.selectionHandles.styles.bottomRightHitArea.top = parseInt(top + height - hitAreaWidth / 4, 10) + 'px';\n this.selectionHandles.styles.bottomRightHitArea.left = parseInt(left + width - hitAreaWidth / 4, 10) + 'px';\n\n if (this.settings.border.cornerVisible && this.settings.border.cornerVisible()) {\n this.selectionHandles.styles.topLeft.display = 'block';\n this.selectionHandles.styles.topLeftHitArea.display = 'block';\n\n if (this.isPartRange(row, col)) {\n this.selectionHandles.styles.bottomRight.display = 'none';\n this.selectionHandles.styles.bottomRightHitArea.display = 'none';\n } else {\n this.selectionHandles.styles.bottomRight.display = 'block';\n this.selectionHandles.styles.bottomRightHitArea.display = 'block';\n }\n } else {\n this.selectionHandles.styles.topLeft.display = 'none';\n this.selectionHandles.styles.bottomRight.display = 'none';\n this.selectionHandles.styles.topLeftHitArea.display = 'none';\n this.selectionHandles.styles.bottomRightHitArea.display = 'none';\n }\n\n if (row === this.wot.wtSettings.getSetting('fixedRowsTop') || col === this.wot.wtSettings.getSetting('fixedColumnsLeft')) {\n this.selectionHandles.styles.topLeft.zIndex = '9999';\n this.selectionHandles.styles.topLeftHitArea.zIndex = '9999';\n } else {\n this.selectionHandles.styles.topLeft.zIndex = '';\n this.selectionHandles.styles.topLeftHitArea.zIndex = '';\n }\n }\n\n /**\n * Show border around one or many cells\n *\n * @param {Array} corners\n */\n\n }, {\n key: 'appear',\n value: function appear(corners) {\n if (this.disabled) {\n return;\n }\n\n var fromRow = void 0;\n var toRow = void 0;\n var fromColumn = void 0;\n var toColumn = void 0;\n\n var rowsCount = this.wot.wtTable.getRenderedRowsCount();\n\n for (var i = 0; i < rowsCount; i += 1) {\n var s = this.wot.wtTable.rowFilter.renderedToSource(i);\n\n if (s >= corners[0] && s <= corners[2]) {\n fromRow = s;\n break;\n }\n }\n\n for (var _i = rowsCount - 1; _i >= 0; _i -= 1) {\n var _s = this.wot.wtTable.rowFilter.renderedToSource(_i);\n\n if (_s >= corners[0] && _s <= corners[2]) {\n toRow = _s;\n break;\n }\n }\n\n var columnsCount = this.wot.wtTable.getRenderedColumnsCount();\n\n for (var _i2 = 0; _i2 < columnsCount; _i2 += 1) {\n var _s2 = this.wot.wtTable.columnFilter.renderedToSource(_i2);\n\n if (_s2 >= corners[1] && _s2 <= corners[3]) {\n fromColumn = _s2;\n break;\n }\n }\n\n for (var _i3 = columnsCount - 1; _i3 >= 0; _i3 -= 1) {\n var _s3 = this.wot.wtTable.columnFilter.renderedToSource(_i3);\n\n if (_s3 >= corners[1] && _s3 <= corners[3]) {\n toColumn = _s3;\n break;\n }\n }\n if (fromRow === void 0 || fromColumn === void 0) {\n this.disappear();\n\n return;\n }\n var fromTD = this.wot.wtTable.getCell(new _coords2.default(fromRow, fromColumn));\n var isMultiple = fromRow !== toRow || fromColumn !== toColumn;\n var toTD = isMultiple ? this.wot.wtTable.getCell(new _coords2.default(toRow, toColumn)) : fromTD;\n var fromOffset = (0, _element.offset)(fromTD);\n var toOffset = isMultiple ? (0, _element.offset)(toTD) : fromOffset;\n var containerOffset = (0, _element.offset)(this.wot.wtTable.TABLE);\n var minTop = fromOffset.top;\n var minLeft = fromOffset.left;\n\n var left = minLeft - containerOffset.left - 1;\n var width = toOffset.left + (0, _element.outerWidth)(toTD) - minLeft;\n\n if (this.isEntireColumnSelected(fromRow, toRow)) {\n var modifiedValues = this.getDimensionsFromHeader('columns', fromColumn, toColumn, containerOffset);\n var fromTH = null;\n\n if (modifiedValues) {\n var _modifiedValues = _slicedToArray(modifiedValues, 3);\n\n fromTH = _modifiedValues[0];\n left = _modifiedValues[1];\n width = _modifiedValues[2];\n }\n\n if (fromTH) {\n fromTD = fromTH;\n }\n }\n\n var top = minTop - containerOffset.top - 1;\n var height = toOffset.top + (0, _element.outerHeight)(toTD) - minTop;\n\n if (this.isEntireRowSelected(fromColumn, toColumn)) {\n var _modifiedValues2 = this.getDimensionsFromHeader('rows', fromRow, toRow, containerOffset);\n var _fromTH = null;\n\n if (_modifiedValues2) {\n var _modifiedValues3 = _slicedToArray(_modifiedValues2, 3);\n\n _fromTH = _modifiedValues3[0];\n top = _modifiedValues3[1];\n height = _modifiedValues3[2];\n }\n\n if (_fromTH) {\n fromTD = _fromTH;\n }\n }\n\n var style = (0, _element.getComputedStyle)(fromTD);\n\n if (parseInt(style.borderTopWidth, 10) > 0) {\n top += 1;\n height = height > 0 ? height - 1 : 0;\n }\n if (parseInt(style.borderLeftWidth, 10) > 0) {\n left += 1;\n width = width > 0 ? width - 1 : 0;\n }\n\n this.topStyle.top = top + 'px';\n this.topStyle.left = left + 'px';\n this.topStyle.width = width + 'px';\n this.topStyle.display = 'block';\n\n this.leftStyle.top = top + 'px';\n this.leftStyle.left = left + 'px';\n this.leftStyle.height = height + 'px';\n this.leftStyle.display = 'block';\n\n var delta = Math.floor(this.settings.border.width / 2);\n\n this.bottomStyle.top = top + height - delta + 'px';\n this.bottomStyle.left = left + 'px';\n this.bottomStyle.width = width + 'px';\n this.bottomStyle.display = 'block';\n\n this.rightStyle.top = top + 'px';\n this.rightStyle.left = left + width - delta + 'px';\n this.rightStyle.height = height + 1 + 'px';\n this.rightStyle.display = 'block';\n\n var cornerVisibleSetting = this.settings.border.cornerVisible;\n cornerVisibleSetting = typeof cornerVisibleSetting === 'function' ? cornerVisibleSetting(this.settings.layerLevel) : cornerVisibleSetting;\n\n var hookResult = this.wot.getSetting('onModifyGetCellCoords', toRow, toColumn);\n var checkRow = toRow,\n checkCol = toColumn;\n\n\n if (hookResult && Array.isArray(hookResult)) {\n var _hookResult = _slicedToArray(hookResult, 4);\n\n checkRow = _hookResult[2];\n checkCol = _hookResult[3];\n }\n\n if ((0, _browser.isMobileBrowser)() || !cornerVisibleSetting || this.isPartRange(checkRow, checkCol)) {\n this.cornerStyle.display = 'none';\n } else {\n this.cornerStyle.top = top + height - 4 + 'px';\n this.cornerStyle.left = left + width - 4 + 'px';\n this.cornerStyle.borderRightWidth = this.cornerDefaultStyle.borderWidth;\n this.cornerStyle.width = this.cornerDefaultStyle.width;\n\n // Hide the fill handle, so the possible further adjustments won't force unneeded scrollbars.\n this.cornerStyle.display = 'none';\n\n var trimmingContainer = (0, _element.getTrimmingContainer)(this.wot.wtTable.TABLE);\n var trimToWindow = trimmingContainer === window;\n\n if (trimToWindow) {\n trimmingContainer = document.documentElement;\n }\n\n if (toColumn === this.wot.getSetting('totalColumns') - 1) {\n var toTdOffsetLeft = trimToWindow ? toTD.getBoundingClientRect().left : toTD.offsetLeft;\n var cornerRightEdge = toTdOffsetLeft + (0, _element.outerWidth)(toTD) + parseInt(this.cornerDefaultStyle.width, 10) / 2;\n var cornerOverlappingContainer = cornerRightEdge >= (0, _element.innerWidth)(trimmingContainer);\n\n if (cornerOverlappingContainer) {\n this.cornerStyle.left = Math.floor(left + width - 3 - parseInt(this.cornerDefaultStyle.width, 10) / 2) + 'px';\n this.cornerStyle.borderRightWidth = 0;\n }\n }\n\n if (toRow === this.wot.getSetting('totalRows') - 1) {\n var toTdOffsetTop = trimToWindow ? toTD.getBoundingClientRect().top : toTD.offsetTop;\n var cornerBottomEdge = toTdOffsetTop + (0, _element.outerHeight)(toTD) + parseInt(this.cornerDefaultStyle.height, 10) / 2;\n var _cornerOverlappingContainer = cornerBottomEdge >= (0, _element.innerHeight)(trimmingContainer);\n\n if (_cornerOverlappingContainer) {\n this.cornerStyle.top = Math.floor(top + height - 3 - parseInt(this.cornerDefaultStyle.height, 10) / 2) + 'px';\n this.cornerStyle.borderBottomWidth = 0;\n }\n }\n\n this.cornerStyle.display = 'block';\n }\n\n if ((0, _browser.isMobileBrowser)()) {\n this.updateMultipleSelectionHandlesPosition(toRow, toColumn, top, left, width, height);\n }\n }\n\n /**\n * Check whether an entire column of cells is selected.\n *\n * @private\n * @param {Number} startRowIndex Start row index.\n * @param {Number} endRowIndex End row index.\n */\n\n }, {\n key: 'isEntireColumnSelected',\n value: function isEntireColumnSelected(startRowIndex, endRowIndex) {\n return startRowIndex === this.wot.wtTable.getFirstRenderedRow() && endRowIndex === this.wot.wtTable.getLastRenderedRow();\n }\n\n /**\n * Check whether an entire row of cells is selected.\n *\n * @private\n * @param {Number} startColumnIndex Start column index.\n * @param {Number} endColumnIndex End column index.\n */\n\n }, {\n key: 'isEntireRowSelected',\n value: function isEntireRowSelected(startColumnIndex, endColumnIndex) {\n return startColumnIndex === this.wot.wtTable.getFirstRenderedColumn() && endColumnIndex === this.wot.wtTable.getLastRenderedColumn();\n }\n\n /**\n * Get left/top index and width/height depending on the `direction` provided.\n *\n * @private\n * @param {String} direction `rows` or `columns`, defines if an entire column or row is selected.\n * @param {Number} fromIndex Start index of the selection.\n * @param {Number} toIndex End index of the selection.\n * @param {Number} containerOffset offset of the container.\n * @return {Array|Boolean} Returns an array of [headerElement, left, width] or [headerElement, top, height], depending on `direction` (`false` in case of an error getting the headers).\n */\n\n }, {\n key: 'getDimensionsFromHeader',\n value: function getDimensionsFromHeader(direction, fromIndex, toIndex, containerOffset) {\n var _this3 = this;\n\n var rootHotElement = this.wot.wtTable.wtRootElement.parentNode;\n var getHeaderFn = null;\n var dimensionFn = null;\n var entireSelectionClassname = null;\n var index = null;\n var dimension = null;\n var dimensionProperty = null;\n var startHeader = null;\n var endHeader = null;\n\n switch (direction) {\n case 'rows':\n getHeaderFn = function getHeaderFn() {\n var _wot$wtTable;\n\n return (_wot$wtTable = _this3.wot.wtTable).getRowHeader.apply(_wot$wtTable, arguments);\n };\n dimensionFn = function dimensionFn() {\n return _element.outerHeight.apply(undefined, arguments);\n };\n entireSelectionClassname = 'ht__selection--rows';\n dimensionProperty = 'top';\n\n break;\n\n case 'columns':\n getHeaderFn = function getHeaderFn() {\n var _wot$wtTable2;\n\n return (_wot$wtTable2 = _this3.wot.wtTable).getColumnHeader.apply(_wot$wtTable2, arguments);\n };\n dimensionFn = function dimensionFn() {\n return _element.outerWidth.apply(undefined, arguments);\n };\n entireSelectionClassname = 'ht__selection--columns';\n dimensionProperty = 'left';\n break;\n default:\n }\n\n if (rootHotElement.className.includes(entireSelectionClassname)) {\n var columnHeaderLevelCount = this.wot.getSetting('columnHeaders').length;\n\n startHeader = getHeaderFn(fromIndex, columnHeaderLevelCount - 1);\n endHeader = getHeaderFn(toIndex, columnHeaderLevelCount - 1);\n\n if (!startHeader || !endHeader) {\n return false;\n }\n\n var startHeaderOffset = (0, _element.offset)(startHeader);\n var endOffset = (0, _element.offset)(endHeader);\n\n if (startHeader && endHeader) {\n index = startHeaderOffset[dimensionProperty] - containerOffset[dimensionProperty] - 1;\n dimension = endOffset[dimensionProperty] + dimensionFn(endHeader) - startHeaderOffset[dimensionProperty];\n }\n\n return [startHeader, index, dimension];\n }\n\n return false;\n }\n\n /**\n * Change border style.\n *\n * @private\n * @param {String} borderElement Coordinate where add/remove border: top, right, bottom, left.\n */\n\n }, {\n key: 'changeBorderStyle',\n value: function changeBorderStyle(borderElement, border) {\n var style = this[borderElement].style;\n var borderStyle = border[borderElement];\n\n if (!borderStyle || borderStyle.hide) {\n (0, _element.addClass)(this[borderElement], 'hidden');\n } else {\n if ((0, _element.hasClass)(this[borderElement], 'hidden')) {\n (0, _element.removeClass)(this[borderElement], 'hidden');\n }\n\n style.backgroundColor = borderStyle.color;\n\n if (borderElement === 'top' || borderElement === 'bottom') {\n style.height = borderStyle.width + 'px';\n }\n\n if (borderElement === 'right' || borderElement === 'left') {\n style.width = borderStyle.width + 'px';\n }\n }\n }\n\n /**\n * Change border style to default.\n *\n * @private\n * @param {HTMLElement} position\n */\n\n }, {\n key: 'changeBorderToDefaultStyle',\n value: function changeBorderToDefaultStyle(position) {\n var defaultBorder = {\n width: 1,\n color: '#000'\n };\n var style = this[position].style;\n\n style.backgroundColor = defaultBorder.color;\n style.width = defaultBorder.width + 'px';\n style.height = defaultBorder.width + 'px';\n }\n\n /**\n * Toggle class 'hidden' to element.\n *\n * @private\n * @param {String} borderElement Coordinate where add/remove border: top, right, bottom, left.\n * @return {Boolean}\n */\n\n }, {\n key: 'toggleHiddenClass',\n value: function toggleHiddenClass(borderElement, remove) {\n this.changeBorderToDefaultStyle(borderElement);\n\n if (remove) {\n (0, _element.addClass)(this[borderElement], 'hidden');\n } else {\n (0, _element.removeClass)(this[borderElement], 'hidden');\n }\n }\n\n /**\n * Hide border\n */\n\n }, {\n key: 'disappear',\n value: function disappear() {\n this.topStyle.display = 'none';\n this.leftStyle.display = 'none';\n this.bottomStyle.display = 'none';\n this.rightStyle.display = 'none';\n this.cornerStyle.display = 'none';\n\n if ((0, _browser.isMobileBrowser)()) {\n this.selectionHandles.styles.topLeft.display = 'none';\n this.selectionHandles.styles.bottomRight.display = 'none';\n }\n }\n }]);\n\n return Border;\n}();\n\nexports.default = Border;\n\n/***/ }),\n/* 190 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _unicode = __webpack_require__(21);\n\nvar _mixed = __webpack_require__(11);\n\nvar _string = __webpack_require__(33);\n\nvar _array = __webpack_require__(2);\n\nvar _element = __webpack_require__(0);\n\nvar _handsontableEditor = __webpack_require__(191);\n\nvar _handsontableEditor2 = _interopRequireDefault(_handsontableEditor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar AutocompleteEditor = _handsontableEditor2.default.prototype.extend();\n\n/**\n * @private\n * @editor AutocompleteEditor\n * @class AutocompleteEditor\n * @dependencies HandsontableEditor\n */\nAutocompleteEditor.prototype.init = function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _handsontableEditor2.default.prototype.init.apply(this, args);\n this.query = null;\n this.strippedChoices = [];\n this.rawChoices = [];\n};\n\nAutocompleteEditor.prototype.getValue = function () {\n var _this2 = this;\n\n var selectedValue = this.rawChoices.find(function (value) {\n var strippedValue = _this2.stripValueIfNeeded(value);\n\n return strippedValue === _this2.TEXTAREA.value;\n });\n\n if ((0, _mixed.isDefined)(selectedValue)) {\n return selectedValue;\n }\n\n return this.TEXTAREA.value;\n};\n\nAutocompleteEditor.prototype.createElements = function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _handsontableEditor2.default.prototype.createElements.apply(this, args);\n\n (0, _element.addClass)(this.htContainer, 'autocompleteEditor');\n (0, _element.addClass)(this.htContainer, window.navigator.platform.indexOf('Mac') === -1 ? '' : 'htMacScroll');\n};\n\nvar skipOne = false;\nfunction onBeforeKeyDown(event) {\n skipOne = false;\n var editor = this.getActiveEditor();\n\n if ((0, _unicode.isPrintableChar)(event.keyCode) || event.keyCode === _unicode.KEY_CODES.BACKSPACE || event.keyCode === _unicode.KEY_CODES.DELETE || event.keyCode === _unicode.KEY_CODES.INSERT) {\n var timeOffset = 0;\n\n // on ctl+c / cmd+c don't update suggestion list\n if (event.keyCode === _unicode.KEY_CODES.C && (event.ctrlKey || event.metaKey)) {\n return;\n }\n if (!editor.isOpened()) {\n timeOffset += 10;\n }\n\n if (editor.htEditor) {\n editor.instance._registerTimeout(function () {\n editor.queryChoices(editor.TEXTAREA.value);\n skipOne = true;\n }, timeOffset);\n }\n }\n}\n\nAutocompleteEditor.prototype.prepare = function () {\n this.instance.addHook('beforeKeyDown', onBeforeKeyDown);\n\n for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n _handsontableEditor2.default.prototype.prepare.apply(this, args);\n};\n\nAutocompleteEditor.prototype.open = function () {\n // Ugly fix for handsontable which grab window object for autocomplete scroll listener instead table element.\n this.TEXTAREA_PARENT.style.overflow = 'auto';\n\n for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n _handsontableEditor2.default.prototype.open.apply(this, args);\n this.TEXTAREA_PARENT.style.overflow = '';\n\n var choicesListHot = this.htEditor.getInstance();\n var _this = this;\n var trimDropdown = this.cellProperties.trimDropdown === void 0 ? true : this.cellProperties.trimDropdown;\n\n this.showEditableElement();\n this.focus();\n\n choicesListHot.updateSettings({\n colWidths: trimDropdown ? [(0, _element.outerWidth)(this.TEXTAREA) - 2] : void 0,\n width: trimDropdown ? (0, _element.outerWidth)(this.TEXTAREA) + (0, _element.getScrollbarWidth)() + 2 : void 0,\n afterRenderer: function afterRenderer(TD, row, col, prop, value) {\n var _this$cellProperties = _this.cellProperties,\n filteringCaseSensitive = _this$cellProperties.filteringCaseSensitive,\n allowHtml = _this$cellProperties.allowHtml;\n\n var indexOfMatch = void 0;\n var match = void 0;\n\n value = (0, _mixed.stringify)(value);\n\n if (value && !allowHtml) {\n indexOfMatch = filteringCaseSensitive === true ? value.indexOf(this.query) : value.toLowerCase().indexOf(_this.query.toLowerCase());\n\n if (indexOfMatch !== -1) {\n match = value.substr(indexOfMatch, _this.query.length);\n value = value.replace(match, '<strong>' + match + '</strong>');\n }\n }\n TD.innerHTML = value;\n },\n\n autoColumnSize: true,\n modifyColWidth: function modifyColWidth(width, col) {\n // workaround for <strong> text overlapping the dropdown, not really accurate\n var autoWidths = this.getPlugin('autoColumnSize').widths;\n\n if (autoWidths[col]) {\n width = autoWidths[col];\n }\n\n return trimDropdown ? width : width + 15;\n }\n });\n\n // Add additional space for autocomplete holder\n this.htEditor.view.wt.wtTable.holder.parentNode.style['padding-right'] = (0, _element.getScrollbarWidth)() + 2 + 'px';\n\n if (skipOne) {\n skipOne = false;\n }\n\n _this.instance._registerTimeout(function () {\n _this.queryChoices(_this.TEXTAREA.value);\n });\n};\n\nAutocompleteEditor.prototype.queryChoices = function (query) {\n var _this3 = this;\n\n this.query = query;\n var source = this.cellProperties.source;\n\n if (typeof source === 'function') {\n source.call(this.cellProperties, query, function (choices) {\n _this3.rawChoices = choices;\n _this3.updateChoicesList(_this3.stripValuesIfNeeded(choices));\n });\n } else if (Array.isArray(source)) {\n this.rawChoices = source;\n this.updateChoicesList(this.stripValuesIfNeeded(source));\n } else {\n this.updateChoicesList([]);\n }\n};\n\nAutocompleteEditor.prototype.updateChoicesList = function (choices) {\n var pos = (0, _element.getCaretPosition)(this.TEXTAREA);\n var endPos = (0, _element.getSelectionEndPosition)(this.TEXTAREA);\n var sortByRelevanceSetting = this.cellProperties.sortByRelevance;\n var filterSetting = this.cellProperties.filter;\n var orderByRelevance = null;\n var highlightIndex = null;\n\n if (sortByRelevanceSetting) {\n orderByRelevance = AutocompleteEditor.sortByRelevance(this.stripValueIfNeeded(this.getValue()), choices, this.cellProperties.filteringCaseSensitive);\n }\n var orderByRelevanceLength = Array.isArray(orderByRelevance) ? orderByRelevance.length : 0;\n\n if (filterSetting === false) {\n if (orderByRelevanceLength) {\n highlightIndex = orderByRelevance[0];\n }\n } else {\n var sorted = [];\n\n for (var i = 0, choicesCount = choices.length; i < choicesCount; i++) {\n if (sortByRelevanceSetting && orderByRelevanceLength <= i) {\n break;\n }\n if (orderByRelevanceLength) {\n sorted.push(choices[orderByRelevance[i]]);\n } else {\n sorted.push(choices[i]);\n }\n }\n\n highlightIndex = 0;\n choices = sorted;\n }\n\n this.strippedChoices = choices;\n this.htEditor.loadData((0, _array.pivot)([choices]));\n\n this.updateDropdownHeight();\n\n this.flipDropdownIfNeeded();\n\n if (this.cellProperties.strict === true) {\n this.highlightBestMatchingChoice(highlightIndex);\n }\n\n this.instance.listen(false);\n\n (0, _element.setCaretPosition)(this.TEXTAREA, pos, pos === endPos ? void 0 : endPos);\n};\n\nAutocompleteEditor.prototype.flipDropdownIfNeeded = function () {\n var textareaOffset = (0, _element.offset)(this.TEXTAREA);\n var textareaHeight = (0, _element.outerHeight)(this.TEXTAREA);\n var dropdownHeight = this.getDropdownHeight();\n var trimmingContainer = (0, _element.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE);\n var trimmingContainerScrollTop = trimmingContainer.scrollTop;\n var headersHeight = (0, _element.outerHeight)(this.instance.view.wt.wtTable.THEAD);\n var containerOffset = {\n row: 0,\n col: 0\n };\n\n if (trimmingContainer !== window) {\n containerOffset = (0, _element.offset)(trimmingContainer);\n }\n\n var spaceAbove = textareaOffset.top - containerOffset.top - headersHeight + trimmingContainerScrollTop;\n var spaceBelow = trimmingContainer.scrollHeight - spaceAbove - headersHeight - textareaHeight;\n var flipNeeded = dropdownHeight > spaceBelow && spaceAbove > spaceBelow;\n\n if (flipNeeded) {\n this.flipDropdown(dropdownHeight);\n } else {\n this.unflipDropdown();\n }\n\n this.limitDropdownIfNeeded(flipNeeded ? spaceAbove : spaceBelow, dropdownHeight);\n\n return flipNeeded;\n};\n\nAutocompleteEditor.prototype.limitDropdownIfNeeded = function (spaceAvailable, dropdownHeight) {\n if (dropdownHeight > spaceAvailable) {\n var tempHeight = 0;\n var i = 0;\n var lastRowHeight = 0;\n var height = null;\n\n do {\n lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view.wt.wtSettings.settings.defaultRowHeight;\n tempHeight += lastRowHeight;\n i++;\n } while (tempHeight < spaceAvailable);\n\n height = tempHeight - lastRowHeight;\n\n if (this.htEditor.flipped) {\n this.htEditor.rootElement.style.top = parseInt(this.htEditor.rootElement.style.top, 10) + dropdownHeight - height + 'px';\n }\n\n this.setDropdownHeight(tempHeight - lastRowHeight);\n }\n};\n\nAutocompleteEditor.prototype.flipDropdown = function (dropdownHeight) {\n var dropdownStyle = this.htEditor.rootElement.style;\n\n dropdownStyle.position = 'absolute';\n dropdownStyle.top = -dropdownHeight + 'px';\n\n this.htEditor.flipped = true;\n};\n\nAutocompleteEditor.prototype.unflipDropdown = function () {\n var dropdownStyle = this.htEditor.rootElement.style;\n\n if (dropdownStyle.position === 'absolute') {\n dropdownStyle.position = '';\n dropdownStyle.top = '';\n }\n\n this.htEditor.flipped = void 0;\n};\n\nAutocompleteEditor.prototype.updateDropdownHeight = function () {\n var currentDropdownWidth = this.htEditor.getColWidth(0) + (0, _element.getScrollbarWidth)() + 2;\n var trimDropdown = this.cellProperties.trimDropdown;\n\n this.htEditor.updateSettings({\n height: this.getDropdownHeight(),\n width: trimDropdown ? void 0 : currentDropdownWidth\n });\n\n this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer();\n};\n\nAutocompleteEditor.prototype.setDropdownHeight = function (height) {\n this.htEditor.updateSettings({\n height: height\n });\n};\n\nAutocompleteEditor.prototype.finishEditing = function (restoreOriginalValue) {\n if (!restoreOriginalValue) {\n this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);\n }\n\n for (var _len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n args[_key5 - 1] = arguments[_key5];\n }\n\n _handsontableEditor2.default.prototype.finishEditing.apply(this, [restoreOriginalValue].concat(args));\n};\n\nAutocompleteEditor.prototype.highlightBestMatchingChoice = function (index) {\n if (typeof index === 'number') {\n this.htEditor.selectCell(index, 0, void 0, void 0, void 0, false);\n } else {\n this.htEditor.deselectCell();\n }\n};\n\n/**\n * Filters and sorts by relevance\n * @param value\n * @param choices\n * @param caseSensitive\n * @returns {Array} array of indexes in original choices array\n */\nAutocompleteEditor.sortByRelevance = function (value, choices, caseSensitive) {\n var choicesRelevance = [];\n var currentItem = void 0;\n var valueLength = value.length;\n var valueIndex = void 0;\n var charsLeft = void 0;\n var result = [];\n var i = void 0;\n var choicesCount = choices.length;\n\n if (valueLength === 0) {\n for (i = 0; i < choicesCount; i++) {\n result.push(i);\n }\n return result;\n }\n\n for (i = 0; i < choicesCount; i++) {\n currentItem = (0, _string.stripTags)((0, _mixed.stringify)(choices[i]));\n\n if (caseSensitive) {\n valueIndex = currentItem.indexOf(value);\n } else {\n valueIndex = currentItem.toLowerCase().indexOf(value.toLowerCase());\n }\n\n if (valueIndex !== -1) {\n charsLeft = currentItem.length - valueIndex - valueLength;\n\n choicesRelevance.push({\n baseIndex: i,\n index: valueIndex,\n charsLeft: charsLeft,\n value: currentItem\n });\n }\n }\n\n choicesRelevance.sort(function (a, b) {\n\n if (b.index === -1) {\n return -1;\n }\n if (a.index === -1) {\n return 1;\n }\n\n if (a.index < b.index) {\n return -1;\n } else if (b.index < a.index) {\n return 1;\n } else if (a.index === b.index) {\n if (a.charsLeft < b.charsLeft) {\n return -1;\n } else if (a.charsLeft > b.charsLeft) {\n return 1;\n }\n }\n\n return 0;\n });\n\n for (i = 0, choicesCount = choicesRelevance.length; i < choicesCount; i++) {\n result.push(choicesRelevance[i].baseIndex);\n }\n\n return result;\n};\n\nAutocompleteEditor.prototype.getDropdownHeight = function () {\n var firstRowHeight = this.htEditor.getInstance().getRowHeight(0) || 23;\n var visibleRows = this.cellProperties.visibleRows;\n\n return this.strippedChoices.length >= visibleRows ? visibleRows * firstRowHeight : this.strippedChoices.length * firstRowHeight + 8;\n};\n\nAutocompleteEditor.prototype.stripValueIfNeeded = function (value) {\n return this.stripValuesIfNeeded([value])[0];\n};\n\nAutocompleteEditor.prototype.stripValuesIfNeeded = function (values) {\n var allowHtml = this.cellProperties.allowHtml;\n\n\n var stringifiedValues = (0, _array.arrayMap)(values, function (value) {\n return (0, _mixed.stringify)(value);\n });\n var strippedValues = (0, _array.arrayMap)(stringifiedValues, function (value) {\n return allowHtml ? value : (0, _string.stripTags)(value);\n });\n\n return strippedValues;\n};\n\nAutocompleteEditor.prototype.allowKeyEventPropagation = function (keyCode) {\n var selectedRange = this.htEditor.getSelectedRangeLast();\n\n var selected = { row: selectedRange ? selectedRange.from.row : -1 };\n var allowed = false;\n\n if (keyCode === _unicode.KEY_CODES.ARROW_DOWN && selected.row > 0 && selected.row < this.htEditor.countRows() - 1) {\n allowed = true;\n }\n if (keyCode === _unicode.KEY_CODES.ARROW_UP && selected.row > -1) {\n allowed = true;\n }\n\n return allowed;\n};\n\nAutocompleteEditor.prototype.discardEditor = function () {\n for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n _handsontableEditor2.default.prototype.discardEditor.apply(this, args);\n\n this.instance.view.render();\n};\n\nexports.default = AutocompleteEditor;\n\n/***/ }),\n/* 191 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _unicode = __webpack_require__(21);\n\nvar _object = __webpack_require__(1);\n\nvar _element = __webpack_require__(0);\n\nvar _event = __webpack_require__(13);\n\nvar _textEditor = __webpack_require__(59);\n\nvar _textEditor2 = _interopRequireDefault(_textEditor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar HandsontableEditor = _textEditor2.default.prototype.extend();\n\n/**\n * @private\n * @editor HandsontableEditor\n * @class HandsontableEditor\n * @dependencies TextEditor\n */\nHandsontableEditor.prototype.createElements = function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _textEditor2.default.prototype.createElements.apply(this, args);\n\n var DIV = document.createElement('DIV');\n DIV.className = 'handsontableEditor';\n this.TEXTAREA_PARENT.appendChild(DIV);\n\n this.htContainer = DIV;\n this.assignHooks();\n};\n\nHandsontableEditor.prototype.prepare = function (td, row, col, prop, value, cellProperties) {\n for (var _len2 = arguments.length, args = Array(_len2 > 6 ? _len2 - 6 : 0), _key2 = 6; _key2 < _len2; _key2++) {\n args[_key2 - 6] = arguments[_key2];\n }\n\n _textEditor2.default.prototype.prepare.apply(this, [td, row, col, prop, value, cellProperties].concat(args));\n\n var parent = this;\n var options = {\n startRows: 0,\n startCols: 0,\n minRows: 0,\n minCols: 0,\n className: 'listbox',\n copyPaste: false,\n autoColumnSize: false,\n autoRowSize: false,\n readOnly: true,\n fillHandle: false,\n autoWrapCol: false,\n autoWrapRow: false,\n afterOnCellMouseDown: function afterOnCellMouseDown(_, coords) {\n var sourceValue = this.getSourceData(coords.row, coords.col);\n\n // if the value is undefined then it means we don't want to set the value\n if (sourceValue !== void 0) {\n parent.setValue(sourceValue);\n }\n parent.instance.destroyEditor();\n }\n };\n\n if (this.cellProperties.handsontable) {\n (0, _object.extend)(options, cellProperties.handsontable);\n }\n this.htOptions = options;\n};\n\nvar onBeforeKeyDown = function onBeforeKeyDown(event) {\n if ((0, _event.isImmediatePropagationStopped)(event)) {\n return;\n }\n var editor = this.getActiveEditor();\n\n var innerHOT = editor.htEditor.getInstance();\n\n var rowToSelect = void 0;\n var selectedRow = void 0;\n\n if (event.keyCode === _unicode.KEY_CODES.ARROW_DOWN) {\n if (!innerHOT.getSelectedLast() && !innerHOT.flipped) {\n rowToSelect = 0;\n } else if (innerHOT.getSelectedLast()) {\n if (innerHOT.flipped) {\n rowToSelect = innerHOT.getSelectedLast()[0] + 1;\n } else if (!innerHOT.flipped) {\n var lastRow = innerHOT.countRows() - 1;\n selectedRow = innerHOT.getSelectedLast()[0];\n rowToSelect = Math.min(lastRow, selectedRow + 1);\n }\n }\n } else if (event.keyCode === _unicode.KEY_CODES.ARROW_UP) {\n if (!innerHOT.getSelectedLast() && innerHOT.flipped) {\n rowToSelect = innerHOT.countRows() - 1;\n } else if (innerHOT.getSelectedLast()) {\n if (innerHOT.flipped) {\n selectedRow = innerHOT.getSelectedLast()[0];\n rowToSelect = Math.max(0, selectedRow - 1);\n } else {\n selectedRow = innerHOT.getSelectedLast()[0];\n rowToSelect = selectedRow - 1;\n }\n }\n }\n\n if (rowToSelect !== void 0) {\n if (rowToSelect < 0 || innerHOT.flipped && rowToSelect > innerHOT.countRows() - 1) {\n innerHOT.deselectCell();\n } else {\n innerHOT.selectCell(rowToSelect, 0);\n }\n if (innerHOT.getData().length) {\n event.preventDefault();\n (0, _event.stopImmediatePropagation)(event);\n\n editor.instance.listen();\n editor.TEXTAREA.focus();\n }\n }\n};\n\nHandsontableEditor.prototype.open = function () {\n this.instance.addHook('beforeKeyDown', onBeforeKeyDown);\n\n for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n _textEditor2.default.prototype.open.apply(this, args);\n\n if (this.htEditor) {\n this.htEditor.destroy();\n }\n\n if (this.htContainer.style.display === 'none') {\n this.htContainer.style.display = '';\n }\n\n // Construct and initialise a new Handsontable\n this.htEditor = new this.instance.constructor(this.htContainer, this.htOptions);\n this.htEditor.init();\n this.htEditor.rootElement.style.display = '';\n\n if (this.cellProperties.strict) {\n this.htEditor.selectCell(0, 0);\n } else {\n this.htEditor.deselectCell();\n }\n\n (0, _element.setCaretPosition)(this.TEXTAREA, 0, this.TEXTAREA.value.length);\n};\n\nHandsontableEditor.prototype.close = function () {\n this.htEditor.rootElement.style.display = 'none';\n this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);\n\n for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n _textEditor2.default.prototype.close.apply(this, args);\n};\n\nHandsontableEditor.prototype.focus = function () {\n for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n _textEditor2.default.prototype.focus.apply(this, args);\n};\n\nHandsontableEditor.prototype.beginEditing = function () {\n var onBeginEditing = this.instance.getSettings().onBeginEditing;\n\n if (onBeginEditing && onBeginEditing() === false) {\n return;\n }\n\n for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n _textEditor2.default.prototype.beginEditing.apply(this, args);\n};\n\nHandsontableEditor.prototype.finishEditing = function () {\n if (this.htEditor && this.htEditor.isListening()) {\n // if focus is still in the HOT editor\n this.instance.listen(); // return the focus to the parent HOT instance\n }\n\n if (this.htEditor && this.htEditor.getSelectedLast()) {\n var value = this.htEditor.getInstance().getValue();\n\n if (value !== void 0) {\n // if the value is undefined then it means we don't want to set the value\n this.setValue(value);\n }\n }\n\n for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _textEditor2.default.prototype.finishEditing.apply(this, args);\n};\n\nHandsontableEditor.prototype.assignHooks = function () {\n var _this = this;\n\n this.instance.addHook('afterDestroy', function () {\n if (_this.htEditor) {\n _this.htEditor.destroy();\n }\n });\n};\n\nexports.default = HandsontableEditor;\n\n/***/ }),\n/* 192 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getNormalizedDate = getNormalizedDate;\n/* eslint-disable import/prefer-default-export */\n\n/**\n * Get normalized Date object for the ISO formatted date strings.\n * Natively, the date object parsed from a ISO 8601 string will be offsetted by the timezone difference, which may result in returning a wrong date.\n * See: Github issue #3338.\n *\n * @param {String} dateString String representing the date.\n * @returns {Date} The proper Date object.\n */\nfunction getNormalizedDate(dateString) {\n var nativeDate = new Date(dateString);\n\n // NaN if dateString is not in ISO format\n if (!isNaN(new Date(dateString + \"T00:00\").getDate())) {\n\n // Compensate timezone offset\n return new Date(nativeDate.getTime() + nativeDate.getTimezoneOffset() * 60000);\n }\n\n return nativeDate;\n}\n\n/***/ }),\n/* 193 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * SheetClip - Spreadsheet Clipboard Parser\n * version 0.2\n *\n * This tiny library transforms JavaScript arrays to strings that are pasteable by LibreOffice, OpenOffice,\n * Google Docs and Microsoft Excel.\n *\n * Copyright 2012, Marcin Warpechowski\n * Licensed under the MIT license.\n * http://github.com/warpech/sheetclip/\n */\n/*jslint white: true*/\n(function (global) {\n \"use strict\";\n\n function countQuotes(str) {\n return str.split('\"').length - 1;\n }\n\n var SheetClip = {\n /**\n * Decode spreadsheet string into array\n *\n * @param {String} str\n * @returns {Array}\n */\n parse: function parse(str) {\n var r,\n rLen,\n rows,\n arr = [],\n a = 0,\n c,\n cLen,\n multiline,\n last;\n\n rows = str.split('\\n');\n\n if (rows.length > 1 && rows[rows.length - 1] === '') {\n rows.pop();\n }\n for (r = 0, rLen = rows.length; r < rLen; r += 1) {\n rows[r] = rows[r].split('\\t');\n\n for (c = 0, cLen = rows[r].length; c < cLen; c += 1) {\n if (!arr[a]) {\n arr[a] = [];\n }\n if (multiline && c === 0) {\n last = arr[a].length - 1;\n arr[a][last] = arr[a][last] + '\\n' + rows[r][0];\n\n if (multiline && countQuotes(rows[r][0]) & 1) {\n //& 1 is a bitwise way of performing mod 2\n multiline = false;\n arr[a][last] = arr[a][last].substring(0, arr[a][last].length - 1).replace(/\"\"/g, '\"');\n }\n } else {\n if (c === cLen - 1 && rows[r][c].indexOf('\"') === 0 && countQuotes(rows[r][c]) & 1) {\n arr[a].push(rows[r][c].substring(1).replace(/\"\"/g, '\"'));\n multiline = true;\n } else {\n arr[a].push(rows[r][c].replace(/\"\"/g, '\"'));\n multiline = false;\n }\n }\n }\n if (!multiline) {\n a += 1;\n }\n }\n\n return arr;\n },\n\n /**\n * Encode array into valid spreadsheet string\n *\n * @param arr\n * @returns {String}\n */\n stringify: function stringify(arr) {\n var r,\n rLen,\n c,\n cLen,\n str = '',\n val;\n\n for (r = 0, rLen = arr.length; r < rLen; r += 1) {\n cLen = arr[r].length;\n\n for (c = 0; c < cLen; c += 1) {\n if (c > 0) {\n str += '\\t';\n }\n val = arr[r][c];\n\n if (typeof val === 'string') {\n if (val.indexOf('\\n') > -1) {\n str += '\"' + val.replace(/\"/g, '\"\"') + '\"';\n } else {\n str += val;\n }\n } else if (val === null || val === void 0) {\n // void 0 resolves to undefined\n str += '';\n } else {\n str += val;\n }\n }\n\n if (r !== rLen - 1) {\n str += '\\n';\n }\n }\n\n return str;\n }\n };\n\n if (true) {\n exports.parse = SheetClip.parse;\n exports.stringify = SheetClip.stringify;\n } else {}\n})(window);\n\n/***/ }),\n/* 194 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.mouseDown = mouseDown;\nexports.mouseOver = mouseOver;\nexports.handleMouseEvent = handleMouseEvent;\n\nvar _event = __webpack_require__(13);\n\nvar _src = __webpack_require__(4);\n\n/**\n * MouseDown handler.\n *\n * @param {Object} options\n * @param {Boolean} options.isShiftKey The flag which indicates if the shift key is pressed.\n * @param {Boolean} options.isLeftClick The flag which indicates if the left mouse button is pressed.\n * @param {Boolean} options.isRightClick The flag which indicates if the right mouse button is pressed.\n * @param {CellRange} options.coords The CellCoords object with defined visual coordinates.\n * @param {Selection} options.selection The Selection class instance.\n * @param {Object} options.controller An object with keys `row`, `column`, `cell` which indicate what\n * operation will be performed in later selection stages.\n */\nfunction mouseDown(_ref) {\n var isShiftKey = _ref.isShiftKey,\n isLeftClick = _ref.isLeftClick,\n isRightClick = _ref.isRightClick,\n coords = _ref.coords,\n selection = _ref.selection,\n controller = _ref.controller;\n\n var currentSelection = selection.isSelected() ? selection.getSelectedRange().current() : null;\n var selectedCorner = selection.isSelectedByCorner();\n var selectedRow = selection.isSelectedByRowHeader();\n\n if (isShiftKey && currentSelection) {\n if (coords.row >= 0 && coords.col >= 0 && !controller.cells) {\n selection.setRangeEnd(coords);\n } else if ((selectedCorner || selectedRow) && coords.row >= 0 && coords.col >= 0 && !controller.cells) {\n selection.setRangeEnd(new _src.CellCoords(coords.row, coords.col));\n } else if (selectedCorner && coords.row < 0 && !controller.column) {\n selection.setRangeEnd(new _src.CellCoords(currentSelection.to.row, coords.col));\n } else if (selectedRow && coords.col < 0 && !controller.row) {\n selection.setRangeEnd(new _src.CellCoords(coords.row, currentSelection.to.col));\n } else if ((!selectedCorner && !selectedRow && coords.col < 0 || selectedCorner && coords.col < 0) && !controller.row) {\n selection.selectRows(currentSelection.from.row, coords.row);\n } else if ((!selectedCorner && !selectedRow && coords.row < 0 || selectedRow && coords.row < 0) && !controller.column) {\n selection.selectColumns(currentSelection.from.col, coords.col);\n }\n } else {\n var newCoord = new _src.CellCoords(coords.row, coords.col);\n\n if (newCoord.row < 0) {\n newCoord.row = 0;\n }\n if (newCoord.col < 0) {\n newCoord.col = 0;\n }\n\n var allowRightClickSelection = !selection.inInSelection(newCoord);\n var performSelection = isLeftClick || isRightClick && allowRightClickSelection;\n\n // clicked row header and when some column was selected\n if (coords.row < 0 && coords.col >= 0 && !controller.column) {\n if (performSelection) {\n selection.selectColumns(coords.col);\n }\n\n // clicked column header and when some row was selected\n } else if (coords.col < 0 && coords.row >= 0 && !controller.row) {\n if (performSelection) {\n selection.selectRows(coords.row);\n }\n } else if (coords.col >= 0 && coords.row >= 0 && !controller.cells) {\n if (performSelection) {\n selection.setRangeStart(coords);\n }\n } else if (coords.col < 0 && coords.row < 0) {\n selection.setRangeStart(coords);\n }\n }\n}\n\n/**\n * MouseOver handler.\n *\n * @param {Object} options\n * @param {Boolean} options.isLeftClick\n * @param {CellRange} options.coords The CellCoords object with defined visual coordinates.\n * @param {Selection} options.selection The Selection class instance.\n * @param {Object} options.controller An object with keys `row`, `column`, `cell` which indicate what\n * operation will be performed in later selection stages.\n */\nfunction mouseOver(_ref2) {\n var isLeftClick = _ref2.isLeftClick,\n coords = _ref2.coords,\n selection = _ref2.selection,\n controller = _ref2.controller;\n\n if (!isLeftClick) {\n return;\n }\n\n var selectedRow = selection.isSelectedByRowHeader();\n var selectedColumn = selection.isSelectedByColumnHeader();\n var countCols = selection.tableProps.countCols();\n var countRows = selection.tableProps.countRows();\n\n if (selectedColumn && !controller.column) {\n selection.setRangeEnd(new _src.CellCoords(countRows - 1, coords.col));\n } else if (selectedRow && !controller.row) {\n selection.setRangeEnd(new _src.CellCoords(coords.row, countCols - 1));\n } else if (!controller.cell) {\n selection.setRangeEnd(coords);\n }\n}\n\nvar handlers = new Map([['mousedown', mouseDown], ['mouseover', mouseOver], ['touchstart', mouseDown]]);\n\n/**\n * Mouse handler for selection functionality.\n *\n * @param {Event} event An native event to handle.\n * @param {Object} options\n * @param {CellRange} options.coords The CellCoords object with defined visual coordinates.\n * @param {Selection} options.selection The Selection class instance.\n * @param {Object} options.controller An object with keys `row`, `column`, `cell` which indicate what\n * operation will be performed in later selection stages.\n */\nfunction handleMouseEvent(event, _ref3) {\n var coords = _ref3.coords,\n selection = _ref3.selection,\n controller = _ref3.controller;\n\n handlers.get(event.type)({\n coords: coords,\n selection: selection,\n controller: controller,\n isShiftKey: event.shiftKey,\n isLeftClick: (0, _event.isLeftClick)(event) || event.type === 'touchstart',\n isRightClick: (0, _event.isRightClick)(event)\n });\n}\n\n/***/ }),\n/* 195 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.RecordTranslator = undefined;\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\nexports.registerIdentity = registerIdentity;\nexports.getTranslator = getTranslator;\n\nvar _core = __webpack_require__(90);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _object = __webpack_require__(1);\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\n/**\n * @class RecordTranslator\n * @util\n */\nvar RecordTranslator = function () {\n function RecordTranslator(hot) {\n _classCallCheck(this, RecordTranslator);\n\n this.hot = hot;\n }\n\n /**\n * Translate physical row index into visual.\n *\n * @param {Number} row Physical row index.\n * @returns {Number} Returns visual row index.\n */\n\n\n _createClass(RecordTranslator, [{\n key: 'toVisualRow',\n value: function toVisualRow(row) {\n return this.hot.runHooks('unmodifyRow', row);\n }\n\n /**\n * Translate physical column index into visual.\n *\n * @param {Number} column Physical column index.\n * @returns {Number} Returns visual column index.\n */\n\n }, {\n key: 'toVisualColumn',\n value: function toVisualColumn(column) {\n return this.hot.runHooks('unmodifyCol', column);\n }\n\n /**\n * Translate physical coordinates into visual. Can be passed as separate 2 arguments (row, column) or as an object in first\n * argument with `row` and `column` keys.\n *\n * @param {Number|Object} row Physical coordinates or row index.\n * @param {Number} [column] Physical column index.\n * @returns {Object|Array} Returns an object with visual records or an array if coordinates passed as separate arguments.\n */\n\n }, {\n key: 'toVisual',\n value: function toVisual(row, column) {\n var result = void 0;\n\n if ((0, _object.isObject)(row)) {\n result = {\n row: this.toVisualRow(row.row),\n column: this.toVisualColumn(row.column)\n };\n } else {\n result = [this.toVisualRow(row), this.toVisualColumn(column)];\n }\n\n return result;\n }\n\n /**\n * Translate visual row index into physical.\n *\n * @param {Number} row Visual row index.\n * @returns {Number} Returns physical row index.\n */\n\n }, {\n key: 'toPhysicalRow',\n value: function toPhysicalRow(row) {\n return this.hot.runHooks('modifyRow', row);\n }\n\n /**\n * Translate visual column index into physical.\n *\n * @param {Number} column Visual column index.\n * @returns {Number} Returns physical column index.\n */\n\n }, {\n key: 'toPhysicalColumn',\n value: function toPhysicalColumn(column) {\n return this.hot.runHooks('modifyCol', column);\n }\n\n /**\n * Translate visual coordinates into physical. Can be passed as separate 2 arguments (row, column) or as an object in first\n * argument with `row` and `column` keys.\n *\n * @param {Number|Object} row Visual coordinates or row index.\n * @param {Number} [column] Visual column index.\n * @returns {Object|Array} Returns an object with physical records or an array if coordinates passed as separate arguments.\n */\n\n }, {\n key: 'toPhysical',\n value: function toPhysical(row, column) {\n var result = void 0;\n\n if ((0, _object.isObject)(row)) {\n result = {\n row: this.toPhysicalRow(row.row),\n column: this.toPhysicalColumn(row.column)\n };\n } else {\n result = [this.toPhysicalRow(row), this.toPhysicalColumn(column)];\n }\n\n return result;\n }\n }]);\n\n return RecordTranslator;\n}();\n\nexports.RecordTranslator = RecordTranslator;\n\n\nvar identities = new WeakMap();\nvar translatorSingletons = new WeakMap();\n\nfunction registerIdentity(identity, hot) {\n identities.set(identity, hot);\n}\n\nfunction getTranslator(identity) {\n var singleton = void 0;\n\n if (!(identity instanceof _core2.default)) {\n if (!identities.has(identity)) {\n throw Error('Record translator was not registered for this object identity');\n }\n identity = identities.get(identity);\n }\n if (translatorSingletons.has(identity)) {\n singleton = translatorSingletons.get(identity);\n } else {\n singleton = new RecordTranslator(identity);\n translatorSingletons.set(identity, singleton);\n }\n\n return singleton;\n}\n\n/***/ }),\n/* 196 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.registerAsRootInstance = registerAsRootInstance;\nexports.hasValidParameter = hasValidParameter;\nexports.isRootInstance = isRootInstance;\nvar holder = exports.holder = new WeakMap();\n\nvar rootInstanceSymbol = exports.rootInstanceSymbol = Symbol('rootInstance');\n\n/**\n * Register an object as a root instance.\n *\n * @param {Object} object An object to associate with root instance flag.\n */\nfunction registerAsRootInstance(object) {\n holder.set(object, true);\n}\n\n/**\n * Check if the source of the root indication call is valid.\n *\n * @param {Symbol} rootSymbol A symbol as a source of truth.\n * @return {Boolean}\n */\nfunction hasValidParameter(rootSymbol) {\n return rootSymbol === rootInstanceSymbol;\n}\n\n/**\n * Check if passed an object was flagged as a root instance.\n *\n * @param {Object} object An object to check.\n * @return {Boolean}\n */\nfunction isRootInstance(object) {\n return holder.has(object);\n}\n\n/***/ }),\n/* 197 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _mixed = __webpack_require__(11);\n\nvar _object = __webpack_require__(1);\n\n/**\n * @alias Options\n * @constructor\n * @description\n\n * ## Constructor options\n *\n * Constructor options are applied using an object literal passed as a second argument to the Handsontable constructor.\n *\n * ```js\n * const container = document.getElementById('example');\n * const hot = new Handsontable(container, {\n * data: myArray,\n * width: 400,\n * height: 300\n * });\n * ```\n *\n * ---\n * ## Cascading configuration\n *\n * Handsontable is using *Cascading Configuration*, which is a fast way to provide configuration options\n * for the entire table, including its columns and particular cells.\n *\n * Consider the following example:\n * ```js\n * const container = document.getElementById('example');\n * const hot = new Handsontable(container, {\n * readOnly: true,\n * columns: [\n * {readOnly: false},\n * {},\n * {}\n * ],\n * cells: function(row, col, prop) {\n * var cellProperties = {};\n *\n * if (row === 0 && col === 0) {\n * cellProperties.readOnly = true;\n * }\n *\n * return cellProperties;\n * }\n * });\n * ```\n *\n * The above notation will result in all TDs being *read only*, except for first column TDs which will be *editable*, except for the TD in top left corner which will still be *read only*.\n *\n * ### The Cascading Configuration model\n *\n * ##### 1. Constructor\n *\n * Configuration options that are provided using first-level `handsontable(container, {option: \"value\"})` and `updateSettings` method.\n *\n * ##### 2. Columns\n *\n * Configuration options that are provided using second-level object `handsontable(container, {columns: {option: \"value\"}]})`\n *\n * ##### 3. Cells\n *\n * Configuration options that are provided using third-level function `handsontable(container, {cells: function: (row, col, prop){ }})`\n *\n * ---\n * ## Architecture performance\n *\n * The Cascading Configuration model is based on prototypical inheritance. It is much faster and memory efficient\n * compared to the previous model that used jQuery extend. See: [http://jsperf.com/extending-settings](http://jsperf.com/extending-settings).\n *\n * ---\n * __Important notice:__ In order for the data separation to work properly, make sure that each instance of Handsontable has a unique `id`.\n */\nfunction DefaultSettings() {}\n\nDefaultSettings.prototype = {\n /**\n * License key for commercial version of Handsontable.\n *\n * @pro\n * @type {String}\n * @default 'trial'\n * @example\n * ```js\n * licenseKey: '00000-00000-00000-00000-00000',\n * ```\n */\n licenseKey: 'trial',\n\n /**\n * @description\n * Initial data source that will be bound to the data grid __by reference__ (editing data grid alters the data source).\n * Can be declared as an array of arrays, array of objects or a function.\n *\n * See [Understanding binding as reference](https://docs.handsontable.com/tutorial-data-binding.html#page-reference).\n *\n * @type {Array[]|Object[]|Function}\n * @default undefined\n * @example\n * ```js\n * // as an array of arrays\n * data: [\n * ['A', 'B', 'C'],\n * ['D', 'E', 'F'],\n * ['G', 'H', 'J']\n * ]\n *\n * // as an array of objects\n * data: [\n * {id: 1, name: 'Ted Right'},\n * {id: 2, name: 'Frank Honest'},\n * {id: 3, name: 'Joan Well'},\n * {id: 4, name: 'Gail Polite'},\n * {id: 5, name: 'Michael Fair'},\n * ]\n * ```\n */\n data: void 0,\n\n /**\n * @description\n * Defines the structure of a new row when data source is an array of objects.\n *\n * See [data-schema](https://docs.handsontable.com/tutorial-data-sources.html#page-data-schema) for more options.\n *\n * @type {Object}\n * @default undefined\n *\n * @example\n * ```\n * // with data schema we can start with an empty table\n * data: null,\n * dataSchema: {id: null, name: {first: null, last: null}, address: null},\n * colHeaders: ['ID', 'First Name', 'Last Name', 'Address'],\n * columns: [\n * {data: 'id'},\n * {data: 'name.first'},\n * {data: 'name.last'},\n * {data: 'address'}\n * ],\n * startRows: 5,\n * minSpareRows: 1\n * ```\n */\n dataSchema: void 0,\n\n /**\n * Width of the grid. Can be a value or a function that returns a value.\n *\n * @type {Number|Function}\n * @default undefined\n *\n * @example\n * ```\n * // as a number\n * width: 500,\n *\n * // as a function\n * width: function() {\n * return 500;\n * },\n * ```\n */\n width: void 0,\n\n /**\n * Height of the grid. Can be a number or a function that returns a number.\n *\n * @type {Number|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // as a number\n * height: 500,\n *\n * // as a function\n * height: function() {\n * return 500;\n * },\n * ```\n */\n height: void 0,\n\n /**\n * @description\n * Initial number of rows.\n *\n * __Note:__ This option only has effect in Handsontable constructor and only if `data` option is not provided\n *\n * @type {Number}\n * @default 5\n *\n * @example\n * ```js\n * // start with 15 empty rows\n * startRows: 15,\n * ```\n */\n startRows: 5,\n\n /**\n * @description\n * Initial number of columns.\n *\n * __Note:__ This option only has effect in Handsontable constructor and only if `data` option is not provided\n *\n * @type {Number}\n * @default 5\n *\n * @example\n * ```js\n * // start with 15 empty columns\n * startCols: 15,\n * ```\n */\n startCols: 5,\n\n /**\n * Setting `true` or `false` will enable or disable the default row headers (1, 2, 3).\n * You can also define an array `['One', 'Two', 'Three', ...]` or a function to define the headers.\n * If a function is set the index of the row is passed as a parameter.\n *\n * @type {Boolean|String[]|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean\n * rowHeaders: true,\n *\n * // as an array\n * rowHeaders: ['1', '2', '3'],\n *\n * // as a function\n * rowHeaders: function(index) {\n * return index + ': AB';\n * },\n * ```\n */\n rowHeaders: void 0,\n\n /**\n * Setting `true` or `false` will enable or disable the default column headers (A, B, C).\n * You can also define an array `['One', 'Two', 'Three', ...]` or a function to define the headers.\n * If a function is set, then the index of the column is passed as a parameter.\n *\n * @type {Boolean|String[]|Function}\n * @default null\n *\n * @example\n * ```js\n * // as a boolean\n * colHeaders: true,\n *\n * // as an array\n * colHeaders: ['A', 'B', 'C'],\n *\n * // as a function\n * colHeaders: function(index) {\n * return index + ': AB';\n * },\n * ```\n */\n colHeaders: null,\n\n /**\n * Defines column widths in pixels. Accepts number, string (that will be converted to a number), array of numbers\n * (if you want to define column width separately for each column) or a function (if you want to set column width\n * dynamically on each render).\n *\n * @type {Number|Number[]|String|String[]|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // as a number, for each column.\n * colWidths: 100,\n *\n * // as a string, for each column.\n * colWidths: '100px',\n *\n * // as an array, based on visual indexes. The rest of the columns have a default width.\n * colWidths: [100, 120, 90],\n *\n * // as a function, based on visual indexes.\n * colWidths: function(index) {\n * return index * 10;\n * },\n * ```\n */\n colWidths: void 0,\n\n /**\n * Defines row heights in pixels. Accepts numbers, strings (that will be converted into a number), array of numbers\n * (if you want to define row height separately for each row) or a function (if you want to set row height dynamically\n * on each render).\n *\n * If the {@link ManualRowResize} or {@link AutoRowSize} plugins are enabled, this is also the minimum height that can\n * be set via either of those two plugins.\n *\n * Height should be equal or greater than 23px. Table is rendered incorrectly if height is less than 23px.\n *\n * @type {Number|Number[]|String|String[]|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // as a number, the same for all rows\n * rowHeights: 100,\n *\n * // as a string, the same for all row\n * rowHeights: '100px',\n *\n * // as an array, based on visual indexes. The rest of the rows have a default height\n * rowHeights: [100, 120, 90],\n *\n * // as a function, based on visual indexes\n * rowHeights: function(index) {\n * return index * 10;\n * },\n * ```\n */\n rowHeights: void 0,\n\n /**\n * @description\n * Defines the cell properties and data binding for certain columns.\n *\n * __Note:__ Using this option sets a fixed number of columns (options `startCols`, `minCols`, `maxCols` will be ignored).\n *\n * See [documentation -> datasources.html](https://docs.handsontable.com/tutorial-data-sources.html#page-nested) for examples.\n *\n * @type {Object[]|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // as an array of objects\n * // order of the objects in array is representation of physical indexes.\n * columns: [\n * {\n * // column options for the first column\n * type: 'numeric',\n * numericFormat: {\n * pattern: '0,0.00 $'\n * }\n * },\n * {\n * // column options for the second column\n * type: 'text',\n * readOnly: true\n * }\n * ],\n *\n * // or as a function, based on physical indexes\n * columns: function(index) {\n * return {\n * type: index > 0 ? 'numeric' : 'text',\n * readOnly: index < 1\n * }\n * }\n * ```\n */\n columns: void 0,\n\n /**\n * @description\n * Defines the cell properties for given `row`, `col`, `prop` coordinates. Any constructor or column option may be\n * overwritten for a particular cell (row/column combination) using the `cells` property in the Handsontable constructor.\n *\n * __Note:__ Parameters `row` and `col` always represent __physical indexes__. Example below show how to execute\n * operations based on the __visual__ representation of Handsontable.\n *\n * Possible values of `prop`:\n * - property name for column's data source object, when dataset is an [array of objects](/tutorial-data-sources.html#page-object)\n * - the same number as `col`, when dataset is an [array of arrays](/tutorial-data-sources.html#page-array)\n *\n * @type {Function}\n * @default undefined\n *\n * @example\n * ```js\n * cells: function(row, column, prop) {\n * const cellProperties = {};\n * const visualRowIndex = this.instance.toVisualRow(row);\n * const visualColIndex = this.instance.toVisualColumn(column);\n *\n * if (visualRowIndex === 0 && visualColIndex === 0) {\n * cellProperties.readOnly = true;\n * }\n *\n * return cellProperties;\n * },\n * ```\n */\n cells: void 0,\n\n /**\n * Any constructor or column option may be overwritten for a particular cell (row/column combination), using `cell`\n * array passed to the Handsontable constructor.\n *\n * @type {Array[]}\n * @default []\n *\n * @example\n * ```js\n * // make cell with coordinates (0, 0) read only\n * cell: [\n * {\n * row: 0,\n * col: 0,\n * readOnly: true\n * }\n * ],\n * ```\n */\n cell: [],\n\n /**\n * @description\n * If `true`, enables the {@link Comments} plugin, which enables an option to apply cell comments through the context menu\n * (configurable with context menu keys `commentsAddEdit`, `commentsRemove`).\n *\n * To initialize Handsontable with predefined comments, provide cell coordinates and comment text values in a form of\n * an array.\n *\n * See [Comments](https://docs.handsontable.com/demo-comments_.html) demo for examples.\n *\n * @type {Boolean|Object[]}\n * @default false\n *\n * @example\n * ```js\n * // enable comments plugin\n * comments: true,\n *\n * // or\n * // enable comments plugin and add predefined comments\n * comments: [\n * {\n * row: 1,\n * col: 1,\n * comment: {\n * value: \"Test comment\"\n * }\n * }\n * ],\n * ```\n */\n comments: false,\n\n /**\n * @description\n * If `true`, enables the {@link CustomBorders} plugin, which enables an option to apply custom borders through the context\n * menu (configurable with context menu key `borders`). To initialize Handsontable with predefined custom borders,\n * provide cell coordinates and border styles in a form of an array.\n *\n * See [Custom Borders](https://docs.handsontable.com/demo-custom-borders.html) demo for examples.\n *\n * @type {Boolean|Object[]}\n * @default false\n *\n * @example\n * ```js\n * // enable custom borders\n * customBorders: true,\n *\n * // or\n * // enable custom borders and start with predefined left border\n * customBorders: [\n * {\n * range: {\n * from: {\n * row: 1,\n * col: 1\n * },\n * to: {\n * row: 3,\n * col: 4\n * }\n * },\n * left: {\n * width: 2,\n * color: 'red'\n * },\n * right: {},\n * top: {},\n * bottom: {}\n * }\n * ],\n *\n * // or\n * customBorders: [\n * {\n * row: 2,\n * col: 2,\n * left: {\n * width: 2,\n * color: 'red'\n * },\n * right: {\n * width: 1,\n * color: 'green'\n * },\n * top: '',\n * bottom: ''\n * }\n * ],\n * ```\n */\n customBorders: false,\n\n /**\n * Minimum number of rows. At least that number of rows will be created during initialization.\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // set minimum table size to 10 rows\n * minRows: 10,\n * ```\n */\n minRows: 0,\n\n /**\n * Minimum number of columns. At least that number of columns will be created during initialization.\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // set minimum table size to 10 columns\n * minCols: 10,\n * ```\n */\n minCols: 0,\n\n /**\n * Maximum number of rows. If set to a value lower than the initial row count, the data will be trimmed to the provided\n * value as the number of rows.\n *\n * @type {Number}\n * @default Infinity\n *\n * @example\n * ```js\n * // limit table size to maximum 300 rows\n * maxRows: 300,\n * ```\n */\n maxRows: Infinity,\n\n /**\n * Maximum number of cols. If set to a value lower than the initial col count, the data will be trimmed to the provided\n * value as the number of cols.\n *\n * @type {Number}\n * @default Infinity\n *\n * @example\n * ```js\n * // limit table size to maximum 300 columns\n * maxCols: 300,\n * ```\n */\n maxCols: Infinity,\n\n /**\n * When set to 1 (or more), Handsontable will add a new row at the end of grid if there are no more empty rows.\n * (unless the number of rows exceeds the one set in the `maxRows` property)\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // always add 3 empty rows at the table end\n * minSpareRows: 3,\n * ```\n */\n minSpareRows: 0,\n\n /**\n * When set to 1 (or more), Handsontable will add a new column at the end of grid if there are no more empty columns.\n * (unless the number of rows exceeds the one set in the `maxCols` property)\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // always add 3 empty columns at the table end\n * minSpareCols: 3,\n * ```\n */\n minSpareCols: 0,\n\n /**\n * If set to `false`, there won't be an option to insert new rows in the Context Menu.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // hide \"Insert row above\" and \"Insert row below\" options from the Context Menu\n * allowInsertRow: false,\n * ```\n */\n allowInsertRow: true,\n\n /**\n * If set to `false`, there won't be an option to insert new columns in the Context Menu.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // hide \"Insert column left\" and \"Insert column right\" options from the Context Menu\n * allowInsertColumn: false,\n * ```\n */\n allowInsertColumn: true,\n\n /**\n * If set to `false`, there won't be an option to remove rows in the Context Menu.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // hide \"Remove row\" option from the Context Menu\n * allowRemoveRow: false,\n * ```\n */\n allowRemoveRow: true,\n\n /**\n * If set to `false`, there won't be an option to remove columns in the Context Menu.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // hide \"Remove column\" option from the Context Menu\n * allowRemoveColumn: false,\n * ```\n */\n allowRemoveColumn: true,\n\n /**\n * @description\n * Defines how the table selection reacts. The selection support three different behaviors defined as:\n * * `'single'` Only a single cell can be selected.\n * * `'range'` Multiple cells within a single range can be selected.\n * * `'multiple'` Multiple ranges of cells can be selected.\n *\n * To see how to interact with selection by getting selected data or change styles of the selected cells go to\n * [https://docs.handsontable.com/demo-selecting-ranges.html](https://docs.handsontable.com/demo-selecting-ranges.html).\n *\n * @type {String}\n * @default 'multiple'\n *\n * @example\n * ```js\n * // only one cell can be selected at a time\n * selectionMode: 'single',\n * ```\n */\n selectionMode: 'multiple',\n\n /**\n * Enables the fill handle (drag-down and copy-down) functionality, which shows a small rectangle in bottom\n * right corner of the selected area, that let's you expand values to the adjacent cells.\n *\n * Setting to `true` enables the fillHandle plugin. Possible values: `true` (to enable in all directions),\n * `'vertical'` or `'horizontal'` (to enable in one direction), `false` (to disable completely), an object with\n * options: `autoInsertRow`, `direction`.\n *\n * If `autoInsertRow` option is `true`, fill-handler will create new rows till it reaches the last row.\n * It is enabled by default.\n *\n * @type {Boolean|String|Object}\n * @default true\n *\n * @example\n * ```js\n * // enable plugin in all directions and with autoInsertRow as true\n * fillHandle: true,\n *\n * // or\n * // enable plugin in vertical direction and with autoInsertRow as true\n * fillHandle: 'vertical',\n *\n * // or\n * fillHandle: {\n * // enable plugin in both directions and with autoInsertRow as false\n * autoInsertRow: false,\n * },\n *\n * // or\n * fillHandle: {\n * // enable plugin in vertical direction and with autoInsertRow as false\n * autoInsertRow: false,\n * direction: 'vertical'\n * },\n * ```\n */\n fillHandle: {\n autoInsertRow: false\n },\n\n /**\n * Allows to specify the number of fixed (or *frozen*) rows at the top of the table.\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // freeze the first 3 rows of the table.\n * fixedRowsTop: 3,\n * ```\n */\n fixedRowsTop: 0,\n\n /**\n * Allows to specify the number of fixed (or *frozen*) rows at the bottom of the table.\n *\n * @pro\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // freeze the last 3 rows of the table.\n * fixedRowsBottom: 3,\n * ```\n */\n fixedRowsBottom: 0,\n\n /**\n * Allows to specify the number of fixed (or *frozen*) columns on the left of the table.\n *\n * @type {Number}\n * @default 0\n *\n * @example\n * ```js\n * // freeze first 3 columns of the table.\n * fixedColumnsLeft: 3,\n * ```\n */\n fixedColumnsLeft: 0,\n\n /**\n * If `true`, mouse click outside the grid will deselect the current selection. Can be a function that takes the\n * click event target and returns a boolean.\n *\n * @type {Boolean|Function}\n * @default true\n *\n * @example\n * ```js\n * // don't clear current selection when mouse click was outside the grid\n * outsideClickDeselects: false,\n *\n * // or\n * outsideClickDeselects: function(event) {\n * return false;\n * }\n * ```\n */\n outsideClickDeselects: true,\n\n /**\n * If `true`, <kbd>ENTER</kbd> begins editing mode (like in Google Docs). If `false`, <kbd>ENTER</kbd> moves to next\n * row (like Excel) and adds a new row if necessary. <kbd>TAB</kbd> adds new column if necessary.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * enterBeginsEditing: false,\n * ```\n */\n enterBeginsEditing: true,\n\n /**\n * Defines the cursor movement after <kbd>ENTER</kbd> was pressed (<kbd>SHIFT</kbd> + <kbd>ENTER</kbd> uses a negative vector). Can\n * be an object or a function that returns an object. The event argument passed to the function is a DOM Event object\n * received after the <kbd>ENTER</kbd> key has been pressed. This event object can be used to check whether user pressed\n * <kbd>ENTER</kbd> or <kbd>SHIFT</kbd> + <kbd>ENTER</kbd>.\n *\n * @type {Object|Function}\n * @default {row: 1, col: 0}\n *\n * @example\n * ```js\n * // move selection diagonal by 1 cell in x and y axis\n * enterMoves: {row: 1, col: 1},\n * // or as a function\n * enterMoves: function(event) {\n * return {row: 1, col: 1};\n * },\n * ```\n */\n enterMoves: { row: 1, col: 0 },\n\n /**\n * Defines the cursor movement after <kbd>TAB</kbd> is pressed (<kbd>SHIFT</kbd> + <kbd>TAB</kbd> uses a negative vector). Can\n * be an object or a function that returns an object. The event argument passed to the function is a DOM Event object\n * received after the <kbd>TAB</kbd> key has been pressed. This event object can be used to check whether user pressed\n * <kbd>TAB</kbd> or <kbd>SHIFT</kbd> + <kbd>TAB</kbd>.\n *\n * @type {Object|Function}\n * @default {row: 0, col: 1}\n *\n * @example\n * ```js\n * // move selection 2 cells away after TAB pressed.\n * tabMoves: {row: 2, col: 2},\n * // or as a function\n * tabMoves: function(event) {\n * return {row: 2, col: 2};\n * },\n * ```\n */\n tabMoves: { row: 0, col: 1 },\n\n /**\n * If `true`, pressing <kbd>TAB</kbd> or right arrow in the last column will move to first column in next row.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // stop TAB key navigation on the last column\n * autoWrapRow: false,\n * ```\n */\n autoWrapRow: true,\n\n /**\n * If `true`, pressing <kbd>ENTER</kbd> or down arrow in the last row will move to the first row in the next column.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // stop ENTER key navigation on the last row\n * autoWrapCol: false,\n * ```\n */\n autoWrapCol: true,\n\n /**\n * @description\n * Turns on saving the state of column sorting, column positions and column sizes in local storage.\n *\n * You can save any sort of data in local storage to preserve table state between page reloads. In order to enable\n * data storage mechanism, `persistentState` option must be set to `true` (you can set it either during Handsontable\n * initialization or using the `updateSettings` method). When `persistentState` is enabled it exposes 3 hooks:\n *\n * __persistentStateSave__ (key: String, value: Mixed)\n *\n * * Saves value under given key in browser local storage.\n *\n * __persistentStateLoad__ (key: String, valuePlaceholder: Object)\n *\n * * Loads `value`, saved under given key, form browser local storage. The loaded `value` will be saved in\n * `valuePlaceholder.value` (this is due to specific behaviour of `Hooks.run()` method). If no value have\n * been saved under key `valuePlaceholder.value` will be `undefined`.\n *\n * __persistentStateReset__ (key: String)\n *\n * * Clears the value saved under `key`. If no `key` is given, all values associated with table will be cleared.\n *\n * __Note:__ The main reason behind using `persistentState` hooks rather than regular LocalStorage API is that it\n * ensures separation of data stored by multiple Handsontable instances. In other words, if you have two (or more)\n * instances of Handsontable on one page, data saved by one instance won't be accessible by the second instance.\n * Those two instances can store data under the same key and no data would be overwritten.\n *\n * __Important:__ In order for the data separation to work properly, make sure that each instance of Handsontable has a unique `id`.\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * // enable the persistent state plugin\n * persistentState: true,\n * ```\n */\n persistentState: void 0,\n\n /**\n * Class name for all visible rows in the current selection.\n *\n * @type {String}\n * @default undefined\n *\n * @example\n * ```js\n * // This will add a 'currentRow' class name to appropriate table cells.\n * currentRowClassName: 'currentRow',\n * ```\n */\n currentRowClassName: void 0,\n\n /**\n * Class name for all visible columns in the current selection.\n *\n * @type {String}\n * @default undefined\n *\n * @example\n * ```js\n * // This will add a 'currentColumn' class name to appropriate table cells.\n * currentColClassName: 'currentColumn',\n * ```\n */\n currentColClassName: void 0,\n\n /**\n * Class name for all visible headers in current selection.\n *\n * @type {String}\n * @default 'ht__highlight'\n *\n * @example\n * ```js\n * // This will add a 'ht__highlight' class name to appropriate table headers.\n * currentHeaderClassName: 'ht__highlight',\n * ```\n */\n currentHeaderClassName: 'ht__highlight',\n\n /**\n * Class name for all active headers in selections. The header will be marked with this class name\n * only when a whole column or row will be selected.\n *\n * @type {String}\n * @since 0.38.2\n * @default 'ht__active_highlight'\n *\n * @example\n * ```js\n * // this will add a 'ht__active_highlight' class name to appropriate table headers.\n * activeHeaderClassName: 'ht__active_highlight',\n * ```\n */\n activeHeaderClassName: 'ht__active_highlight',\n\n /**\n * Class name for the Handsontable container element.\n *\n * @type {String|String[]}\n * @default undefined\n *\n * @example\n * ```js\n * // set custom class for table container\n * className: 'your__class--name',\n *\n * // or\n * className: ['first-class-name', 'second-class-name'],\n * ```\n */\n className: void 0,\n\n /**\n * Class name for all tables inside container element.\n *\n * @type {String|String[]}\n * @default undefined\n *\n * @example\n * ```js\n * // set custom class for table element\n * tableClassName: 'your__class--name',\n *\n * // or\n * tableClassName: ['first-class-name', 'second-class-name'],\n * ```\n */\n tableClassName: void 0,\n\n /**\n * @description\n * Defines how the columns react, when the declared table width is different than the calculated sum of all column widths.\n * [See more](https://docs.handsontable.com/demo-stretching.html) mode. Possible values:\n * * `'none'` Disable stretching\n * * `'last'` Stretch only the last column\n * * `'all'` Stretch all the columns evenly\n *\n * @type {String}\n * @default 'none'\n *\n * @example\n * ```js\n * // fit table to the container\n * stretchH: 'all',\n * ```\n */\n stretchH: 'none',\n\n /**\n * Overwrites the default `isEmptyRow` method, which checks if row at the provided index is empty.\n *\n * @type {Function}\n * @param {Number} row Visual row index.\n * @returns {Boolean}\n *\n * @example\n * ```js\n * // define custom checks for empty row\n * isEmptyRow: function(row) {\n * ...\n * },\n * ```\n */\n isEmptyRow: function isEmptyRow(row) {\n var col = void 0;\n var colLen = void 0;\n var value = void 0;\n var meta = void 0;\n\n for (col = 0, colLen = this.countCols(); col < colLen; col++) {\n value = this.getDataAtCell(row, col);\n\n if (value !== '' && value !== null && (0, _mixed.isDefined)(value)) {\n if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {\n meta = this.getCellMeta(row, col);\n\n return (0, _object.isObjectEqual)(this.getSchema()[meta.prop], value);\n }\n return false;\n }\n }\n\n return true;\n },\n\n\n /**\n * Overwrites the default `isEmptyCol` method, which checks if column at the provided index is empty.\n *\n * @type {Function}\n * @param {Number} column Visual column index\n * @returns {Boolean}\n *\n * @example\n * ```js\n * // define custom checks for empty column\n * isEmptyCol: function(column) {\n * return false;\n * },\n * ```\n */\n isEmptyCol: function isEmptyCol(col) {\n var row = void 0;\n var rowLen = void 0;\n var value = void 0;\n\n for (row = 0, rowLen = this.countRows(); row < rowLen; row++) {\n value = this.getDataAtCell(row, col);\n\n if (value !== '' && value !== null && (0, _mixed.isDefined)(value)) {\n return false;\n }\n }\n\n return true;\n },\n\n\n /**\n * When set to `true`, the table is re-rendered when it is detected that it was made visible in DOM.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // don't rerender the table on visibility changes\n * observeDOMVisibility: false,\n * ```\n */\n observeDOMVisibility: true,\n\n /**\n * If set to `true`, Handsontable will accept values that were marked as invalid by the cell `validator`. It will\n * result with *invalid* cells being treated as *valid* (will save the *invalid* value into the Handsontable data source).\n * If set to `false`, Handsontable will *not* accept the invalid values and won't allow the user to close the editor.\n * This option will be particularly useful when used with the Autocomplete's `strict` mode.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // don't save the invalid values\n * allowInvalid: false,\n * ```\n */\n allowInvalid: true,\n\n /**\n * If set to `true`, Handsontable will accept values that are empty (`null`, `undefined` or `''`). If set to `false`,\n * Handsontable will *not* accept the empty values and mark cell as invalid.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // allow empty values for all cells (whole table)\n * allowEmpty: true,\n *\n * // or\n * columns: [\n * {\n * data: 'date',\n * dateFormat: 'DD/MM/YYYY',\n * // allow empty values only for the 'date' column\n * allowEmpty: true\n * }\n * ],\n * ```\n */\n allowEmpty: true,\n\n /**\n * CSS class name for cells that did not pass validation.\n *\n * @type {String}\n * @default 'htInvalid'\n *\n * @example\n * ```js\n * // set custom validation error class\n * invalidCellClassName: 'highlight--error',\n * ```\n */\n invalidCellClassName: 'htInvalid',\n\n /**\n * When set to an non-empty string, displayed as the cell content for empty cells. If a value of a different type is provided,\n * it will be stringified and applied as a string.\n *\n * @type {String}\n * @default undefined\n *\n * @example\n * ```js\n * // add custom placeholder content to empty cells\n * placeholder: 'Empty Cell',\n * ```\n */\n placeholder: void 0,\n\n /**\n * CSS class name for cells that have a placeholder in use.\n *\n * @type {String}\n * @default 'htPlaceholder'\n *\n * @example\n * ```js\n * // set custom placeholder class\n * placeholderCellClassName: 'has-placeholder',\n * ```\n */\n placeholderCellClassName: 'htPlaceholder',\n\n /**\n * CSS class name for read-only cells.\n *\n * @type {String}\n * @default 'htDimmed'\n *\n * @example\n * ```js\n * // set custom read-only class\n * readOnlyCellClassName: 'is-readOnly',\n * ```\n */\n readOnlyCellClassName: 'htDimmed',\n\n /**\n * @description\n * If a string is provided, it may be one of the following predefined values:\n * * `autocomplete`,\n * * `checkbox`,\n * * `html`,\n * * `numeric`,\n * * `password`.\n * * `text`.\n *\n * Or you can [register](https://docs.handsontable.com/demo-custom-renderers.html) the custom renderer under specified name and use its name as an alias in your\n * configuration.\n *\n * If a function is provided, it will receive the following arguments:\n * ```js\n * function(instance, TD, row, col, prop, value, cellProperties) {}\n * ```\n *\n * You can read more about custom renderes [in the documentation](https://docs.handsontable.com/demo-custom-renderers.html).\n *\n * @type {String|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // register custom renderer\n * Handsontable.renderers.registerRenderer('my.renderer', function(instance, TD, row, col, prop, value, cellProperties) {\n * TD.innerHTML = value;\n * });\n *\n * // use it for selected column:\n * columns: [\n * {\n * // as a string with the name of build in renderer\n * renderer: 'autocomplete',\n * editor: 'select'\n * },\n * {\n * // as an alias to custom renderer registered above\n * renderer: 'my.renderer'\n * },\n * {\n * // renderer as custom function\n * renderer: function(hotInstance, TD, row, col, prop, value, cellProperties) {\n * TD.style.color = 'blue';\n * TD.innerHTML = value;\n * }\n * }\n * ],\n * ```\n */\n renderer: void 0,\n\n /**\n * CSS class name added to the commented cells.\n *\n * @type {String}\n * @default 'htCommentCell'\n *\n * @example\n * ```js\n * // set custom class for commented cells\n * commentedCellClassName: 'has-comment',\n * ```\n */\n commentedCellClassName: 'htCommentCell',\n\n /**\n * If set to `true`, it enables the browser's native selection of a fragment of the text within a single cell, between\n * adjacent cells or in a whole table. If set to `'cell'`, it enables the possibility of selecting a fragment of the\n * text within a single cell's body.\n *\n * @type {Boolean|String}\n * @default false\n *\n * @example\n * ```js\n * // enable text selection within table\n * fragmentSelection: true,\n *\n * // or\n * // enable text selection within cells only\n * fragmentSelection: 'cell',\n * ```\n */\n fragmentSelection: false,\n\n /**\n * @description\n * Makes cell [read only](https://docs.handsontable.com/demo-read-only.html).\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * // set cell as read only\n * readOnly: true,\n * ```\n */\n readOnly: false,\n\n /**\n * @description\n * When added to a `column` property, it skips the column on paste and pastes the data on the next column to the right.\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * columns: [\n * {\n * // don't paste data to this column\n * skipColumnOnPaste: true\n * }\n * ],\n * ```\n */\n skipColumnOnPaste: false,\n\n /**\n * @description\n * Setting to `true` enables the {@link Search} plugin (see [demo](https://docs.handsontable.com/demo-search-for-values.html)).\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * // enable search plugin\n * search: true,\n *\n * // or\n * // as an object with detailed configuration\n * search: {\n * searchResultClass: 'customClass',\n * queryMethod: function(queryStr, value) {\n * ...\n * },\n * callback: function(instance, row, column, value, result) {\n * ...\n * }\n * }\n * ```\n */\n search: false,\n\n /**\n * @description\n * Shortcut to define the combination of the cell renderer, editor and validator for the column, cell or whole table.\n *\n * Possible values:\n * * [autocomplete](https://docs.handsontable.com/demo-autocomplete.html)\n * * [checkbox](https://docs.handsontable.com/demo-checkbox.html)\n * * [date](https://docs.handsontable.com/demo-date.html)\n * * [dropdown](https://docs.handsontable.com/demo-dropdown.html)\n * * [handsontable](https://docs.handsontable.com/demo-handsontable.html)\n * * [numeric](https://docs.handsontable.com/demo-numeric.html)\n * * [password](https://docs.handsontable.com/demo-password.html)\n * * text\n * * [time](https://docs.handsontable.com/demo-time.html)\n *\n * Or you can register the custom cell type under specified name and use\n * its name as an alias in your configuration.\n *\n * @type {String}\n * @default 'text'\n *\n * @example\n * ```js\n * // register custom cell type:\n * Handsontable.cellTypes.registerCellType('my.type', {\n * editor: MyEditorClass,\n * renderer: function(hot, td, row, col, prop, value, cellProperties) {\n * td.innerHTML = value;\n * },\n * validator: function(value, callback) {\n * callback(value === 'foo' ? true : false);\n * }\n * });\n *\n * // use it in column settings:\n * columns: [\n * {\n * type: 'text'\n * },\n * {\n * // an alias to custom type\n * type: 'my.type'\n * },\n * {\n * type: 'checkbox'\n * }\n * ],\n * ```\n */\n type: 'text',\n\n /**\n * @description\n * Makes a cell copyable (pressing <kbd>CTRL</kbd> + <kbd>C</kbd> on your keyboard moves its value to system clipboard).\n *\n * __Note:__ this setting is `false` by default for cells with type `password`.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * cells: [\n * {\n * cell: 0,\n * row: 0,\n * // cell with coordinates (0, 0) can't be copied\n * copyable: false,\n * }\n * ],\n * ```\n */\n copyable: true,\n\n /**\n * Defines the editor for the table/column/cell.\n *\n * If a string is provided, it may be one of the following predefined values:\n * * [autocomplete](https://docs.handsontable.com/demo-autocomplete.html)\n * * [checkbox](https://docs.handsontable.com/demo-checkbox.html)\n * * [date](https://docs.handsontable.com/demo-date.html)\n * * [dropdown](https://docs.handsontable.com/demo-dropdown.html)\n * * [handsontable](https://docs.handsontable.com/demo-handsontable.html)\n * * [mobile](https://docs.handsontable.com/demo-mobiles-and-tablets.html)\n * * [password](https://docs.handsontable.com/demo-password.html)\n * * [select](https://docs.handsontable.com/demo-select.html)\n * * text\n *\n * Or you can [register](https://docs.handsontable.com/tutorial-cell-editor.html#registering-an-editor) the custom editor under specified name and use its name as an alias in your\n * configuration.\n *\n * To disable cell editing completely set `editor` property to `false`.\n *\n * @type {String|Function|Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * // set editor for the first column\n * editor: 'select'\n * },\n * {\n * // disable editor for the second column\n * editor: false\n * }\n * ],\n * ```\n */\n editor: void 0,\n\n /**\n * Control number of choices for the autocomplete (or dropdown) typed cells. After exceeding it, a scrollbar for the\n * dropdown list of choices will appear.\n *\n * @type {Number}\n * @default 10\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'autocomplete',\n * // set autocomplete options list height\n * visibleRows: 15,\n * }\n * ],\n * ```\n */\n visibleRows: 10,\n\n /**\n * Makes autocomplete or dropdown width the same as the edited cell width. If `false` then editor will be scaled\n * according to its content.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'autocomplete',\n * // don't trim dropdown width with column width\n * trimDropdown: false,\n * }\n * ],\n * ```\n */\n trimDropdown: true,\n\n /**\n * Setting to `true` enables the debug mode, currently used to test the correctness of the row and column\n * header fixed positioning on a layer above the master table.\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * // enable debug mode\n * debug: true,\n * ```\n */\n debug: false,\n\n /**\n * When set to `true`, the text of the cell content is wrapped if it does not fit in the fixed column width.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * colWidths: 100,\n * columns: [\n * {\n * // fixed column width is set but don't wrap the content\n * wordWrap: false,\n * }\n * ],\n * ```\n */\n wordWrap: true,\n\n /**\n * CSS class name added to cells with cell meta `wordWrap: false`.\n *\n * @type {String}\n * @default 'htNoWrap'\n *\n * @example\n * ```js\n * // set custom class for cells which content won't be wrapped\n * noWordWrapClassName: 'is-noWrapCell',\n * ```\n */\n noWordWrapClassName: 'htNoWrap',\n\n /**\n * @description\n * Defines if the right-click context menu should be enabled. Context menu allows to create new row or column at any\n * place in the grid among [other features](https://docs.handsontable.com/demo-context-menu.html).\n * Possible values:\n * * `true` (to enable default options),\n * * `false` (to disable completely)\n * * an array of [predefined options](https://docs.handsontable.com/demo-context-menu.html#page-specific),\n * * an object [with defined structure](https://docs.handsontable.com/demo-context-menu.html#page-custom)\n *\n * See [the context menu demo](https://docs.handsontable.com/demo-context-menu.html) for examples.\n *\n * @type {Boolean|String[]|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean\n * contextMenu: true,\n *\n * // as an array\n * contextMenu: ['row_above', 'row_below', '--------', 'undo', 'redo'],\n *\n * // as an object (`name` attribute is required in the custom keys)\n * contextMenu: {\n * items: {\n * \"option1\": {\n * name: \"option1\"\n * },\n * \"option2\": {\n * name: \"option2\",\n * submenu: {\n * items: [\n * {\n * key: \"option2:suboption1\",\n * name: \"option2:suboption1\",\n * callback: function(key, options) {\n * ...\n * }\n * },\n * ...\n * ]\n * }\n * }\n * }\n * },\n * ```\n */\n contextMenu: void 0,\n\n /**\n * Disables or enables the copy/paste functionality.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // disable copy and paste\n * copyPaste: false,\n * ```\n */\n copyPaste: true,\n\n /**\n * If `true`, undo/redo functionality is enabled.\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * // enable undo and redo\n * undo: true,\n * ```\n */\n undo: void 0,\n\n /**\n * @description\n * Turns on [Column sorting](https://docs.handsontable.com/demo-sorting-data.html). Can be either a boolean (`true` / `false`) or an object with a declared sorting options:\n * * `column` - sorted column\n * * `sortOrder` - order in which column will be sorted\n * * `'asc'` = ascending\n * * `'desc'` = descending\n * * `'none'` = original order\n * * `sortEmptyCells` - how empty values should be handled\n * * `true` = the table sorts empty cells\n * * `false` = the table moves all empty cells to the end of the table\n *\n * @type {Boolean|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean\n * columnSorting: true,\n *\n * // as a object with initial order (sort ascending column at index 2)\n * columnSorting: {\n * column: 2,\n * sortOrder: 'asc',\n * sortEmptyCells: true\n * },\n * ```\n */\n columnSorting: void 0,\n\n /**\n * Turns on [Manual column move](https://docs.handsontable.com/demo-moving-rows-and-columns.html), if set to a boolean or define initial column order (as an array of column indexes).\n *\n * @type {Boolean|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean to enable column move\n * manualColumnMove: true,\n *\n * // as a array with initial order\n * // (move column index at 0 to 1 and move column index at 1 to 4)\n * manualColumnMove: [1, 4],\n * ```\n */\n manualColumnMove: void 0,\n\n /**\n * @description\n * Turns on [Manual column resize](https://docs.handsontable.com/demo-resizing.html), if set to a boolean or define initial column resized widths (an an array of widths).\n *\n * @type {Boolean|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean to enable column resize\n * manualColumnResize: true,\n *\n * // as a array with initial widths\n * // (column at 0 index has 40px and column at 1 index has 50px)\n * manualColumnResize: [40, 50],\n * ```\n */\n manualColumnResize: void 0,\n\n /**\n * @description\n * Turns on [Manual row move](https://docs.handsontable.com/demo-moving-rows-and-columns.html), if set to a boolean or define initial row order (as an array of row indexes).\n *\n * @type {Boolean|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean\n * manualRowMove: true,\n *\n * // as a array with initial order\n * // (move row index at 0 to 1 and move row index at 1 to 4)\n * manualRowMove: [1, 4],\n * ```\n */\n manualRowMove: void 0,\n\n /**\n * @description\n * Turns on [Manual row resize](https://docs.handsontable.com/demo-resizing.html), if set to a boolean or define initial row resized heights (as an array of heights).\n *\n * @type {Boolean|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // as a boolean to enable row resize\n * manualRowResize: true,\n *\n * // as an array to set initial heights\n * // (row at 0 index has 40px and row at 1 index has 50px)\n * manualRowResize: [40, 50],\n * ```\n */\n manualRowResize: void 0,\n\n /**\n * @description\n * If set to `true`, it enables a possibility to merge cells. If set to an array of objects, it merges the cells provided\n * in the objects (see the example below). More information on [the demo page](https://docs.handsontable.com/demo-merge-cells.html).\n *\n * @type {Boolean|Object[]}\n * @default false\n *\n * @example\n * ```js\n * // enables the mergeCells plugin\n * margeCells: true,\n *\n * // declares a list of merged sections\n * mergeCells: [\n * // rowspan and colspan properties declare the width and height of a merged section in cells\n * {row: 1, col: 1, rowspan: 3, colspan: 3},\n * {row: 3, col: 4, rowspan: 2, colspan: 2},\n * {row: 5, col: 6, rowspan: 3, colspan: 3}\n * ],\n * ```\n */\n mergeCells: false,\n\n /**\n * @description\n * Number of rows to be rendered outside of the visible part of the table. By default, it's set to `'auto'`, which\n * makes Handsontable to attempt to calculate the best offset performance-wise.\n *\n * You may test out different values to find the best one that works for your specific implementation.\n *\n * @type {Number|String}\n * @default 'auto'\n *\n * @example\n * ```js\n * viewportRowRenderingOffset: 70,\n * ```\n */\n viewportRowRenderingOffset: 'auto',\n\n /**\n * @description\n * Number of columns to be rendered outside of the visible part of the table. By default, it's set to `'auto'`, which\n * makes Handsontable try calculating the best offset performance-wise.\n *\n * You may experiment with the value to find the one that works best for your specific implementation.\n *\n * @type {Number|String}\n * @default 'auto'\n *\n * @example\n * ```js\n * viewportColumnRenderingOffset: 70,\n * ```\n */\n viewportColumnRenderingOffset: 'auto',\n\n /**\n * @description\n * A function, regular expression or a string, which will be used in the process of cell validation. If a function is\n * used, be sure to execute the callback argument with either `true` (`callback(true)`) if the validation passed\n * or with `false` (`callback(false)`), if the validation failed.\n *\n * __Note__, that `this` in the function points to the `cellProperties` object.\n *\n * If a string is provided, it may be one of the following predefined values:\n * * `autocomplete`,\n * * `date`,\n * * `numeric`,\n * * `time`.\n *\n * Or you can [register](https://docs.handsontable.com/demo-data-validation.html) the validator function under specified name and use its name as an alias in your\n * configuration.\n *\n * See more [in the demo](https://docs.handsontable.com/demo-data-validation.html).\n *\n * @type {Function|RegExp|String}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * // as a function\n * validator: function(value, callback) {\n * ...\n * }\n * },\n * {\n * // regular expression\n * validator: /^[0-9]$/\n * },\n * {\n * // as a string\n * validator: 'numeric'\n * }\n * ],\n * ```\n */\n validator: void 0,\n\n /**\n * @description\n * Disables visual cells selection.\n *\n * Possible values:\n * * `true` - Disables any type of visual selection (current and area selection),\n * * `false` - Enables any type of visual selection. This is default value.\n * * `'current'` - Disables the selection of a currently selected cell, the area selection is still present.\n * * `'area'` - Disables the area selection, the currently selected cell selection is still present.\n * * `'header'` - Disables the headers selection, the currently selected cell selection is still present.\n *\n * @type {Boolean|String|String[]}\n * @default false\n *\n * @example\n * ```js\n * // as a boolean\n * disableVisualSelection: true,\n *\n * // as a string ('current', 'area' or 'header')\n * disableVisualSelection: 'current',\n *\n * // as an array\n * disableVisualSelection: ['current', 'area'],\n * ```\n */\n disableVisualSelection: false,\n\n /**\n * Set whether to display the current sorting order indicator (a triangle icon in the column header, specifying the sorting\n * order).\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * // show sort indicator for sorted columns\n * sortIndicator: true,\n * ```\n */\n sortIndicator: void 0,\n\n /**\n * Disables or enables {@link ManualColumnFreeze} plugin.\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * // enable fixed columns\n * manualColumnFreeze: true,\n * ```\n */\n manualColumnFreeze: void 0,\n\n /**\n * Defines whether Handsontable should trim the whitespace at the beginning and the end of the cell contents.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * columns: [\n * {\n * // don't remove whitespace\n * trimWhitespace: false\n * }\n * ]\n * ```\n */\n trimWhitespace: true,\n\n /**\n * Defines data source for Autocomplete or Dropdown cell types.\n *\n * @type {Array|Function}\n * @default undefined\n *\n * @example\n * ```js\n * // source as a array\n * columns: [{\n * type: 'autocomplete',\n * source: ['A', 'B', 'C', 'D']\n * }],\n *\n * // source as a function\n * columns: [{\n * type: 'autocomplete',\n * source: function(query, callback) {\n * fetch('https://example.com/query?q=' + query, function(response) {\n * callback(response.items);\n * })\n * }\n * }],\n * ```\n */\n source: void 0,\n\n /**\n * @description\n * Defines the column header name.\n *\n * @type {String}\n * @default undefined\n *\n * @example\n * ```js\n * // set header names for every column\n * columns: [\n * {\n * title: 'First name',\n * type: 'text',\n * },\n * {\n * title: 'Last name',\n * type: 'text',\n * }\n * ],\n * ```\n */\n title: void 0,\n\n /**\n * Data template for `'checkbox'` type when checkbox is checked.\n *\n * @type {Boolean|String|Number}\n * @default true\n *\n * @example\n * ```js\n * checkedTemplate: 'good'\n *\n * // if a checkbox-typed cell is checked, then getDataAtCell(x, y),\n * // where x and y are the coordinates of the cell will return 'good'.\n * ```\n */\n checkedTemplate: void 0,\n\n /**\n * Data template for `'checkbox'` type when checkbox is unchecked.\n *\n * @type {Boolean|String|Number}\n * @default false\n *\n * @example\n * ```js\n * uncheckedTemplate: 'bad'\n *\n * // if a checkbox-typed cell is not checked, then getDataAtCell(x,y),\n * // where x and y are the coordinates of the cell will return 'bad'.\n * ```\n */\n uncheckedTemplate: void 0,\n\n /**\n * @description\n * Object which describes if renderer should create checkbox element with label element as a parent.\n *\n * __Note__, this option only works for [checkbox-typed](https://docs.handsontable.com/demo-checkbox.html) cells.\n *\n * By default the [checkbox](https://docs.handsontable.com/demo-checkbox.html) renderer renders the checkbox without a label.\n *\n * Possible object properties:\n * * `property` - Defines the property name of the data object, which will to be used as a label.\n * (eg. `label: {property: 'name.last'}`). This option works only if data was passed as an array of objects.\n * * `position` - String which describes where to place the label text (before or after checkbox element).\n * Valid values are `'before'` and '`after`' (defaults to `'after'`).\n * * `value` - String or a Function which will be used as label text.\n *\n * @type {Object}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [{\n * type: 'checkbox',\n * // add \"My label:\" after the checkbox\n * label: {position: 'after', value: 'My label: '}\n * }],\n * ```\n */\n label: void 0,\n\n /**\n * Display format for numeric typed renderers.\n *\n * __Note__, this option only works for [numeric-typed](https://docs.handsontable.com/demo-numeric.html) cells.\n *\n * Format is described by two properties:\n * * `pattern` - Handled by `numbro` for purpose of formatting numbers to desired pattern. List of supported patterns can be found [here](http://numbrojs.com/format.html#numbers).\n * * `culture` - Handled by `numbro` for purpose of formatting currencies. Examples showing how it works can be found [here](http://numbrojs.com/format.html#currency). List of supported cultures can be found [here](http://numbrojs.com/languages.html#supported-languages).\n *\n * __Note:__ Please keep in mind that this option is used only to format the displayed output! It has no effect on the input data provided for the cell. The numeric data can be entered to the table only as floats (separated by a dot or a comma) or integers, and are stored in the source dataset as JavaScript numbers.\n *\n * Handsontable uses [numbro](http://numbrojs.com/) as a main library for numbers formatting.\n *\n * @since 0.35.0\n * @type {Object}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'numeric',\n * // set desired format pattern and\n * numericFormat: {\n * pattern: '0,00',\n * culture: 'en-US'\n * }\n * }\n * ],\n * ```\n */\n numericFormat: void 0,\n\n /**\n * Language for Handsontable translation. Possible language codes are [listed here](https://docs.handsontable.com/tutorial-internationalization.html#available-languages).\n *\n * @type {String}\n * @default 'en-US'\n *\n * @example\n * ```js\n * // set Polish language\n * language: 'pl-PL',\n * ```\n */\n language: 'en-US',\n\n /**\n * Data source for [select-typed](https://docs.handsontable.com/demo-select.html) cells.\n *\n * __Note__, this option only works for [select-typed](https://docs.handsontable.com/demo-select.html) cells.\n *\n * @type {String[]}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * editor: 'select',\n * // add three select options to choose from\n * selectOptions: ['A', 'B', 'C'],\n * }\n * ],\n * ```\n */\n selectOptions: void 0,\n\n /**\n * Enables or disables the {@link AutoColumnSize} plugin. Default value is `undefined`, which has the same effect as `true`.\n * Disabling this plugin can increase performance, as no size-related calculations would be done.\n *\n * Column width calculations are divided into sync and async part. Each of those parts has their own advantages and\n * disadvantages. Synchronous calculations are faster but they block the browser UI, while the slower asynchronous\n * operations don't block the browser UI.\n *\n * To configure the sync/async distribution, you can pass an absolute value (number of columns) or a percentage value.\n *\n * You can also use the `useHeaders` option to take the column headers width into calculation.\n *\n * @type {Object|Boolean}\n * @default {syncLimit: 50}\n *\n * @example\n * ```js\n * // as a number (300 columns in sync, rest async)\n * autoColumnSize: {syncLimit: 300},\n *\n * // as a string (percent)\n * autoColumnSize: {syncLimit: '40%'},\n *\n * // use headers width while calculating the column width\n * autoColumnSize: {useHeaders: true},\n * ```\n */\n autoColumnSize: void 0,\n\n /**\n * Enables or disables {@link AutoRowSize} plugin. Default value is `undefined`, which has the same effect as `false`\n * (disabled). Enabling this plugin can decrease performance, as size-related calculations would be performed.\n *\n * Row height calculations are divided into sync and async stages. Each of these stages has their own advantages and\n * disadvantages. Synchronous calculations are faster but they block the browser UI, while the slower asynchronous\n * operations don't block the browser UI.\n *\n * To configure the sync/async distribution, you can pass an absolute value (number of columns) or a percentage value.\n *\n * @type {Object|Boolean}\n * @default {syncLimit: 500}\n *\n * @example\n * ```js\n * // as a number (300 columns in sync, rest async)\n * autoRowSize: {syncLimit: 300},\n *\n * // as a string (percent)\n * autoRowSize: {syncLimit: '40%'},\n * ```\n */\n autoRowSize: void 0,\n\n /**\n * Date validation format.\n *\n * __Note__, this option only works for [date-typed](https://docs.handsontable.com/demo-date.html) cells.\n *\n * @type {String}\n * @default 'DD/MM/YYYY'\n *\n * @example\n * ```js\n * columns: [{\n * type: 'date',\n * // localise date format\n * dateFormat: 'MM/DD/YYYY'\n * }],\n * ```\n */\n dateFormat: 'DD/MM/YYYY',\n\n /**\n * If `true` then dates will be automatically formatted to match the desired format.\n *\n * __Note__, this option only works for [date-typed](https://docs.handsontable.com/demo-date.html) cells.\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * columns: [{\n * type: 'date',\n * dateFormat: 'YYYY-MM-DD',\n * // force selected date format\n * correctFormat: true\n * }],\n * ```\n */\n correctFormat: false,\n\n /**\n * Definition of default value which will fill the empty cells.\n *\n * __Note__, this option only works for [date-typed](https://docs.handsontable.com/demo-date.html) cells.\n *\n * @type {String}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'date',\n * // always set this date for empty cells\n * defaultDate: '2015-02-02'\n * }\n * ],\n * ```\n */\n defaultDate: void 0,\n\n /**\n * If set to `true`, the value entered into the cell must match (case-sensitive) the autocomplete source.\n * Otherwise, cell won't pass the validation. When filtering the autocomplete source list, the editor will\n * be working in case-insensitive mode.\n *\n * __Note__, this option only works for [autocomplete-typed](https://docs.handsontable.com/demo-autocomplete.html) cells.\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [{\n * type: 'autocomplete',\n * source: ['A', 'B', 'C'],\n * // force selected value to match the source list\n * strict: true\n * }],\n * ```\n */\n strict: void 0,\n\n /**\n * If set to `true`, data defined in `source` of the autocomplete or dropdown cell will be treated as HTML.\n *\n * __Warning:__ Enabling this option can cause serious XSS vulnerabilities.\n *\n * __Note__, this option only works for [autocomplete-typed](https://docs.handsontable.com/demo-autocomplete.html) cells.\n *\n * @type {Boolean}\n * @default false\n *\n * @example\n * ```js\n * columns: [{\n * type: 'autocomplete',\n * // use HTML in the source list\n * allowHtml: true,\n * source: ['<strong>foo</strong>', '<strong>bar</strong>']\n * }],\n * ```\n */\n allowHtml: false,\n\n /**\n * If typed `true` then virtual rendering mechanism for handsontable will be disabled.\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * // disable virtual rows rendering\n * renderAllRows: true,\n * ```\n */\n renderAllRows: void 0,\n\n /**\n * Prevents table to overlap outside the parent element. If `'horizontal'` option is chosen then table will show\n * a horizontal scrollbar if parent's width is narrower then table's width.\n *\n * Possible values:\n * * `false` - Disables functionality.\n * * `horizontal` - Prevents horizontal overflow table.\n * * `vertical` - Prevents vertical overflow table.\n *\n * @type {String|Boolean}\n * @default false\n *\n * @example\n * ```js\n * preventOverflow: 'horizontal',\n * ```\n */\n preventOverflow: false,\n\n /**\n * @description\n * Enables the functionality of the {@link BindRowsWithHeaders} plugin which allows binding the table rows with their headers.\n * If the plugin is enabled, the table row headers will \"stick\" to the rows, when they are hidden/moved. Basically,\n * if at the initialization row 0 has a header titled \"A\", it will have it no matter what you do with the table.\n *\n * @pro\n * @type {Boolean|String}\n * @default undefined\n *\n * @example\n * ```js\n * // keep row data and row headers in sync\n * bindRowsWithHeaders: true\n * ```\n */\n bindRowsWithHeaders: void 0,\n\n /**\n * @description\n * The {@link CollapsibleColumns} plugin allows collapsing of columns, covered by a header with the `colspan` property\n * defined.\n *\n * Clicking the \"collapse/expand\" button collapses (or expands) all \"child\" headers except the first one.\n *\n * Setting the `collapsibleColumns` property to `true` will display a \"collapse/expand\" button in every\n * header with a defined colspan` property.\n *\n * To limit this functionality to a smaller group of headers, define the `collapsibleColumns` property\n * as an array of objects, as in the example below.\n *\n * @pro\n * @type {Boolean|Object[]}\n * @default undefined\n *\n * @example\n * ```js\n * // enable collapsing for all headers\n * collapsibleColumns: true,\n *\n * // or\n * // enable collapsing for selected headers\n * collapsibleColumns: [\n * {row: -4, col: 1, collapsible: true},\n * {row: -3, col: 5, collapsible: true}\n * ],\n * ```\n */\n collapsibleColumns: void 0,\n\n /**\n * @description\n * Allows making pre-defined calculations on the cell values and display the results within Handsontable.\n *\n * Possible types:\n * * `'sum'`\n * * `'min'`\n * * `'max'`\n * * `'count'`\n * * `'average'`\n * * `'custom'` - add `customFunction`\n *\n * [See the demo for more information](https://docs.handsontable.com/pro/demo-summary-calculations.html).\n *\n * @pro\n * @type {Object[]|Function}\n * @default undefined\n *\n * @example\n * ```\n * columnSummary: [\n * {\n * destinationRow: 4,\n * destinationColumn: 1,\n * forceNumeric: true,\n * reversedRowCoords: true,\n * suppressDataTypeErrors: false,\n * readOnly: true,\n * roundFloat: false,\n * type: 'custom',\n * customFunction: function(endpoint) {\n * return 100;\n * }\n * }\n * ],\n * ```\n */\n columnSummary: void 0,\n\n /**\n * This plugin allows adding a configurable dropdown menu to the table's column headers. The dropdown menu acts like\n * the {@link Options#contextMenu}, but is triggered by clicking the button in the header.\n *\n * @pro\n * @type {Boolean|Object|String[]}\n * @default undefined\n *\n * @example\n * ```js\n * // enable dropdown menu\n * dropdownMenu: true,\n *\n * // or\n * // enable and configure dropdown menu options\n * dropdownMenu: ['remove_col', '---------', 'make_read_only', 'alignment']\n * ```\n */\n dropdownMenu: void 0,\n\n /**\n * The {@link Filters} plugin allows filtering the table data either by the built-in component or with the API.\n *\n * @pro\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * // enable filters\n * filters: true,\n * ```\n */\n filters: void 0,\n\n /**\n * The {@link Formulas} plugin allows Handsontable to process formula expressions defined in the provided data.\n *\n * @pro\n * @type {Boolean|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // enable formulas plugin\n * formulas: true,\n *\n * // or as an object with custom variables to be used in formula expressions\n * formulas: {\n * variables: {\n * FOO: 64,\n * BAR: 'baz',\n * }\n * },\n * ```\n */\n formulas: void 0,\n\n /**\n * @description\n * The {@link GanttChart} plugin enables a possibility to create a Gantt chart using a Handsontable instance. In this\n * case, the whole table becomes read-only.\n *\n * @pro\n * @type {Object}\n * @default undefined\n */\n ganttChart: void 0,\n\n /**\n * @description\n * Allows adding a tooltip to the table headers.\n *\n * Available options:\n * * the `rows` property defines if tooltips should be added to row headers,\n * * the `columns` property defines if tooltips should be added to column headers,\n * * the `onlyTrimmed` property defines if tooltips should be added only to headers, which content is trimmed by the header itself (the content being wider then the header).\n *\n * @pro\n * @type {Boolean|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // enable tooltips for all headers\n * headerTooltips: true,\n *\n * // or\n * headerTooltips: {\n * rows: false,\n * columns: true,\n * onlyTrimmed: true\n * }\n * ```\n */\n headerTooltips: void 0,\n\n /**\n * The {@link HiddenColumns} plugin allows hiding of certain columns. You can pass additional configuration with an\n * object notation. Options that are then available are:\n * * `columns` - an array of rows that should be hidden on plugin initialization\n * * `indicators` - enables small ui markers to indicate where are hidden columns\n *\n * @pro\n * @type {Boolean|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // enable column hiding\n * hiddenColumns: true,\n *\n * // or\n * hiddenColumns: {\n * // set columns that are hidden by default\n * columns: [5, 10, 15],\n * // show where are hidden columns\n * indicators: true\n * }\n * ```\n */\n hiddenColumns: void 0,\n\n /**\n * The {@link HiddenRows} plugin allows hiding of certain rows. You can pass additional configuration with an\n * object notation. Options that are then available are:\n * * `rows` - an array of rows that should be hidden on plugin initialization\n * * `indicators` - enables small ui markers to indicate where are hidden columns\n *\n * @pro\n * @type {Boolean|Object}\n * @default undefined\n *\n * @example\n * ```js\n * // enable row hiding\n * hiddenRows: true,\n *\n * // or\n * hiddenRows: {\n * // set rows that are hidden by default\n * rows: [5, 10, 15],\n * // show where are hidden rows\n * indicators: true\n * }\n * ```\n */\n hiddenRows: void 0,\n\n /**\n * @description\n * Allows creating a nested header structure, using the HTML's colspan attribute.\n *\n * @pro\n * @type {Array[]}\n * @default undefined\n *\n * @example\n * ```\n * nestedHeaders: [\n * ['A', {label: 'B', colspan: 8}, 'C'],\n * ['D', {label: 'E', colspan: 4}, {label: 'F', colspan: 4}, 'G'],\n * ['H', 'I', 'J', 'K', 'L', 'M', 'N', 'R', 'S', 'T']\n * ],\n * ```\n */\n nestedHeaders: void 0,\n\n /**\n * @description\n * Plugin allowing hiding of certain rows.\n *\n * @pro\n * @type {Boolean|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // enable plugin\n * trimRows: true,\n *\n * // or\n * // trim selected rows on table initialization\n * trimRows: [5, 10, 15],\n * ```\n */\n trimRows: void 0,\n\n /**\n * @description\n * Allows setting a custom width of the row headers. You can provide a number or an array of widths, if many row\n * header levels are defined.\n *\n * @type {Number|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // set width for all row headers\n * rowHeaderWidth: 25,\n *\n * // or\n * // set width for selected headers only\n * rowHeaderWidth: [25, 30, 55],\n * ```\n */\n rowHeaderWidth: void 0,\n\n /**\n * @description\n * Allows setting a custom height of the column headers. You can provide a number or an array of heights, if many\n * column header levels are defined.\n *\n * @type {Number|Number[]}\n * @default undefined\n *\n * @example\n * ```js\n * // set shared height for all headers\n * columnHeaderHeight: 35,\n *\n * // or\n * // set height for each header individually\n * columnHeaderHeight: [35, 20, 55],\n *\n * // or\n * // skipped headers will fallback to default value\n * columnHeaderHeight: [35, undefined, 55],\n * ```\n */\n columnHeaderHeight: void 0,\n\n /**\n * @description\n * Enables the {@link ObserveChanges} plugin switches table into one-way data binding where changes are applied into\n * data source (from outside table) will be automatically reflected in the table.\n *\n * For every data change [afterChangesObserved](Hooks.html#event:afterChangesObserved) hook will be fired.\n *\n * @type {Boolean}\n * @default undefined\n *\n * @example\n * ```js\n * observeChanges: true,\n * ```\n */\n observeChanges: void 0,\n\n /**\n * @description\n * When passed to the `column` property, allows specifying a custom sorting function for the desired column.\n *\n * @type {Function}\n * @default undefined\n *\n * @example\n * ```js\n * columns: [\n * {\n * sortFunction: function(sortOrder) {\n * return function(a, b) {\n * // sorting function body.\n * //\n * // Function parameters:\n * // sortOrder: If true, the order is ascending, if false - descending. undefined = original order\n * // a, b: Two compared elements. These are 2-element arrays, with the first element being the row index, the second - cell value.\n * }\n * }\n * }\n * ],\n * ```\n */\n sortFunction: void 0,\n\n /**\n * If defined as `true`, the Autocomplete's suggestion list would be sorted by relevance (the closer to the left the\n * match is, the higher the suggestion).\n *\n * __Note__, this option only works for [autocomplete-typed](https://docs.handsontable.com/demo-autocomplete.html) cells.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'autocomplete',\n * source: [ ... ],\n * // keep options order as they were defined\n * sortByRelevance: false\n * }\n * ],\n * ```\n */\n sortByRelevance: true,\n\n /**\n * If defined as `true`, when the user types into the input area the Autocomplete's suggestion list is updated to only\n * include those choices starting with what has been typed; if defined as `false` all suggestions remain shown, with\n * those matching what has been typed marked in bold.\n *\n * __Note__, this option only works for [autocomplete-typed](https://docs.handsontable.com/demo-autocomplete.html) cells.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'autocomplete',\n * source: [ ... ],\n * // don't hide options that don't match search query\n * filter: false\n * }\n * ],\n * ```\n */\n filter: true,\n\n /**\n * If defined as `true`, filtering in the Autocomplete Editor will be case-sensitive.\n *\n * __Note__, this option only works for [autocomplete-typed](https://docs.handsontable.com/demo-autocomplete.html) cells.\n *\n * @type {Boolean}\n * @default: false\n *\n * @example\n * ```js\n * columns: [\n * {\n * type: 'autocomplete',\n * source: [ ... ],\n * // match case while searching autocomplete options\n * filteringCaseSensitive: true\n * }\n * ],\n * ```\n */\n filteringCaseSensitive: false,\n\n /**\n * @description\n * Disables or enables the drag to scroll functionality.\n *\n * @type {Boolean}\n * @default true\n *\n * @example\n * ```js\n * // don't scroll the viewport when selection gets to the viewport edge\n * dragToScroll: false,\n * ```\n */\n dragToScroll: true,\n\n /**\n * @description\n * Disable or enable the nested rows functionality - displaying nested structures in a two-dimensional data table.\n *\n * See [quick setup of the Nested rows](https://docs.handsontable.kbudnik/pro/next/demo-nested-rows.html).\n * @example\n * ```js\n * nestedRows: true,\n * ```\n *\n * @pro\n * @type {Boolean}\n * @default false\n */\n nestedRows: void 0\n};\n\nexports.default = DefaultSettings;\n\n/***/ }),\n/* 198 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getTranslatedPhrase = getTranslatedPhrase;\n\nvar _array = __webpack_require__(2);\n\nvar _dictionariesManager = __webpack_require__(71);\n\nvar _phraseFormatters = __webpack_require__(271);\n\nvar _mixed = __webpack_require__(11);\n\n/**\n * Get phrase for specified dictionary key.\n *\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'.\n * @param {String} dictionaryKey Constant which is dictionary key.\n * @param {*} argumentsForFormatters Arguments which will be handled by formatters.\n *\n * @returns {String}\n */\n// eslint-disable-next-line import/prefer-default-export\nfunction getTranslatedPhrase(languageCode, dictionaryKey, argumentsForFormatters) {\n var languageDictionary = (0, _dictionariesManager.getLanguageDictionary)(languageCode);\n\n if (languageDictionary === null) {\n return null;\n }\n\n var phrasePropositions = languageDictionary[dictionaryKey];\n\n if ((0, _mixed.isUndefined)(phrasePropositions)) {\n return null;\n }\n\n var formattedPhrase = getFormattedPhrase(phrasePropositions, argumentsForFormatters);\n\n if (Array.isArray(formattedPhrase)) {\n return formattedPhrase[0];\n }\n\n return formattedPhrase;\n}\n\n/**\n * Get formatted phrase from phrases propositions for specified dictionary key.\n *\n * @private\n * @param {Array|string} phrasePropositions List of phrase propositions.\n * @param {*} argumentsForFormatters Arguments which will be handled by formatters.\n *\n * @returns {Array|string}\n */\nfunction getFormattedPhrase(phrasePropositions, argumentsForFormatters) {\n var formattedPhrasePropositions = phrasePropositions;\n\n (0, _array.arrayEach)((0, _phraseFormatters.getPhraseFormatters)(), function (formatter) {\n formattedPhrasePropositions = formatter(phrasePropositions, argumentsForFormatters);\n });\n\n return formattedPhrasePropositions;\n}\n\n/***/ }),\n/* 199 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _templateObject = _taggedTemplateLiteral(['Language with code \"', '\" was not found. You should register particular language \\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'], ['Language with code \"', '\" was not found. You should register particular language \\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.']);\n\nexports.extendNotExistingKeys = extendNotExistingKeys;\nexports.createCellHeadersRange = createCellHeadersRange;\nexports.normalizeLanguageCode = normalizeLanguageCode;\nexports.applyLanguageSetting = applyLanguageSetting;\nexports.warnUserAboutLanguageRegistration = warnUserAboutLanguageRegistration;\n\nvar _mixed = __webpack_require__(11);\n\nvar _object = __webpack_require__(1);\n\nvar _console = __webpack_require__(58);\n\nvar _templateLiteralTag = __webpack_require__(42);\n\nvar _dictionariesManager = __webpack_require__(71);\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\n/**\n * Perform shallow extend of a target object with only this extension's properties which doesn't exist in the target.\n *\n * @param {Object} target An object that will receive the new properties.\n * @param {Object} extension An object containing additional properties to merge into the target.\n */\n// TODO: Maybe it should be moved to global helpers? It's changed `extend` function.\nfunction extendNotExistingKeys(target, extension) {\n (0, _object.objectEach)(extension, function (value, key) {\n if ((0, _mixed.isUndefined)(target[key])) {\n target[key] = value;\n }\n });\n\n return target;\n}\n\n/**\n * Create range of values basing on cell indexes. For example, it will create below ranges for specified function arguments:\n *\n * createCellHeadersRange(2, 7) => `2-7`\n * createCellHeadersRange(7, 2) => `2-7`\n * createCellHeadersRange(0, 4, 'A', 'D') => `A-D`\n * createCellHeadersRange(4, 0, 'D', 'A') => `A-D`\n *\n * @param {number} firstRowIndex Index of \"first\" cell\n * @param {number} nextRowIndex Index of \"next\" cell\n * @param {*} fromValue Value which will represent \"first\" cell\n * @param {*} toValue Value which will represent \"next\" cell\n * @returns {String} Value representing range i.e. A-Z, 11-15.\n */\nfunction createCellHeadersRange(firstRowIndex, nextRowIndex) {\n var fromValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : firstRowIndex;\n var toValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : nextRowIndex;\n\n // Will swap `fromValue` with `toValue` if it's necessary.\n if (firstRowIndex > nextRowIndex) {\n var _ref = [toValue, fromValue];\n fromValue = _ref[0];\n toValue = _ref[1];\n }\n\n return fromValue + '-' + toValue;\n}\n\n/**\n * Normalize language code. It takes handled languageCode proposition and change it to proper languageCode.\n * For example, when it takes `eN-us` as parameter it return `en-US`\n *\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'.\n * @returns {String}\n */\nfunction normalizeLanguageCode(languageCode) {\n var languageCodePattern = /^([a-zA-Z]{2})-([a-zA-Z]{2})$/;\n var partsOfLanguageCode = languageCodePattern.exec(languageCode);\n\n if (partsOfLanguageCode) {\n return partsOfLanguageCode[1].toLowerCase() + '-' + partsOfLanguageCode[2].toUpperCase();\n }\n\n return languageCode;\n}\n\n/**\n * Set proper start language code. User may set language code which is not proper.\n *\n * @param {Object} settings Settings object.\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'.\n * @returns {String}\n */\nfunction applyLanguageSetting(settings, languageCode) {\n var normalizedLanguageCode = normalizeLanguageCode(languageCode);\n\n if ((0, _dictionariesManager.hasLanguageDictionary)(normalizedLanguageCode)) {\n settings.language = normalizedLanguageCode;\n } else {\n settings.language = _dictionariesManager.DEFAULT_LANGUAGE_CODE;\n\n warnUserAboutLanguageRegistration(languageCode);\n }\n}\n\n/**\n *\n * Warn user if there is no registered language.\n *\n * @param {String} languageCode Language code for specific language i.e. 'en-US', 'pt-BR', 'de-DE'.\n */\nfunction warnUserAboutLanguageRegistration(languageCode) {\n if ((0, _mixed.isDefined)(languageCode)) {\n (0, _console.error)((0, _templateLiteralTag.toSingleLine)(_templateObject, languageCode));\n }\n}\n\n/***/ }),\n/* 200 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.stopObserving = exports.startObserving = exports.isPressedCtrlKey = exports.isPressed = exports._resetState = exports._getRefCount = undefined;\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _unicode = __webpack_require__(21);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar eventManager = new _eventManager2.default();\nvar pressedKeys = new Set();\nvar refCount = 0;\n\n/**\n * Begins observing keyboard keys states.\n */\nfunction startObserving() {\n if (refCount === 0) {\n eventManager.addEventListener(document, 'keydown', function (event) {\n if (!pressedKeys.has(event.keyCode)) {\n pressedKeys.add(event.keyCode);\n }\n });\n eventManager.addEventListener(document, 'keyup', function (event) {\n if (pressedKeys.has(event.keyCode)) {\n pressedKeys.delete(event.keyCode);\n }\n });\n eventManager.addEventListener(document, 'visibilitychange', function () {\n if (document.hidden) {\n pressedKeys.clear();\n }\n });\n }\n\n refCount += 1;\n}\n\n/**\n * Stops observing keyboard keys states and clear all previously saved states.\n */\nfunction stopObserving() {\n if (refCount > 0) {\n refCount -= 1;\n }\n\n if (refCount === 0) {\n _resetState();\n }\n}\n\n/**\n * Remove all listeners attached to the DOM and clear all previously saved states.\n */\nfunction _resetState() {\n eventManager.clearEvents();\n pressedKeys.clear();\n refCount = 0;\n}\n\n/**\n * Checks if provided keyCode or keyCodes are pressed.\n *\n * @param {String} keyCodes The key codes passed as a string defined in helpers/unicode.js file delimited with '|'.\n * @return {Boolean}\n */\nfunction isPressed(keyCodes) {\n return Array.from(pressedKeys.values()).some(function (_keyCode) {\n return (0, _unicode.isKey)(_keyCode, keyCodes);\n });\n}\n\n/**\n * Checks if ctrl keys are pressed.\n *\n * @return {Boolean}\n */\nfunction isPressedCtrlKey() {\n var values = Array.from(pressedKeys.values());\n\n return values.some(function (_keyCode) {\n return (0, _unicode.isCtrlMetaKey)(_keyCode);\n }) && values.every(function (_keyCode) {\n return !(0, _unicode.isPrintableChar)(_keyCode);\n });\n}\n\n/**\n * Returns reference count. Useful for debugging and testing purposes.\n *\n * @return {Number}\n */\nfunction _getRefCount() {\n return refCount;\n}\n\nexports._getRefCount = _getRefCount;\nexports._resetState = _resetState;\nexports.isPressed = isPressed;\nexports.isPressedCtrlKey = isPressedCtrlKey;\nexports.startObserving = startObserving;\nexports.stopObserving = stopObserving;\n\n/***/ }),\n/* 201 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.normalizeSelectionFactory = exports.detectSelectionType = exports.Selection = exports.Highlight = exports.handleMouseEvent = undefined;\n\nvar _highlight = __webpack_require__(202);\n\nvar _highlight2 = _interopRequireDefault(_highlight);\n\nvar _selection = __webpack_require__(280);\n\nvar _selection2 = _interopRequireDefault(_selection);\n\nvar _mouseEventHandler = __webpack_require__(194);\n\nvar _utils = __webpack_require__(72);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.handleMouseEvent = _mouseEventHandler.handleMouseEvent;\nexports.Highlight = _highlight2.default;\nexports.Selection = _selection2.default;\nexports.detectSelectionType = _utils.detectSelectionType;\nexports.normalizeSelectionFactory = _utils.normalizeSelectionFactory;\n\n/***/ }),\n/* 202 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.CUSTOM_SELECTION = exports.HEADER_TYPE = exports.FILL_TYPE = exports.CELL_TYPE = exports.AREA_TYPE = exports.ACTIVE_HEADER_TYPE = undefined;\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 _types = __webpack_require__(273);\n\nvar _array = __webpack_require__(2);\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar ACTIVE_HEADER_TYPE = exports.ACTIVE_HEADER_TYPE = 'active-header';\nvar AREA_TYPE = exports.AREA_TYPE = 'area';\nvar CELL_TYPE = exports.CELL_TYPE = 'cell';\nvar FILL_TYPE = exports.FILL_TYPE = 'fill';\nvar HEADER_TYPE = exports.HEADER_TYPE = 'header';\nvar CUSTOM_SELECTION = exports.CUSTOM_SELECTION = 'custom-selection';\n\n/**\n * Highlight class responsible for managing Walkontable Selection classes.\n *\n * With Highlight object you can manipulate four different highlight types:\n * - `cell` can be added only to a single cell at a time and it defines currently selected cell;\n * - `fill` can occur only once and its highlight defines selection of autofill functionality (managed by the plugin with the same name);\n * - `areas` can be added to multiple cells at a time. This type highlights selected cell or multiple cells.\n * The multiple cells have to be defined as an uninterrupted order (regular shape). Otherwise, the new layer of\n * that type should be created to manage not-consecutive selection;\n * - `header` can occur multiple times. This type is designed to highlight only headers. Like `area` type it\n * can appear with multiple highlights (accessed under different level layers).\n *\n * @class Highlight\n * @util\n */\n\nvar Highlight = function () {\n function Highlight(options) {\n _classCallCheck(this, Highlight);\n\n /**\n * Options consumed by Highlight class and Walkontable Selection classes.\n *\n * @type {Object}\n */\n this.options = options;\n /**\n * The property which describes which layer level of the visual selection will be modified.\n * This option is valid only for `area` and `header` highlight types which occurs multiple times on\n * the table (as a non-consecutive selection).\n *\n * An order of the layers is the same as the order of added new non-consecutive selections.\n *\n * @type {Number}\n * @default 0\n */\n this.layerLevel = 0;\n /**\n * `cell` highlight object which describes attributes for the currently selected cell.\n * It can only occur only once on the table.\n *\n * @type {Selection}\n */\n this.cell = (0, _types.createHighlight)(CELL_TYPE, options);\n /**\n * `fill` highlight object which describes attributes for the borders for autofill functionality.\n * It can only occur only once on the table.\n *\n * @type {Selection}\n */\n this.fill = (0, _types.createHighlight)(FILL_TYPE, options);\n /**\n * Collection of the `area` highlights. That objects describes attributes for the borders and selection of\n * the multiple selected cells. It can occur multiple times on the table.\n *\n * @type {Map.<number, Selection>}\n */\n this.areas = new Map();\n /**\n * Collection of the `header` highlights. That objects describes attributes for the selection of\n * the multiple selected rows and columns in the table header. It can occur multiple times on the table.\n *\n * @type {Map.<number, Selection>}\n */\n this.headers = new Map();\n /**\n * Collection of the `active-header` highlights. That objects describes attributes for the selection of\n * the multiple selected rows and columns in the table header. The table headers which have selected all items in\n * a row will be marked as `active-header`.\n *\n * @type {Map.<number, Selection>}\n */\n this.activeHeaders = new Map();\n /**\n * Collection of the `custom-selection`, holder for example borders added through CustomBorders plugin.\n *\n * @type {Selection[]}\n */\n this.customSelections = [];\n }\n\n /**\n * Check if highlight cell rendering is disabled for specyfied highlight type.\n *\n * @param {String} highlightType Highlight type. Possible values are: `cell`, `area`, `fill` or `header`.\n * @return {Boolean}\n */\n\n\n _createClass(Highlight, [{\n key: 'isEnabledFor',\n value: function isEnabledFor(highlightType) {\n var disableHighlight = this.options.disableHighlight;\n\n // Legacy compatibility.\n if (highlightType === 'current') {\n highlightType = CELL_TYPE;\n }\n\n if (typeof disableHighlight === 'string') {\n disableHighlight = [disableHighlight];\n }\n\n return disableHighlight === false || Array.isArray(disableHighlight) && !disableHighlight.includes(highlightType);\n }\n\n /**\n * Set a new layer level to make access to the desire `area` and `header` highlights.\n *\n * @param {Number} [level=0] Layer level to use.\n * @returns {Highlight}\n */\n\n }, {\n key: 'useLayerLevel',\n value: function useLayerLevel() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n\n this.layerLevel = level;\n\n return this;\n }\n\n /**\n * Get Walkontable Selection instance created for controlling highlight of the currently selected/edited cell.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'getCell',\n value: function getCell() {\n return this.cell;\n }\n\n /**\n * Get Walkontable Selection instance created for controlling highlight of the autofill functionality.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'getFill',\n value: function getFill() {\n return this.fill;\n }\n\n /**\n * Get or create (if not exist in the cache) Walkontable Selection instance created for controlling highlight\n * of the multiple selected cells.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'createOrGetArea',\n value: function createOrGetArea() {\n var layerLevel = this.layerLevel;\n var area = void 0;\n\n if (this.areas.has(layerLevel)) {\n area = this.areas.get(layerLevel);\n } else {\n area = (0, _types.createHighlight)(AREA_TYPE, Object.assign({ layerLevel: layerLevel }, this.options));\n\n this.areas.set(layerLevel, area);\n }\n\n return area;\n }\n\n /**\n * Get all Walkontable Selection instances which describes the state of the visual highlight of the cells.\n *\n * @return {Selection[]}\n */\n\n }, {\n key: 'getAreas',\n value: function getAreas() {\n return [].concat(_toConsumableArray(this.areas.values()));\n }\n\n /**\n * Get or create (if not exist in the cache) Walkontable Selection instance created for controlling highlight\n * of the multiple selected header cells.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'createOrGetHeader',\n value: function createOrGetHeader() {\n var layerLevel = this.layerLevel;\n var header = void 0;\n\n if (this.headers.has(layerLevel)) {\n header = this.headers.get(layerLevel);\n } else {\n header = (0, _types.createHighlight)(HEADER_TYPE, Object.assign({}, this.options));\n\n this.headers.set(layerLevel, header);\n }\n\n return header;\n }\n\n /**\n * Get all Walkontable Selection instances which describes the state of the visual highlight of the headers.\n *\n * @return {Selection[]}\n */\n\n }, {\n key: 'getHeaders',\n value: function getHeaders() {\n return [].concat(_toConsumableArray(this.headers.values()));\n }\n\n /**\n * Get or create (if not exist in the cache) Walkontable Selection instance created for controlling highlight\n * of the multiple selected active header cells.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'createOrGetActiveHeader',\n value: function createOrGetActiveHeader() {\n var layerLevel = this.layerLevel;\n var header = void 0;\n\n if (this.activeHeaders.has(layerLevel)) {\n header = this.activeHeaders.get(layerLevel);\n } else {\n header = (0, _types.createHighlight)(ACTIVE_HEADER_TYPE, Object.assign({}, this.options));\n\n this.activeHeaders.set(layerLevel, header);\n }\n\n return header;\n }\n\n /**\n * Get all Walkontable Selection instances which describes the state of the visual highlight of the active headers.\n *\n * @return {Selection[]}\n */\n\n }, {\n key: 'getActiveHeaders',\n value: function getActiveHeaders() {\n return [].concat(_toConsumableArray(this.activeHeaders.values()));\n }\n\n /**\n * Get Walkontable Selection instance created for controlling highlight of the custom selection functionality.\n *\n * @return {Selection}\n */\n\n }, {\n key: 'getCustomSelections',\n value: function getCustomSelections() {\n return [].concat(_toConsumableArray(this.customSelections.values()));\n }\n\n /**\n * Add selection to the custom selection instance. The new selection are added to the end of the selection collection.\n *\n * @param {Object} options\n */\n\n }, {\n key: 'addCustomSelection',\n value: function addCustomSelection(options) {\n this.customSelections.push((0, _types.createHighlight)(CUSTOM_SELECTION, Object.assign({}, options)));\n }\n\n /**\n * Perform cleaning visual highlights for the whole table.\n */\n\n }, {\n key: 'clear',\n value: function clear() {\n this.cell.clear();\n this.fill.clear();\n\n (0, _array.arrayEach)(this.areas.values(), function (highlight) {\n return void highlight.clear();\n });\n (0, _array.arrayEach)(this.headers.values(), function (highlight) {\n return void highlight.clear();\n });\n (0, _array.arrayEach)(this.activeHeaders.values(), function (highlight) {\n return void highlight.clear();\n });\n }\n\n /**\n * This object can be iterate over using `for of` syntax or using internal `arrayEach` helper.\n */\n\n }, {\n key: Symbol.iterator,\n value: function value() {\n return [this.cell, this.fill].concat(_toConsumableArray(this.areas.values()), _toConsumableArray(this.headers.values()), _toConsumableArray(this.activeHeaders.values()), _toConsumableArray(this.customSelections))[Symbol.iterator]();\n }\n }]);\n\n return Highlight;\n}();\n\nexports.default = Highlight;\n\n/***/ }),\n/* 203 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _object = __webpack_require__(1);\n\nvar _number = __webpack_require__(6);\n\nvar _mixed = __webpack_require__(11);\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * @class SamplesGenerator\n * @util\n */\nvar SamplesGenerator = function () {\n _createClass(SamplesGenerator, null, [{\n key: 'SAMPLE_COUNT',\n\n /**\n * Number of samples to take of each value length.\n *\n * @type {Number}\n */\n get: function get() {\n return 3;\n }\n }]);\n\n function SamplesGenerator(dataFactory) {\n _classCallCheck(this, SamplesGenerator);\n\n /**\n * Samples prepared for calculations.\n *\n * @type {Map}\n * @default {null}\n */\n this.samples = null;\n /**\n * Function which give the data to collect samples.\n *\n * @type {Function}\n */\n this.dataFactory = dataFactory;\n /**\n * Custom number of samples to take of each value length.\n *\n * @type {Number}\n * @default {null}\n */\n this.customSampleCount = null;\n /**\n * `true` if duplicate samples collection should be allowed, `false` otherwise.\n *\n * @type {Boolean}\n * @default {false}\n */\n this.allowDuplicates = false;\n }\n\n /**\n * Get the sample count for this instance.\n *\n * @returns {Number}\n */\n\n\n _createClass(SamplesGenerator, [{\n key: 'getSampleCount',\n value: function getSampleCount() {\n if (this.customSampleCount) {\n return this.customSampleCount;\n }\n return SamplesGenerator.SAMPLE_COUNT;\n }\n }, {\n key: 'setSampleCount',\n\n\n /**\n * Set the sample count.\n *\n * @param {Number} sampleCount Number of samples to be collected.\n */\n value: function setSampleCount(sampleCount) {\n this.customSampleCount = sampleCount;\n }\n\n /**\n * Set if the generator should accept duplicate values.\n *\n * @param {Boolean} allowDuplicates `true` to allow duplicate values.\n */\n\n }, {\n key: 'setAllowDuplicates',\n value: function setAllowDuplicates(allowDuplicates) {\n this.allowDuplicates = allowDuplicates;\n }\n\n /**\n * Generate samples for row. You can control which area should be sampled by passing `rowRange` object and `colRange` object.\n *\n * @param {Object|Number} rowRange\n * @param {Object} colRange\n * @returns {Object}\n */\n\n }, {\n key: 'generateRowSamples',\n value: function generateRowSamples(rowRange, colRange) {\n return this.generateSamples('row', colRange, rowRange);\n }\n\n /**\n * Generate samples for column. You can control which area should be sampled by passing `colRange` object and `rowRange` object.\n *\n * @param {Object} colRange Column index.\n * @param {Object} rowRange Column index.\n * @returns {Object}\n */\n\n }, {\n key: 'generateColumnSamples',\n value: function generateColumnSamples(colRange, rowRange) {\n return this.generateSamples('col', rowRange, colRange);\n }\n\n /**\n * Generate collection of samples.\n *\n * @param {String} type Type to generate. Can be `col` or `row`.\n * @param {Object} range\n * @param {Object|Number} specifierRange\n * @returns {Map}\n */\n\n }, {\n key: 'generateSamples',\n value: function generateSamples(type, range, specifierRange) {\n var _this = this;\n\n var samples = new Map();\n\n if (typeof specifierRange === 'number') {\n specifierRange = { from: specifierRange, to: specifierRange };\n }\n (0, _number.rangeEach)(specifierRange.from, specifierRange.to, function (index) {\n var sample = _this.generateSample(type, range, index);\n\n samples.set(index, sample);\n });\n\n return samples;\n }\n\n /**\n * Generate sample for specified type (`row` or `col`).\n *\n * @param {String} type Samples type `row` or `col`.\n * @param {Object} range\n * @param {Number} specifierValue\n * @returns {Map}\n */\n\n }, {\n key: 'generateSample',\n value: function generateSample(type, range, specifierValue) {\n var _this2 = this;\n\n if (type !== 'row' && type !== 'col') {\n throw new Error('Unsupported sample type');\n }\n\n var samples = new Map();\n var computedKey = type === 'row' ? 'col' : 'row';\n var sampledValues = [];\n\n (0, _number.rangeEach)(range.from, range.to, function (index) {\n var _ref = type === 'row' ? _this2.dataFactory(specifierValue, index) : _this2.dataFactory(index, specifierValue),\n value = _ref.value,\n bundleCountSeed = _ref.bundleCountSeed;\n\n var hasCustomBundleSeed = bundleCountSeed > 0;\n var length = void 0;\n\n if ((0, _object.isObject)(value)) {\n length = Object.keys(value).length;\n } else if (Array.isArray(value)) {\n length = value.length;\n } else {\n length = (0, _mixed.stringify)(value).length;\n }\n\n if (hasCustomBundleSeed) {\n length += bundleCountSeed;\n }\n\n if (!samples.has(length)) {\n samples.set(length, {\n needed: _this2.getSampleCount(),\n strings: []\n });\n }\n var sample = samples.get(length);\n\n if (sample.needed) {\n var duplicate = sampledValues.indexOf(value) > -1;\n\n if (!duplicate || _this2.allowDuplicates || hasCustomBundleSeed) {\n sample.strings.push(_defineProperty({ value: value }, computedKey, index));\n sampledValues.push(value);\n sample.needed--;\n }\n }\n });\n\n return samples;\n }\n }]);\n\n return SamplesGenerator;\n}();\n\nexports.default = SamplesGenerator;\n\n/***/ }),\n/* 204 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _number = __webpack_require__(6);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar STATE_INITIALIZED = 0;\nvar STATE_BUILT = 1;\nvar STATE_APPENDED = 2;\nvar UNIT = 'px';\n\n/**\n * @class\n * @private\n */\n\nvar BaseUI = function () {\n function BaseUI(hotInstance) {\n _classCallCheck(this, BaseUI);\n\n /**\n * Instance of Handsontable.\n *\n * @type {Core}\n */\n this.hot = hotInstance;\n /**\n * DOM element representing the ui element.\n *\n * @type {HTMLElement}\n * @private\n */\n this._element = null;\n /**\n * Flag which determines build state of element.\n *\n * @type {Boolean}\n */\n this.state = STATE_INITIALIZED;\n }\n\n /**\n * Add created UI elements to table.\n *\n * @param {HTMLElement} wrapper Element which are parent for our UI element.\n */\n\n\n _createClass(BaseUI, [{\n key: 'appendTo',\n value: function appendTo(wrapper) {\n wrapper.appendChild(this._element);\n\n this.state = STATE_APPENDED;\n }\n\n /**\n * Method for create UI element. Only create, without append to table.\n */\n\n }, {\n key: 'build',\n value: function build() {\n this._element = document.createElement('div');\n this.state = STATE_BUILT;\n }\n\n /**\n * Method for remove UI element.\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n if (this.isAppended()) {\n this._element.parentElement.removeChild(this._element);\n }\n\n this._element = null;\n this.state = STATE_INITIALIZED;\n }\n\n /**\n * Check if UI element are appended.\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isAppended',\n value: function isAppended() {\n return this.state === STATE_APPENDED;\n }\n\n /**\n * Check if UI element are built.\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isBuilt',\n value: function isBuilt() {\n return this.state >= STATE_BUILT;\n }\n\n /**\n * Setter for position.\n *\n * @param {Number} top New top position of the element.\n * @param {Number} left New left position of the element.\n */\n\n }, {\n key: 'setPosition',\n value: function setPosition(top, left) {\n if ((0, _number.isNumeric)(top)) {\n this._element.style.top = top + UNIT;\n }\n if ((0, _number.isNumeric)(left)) {\n this._element.style.left = left + UNIT;\n }\n }\n\n /**\n * Getter for the element position.\n *\n * @returns {Object} Object contains left and top position of the element.\n */\n\n }, {\n key: 'getPosition',\n value: function getPosition() {\n return {\n top: this._element.style.top ? parseInt(this._element.style.top, 10) : 0,\n left: this._element.style.left ? parseInt(this._element.style.left, 10) : 0\n };\n }\n\n /**\n * Setter for the element size.\n *\n * @param {Number} width New width of the element.\n * @param {Number} height New height of the element.\n */\n\n }, {\n key: 'setSize',\n value: function setSize(width, height) {\n if ((0, _number.isNumeric)(width)) {\n this._element.style.width = width + UNIT;\n }\n if ((0, _number.isNumeric)(height)) {\n this._element.style.height = height + UNIT;\n }\n }\n\n /**\n * Getter for the element position.\n *\n * @returns {Object} Object contains height and width of the element.\n */\n\n }, {\n key: 'getSize',\n value: function getSize() {\n return {\n width: this._element.style.width ? parseInt(this._element.style.width, 10) : 0,\n height: this._element.style.height ? parseInt(this._element.style.height, 10) : 0\n };\n }\n\n /**\n * Setter for the element offset. Offset means marginTop and marginLeft of the element.\n *\n * @param {Number} top New margin top of the element.\n * @param {Number} left New margin left of the element.\n */\n\n }, {\n key: 'setOffset',\n value: function setOffset(top, left) {\n if ((0, _number.isNumeric)(top)) {\n this._element.style.marginTop = top + UNIT;\n }\n if ((0, _number.isNumeric)(left)) {\n this._element.style.marginLeft = left + UNIT;\n }\n }\n\n /**\n * Getter for the element offset.\n *\n * @returns {Object} Object contains top and left offset of the element.\n */\n\n }, {\n key: 'getOffset',\n value: function getOffset() {\n return {\n top: this._element.style.marginTop ? parseInt(this._element.style.marginTop, 10) : 0,\n left: this._element.style.marginLeft ? parseInt(this._element.style.marginLeft, 10) : 0\n };\n }\n }]);\n\n return BaseUI;\n}();\n\nexports.default = BaseUI;\n\n/***/ }),\n/* 205 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar STATE_INITIALIZED = 0;\nvar STATE_BUILT = 1;\nvar STATE_APPENDED = 2;\nvar UNIT = 'px';\n\n/**\n * @class\n * @private\n */\n\nvar BaseUI = function () {\n function BaseUI(hotInstance) {\n _classCallCheck(this, BaseUI);\n\n /**\n * Instance of Handsontable.\n *\n * @type {Core}\n */\n this.hot = hotInstance;\n /**\n * DOM element representing the ui element.\n *\n * @type {HTMLElement}\n * @private\n */\n this._element = null;\n /**\n * Flag which determines build state of element.\n *\n * @type {Boolean}\n */\n this.state = STATE_INITIALIZED;\n }\n\n /**\n * Add created UI elements to table.\n *\n * @param {HTMLElement} wrapper Element which are parent for our UI element.\n */\n\n\n _createClass(BaseUI, [{\n key: 'appendTo',\n value: function appendTo(wrapper) {\n wrapper.appendChild(this._element);\n\n this.state = STATE_APPENDED;\n }\n\n /**\n * Method for create UI element. Only create, without append to table.\n */\n\n }, {\n key: 'build',\n value: function build() {\n this._element = document.createElement('div');\n this.state = STATE_BUILT;\n }\n\n /**\n * Method for remove UI element.\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n if (this.isAppended()) {\n this._element.parentElement.removeChild(this._element);\n }\n\n this._element = null;\n this.state = STATE_INITIALIZED;\n }\n\n /**\n * Check if UI element are appended.\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isAppended',\n value: function isAppended() {\n return this.state === STATE_APPENDED;\n }\n\n /**\n * Check if UI element are built.\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isBuilt',\n value: function isBuilt() {\n return this.state >= STATE_BUILT;\n }\n\n /**\n * Setter for position.\n *\n * @param {Number} top New top position of the element.\n * @param {Number} left New left position of the element.\n */\n\n }, {\n key: 'setPosition',\n value: function setPosition(top, left) {\n if (top !== void 0) {\n this._element.style.top = top + UNIT;\n }\n if (left !== void 0) {\n this._element.style.left = left + UNIT;\n }\n }\n\n /**\n * Getter for the element position.\n *\n * @returns {Object} Object contains left and top position of the element.\n */\n\n }, {\n key: 'getPosition',\n value: function getPosition() {\n return {\n top: this._element.style.top ? parseInt(this._element.style.top, 10) : 0,\n left: this._element.style.left ? parseInt(this._element.style.left, 10) : 0\n };\n }\n\n /**\n * Setter for the element size.\n *\n * @param {Number} width New width of the element.\n * @param {Number} height New height of the element.\n */\n\n }, {\n key: 'setSize',\n value: function setSize(width, height) {\n if (width) {\n this._element.style.width = width + UNIT;\n }\n if (height) {\n this._element.style.height = height + UNIT;\n }\n }\n\n /**\n * Getter for the element position.\n *\n * @returns {Object} Object contains height and width of the element.\n */\n\n }, {\n key: 'getSize',\n value: function getSize() {\n return {\n width: this._element.style.width ? parseInt(this._element.style.width, 10) : 0,\n height: this._element.style.height ? parseInt(this._element.style.height, 10) : 0\n };\n }\n\n /**\n * Setter for the element offset. Offset means marginTop and marginLeft of the element.\n *\n * @param {Number} top New margin top of the element.\n * @param {Number} left New margin left of the element.\n */\n\n }, {\n key: 'setOffset',\n value: function setOffset(top, left) {\n if (top) {\n this._element.style.marginTop = top + UNIT;\n }\n if (left) {\n this._element.style.marginLeft = left + UNIT;\n }\n }\n\n /**\n * Getter for the element offset.\n *\n * @returns {Object} Object contains top and left offset of the element.\n */\n\n }, {\n key: 'getOffset',\n value: function getOffset() {\n return {\n top: this._element.style.marginTop ? parseInt(this._element.style.marginTop, 10) : 0,\n left: this._element.style.marginLeft ? parseInt(this._element.style.marginLeft, 10) : 0\n };\n }\n }]);\n\n return BaseUI;\n}();\n\nexports.default = BaseUI;\n\n/***/ }),\n/* 206 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.applySpanProperties = applySpanProperties;\n/**\n * Apply the `colspan`/`rowspan` properties.\n *\n * @param {HTMLElement} TD The soon-to-be-modified cell.\n * @param {MergedCellCoords} merged cellInfo The merged cell in question.\n * @param {Number} row Row index.\n * @param {Number} col Column index.\n */\n// eslint-disable-next-line import/prefer-default-export\nfunction applySpanProperties(TD, mergedCellInfo, row, col) {\n if (mergedCellInfo) {\n if (mergedCellInfo.row === row && mergedCellInfo.col === col) {\n TD.setAttribute('rowspan', mergedCellInfo.rowspan.toString());\n TD.setAttribute('colspan', mergedCellInfo.colspan.toString());\n } else {\n TD.removeAttribute('rowspan');\n TD.removeAttribute('colspan');\n\n TD.style.display = 'none';\n }\n } else {\n TD.removeAttribute('rowspan');\n TD.removeAttribute('colspan');\n\n TD.style.display = '';\n }\n}\n\n/***/ }),\n/* 207 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\n__webpack_require__(98);\n\n__webpack_require__(113);\n\n__webpack_require__(114);\n\n__webpack_require__(118);\n\n__webpack_require__(119);\n\n__webpack_require__(121);\n\n__webpack_require__(124);\n\n__webpack_require__(125);\n\n__webpack_require__(126);\n\n__webpack_require__(127);\n\n__webpack_require__(128);\n\n__webpack_require__(129);\n\n__webpack_require__(130);\n\n__webpack_require__(131);\n\n__webpack_require__(132);\n\n__webpack_require__(133);\n\n__webpack_require__(134);\n\n__webpack_require__(135);\n\n__webpack_require__(136);\n\n__webpack_require__(137);\n\n__webpack_require__(138);\n\n__webpack_require__(139);\n\n__webpack_require__(140);\n\n__webpack_require__(141);\n\n__webpack_require__(143);\n\n__webpack_require__(145);\n\n__webpack_require__(146);\n\n__webpack_require__(147);\n\n__webpack_require__(148);\n\n__webpack_require__(149);\n\n__webpack_require__(150);\n\n__webpack_require__(151);\n\n__webpack_require__(152);\n\n__webpack_require__(153);\n\n__webpack_require__(154);\n\n__webpack_require__(155);\n\n__webpack_require__(156);\n\n__webpack_require__(157);\n\n__webpack_require__(88);\n\n__webpack_require__(158);\n\n__webpack_require__(159);\n\n__webpack_require__(161);\n\n__webpack_require__(162);\n\n__webpack_require__(163);\n\n__webpack_require__(164);\n\n__webpack_require__(165);\n\n__webpack_require__(166);\n\n__webpack_require__(167);\n\n__webpack_require__(169);\n\n__webpack_require__(170);\n\n__webpack_require__(171);\n\n__webpack_require__(173);\n\n__webpack_require__(174);\n\n__webpack_require__(175);\n\n__webpack_require__(226);\n\n__webpack_require__(227);\n\n__webpack_require__(228);\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar _cellTypes = __webpack_require__(89);\n\nvar _core = __webpack_require__(90);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _jquery = __webpack_require__(283);\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _pluginHooks = __webpack_require__(16);\n\nvar _pluginHooks2 = _interopRequireDefault(_pluginHooks);\n\nvar _ghostTable = __webpack_require__(93);\n\nvar _ghostTable2 = _interopRequireDefault(_ghostTable);\n\nvar _array = __webpack_require__(2);\n\nvar arrayHelpers = _interopRequireWildcard(_array);\n\nvar _browser = __webpack_require__(39);\n\nvar browserHelpers = _interopRequireWildcard(_browser);\n\nvar _data = __webpack_require__(92);\n\nvar dataHelpers = _interopRequireWildcard(_data);\n\nvar _date = __webpack_require__(192);\n\nvar dateHelpers = _interopRequireWildcard(_date);\n\nvar _feature = __webpack_require__(40);\n\nvar featureHelpers = _interopRequireWildcard(_feature);\n\nvar _function = __webpack_require__(43);\n\nvar functionHelpers = _interopRequireWildcard(_function);\n\nvar _mixed = __webpack_require__(11);\n\nvar mixedHelpers = _interopRequireWildcard(_mixed);\n\nvar _number = __webpack_require__(6);\n\nvar numberHelpers = _interopRequireWildcard(_number);\n\nvar _object = __webpack_require__(1);\n\nvar objectHelpers = _interopRequireWildcard(_object);\n\nvar _setting = __webpack_require__(91);\n\nvar settingHelpers = _interopRequireWildcard(_setting);\n\nvar _string = __webpack_require__(33);\n\nvar stringHelpers = _interopRequireWildcard(_string);\n\nvar _unicode = __webpack_require__(21);\n\nvar unicodeHelpers = _interopRequireWildcard(_unicode);\n\nvar _element = __webpack_require__(0);\n\nvar domHelpers = _interopRequireWildcard(_element);\n\nvar _event = __webpack_require__(13);\n\nvar domEventHelpers = _interopRequireWildcard(_event);\n\nvar _index = __webpack_require__(284);\n\nvar plugins = _interopRequireWildcard(_index);\n\nvar _plugins = __webpack_require__(8);\n\nvar _defaultSettings = __webpack_require__(197);\n\nvar _defaultSettings2 = _interopRequireDefault(_defaultSettings);\n\nvar _rootInstance = __webpack_require__(196);\n\nvar _i18n = __webpack_require__(198);\n\nvar _constants = __webpack_require__(7);\n\nvar constants = _interopRequireWildcard(_constants);\n\nvar _dictionariesManager = __webpack_require__(71);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction Handsontable(rootElement, userSettings) {\n var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbol);\n\n instance.init();\n\n return instance;\n}\n\n(0, _jquery2.default)(Handsontable);\n\nHandsontable.Core = _core2.default;\nHandsontable.DefaultSettings = _defaultSettings2.default;\nHandsontable.EventManager = _eventManager2.default;\nHandsontable._getListenersCounter = _eventManager.getListenersCounter; // For MemoryLeak tests\n\nHandsontable.buildDate = '16/08/2018 12:19:04';\nHandsontable.packageName = 'handsontable';\nHandsontable.version = '5.0.1';\n\nvar baseVersion = '';\n\nif (baseVersion) {\n Handsontable.baseVersion = baseVersion;\n}\n\n// Export Hooks singleton\nHandsontable.hooks = _pluginHooks2.default.getSingleton();\n\n// TODO: Remove this exports after rewrite tests about this module\nHandsontable.__GhostTable = _ghostTable2.default;\n//\n\n// Export all helpers to the Handsontable object\nvar HELPERS = [arrayHelpers, browserHelpers, dataHelpers, dateHelpers, featureHelpers, functionHelpers, mixedHelpers, numberHelpers, objectHelpers, settingHelpers, stringHelpers, unicodeHelpers];\nvar DOM = [domHelpers, domEventHelpers];\n\nHandsontable.helper = {};\nHandsontable.dom = {};\n\n// Fill general helpers.\narrayHelpers.arrayEach(HELPERS, function (helper) {\n arrayHelpers.arrayEach(Object.getOwnPropertyNames(helper), function (key) {\n if (key.charAt(0) !== '_') {\n Handsontable.helper[key] = helper[key];\n }\n });\n});\n\n// Fill DOM helpers.\narrayHelpers.arrayEach(DOM, function (helper) {\n arrayHelpers.arrayEach(Object.getOwnPropertyNames(helper), function (key) {\n if (key.charAt(0) !== '_') {\n Handsontable.dom[key] = helper[key];\n }\n });\n});\n\n// Export cell types.\nHandsontable.cellTypes = {};\n\narrayHelpers.arrayEach((0, _cellTypes.getRegisteredCellTypeNames)(), function (cellTypeName) {\n Handsontable.cellTypes[cellTypeName] = (0, _cellTypes.getCellType)(cellTypeName);\n});\n\nHandsontable.cellTypes.registerCellType = _cellTypes.registerCellType;\nHandsontable.cellTypes.getCellType = _cellTypes.getCellType;\n\n// Export all registered editors from the Handsontable.\nHandsontable.editors = {};\n\narrayHelpers.arrayEach((0, _editors.getRegisteredEditorNames)(), function (editorName) {\n Handsontable.editors[stringHelpers.toUpperCaseFirst(editorName) + 'Editor'] = (0, _editors.getEditor)(editorName);\n});\n\nHandsontable.editors.registerEditor = _editors.registerEditor;\nHandsontable.editors.getEditor = _editors.getEditor;\n\n// Export all registered renderers from the Handsontable.\nHandsontable.renderers = {};\n\narrayHelpers.arrayEach((0, _renderers.getRegisteredRendererNames)(), function (rendererName) {\n var renderer = (0, _renderers.getRenderer)(rendererName);\n\n if (rendererName === 'base') {\n Handsontable.renderers.cellDecorator = renderer;\n }\n Handsontable.renderers[stringHelpers.toUpperCaseFirst(rendererName) + 'Renderer'] = renderer;\n});\n\nHandsontable.renderers.registerRenderer = _renderers.registerRenderer;\nHandsontable.renderers.getRenderer = _renderers.getRenderer;\n\n// Export all registered validators from the Handsontable.\nHandsontable.validators = {};\n\narrayHelpers.arrayEach((0, _validators.getRegisteredValidatorNames)(), function (validatorName) {\n Handsontable.validators[stringHelpers.toUpperCaseFirst(validatorName) + 'Validator'] = (0, _validators.getValidator)(validatorName);\n});\n\nHandsontable.validators.registerValidator = _validators.registerValidator;\nHandsontable.validators.getValidator = _validators.getValidator;\n\n// Export all registered plugins from the Handsontable.\nHandsontable.plugins = {};\n\narrayHelpers.arrayEach(Object.getOwnPropertyNames(plugins), function (pluginName) {\n var plugin = plugins[pluginName];\n\n if (pluginName === 'Base') {\n Handsontable.plugins[pluginName + 'Plugin'] = plugin;\n } else {\n Handsontable.plugins[pluginName] = plugin;\n }\n});\n\nHandsontable.plugins.registerPlugin = _plugins.registerPlugin;\n\nHandsontable.languages = {};\nHandsontable.languages.dictionaryKeys = constants;\nHandsontable.languages.getLanguageDictionary = _dictionariesManager.getLanguageDictionary;\nHandsontable.languages.getLanguagesDictionaries = _dictionariesManager.getLanguagesDictionaries;\nHandsontable.languages.registerLanguageDictionary = _dictionariesManager.registerLanguageDictionary;\n\n// Alias to `getTranslatedPhrase` function, for more information check it API.\nHandsontable.languages.getTranslatedPhrase = function () {\n return _i18n.getTranslatedPhrase.apply(undefined, arguments);\n};\n\nexports.default = Handsontable;\n\n/***/ }),\n/* 208 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(20);\nvar anObject = __webpack_require__(18);\nvar getKeys = __webpack_require__(35);\n\nmodule.exports = __webpack_require__(22) ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n/***/ }),\n/* 209 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar create = __webpack_require__(76);\nvar descriptor = __webpack_require__(51);\nvar setToStringTag = __webpack_require__(53);\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__webpack_require__(29)(IteratorPrototype, __webpack_require__(12)('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/***/ }),\n/* 210 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(9);\nvar setPrototypeOf = __webpack_require__(112).set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n\n\n/***/ }),\n/* 211 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = __webpack_require__(212);\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n\n\n/***/ }),\n/* 212 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(9);\nvar isArray = __webpack_require__(115);\nvar SPECIES = __webpack_require__(12)('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n\n\n/***/ }),\n/* 213 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = __webpack_require__(18);\nvar aFunction = __webpack_require__(63);\nvar SPECIES = __webpack_require__(12)('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n/***/ }),\n/* 214 */\n/***/ (function(module, exports) {\n\n// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n/***/ }),\n/* 215 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(15);\nvar macrotask = __webpack_require__(82).set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = __webpack_require__(44)(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n var promise = Promise.resolve(undefined);\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n/***/ }),\n/* 216 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n/***/ }),\n/* 217 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(18);\nvar isObject = __webpack_require__(9);\nvar newPromiseCapability = __webpack_require__(120);\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n/***/ }),\n/* 218 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(15);\nvar core = __webpack_require__(37);\nvar LIBRARY = __webpack_require__(49);\nvar wksExt = __webpack_require__(122);\nvar defineProperty = __webpack_require__(20).f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n/***/ }),\n/* 219 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// all enumerable object keys, includes symbols\nvar getKeys = __webpack_require__(35);\nvar gOPS = __webpack_require__(69);\nvar pIE = __webpack_require__(54);\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n/***/ }),\n/* 220 */\n/***/ (function(module, exports) {\n\n// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n\n\n/***/ }),\n/* 221 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(60);\nvar defined = __webpack_require__(36);\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/***/ }),\n/* 222 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = __webpack_require__(18);\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n\n\n/***/ }),\n/* 223 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\n\nvar toObject = __webpack_require__(31);\nvar toAbsoluteIndex = __webpack_require__(61);\nvar toLength = __webpack_require__(25);\n\nmodule.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var to = toAbsoluteIndex(target, len);\n var from = toAbsoluteIndex(start, len);\n var end = arguments.length > 2 ? arguments[2] : undefined;\n var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);\n var inc = 1;\n if (from < to && to < from + count) {\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while (count-- > 0) {\n if (from in O) O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n\n\n/***/ }),\n/* 224 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n\nvar toObject = __webpack_require__(31);\nvar toAbsoluteIndex = __webpack_require__(61);\nvar toLength = __webpack_require__(25);\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n var O = toObject(this);\n var length = toLength(O.length);\n var aLen = arguments.length;\n var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);\n var end = aLen > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n\n\n/***/ }),\n/* 225 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// all object keys, includes non-enumerable and symbols\nvar gOPN = __webpack_require__(84);\nvar gOPS = __webpack_require__(69);\nvar anObject = __webpack_require__(18);\nvar Reflect = __webpack_require__(15).Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n\n\n/***/ }),\n/* 226 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 227 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 228 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 229 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\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\n/**\n * A overlay that renders ALL available rows & columns positioned on top of the original Walkontable instance and all other overlays.\n * Used for debugging purposes to see if the other overlays (that render only part of the rows & columns) are positioned correctly\n *\n * @class DebugOverlay\n */\nvar DebugOverlay = function (_Overlay) {\n _inherits(DebugOverlay, _Overlay);\n\n /**\n * @param {Walkontable} wotInstance\n */\n function DebugOverlay(wotInstance) {\n _classCallCheck(this, DebugOverlay);\n\n var _this = _possibleConstructorReturn(this, (DebugOverlay.__proto__ || Object.getPrototypeOf(DebugOverlay)).call(this, wotInstance));\n\n _this.clone = _this.makeClone(_base2.default.CLONE_DEBUG);\n _this.clone.wtTable.holder.style.opacity = 0.4;\n _this.clone.wtTable.holder.style.textShadow = '0 0 2px #ff0000';\n\n (0, _element.addClass)(_this.clone.wtTable.holder.parentNode, 'wtDebugVisible');\n return _this;\n }\n\n return DebugOverlay;\n}(_base2.default);\n\n_base2.default.registerOverlay(_base2.default.CLONE_DEBUG, DebugOverlay);\n\nexports.default = DebugOverlay;\n\n/***/ }),\n/* 230 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\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\n/**\n * @class LeftOverlay\n */\nvar LeftOverlay = function (_Overlay) {\n _inherits(LeftOverlay, _Overlay);\n\n /**\n * @param {Walkontable} wotInstance\n */\n function LeftOverlay(wotInstance) {\n _classCallCheck(this, LeftOverlay);\n\n var _this = _possibleConstructorReturn(this, (LeftOverlay.__proto__ || Object.getPrototypeOf(LeftOverlay)).call(this, wotInstance));\n\n _this.clone = _this.makeClone(_base2.default.CLONE_LEFT);\n return _this;\n }\n\n /**\n * Checks if overlay should be fully rendered.\n *\n * @returns {Boolean}\n */\n\n\n _createClass(LeftOverlay, [{\n key: 'shouldBeRendered',\n value: function shouldBeRendered() {\n return !!(this.wot.getSetting('fixedColumnsLeft') || this.wot.getSetting('rowHeaders').length);\n }\n\n /**\n * Updates the left overlay position.\n */\n\n }, {\n key: 'resetFixedPosition',\n value: function resetFixedPosition() {\n if (!this.needFullRender || !this.wot.wtTable.holder.parentNode) {\n // removed from DOM\n return;\n }\n var overlayRoot = this.clone.wtTable.holder.parentNode;\n var headerPosition = 0;\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (this.trimmingContainer === window && (!preventOverflow || preventOverflow !== 'horizontal')) {\n var box = this.wot.wtTable.hider.getBoundingClientRect();\n var left = Math.ceil(box.left);\n var right = Math.ceil(box.right);\n var finalLeft = void 0;\n var finalTop = void 0;\n\n finalTop = this.wot.wtTable.hider.style.top;\n finalTop = finalTop === '' ? 0 : finalTop;\n\n if (left < 0 && right - overlayRoot.offsetWidth > 0) {\n finalLeft = -left;\n } else {\n finalLeft = 0;\n }\n headerPosition = finalLeft;\n finalLeft += 'px';\n\n (0, _element.setOverlayPosition)(overlayRoot, finalLeft, finalTop);\n } else {\n headerPosition = this.getScrollPosition();\n (0, _element.resetCssTransform)(overlayRoot);\n }\n this.adjustHeaderBordersPosition(headerPosition);\n this.adjustElementsSize();\n }\n\n /**\n * Sets the main overlay's horizontal scroll position.\n *\n * @param {Number} pos\n * @returns {Boolean}\n */\n\n }, {\n key: 'setScrollPosition',\n value: function setScrollPosition(pos) {\n var result = false;\n\n if (this.mainTableScrollableElement === window && window.scrollX !== pos) {\n window.scrollTo(pos, (0, _element.getWindowScrollTop)());\n result = true;\n } else if (this.mainTableScrollableElement.scrollLeft !== pos) {\n this.mainTableScrollableElement.scrollLeft = pos;\n result = true;\n }\n\n return result;\n }\n\n /**\n * Triggers onScroll hook callback.\n */\n\n }, {\n key: 'onScroll',\n value: function onScroll() {\n this.wot.getSetting('onScrollVertically');\n }\n\n /**\n * Calculates total sum cells width.\n *\n * @param {Number} from Column index which calculates started from.\n * @param {Number} to Column index where calculation is finished.\n * @returns {Number} Width sum.\n */\n\n }, {\n key: 'sumCellSizes',\n value: function sumCellSizes(from, to) {\n var sum = 0;\n var defaultColumnWidth = this.wot.wtSettings.defaultColumnWidth;\n\n while (from < to) {\n sum += this.wot.wtTable.getStretchedColumnWidth(from) || defaultColumnWidth;\n from++;\n }\n\n return sum;\n }\n\n /**\n * Adjust overlay root element, childs and master table element sizes (width, height).\n *\n * @param {Boolean} [force=false]\n */\n\n }, {\n key: 'adjustElementsSize',\n value: function adjustElementsSize() {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n this.updateTrimmingContainer();\n\n if (this.needFullRender || force) {\n this.adjustRootElementSize();\n this.adjustRootChildrenSize();\n\n if (!force) {\n this.areElementSizesAdjusted = true;\n }\n }\n }\n\n /**\n * Adjust overlay root element size (width and height).\n */\n\n }, {\n key: 'adjustRootElementSize',\n value: function adjustRootElementSize() {\n var masterHolder = this.wot.wtTable.holder;\n var scrollbarHeight = masterHolder.clientHeight === masterHolder.offsetHeight ? 0 : (0, _element.getScrollbarWidth)();\n var overlayRoot = this.clone.wtTable.holder.parentNode;\n var overlayRootStyle = overlayRoot.style;\n var preventOverflow = this.wot.getSetting('preventOverflow');\n var tableWidth = void 0;\n\n if (this.trimmingContainer !== window || preventOverflow === 'vertical') {\n var height = this.wot.wtViewport.getWorkspaceHeight() - scrollbarHeight;\n\n height = Math.min(height, (0, _element.innerHeight)(this.wot.wtTable.wtRootElement));\n\n overlayRootStyle.height = height + 'px';\n } else {\n overlayRootStyle.height = '';\n }\n\n this.clone.wtTable.holder.style.height = overlayRootStyle.height;\n\n tableWidth = (0, _element.outerWidth)(this.clone.wtTable.TABLE);\n overlayRootStyle.width = (tableWidth === 0 ? tableWidth : tableWidth + 4) + 'px';\n }\n\n /**\n * Adjust overlay root childs size.\n */\n\n }, {\n key: 'adjustRootChildrenSize',\n value: function adjustRootChildrenSize() {\n var scrollbarWidth = (0, _element.getScrollbarWidth)();\n\n this.clone.wtTable.hider.style.height = this.hider.style.height;\n this.clone.wtTable.holder.style.height = this.clone.wtTable.holder.parentNode.style.height;\n\n if (scrollbarWidth === 0) {\n scrollbarWidth = 30;\n }\n this.clone.wtTable.holder.style.width = parseInt(this.clone.wtTable.holder.parentNode.style.width, 10) + scrollbarWidth + 'px';\n }\n\n /**\n * Adjust the overlay dimensions and position.\n */\n\n }, {\n key: 'applyToDOM',\n value: function applyToDOM() {\n var total = this.wot.getSetting('totalColumns');\n\n if (!this.areElementSizesAdjusted) {\n this.adjustElementsSize();\n }\n if (typeof this.wot.wtViewport.columnsRenderCalculator.startPosition === 'number') {\n this.spreader.style.left = this.wot.wtViewport.columnsRenderCalculator.startPosition + 'px';\n } else if (total === 0) {\n this.spreader.style.left = '0';\n } else {\n throw new Error('Incorrect value of the columnsRenderCalculator');\n }\n this.spreader.style.right = '';\n\n if (this.needFullRender) {\n this.syncOverlayOffset();\n }\n }\n\n /**\n * Synchronize calculated top position to an element.\n */\n\n }, {\n key: 'syncOverlayOffset',\n value: function syncOverlayOffset() {\n if (typeof this.wot.wtViewport.rowsRenderCalculator.startPosition === 'number') {\n this.clone.wtTable.spreader.style.top = this.wot.wtViewport.rowsRenderCalculator.startPosition + 'px';\n } else {\n this.clone.wtTable.spreader.style.top = '';\n }\n }\n\n /**\n * Scrolls horizontally to a column at the left edge of the viewport.\n *\n * @param {Number} sourceCol Column index which you want to scroll to.\n * @param {Boolean} [beyondRendered] if `true`, scrolls according to the bottom edge (top edge is by default).\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollTo',\n value: function scrollTo(sourceCol, beyondRendered) {\n var newX = this.getTableParentOffset();\n var sourceInstance = this.wot.cloneSource ? this.wot.cloneSource : this.wot;\n var mainHolder = sourceInstance.wtTable.holder;\n var scrollbarCompensation = 0;\n\n if (beyondRendered && mainHolder.offsetWidth !== mainHolder.clientWidth) {\n scrollbarCompensation = (0, _element.getScrollbarWidth)();\n }\n if (beyondRendered) {\n newX += this.sumCellSizes(0, sourceCol + 1);\n newX -= this.wot.wtViewport.getViewportWidth();\n } else {\n newX += this.sumCellSizes(this.wot.getSetting('fixedColumnsLeft'), sourceCol);\n }\n\n newX += scrollbarCompensation;\n\n return this.setScrollPosition(newX);\n }\n\n /**\n * Gets table parent left position.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getTableParentOffset',\n value: function getTableParentOffset() {\n var preventOverflow = this.wot.getSetting('preventOverflow');\n var offset = 0;\n\n if (!preventOverflow && this.trimmingContainer === window) {\n offset = this.wot.wtTable.holderOffset.left;\n }\n\n return offset;\n }\n\n /**\n * Gets the main overlay's horizontal scroll position.\n *\n * @returns {Number} Main table's vertical scroll position.\n */\n\n }, {\n key: 'getScrollPosition',\n value: function getScrollPosition() {\n return (0, _element.getScrollLeft)(this.mainTableScrollableElement);\n }\n\n /**\n * Adds css classes to hide the header border's header (cell-selection border hiding issue).\n *\n * @param {Number} position Header X position if trimming container is window or scroll top if not.\n */\n\n }, {\n key: 'adjustHeaderBordersPosition',\n value: function adjustHeaderBordersPosition(position) {\n var masterParent = this.wot.wtTable.holder.parentNode;\n var rowHeaders = this.wot.getSetting('rowHeaders');\n var fixedColumnsLeft = this.wot.getSetting('fixedColumnsLeft');\n var totalRows = this.wot.getSetting('totalRows');\n\n if (totalRows) {\n (0, _element.removeClass)(masterParent, 'emptyRows');\n } else {\n (0, _element.addClass)(masterParent, 'emptyRows');\n }\n\n if (fixedColumnsLeft && !rowHeaders.length) {\n (0, _element.addClass)(masterParent, 'innerBorderLeft');\n } else if (!fixedColumnsLeft && rowHeaders.length) {\n var previousState = (0, _element.hasClass)(masterParent, 'innerBorderLeft');\n\n if (position) {\n (0, _element.addClass)(masterParent, 'innerBorderLeft');\n } else {\n (0, _element.removeClass)(masterParent, 'innerBorderLeft');\n }\n if (!previousState && position || previousState && !position) {\n this.wot.wtOverlays.adjustElementsSize();\n }\n }\n }\n }]);\n\n return LeftOverlay;\n}(_base2.default);\n\n_base2.default.registerOverlay(_base2.default.CLONE_LEFT, LeftOverlay);\n\nexports.default = LeftOverlay;\n\n/***/ }),\n/* 231 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _array = __webpack_require__(2);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\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\n/**\n * @class TopOverlay\n */\nvar TopOverlay = function (_Overlay) {\n _inherits(TopOverlay, _Overlay);\n\n /**\n * @param {Walkontable} wotInstance\n */\n function TopOverlay(wotInstance) {\n _classCallCheck(this, TopOverlay);\n\n var _this = _possibleConstructorReturn(this, (TopOverlay.__proto__ || Object.getPrototypeOf(TopOverlay)).call(this, wotInstance));\n\n _this.clone = _this.makeClone(_base2.default.CLONE_TOP);\n return _this;\n }\n\n /**\n * Checks if overlay should be fully rendered.\n *\n * @returns {Boolean}\n */\n\n\n _createClass(TopOverlay, [{\n key: 'shouldBeRendered',\n value: function shouldBeRendered() {\n return !!(this.wot.getSetting('fixedRowsTop') || this.wot.getSetting('columnHeaders').length);\n }\n\n /**\n * Updates the top overlay position.\n */\n\n }, {\n key: 'resetFixedPosition',\n value: function resetFixedPosition() {\n if (!this.needFullRender || !this.wot.wtTable.holder.parentNode) {\n // removed from DOM\n return;\n }\n var overlayRoot = this.clone.wtTable.holder.parentNode;\n var headerPosition = 0;\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (this.trimmingContainer === window && (!preventOverflow || preventOverflow !== 'vertical')) {\n var box = this.wot.wtTable.hider.getBoundingClientRect();\n var top = Math.ceil(box.top);\n var bottom = Math.ceil(box.bottom);\n var finalLeft = void 0;\n var finalTop = void 0;\n\n finalLeft = this.wot.wtTable.hider.style.left;\n finalLeft = finalLeft === '' ? 0 : finalLeft;\n\n if (top < 0 && bottom - overlayRoot.offsetHeight > 0) {\n finalTop = -top;\n } else {\n finalTop = 0;\n }\n headerPosition = finalTop;\n finalTop += 'px';\n\n (0, _element.setOverlayPosition)(overlayRoot, finalLeft, finalTop);\n } else {\n headerPosition = this.getScrollPosition();\n (0, _element.resetCssTransform)(overlayRoot);\n }\n\n this.adjustHeaderBordersPosition(headerPosition);\n this.adjustElementsSize();\n }\n\n /**\n * Sets the main overlay's vertical scroll position.\n *\n * @param {Number} pos\n * @returns {Boolean}\n */\n\n }, {\n key: 'setScrollPosition',\n value: function setScrollPosition(pos) {\n var result = false;\n\n if (this.mainTableScrollableElement === window && window.scrollY !== pos) {\n window.scrollTo((0, _element.getWindowScrollLeft)(), pos);\n result = true;\n } else if (this.mainTableScrollableElement.scrollTop !== pos) {\n this.mainTableScrollableElement.scrollTop = pos;\n result = true;\n }\n\n return result;\n }\n\n /**\n * Triggers onScroll hook callback.\n */\n\n }, {\n key: 'onScroll',\n value: function onScroll() {\n this.wot.getSetting('onScrollHorizontally');\n }\n\n /**\n * Calculates total sum cells height.\n *\n * @param {Number} from Row index which calculates started from.\n * @param {Number} to Row index where calculation is finished.\n * @returns {Number} Height sum.\n */\n\n }, {\n key: 'sumCellSizes',\n value: function sumCellSizes(from, to) {\n var sum = 0;\n var defaultRowHeight = this.wot.wtSettings.settings.defaultRowHeight;\n\n while (from < to) {\n var height = this.wot.wtTable.getRowHeight(from);\n\n sum += height === void 0 ? defaultRowHeight : height;\n from++;\n }\n\n return sum;\n }\n\n /**\n * Adjust overlay root element, childs and master table element sizes (width, height).\n *\n * @param {Boolean} [force=false]\n */\n\n }, {\n key: 'adjustElementsSize',\n value: function adjustElementsSize() {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n this.updateTrimmingContainer();\n\n if (this.needFullRender || force) {\n this.adjustRootElementSize();\n this.adjustRootChildrenSize();\n\n if (!force) {\n this.areElementSizesAdjusted = true;\n }\n }\n }\n\n /**\n * Adjust overlay root element size (width and height).\n */\n\n }, {\n key: 'adjustRootElementSize',\n value: function adjustRootElementSize() {\n var masterHolder = this.wot.wtTable.holder;\n var scrollbarWidth = masterHolder.clientWidth === masterHolder.offsetWidth ? 0 : (0, _element.getScrollbarWidth)();\n var overlayRoot = this.clone.wtTable.holder.parentNode;\n var overlayRootStyle = overlayRoot.style;\n var preventOverflow = this.wot.getSetting('preventOverflow');\n var tableHeight = void 0;\n\n if (this.trimmingContainer !== window || preventOverflow === 'horizontal') {\n var width = this.wot.wtViewport.getWorkspaceWidth() - scrollbarWidth;\n\n width = Math.min(width, (0, _element.innerWidth)(this.wot.wtTable.wtRootElement));\n\n overlayRootStyle.width = width + 'px';\n } else {\n overlayRootStyle.width = '';\n }\n\n this.clone.wtTable.holder.style.width = overlayRootStyle.width;\n\n tableHeight = (0, _element.outerHeight)(this.clone.wtTable.TABLE);\n overlayRootStyle.height = (tableHeight === 0 ? tableHeight : tableHeight + 4) + 'px';\n }\n\n /**\n * Adjust overlay root childs size.\n */\n\n }, {\n key: 'adjustRootChildrenSize',\n value: function adjustRootChildrenSize() {\n var scrollbarWidth = (0, _element.getScrollbarWidth)();\n\n this.clone.wtTable.hider.style.width = this.hider.style.width;\n this.clone.wtTable.holder.style.width = this.clone.wtTable.holder.parentNode.style.width;\n\n if (scrollbarWidth === 0) {\n scrollbarWidth = 30;\n }\n this.clone.wtTable.holder.style.height = parseInt(this.clone.wtTable.holder.parentNode.style.height, 10) + scrollbarWidth + 'px';\n }\n\n /**\n * Adjust the overlay dimensions and position.\n */\n\n }, {\n key: 'applyToDOM',\n value: function applyToDOM() {\n var total = this.wot.getSetting('totalRows');\n\n if (!this.areElementSizesAdjusted) {\n this.adjustElementsSize();\n }\n if (typeof this.wot.wtViewport.rowsRenderCalculator.startPosition === 'number') {\n this.spreader.style.top = this.wot.wtViewport.rowsRenderCalculator.startPosition + 'px';\n } else if (total === 0) {\n // can happen if there are 0 rows\n this.spreader.style.top = '0';\n } else {\n throw new Error('Incorrect value of the rowsRenderCalculator');\n }\n this.spreader.style.bottom = '';\n\n if (this.needFullRender) {\n this.syncOverlayOffset();\n }\n }\n\n /**\n * Synchronize calculated left position to an element.\n */\n\n }, {\n key: 'syncOverlayOffset',\n value: function syncOverlayOffset() {\n if (typeof this.wot.wtViewport.columnsRenderCalculator.startPosition === 'number') {\n this.clone.wtTable.spreader.style.left = this.wot.wtViewport.columnsRenderCalculator.startPosition + 'px';\n } else {\n this.clone.wtTable.spreader.style.left = '';\n }\n }\n\n /**\n * Scrolls vertically to a row.\n *\n * @param {Number} sourceRow Row index which you want to scroll to.\n * @param {Boolean} [bottomEdge] if `true`, scrolls according to the bottom edge (top edge is by default).\n * @returns {Boolean}\n */\n\n }, {\n key: 'scrollTo',\n value: function scrollTo(sourceRow, bottomEdge) {\n var newY = this.getTableParentOffset();\n var sourceInstance = this.wot.cloneSource ? this.wot.cloneSource : this.wot;\n var mainHolder = sourceInstance.wtTable.holder;\n var scrollbarCompensation = 0;\n\n if (bottomEdge && mainHolder.offsetHeight !== mainHolder.clientHeight) {\n scrollbarCompensation = (0, _element.getScrollbarWidth)();\n }\n\n if (bottomEdge) {\n var fixedRowsBottom = this.wot.getSetting('fixedRowsBottom');\n var totalRows = this.wot.getSetting('totalRows');\n\n newY += this.sumCellSizes(0, sourceRow + 1);\n newY -= this.wot.wtViewport.getViewportHeight() - this.sumCellSizes(totalRows - fixedRowsBottom, totalRows);\n // Fix 1 pixel offset when cell is selected\n newY += 1;\n } else {\n newY += this.sumCellSizes(this.wot.getSetting('fixedRowsTop'), sourceRow);\n }\n newY += scrollbarCompensation;\n\n return this.setScrollPosition(newY);\n }\n\n /**\n * Gets table parent top position.\n *\n * @returns {Number}\n */\n\n }, {\n key: 'getTableParentOffset',\n value: function getTableParentOffset() {\n if (this.mainTableScrollableElement === window) {\n return this.wot.wtTable.holderOffset.top;\n }\n return 0;\n }\n\n /**\n * Gets the main overlay's vertical scroll position.\n *\n * @returns {Number} Main table's vertical scroll position.\n */\n\n }, {\n key: 'getScrollPosition',\n value: function getScrollPosition() {\n return (0, _element.getScrollTop)(this.mainTableScrollableElement);\n }\n\n /**\n * Redraw borders of selection.\n *\n * @param {WalkontableSelection} selection Selection for redraw.\n */\n\n }, {\n key: 'redrawSelectionBorders',\n value: function redrawSelectionBorders(selection) {\n if (selection && selection.cellRange) {\n var border = selection.getBorder(this.wot);\n var corners = selection.getCorners();\n\n border.disappear();\n border.appear(corners);\n }\n }\n\n /**\n * Redrawing borders of all selections.\n */\n\n }, {\n key: 'redrawAllSelectionsBorders',\n value: function redrawAllSelectionsBorders() {\n var _this2 = this;\n\n var selections = this.wot.selections;\n\n this.redrawSelectionBorders(selections.getCell());\n\n (0, _array.arrayEach)(selections.getAreas(), function (area) {\n _this2.redrawSelectionBorders(area);\n });\n this.redrawSelectionBorders(selections.getFill());\n\n this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh();\n }\n\n /**\n * Adds css classes to hide the header border's header (cell-selection border hiding issue).\n *\n * @param {Number} position Header Y position if trimming container is window or scroll top if not.\n */\n\n }, {\n key: 'adjustHeaderBordersPosition',\n value: function adjustHeaderBordersPosition(position) {\n var masterParent = this.wot.wtTable.holder.parentNode;\n var totalColumns = this.wot.getSetting('totalColumns');\n\n if (totalColumns) {\n (0, _element.removeClass)(masterParent, 'emptyColumns');\n } else {\n (0, _element.addClass)(masterParent, 'emptyColumns');\n }\n\n if (this.wot.getSetting('fixedRowsTop') === 0 && this.wot.getSetting('columnHeaders').length > 0) {\n var previousState = (0, _element.hasClass)(masterParent, 'innerBorderTop');\n\n if (position || this.wot.getSetting('totalRows') === 0) {\n (0, _element.addClass)(masterParent, 'innerBorderTop');\n } else {\n (0, _element.removeClass)(masterParent, 'innerBorderTop');\n }\n\n if (!previousState && position || previousState && !position) {\n this.wot.wtOverlays.adjustElementsSize();\n\n // cell borders should be positioned once again,\n // because we added / removed 1px border from table header\n this.redrawAllSelectionsBorders();\n }\n }\n\n // nasty workaround for double border in the header, TODO: find a pure-css solution\n if (this.wot.getSetting('rowHeaders').length === 0) {\n var secondHeaderCell = this.clone.wtTable.THEAD.querySelectorAll('th:nth-of-type(2)');\n\n if (secondHeaderCell) {\n for (var i = 0; i < secondHeaderCell.length; i++) {\n secondHeaderCell[i].style['border-left-width'] = 0;\n }\n }\n }\n }\n }]);\n\n return TopOverlay;\n}(_base2.default);\n\n_base2.default.registerOverlay(_base2.default.CLONE_TOP, TopOverlay);\n\nexports.default = TopOverlay;\n\n/***/ }),\n/* 232 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _base = __webpack_require__(41);\n\nvar _base2 = _interopRequireDefault(_base);\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\n/**\n * @class TopLeftCornerOverlay\n */\nvar TopLeftCornerOverlay = function (_Overlay) {\n _inherits(TopLeftCornerOverlay, _Overlay);\n\n /**\n * @param {Walkontable} wotInstance\n */\n function TopLeftCornerOverlay(wotInstance) {\n _classCallCheck(this, TopLeftCornerOverlay);\n\n var _this = _possibleConstructorReturn(this, (TopLeftCornerOverlay.__proto__ || Object.getPrototypeOf(TopLeftCornerOverlay)).call(this, wotInstance));\n\n _this.clone = _this.makeClone(_base2.default.CLONE_TOP_LEFT_CORNER);\n return _this;\n }\n\n /**\n * Checks if overlay should be fully rendered\n *\n * @returns {Boolean}\n */\n\n\n _createClass(TopLeftCornerOverlay, [{\n key: 'shouldBeRendered',\n value: function shouldBeRendered() {\n return !!((this.wot.getSetting('fixedRowsTop') || this.wot.getSetting('columnHeaders').length) && (this.wot.getSetting('fixedColumnsLeft') || this.wot.getSetting('rowHeaders').length));\n }\n\n /**\n * Updates the corner overlay position\n */\n\n }, {\n key: 'resetFixedPosition',\n value: function resetFixedPosition() {\n this.updateTrimmingContainer();\n\n if (!this.wot.wtTable.holder.parentNode) {\n // removed from DOM\n return;\n }\n var overlayRoot = this.clone.wtTable.holder.parentNode;\n var tableHeight = (0, _element.outerHeight)(this.clone.wtTable.TABLE);\n var tableWidth = (0, _element.outerWidth)(this.clone.wtTable.TABLE);\n var preventOverflow = this.wot.getSetting('preventOverflow');\n\n if (this.trimmingContainer === window) {\n var box = this.wot.wtTable.hider.getBoundingClientRect();\n var top = Math.ceil(box.top);\n var left = Math.ceil(box.left);\n var bottom = Math.ceil(box.bottom);\n var right = Math.ceil(box.right);\n var finalLeft = '0';\n var finalTop = '0';\n\n if (!preventOverflow || preventOverflow === 'vertical') {\n if (left < 0 && right - overlayRoot.offsetWidth > 0) {\n finalLeft = -left + 'px';\n }\n }\n\n if (!preventOverflow || preventOverflow === 'horizontal') {\n if (top < 0 && bottom - overlayRoot.offsetHeight > 0) {\n finalTop = -top + 'px';\n }\n }\n (0, _element.setOverlayPosition)(overlayRoot, finalLeft, finalTop);\n } else {\n (0, _element.resetCssTransform)(overlayRoot);\n }\n overlayRoot.style.height = (tableHeight === 0 ? tableHeight : tableHeight + 4) + 'px';\n overlayRoot.style.width = (tableWidth === 0 ? tableWidth : tableWidth + 4) + 'px';\n }\n }]);\n\n return TopLeftCornerOverlay;\n}(_base2.default);\n\n_base2.default.registerOverlay(_base2.default.CLONE_TOP_LEFT_CORNER, TopLeftCornerOverlay);\n\nexports.default = TopLeftCornerOverlay;\n\n/***/ }),\n/* 233 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _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 _element = __webpack_require__(0);\n\nvar _border = __webpack_require__(189);\n\nvar _border2 = _interopRequireDefault(_border);\n\nvar _coords = __webpack_require__(56);\n\nvar _coords2 = _interopRequireDefault(_coords);\n\nvar _range = __webpack_require__(178);\n\nvar _range2 = _interopRequireDefault(_range);\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\n/**\n * @class Selection\n */\nvar Selection = function () {\n /**\n * @param {Object} settings\n * @param {CellRange} cellRange\n */\n function Selection(settings, cellRange) {\n _classCallCheck(this, Selection);\n\n this.settings = settings;\n this.cellRange = cellRange || null;\n this.instanceBorders = {};\n this.classNames = [this.settings.className];\n this.classNameGenerator = this.linearClassNameGenerator(this.settings.className, this.settings.layerLevel);\n }\n\n /**\n * Each Walkontable clone requires it's own border for every selection. This method creates and returns selection\n * borders per instance\n *\n * @param {Walkontable} wotInstance\n * @returns {Border}\n */\n\n\n _createClass(Selection, [{\n key: 'getBorder',\n value: function getBorder(wotInstance) {\n if (!this.instanceBorders[wotInstance.guid]) {\n this.instanceBorders[wotInstance.guid] = new _border2.default(wotInstance, this.settings);\n }\n\n return this.instanceBorders[wotInstance.guid];\n }\n\n /**\n * Checks if selection is empty\n *\n * @returns {Boolean}\n */\n\n }, {\n key: 'isEmpty',\n value: function isEmpty() {\n return this.cellRange === null;\n }\n\n /**\n * Adds a cell coords to the selection\n *\n * @param {CellCoords} coords\n */\n\n }, {\n key: 'add',\n value: function add(coords) {\n if (this.isEmpty()) {\n this.cellRange = new _range2.default(coords);\n } else {\n this.cellRange.expand(coords);\n }\n\n return this;\n }\n\n /**\n * If selection range from or to property equals oldCoords, replace it with newCoords. Return boolean\n * information about success\n *\n * @param {CellCoords} oldCoords\n * @param {CellCoords} newCoords\n * @returns {Boolean}\n */\n\n }, {\n key: 'replace',\n value: function replace(oldCoords, newCoords) {\n if (!this.isEmpty()) {\n if (this.cellRange.from.isEqual(oldCoords)) {\n this.cellRange.from = newCoords;\n\n return true;\n }\n if (this.cellRange.to.isEqual(oldCoords)) {\n this.cellRange.to = newCoords;\n\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Clears selection\n *\n * @returns {Selection}\n */\n\n }, {\n key: 'clear',\n value: function clear() {\n this.cellRange = null;\n\n return this;\n }\n\n /**\n * Returns the top left (TL) and bottom right (BR) selection coordinates\n *\n * @returns {Array} Returns array of coordinates for example `[1, 1, 5, 5]`\n */\n\n }, {\n key: 'getCorners',\n value: function getCorners() {\n var topLeft = this.cellRange.getTopLeftCorner();\n var bottomRight = this.cellRange.getBottomRightCorner();\n\n return [topLeft.row, topLeft.col, bottomRight.row, bottomRight.col];\n }\n\n /**\n * Adds class name to cell element at given coords\n *\n * @param {Walkontable} wotInstance Walkontable instance\n * @param {Number} sourceRow Cell row coord\n * @param {Number} sourceColumn Cell column coord\n * @param {String} className Class name\n * @param {Boolean} [markIntersections=false] If `true`, linear className generator will be used to add CSS classes\n * in a continuous way.\n * @returns {Selection}\n */\n\n }, {\n key: 'addClassAtCoords',\n value: function addClassAtCoords(wotInstance, sourceRow, sourceColumn, className) {\n var markIntersections = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n var TD = wotInstance.wtTable.getCell(new _coords2.default(sourceRow, sourceColumn));\n\n if ((typeof TD === 'undefined' ? 'undefined' : _typeof(TD)) === 'object') {\n if (markIntersections) {\n className = this.classNameGenerator(TD);\n\n if (!this.classNames.includes(className)) {\n this.classNames.push(className);\n }\n }\n\n (0, _element.addClass)(TD, className);\n }\n\n return this;\n }\n\n /**\n * Generate helper for calculating classNames based on previously added base className.\n * The generated className is always generated as a continuation of the previous className. For example, when\n * the currently checked element has 'area-2' className the generated new className will be 'area-3'. When\n * the element doesn't have any classNames than the base className will be returned ('area');\n *\n * @param {String} baseClassName Base className to be used.\n * @param {Number} layerLevelOwner Layer level which the instance of the Selection belongs to.\n * @return {Function}\n */\n\n }, {\n key: 'linearClassNameGenerator',\n value: function linearClassNameGenerator(baseClassName, layerLevelOwner) {\n // TODO: Make this recursive function Proper Tail Calls (TCO/PTC) friendly.\n return function calcClassName(element) {\n var previousIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;\n\n if (layerLevelOwner === 0 || previousIndex === 0) {\n return baseClassName;\n }\n\n var index = previousIndex >= 0 ? previousIndex : layerLevelOwner;\n var className = baseClassName;\n\n index -= 1;\n\n var previousClassName = index === 0 ? baseClassName : baseClassName + '-' + index;\n\n if ((0, _element.hasClass)(element, previousClassName)) {\n var currentLayer = index + 1;\n\n className = baseClassName + '-' + currentLayer;\n } else {\n className = calcClassName(element, index);\n }\n\n return className;\n };\n }\n\n /**\n * @param wotInstance\n */\n\n }, {\n key: 'draw',\n value: function draw(wotInstance) {\n if (this.isEmpty()) {\n if (this.settings.border) {\n this.getBorder(wotInstance).disappear();\n }\n\n return;\n }\n\n var renderedRows = wotInstance.wtTable.getRenderedRowsCount();\n var renderedColumns = wotInstance.wtTable.getRenderedColumnsCount();\n var corners = this.getCorners();\n\n var _corners = _slicedToArray(corners, 4),\n topRow = _corners[0],\n topColumn = _corners[1],\n bottomRow = _corners[2],\n bottomColumn = _corners[3];\n\n for (var column = 0; column < renderedColumns; column += 1) {\n var sourceCol = wotInstance.wtTable.columnFilter.renderedToSource(column);\n\n if (sourceCol >= topColumn && sourceCol <= bottomColumn) {\n var TH = wotInstance.wtTable.getColumnHeader(sourceCol);\n\n if (TH) {\n var newClasses = [];\n\n if (this.settings.highlightHeaderClassName) {\n newClasses.push(this.settings.highlightHeaderClassName);\n }\n\n if (this.settings.highlightColumnClassName) {\n newClasses.push(this.settings.highlightColumnClassName);\n }\n\n (0, _element.addClass)(TH, newClasses);\n }\n }\n }\n\n for (var row = 0; row < renderedRows; row += 1) {\n var sourceRow = wotInstance.wtTable.rowFilter.renderedToSource(row);\n\n if (sourceRow >= topRow && sourceRow <= bottomRow) {\n var _TH = wotInstance.wtTable.getRowHeader(sourceRow);\n\n if (_TH) {\n var _newClasses = [];\n\n if (this.settings.highlightHeaderClassName) {\n _newClasses.push(this.settings.highlightHeaderClassName);\n }\n\n if (this.settings.highlightRowClassName) {\n _newClasses.push(this.settings.highlightRowClassName);\n }\n\n (0, _element.addClass)(_TH, _newClasses);\n }\n }\n\n for (var _column = 0; _column < renderedColumns; _column += 1) {\n var _sourceCol = wotInstance.wtTable.columnFilter.renderedToSource(_column);\n\n if (sourceRow >= topRow && sourceRow <= bottomRow && _sourceCol >= topColumn && _sourceCol <= bottomColumn) {\n // selected cell\n if (this.settings.className) {\n this.addClassAtCoords(wotInstance, sourceRow, _sourceCol, this.settings.className, this.settings.markIntersections);\n }\n } else if (sourceRow >= topRow && sourceRow <= bottomRow) {\n // selection is in this row\n if (this.settings.highlightRowClassName) {\n this.addClassAtCoords(wotInstance, sourceRow, _sourceCol, this.settings.highlightRowClassName);\n }\n } else if (_sourceCol >= topColumn && _sourceCol <= bottomColumn) {\n // selection is in this column\n if (this.settings.highlightColumnClassName) {\n this.addClassAtCoords(wotInstance, sourceRow, _sourceCol, this.settings.highlightColumnClassName);\n }\n }\n\n var additionalSelectionClass = wotInstance.getSetting('onAfterDrawSelection', sourceRow, _sourceCol, corners, this.settings.layerLevel);\n\n if (typeof additionalSelectionClass === 'string') {\n this.addClassAtCoords(wotInstance, sourceRow, _sourceCol, additionalSelectionClass);\n }\n }\n }\n\n wotInstance.getSetting('onBeforeDrawBorders', corners, this.settings.className);\n\n if (this.settings.border) {\n // warning! border.appear modifies corners!\n this.getBorder(wotInstance).appear(corners);\n }\n }\n }]);\n\n return Selection;\n}();\n\nexports.default = Selection;\n\n/***/ }),\n/* 234 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * autoResize - resizes a DOM element to the width and height of another DOM element\n *\n * Copyright 2014, Marcin Warpechowski\n * Licensed under the MIT license\n */\n\nfunction autoResize() {\n var defaults = {\n minHeight: 200,\n maxHeight: 300,\n minWidth: 100,\n maxWidth: 300\n },\n el,\n body = document.body,\n text = document.createTextNode(''),\n span = document.createElement('SPAN'),\n observe = function observe(element, event, handler) {\n element.addEventListener(event, handler, false);\n },\n _unObserve = function _unObserve(element, event, handler) {\n element.removeEventListener(event, handler, false);\n },\n resize = function resize(newChar) {\n var width, scrollHeight;\n\n if (!newChar) {\n newChar = \"\";\n } else if (!/^[a-zA-Z \\.,\\\\\\/\\|0-9]$/.test(newChar)) {\n newChar = \".\";\n }\n\n if (text.textContent !== void 0) {\n text.textContent = el.value + newChar;\n } else {\n text.data = el.value + newChar; //IE8\n }\n span.style.fontSize = getComputedStyle(el).fontSize;\n span.style.fontFamily = getComputedStyle(el).fontFamily;\n span.style.whiteSpace = \"pre\";\n\n body.appendChild(span);\n width = span.clientWidth + 2;\n body.removeChild(span);\n\n el.style.height = defaults.minHeight + 'px';\n\n if (defaults.minWidth > width) {\n el.style.width = defaults.minWidth + 'px';\n } else if (width > defaults.maxWidth) {\n el.style.width = defaults.maxWidth + 'px';\n } else {\n el.style.width = width + 'px';\n }\n scrollHeight = el.scrollHeight ? el.scrollHeight - 1 : 0;\n\n if (defaults.minHeight > scrollHeight) {\n el.style.height = defaults.minHeight + 'px';\n } else if (defaults.maxHeight < scrollHeight) {\n el.style.height = defaults.maxHeight + 'px';\n el.style.overflowY = 'visible';\n } else {\n el.style.height = scrollHeight + 'px';\n }\n },\n delayedResize = function delayedResize() {\n window.setTimeout(resize, 0);\n },\n extendDefaults = function extendDefaults(config) {\n\n if (config && config.minHeight) {\n if (config.minHeight == 'inherit') {\n defaults.minHeight = el.clientHeight;\n } else {\n var minHeight = parseInt(config.minHeight);\n if (!isNaN(minHeight)) {\n defaults.minHeight = minHeight;\n }\n }\n }\n\n if (config && config.maxHeight) {\n if (config.maxHeight == 'inherit') {\n defaults.maxHeight = el.clientHeight;\n } else {\n var maxHeight = parseInt(config.maxHeight);\n if (!isNaN(maxHeight)) {\n defaults.maxHeight = maxHeight;\n }\n }\n }\n\n if (config && config.minWidth) {\n if (config.minWidth == 'inherit') {\n defaults.minWidth = el.clientWidth;\n } else {\n var minWidth = parseInt(config.minWidth);\n if (!isNaN(minWidth)) {\n defaults.minWidth = minWidth;\n }\n }\n }\n\n if (config && config.maxWidth) {\n if (config.maxWidth == 'inherit') {\n defaults.maxWidth = el.clientWidth;\n } else {\n var maxWidth = parseInt(config.maxWidth);\n if (!isNaN(maxWidth)) {\n defaults.maxWidth = maxWidth;\n }\n }\n }\n\n if (!span.firstChild) {\n span.className = \"autoResize\";\n span.style.display = 'inline-block';\n span.appendChild(text);\n }\n },\n _init = function _init(el_, config, doObserve) {\n el = el_;\n extendDefaults(config);\n\n if (el.nodeName == 'TEXTAREA') {\n el.style.resize = 'none';\n el.style.overflowY = '';\n el.style.height = defaults.minHeight + 'px';\n el.style.minWidth = defaults.minWidth + 'px';\n el.style.maxWidth = defaults.maxWidth + 'px';\n el.style.overflowY = 'hidden';\n }\n\n if (doObserve) {\n observe(el, 'change', resize);\n observe(el, 'cut', delayedResize);\n observe(el, 'paste', delayedResize);\n observe(el, 'drop', delayedResize);\n observe(el, 'keydown', delayedResize);\n observe(el, 'focus', resize);\n observe(el, 'compositionstart', delayedResize);\n observe(el, 'compositionupdate', delayedResize);\n observe(el, 'compositionend', delayedResize);\n }\n\n resize();\n };\n\n function getComputedStyle(element) {\n return element.currentStyle || document.defaultView.getComputedStyle(element);\n }\n\n return {\n init: function init(el_, config, doObserve) {\n _init(el_, config, doObserve);\n },\n unObserve: function unObserve() {\n _unObserve(el, 'change', resize);\n _unObserve(el, 'cut', delayedResize);\n _unObserve(el, 'paste', delayedResize);\n _unObserve(el, 'drop', delayedResize);\n _unObserve(el, 'keydown', delayedResize);\n _unObserve(el, 'focus', resize);\n _unObserve(el, 'compositionstart', delayedResize);\n _unObserve(el, 'compositionupdate', delayedResize);\n _unObserve(el, 'compositionend', delayedResize);\n },\n resize: resize\n };\n}\n\nif (true) {\n module.exports = autoResize;\n}\n\n/***/ }),\n/* 235 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _baseEditor = __webpack_require__(55);\n\nvar _baseEditor2 = _interopRequireDefault(_baseEditor);\n\nvar _element = __webpack_require__(0);\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\n/**\n * @private\n * @editor CheckboxEditor\n * @class CheckboxEditor\n */\nvar CheckboxEditor = function (_BaseEditor) {\n _inherits(CheckboxEditor, _BaseEditor);\n\n function CheckboxEditor() {\n _classCallCheck(this, CheckboxEditor);\n\n return _possibleConstructorReturn(this, (CheckboxEditor.__proto__ || Object.getPrototypeOf(CheckboxEditor)).apply(this, arguments));\n }\n\n _createClass(CheckboxEditor, [{\n key: 'beginEditing',\n value: function beginEditing(initialValue, event) {\n // Just some events connected with checkbox editor are delegated here. Some `keydown` events like `enter` and `space` key press\n // are handled inside `checkboxRenderer`. Some events come here from `editorManager`. Below `if` statement was created by author\n // for purpose of handling only `doubleclick` event which may be done on a cell with checkbox.\n\n if (event && event.type === 'mouseup') {\n var checkbox = this.TD.querySelector('input[type=\"checkbox\"]');\n\n if (!(0, _element.hasClass)(checkbox, 'htBadValue')) {\n checkbox.click();\n }\n }\n }\n }, {\n key: 'finishEditing',\n value: function finishEditing() {}\n }, {\n key: 'init',\n value: function init() {}\n }, {\n key: 'open',\n value: function open() {}\n }, {\n key: 'close',\n value: function close() {}\n }, {\n key: 'getValue',\n value: function getValue() {}\n }, {\n key: 'setValue',\n value: function setValue() {}\n }, {\n key: 'focus',\n value: function focus() {}\n }]);\n\n return CheckboxEditor;\n}(_baseEditor2.default);\n\nexports.default = CheckboxEditor;\n\n/***/ }),\n/* 236 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _moment = __webpack_require__(57);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _pikaday = __webpack_require__(237);\n\nvar _pikaday2 = _interopRequireDefault(_pikaday);\n\n__webpack_require__(238);\n\nvar _element = __webpack_require__(0);\n\nvar _object = __webpack_require__(1);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _unicode = __webpack_require__(21);\n\nvar _event = __webpack_require__(13);\n\nvar _textEditor = __webpack_require__(59);\n\nvar _textEditor2 = _interopRequireDefault(_textEditor);\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\n/**\n * @private\n * @editor DateEditor\n * @class DateEditor\n * @dependencies TextEditor moment pikaday\n */\nvar DateEditor = function (_TextEditor) {\n _inherits(DateEditor, _TextEditor);\n\n /**\n * @param {Core} hotInstance Handsontable instance\n * @private\n */\n function DateEditor(hotInstance) {\n _classCallCheck(this, DateEditor);\n\n // TODO: Move this option to general settings\n var _this = _possibleConstructorReturn(this, (DateEditor.__proto__ || Object.getPrototypeOf(DateEditor)).call(this, hotInstance));\n\n _this.defaultDateFormat = 'DD/MM/YYYY';\n _this.isCellEdited = false;\n _this.parentDestroyed = false;\n return _this;\n }\n\n _createClass(DateEditor, [{\n key: 'init',\n value: function init() {\n var _this2 = this;\n\n if (typeof _moment2.default !== 'function') {\n throw new Error('You need to include moment.js to your project.');\n }\n\n if (typeof _pikaday2.default !== 'function') {\n throw new Error('You need to include Pikaday to your project.');\n }\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'init', this).call(this);\n this.instance.addHook('afterDestroy', function () {\n _this2.parentDestroyed = true;\n _this2.destroyElements();\n });\n }\n\n /**\n * Create data picker instance\n */\n\n }, {\n key: 'createElements',\n value: function createElements() {\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'createElements', this).call(this);\n\n this.datePicker = document.createElement('DIV');\n this.datePickerStyle = this.datePicker.style;\n this.datePickerStyle.position = 'absolute';\n this.datePickerStyle.top = 0;\n this.datePickerStyle.left = 0;\n this.datePickerStyle.zIndex = 9999;\n\n (0, _element.addClass)(this.datePicker, 'htDatepickerHolder');\n document.body.appendChild(this.datePicker);\n\n this.$datePicker = new _pikaday2.default(this.getDatePickerConfig());\n var eventManager = new _eventManager2.default(this);\n\n /**\n * Prevent recognizing clicking on datepicker as clicking outside of table\n */\n eventManager.addEventListener(this.datePicker, 'mousedown', function (event) {\n return (0, _event.stopPropagation)(event);\n });\n this.hideDatepicker();\n }\n\n /**\n * Destroy data picker instance\n */\n\n }, {\n key: 'destroyElements',\n value: function destroyElements() {\n this.$datePicker.destroy();\n }\n\n /**\n * Prepare editor to appear\n *\n * @param {Number} row Row index\n * @param {Number} col Column index\n * @param {String} prop Property name (passed when datasource is an array of objects)\n * @param {HTMLTableCellElement} td Table cell element\n * @param {*} originalValue Original value\n * @param {Object} cellProperties Object with cell properties ({@see Core#getCellMeta})\n */\n\n }, {\n key: 'prepare',\n value: function prepare(row, col, prop, td, originalValue, cellProperties) {\n this._opened = false;\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'prepare', this).call(this, row, col, prop, td, originalValue, cellProperties);\n }\n\n /**\n * Open editor\n *\n * @param {Event} [event=null]\n */\n\n }, {\n key: 'open',\n value: function open() {\n var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'open', this).call(this);\n this.showDatepicker(event);\n }\n\n /**\n * Close editor\n */\n\n }, {\n key: 'close',\n value: function close() {\n var _this3 = this;\n\n this._opened = false;\n this.instance._registerTimeout(function () {\n _this3.instance._refreshBorders();\n });\n\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'close', this).call(this);\n }\n\n /**\n * @param {Boolean} [isCancelled=false]\n * @param {Boolean} [ctrlDown=false]\n */\n\n }, {\n key: 'finishEditing',\n value: function finishEditing() {\n var isCancelled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var ctrlDown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (isCancelled) {\n // pressed ESC, restore original value\n // var value = this.instance.getDataAtCell(this.row, this.col);\n var value = this.originalValue;\n\n if (value !== void 0) {\n this.setValue(value);\n }\n }\n this.hideDatepicker();\n _get(DateEditor.prototype.__proto__ || Object.getPrototypeOf(DateEditor.prototype), 'finishEditing', this).call(this, isCancelled, ctrlDown);\n }\n\n /**\n * Show data picker\n *\n * @param {Event} event\n */\n\n }, {\n key: 'showDatepicker',\n value: function showDatepicker(event) {\n this.$datePicker.config(this.getDatePickerConfig());\n\n var offset = this.TD.getBoundingClientRect();\n var dateFormat = this.cellProperties.dateFormat || this.defaultDateFormat;\n var datePickerConfig = this.$datePicker.config();\n var dateStr = void 0;\n var isMouseDown = this.instance.view.isMouseDown();\n var isMeta = event ? (0, _unicode.isMetaKey)(event.keyCode) : false;\n\n this.datePickerStyle.top = window.pageYOffset + offset.top + (0, _element.outerHeight)(this.TD) + 'px';\n this.datePickerStyle.left = window.pageXOffset + offset.left + 'px';\n\n this.$datePicker._onInputFocus = function () {};\n datePickerConfig.format = dateFormat;\n\n if (this.originalValue) {\n dateStr = this.originalValue;\n\n if ((0, _moment2.default)(dateStr, dateFormat, true).isValid()) {\n this.$datePicker.setMoment((0, _moment2.default)(dateStr, dateFormat), true);\n }\n\n // workaround for date/time cells - pikaday resets the cell value to 12:00 AM by default, this will overwrite the value.\n if (this.getValue() !== this.originalValue) {\n this.setValue(this.originalValue);\n }\n\n if (!isMeta && !isMouseDown) {\n this.setValue('');\n }\n } else if (this.cellProperties.defaultDate) {\n dateStr = this.cellProperties.defaultDate;\n\n datePickerConfig.defaultDate = dateStr;\n\n if ((0, _moment2.default)(dateStr, dateFormat, true).isValid()) {\n this.$datePicker.setMoment((0, _moment2.default)(dateStr, dateFormat), true);\n }\n\n if (!isMeta && !isMouseDown) {\n this.setValue('');\n }\n } else {\n // if a default date is not defined, set a soft-default-date: display the current day and month in the\n // datepicker, but don't fill the editor input\n this.$datePicker.gotoToday();\n }\n\n this.datePickerStyle.display = 'block';\n this.$datePicker.show();\n }\n\n /**\n * Hide data picker\n */\n\n }, {\n key: 'hideDatepicker',\n value: function hideDatepicker() {\n this.datePickerStyle.display = 'none';\n this.$datePicker.hide();\n }\n\n /**\n * Get date picker options.\n *\n * @returns {Object}\n */\n\n }, {\n key: 'getDatePickerConfig',\n value: function getDatePickerConfig() {\n var _this4 = this;\n\n var htInput = this.TEXTAREA;\n var options = {};\n\n if (this.cellProperties && this.cellProperties.datePickerConfig) {\n (0, _object.deepExtend)(options, this.cellProperties.datePickerConfig);\n }\n var origOnSelect = options.onSelect;\n var origOnClose = options.onClose;\n\n options.field = htInput;\n options.trigger = htInput;\n options.container = this.datePicker;\n options.bound = false;\n options.format = options.format || this.defaultDateFormat;\n options.reposition = options.reposition || false;\n options.onSelect = function (dateStr) {\n if (!isNaN(dateStr.getTime())) {\n dateStr = (0, _moment2.default)(dateStr).format(_this4.cellProperties.dateFormat || _this4.defaultDateFormat);\n }\n _this4.setValue(dateStr);\n _this4.hideDatepicker();\n\n if (origOnSelect) {\n origOnSelect();\n }\n };\n options.onClose = function () {\n if (!_this4.parentDestroyed) {\n _this4.finishEditing(false);\n }\n if (origOnClose) {\n origOnClose();\n }\n };\n\n return options;\n }\n }]);\n\n return DateEditor;\n}(_textEditor2.default);\n\nexports.default = DateEditor;\n\n/***/ }),\n/* 237 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_237__;\n\n/***/ }),\n/* 238 */\n/***/ (function(module, exports) {\n\n\n\n/***/ }),\n/* 239 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _autocompleteEditor = __webpack_require__(190);\n\nvar _autocompleteEditor2 = _interopRequireDefault(_autocompleteEditor);\n\nvar _pluginHooks = __webpack_require__(16);\n\nvar _pluginHooks2 = _interopRequireDefault(_pluginHooks);\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\n/**\n * @private\n * @editor DropdownEditor\n * @class DropdownEditor\n * @dependencies AutocompleteEditor\n */\nvar DropdownEditor = function (_AutocompleteEditor) {\n _inherits(DropdownEditor, _AutocompleteEditor);\n\n function DropdownEditor() {\n _classCallCheck(this, DropdownEditor);\n\n return _possibleConstructorReturn(this, (DropdownEditor.__proto__ || Object.getPrototypeOf(DropdownEditor)).apply(this, arguments));\n }\n\n _createClass(DropdownEditor, [{\n key: 'prepare',\n value: function prepare(row, col, prop, td, originalValue, cellProperties) {\n _get(DropdownEditor.prototype.__proto__ || Object.getPrototypeOf(DropdownEditor.prototype), 'prepare', this).call(this, row, col, prop, td, originalValue, cellProperties);\n this.cellProperties.filter = false;\n this.cellProperties.strict = true;\n }\n }]);\n\n return DropdownEditor;\n}(_autocompleteEditor2.default);\n\n_pluginHooks2.default.getSingleton().add('beforeValidate', function (value, row, col) {\n var cellMeta = this.getCellMeta(row, this.propToCol(col));\n\n if (cellMeta.editor === DropdownEditor) {\n if (cellMeta.strict === void 0) {\n cellMeta.filter = false;\n cellMeta.strict = true;\n }\n }\n});\n\nexports.default = DropdownEditor;\n\n/***/ }),\n/* 240 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _textEditor = __webpack_require__(59);\n\nvar _textEditor2 = _interopRequireDefault(_textEditor);\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\n/**\n * @private\n * @editor NumericEditor\n * @class NumericEditor\n */\nvar NumericEditor = function (_TextEditor) {\n _inherits(NumericEditor, _TextEditor);\n\n function NumericEditor() {\n _classCallCheck(this, NumericEditor);\n\n return _possibleConstructorReturn(this, (NumericEditor.__proto__ || Object.getPrototypeOf(NumericEditor)).apply(this, arguments));\n }\n\n return NumericEditor;\n}(_textEditor2.default);\n\nexports.default = NumericEditor;\n\n/***/ }),\n/* 241 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _element = __webpack_require__(0);\n\nvar _textEditor = __webpack_require__(59);\n\nvar _textEditor2 = _interopRequireDefault(_textEditor);\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\n/**\n * @private\n * @editor PasswordEditor\n * @class PasswordEditor\n * @dependencies TextEditor\n */\nvar PasswordEditor = function (_TextEditor) {\n _inherits(PasswordEditor, _TextEditor);\n\n function PasswordEditor() {\n _classCallCheck(this, PasswordEditor);\n\n return _possibleConstructorReturn(this, (PasswordEditor.__proto__ || Object.getPrototypeOf(PasswordEditor)).apply(this, arguments));\n }\n\n _createClass(PasswordEditor, [{\n key: 'createElements',\n value: function createElements() {\n _get(PasswordEditor.prototype.__proto__ || Object.getPrototypeOf(PasswordEditor.prototype), 'createElements', this).call(this);\n\n this.TEXTAREA = document.createElement('input');\n this.TEXTAREA.setAttribute('type', 'password');\n this.TEXTAREA.className = 'handsontableInput';\n this.textareaStyle = this.TEXTAREA.style;\n this.textareaStyle.width = 0;\n this.textareaStyle.height = 0;\n\n (0, _element.empty)(this.TEXTAREA_PARENT);\n this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);\n }\n }]);\n\n return PasswordEditor;\n}(_textEditor2.default);\n\nexports.default = PasswordEditor;\n\n/***/ }),\n/* 242 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _element = __webpack_require__(0);\n\nvar _event = __webpack_require__(13);\n\nvar _unicode = __webpack_require__(21);\n\nvar _baseEditor = __webpack_require__(55);\n\nvar _baseEditor2 = _interopRequireDefault(_baseEditor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SelectEditor = _baseEditor2.default.prototype.extend();\n\n/**\n * @private\n * @editor SelectEditor\n * @class SelectEditor\n */\nSelectEditor.prototype.init = function () {\n this.select = document.createElement('SELECT');\n (0, _element.addClass)(this.select, 'htSelectEditor');\n this.select.style.display = 'none';\n this.instance.rootElement.appendChild(this.select);\n this.registerHooks();\n};\n\nSelectEditor.prototype.registerHooks = function () {\n var _this = this;\n\n this.instance.addHook('afterScrollHorizontally', function () {\n return _this.refreshDimensions();\n });\n this.instance.addHook('afterScrollVertically', function () {\n return _this.refreshDimensions();\n });\n this.instance.addHook('afterColumnResize', function () {\n return _this.refreshDimensions();\n });\n this.instance.addHook('afterRowResize', function () {\n return _this.refreshDimensions();\n });\n};\n\nSelectEditor.prototype.prepare = function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _baseEditor2.default.prototype.prepare.apply(this, args);\n\n var selectOptions = this.cellProperties.selectOptions;\n var options = void 0;\n\n if (typeof selectOptions === 'function') {\n options = this.prepareOptions(selectOptions(this.row, this.col, this.prop));\n } else {\n options = this.prepareOptions(selectOptions);\n }\n\n (0, _element.empty)(this.select);\n\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option)) {\n var optionElement = document.createElement('OPTION');\n optionElement.value = option;\n (0, _element.fastInnerHTML)(optionElement, options[option]);\n this.select.appendChild(optionElement);\n }\n }\n};\n\nSelectEditor.prototype.prepareOptions = function (optionsToPrepare) {\n var preparedOptions = {};\n\n if (Array.isArray(optionsToPrepare)) {\n for (var i = 0, len = optionsToPrepare.length; i < len; i++) {\n preparedOptions[optionsToPrepare[i]] = optionsToPrepare[i];\n }\n } else if ((typeof optionsToPrepare === 'undefined' ? 'undefined' : _typeof(optionsToPrepare)) === 'object') {\n preparedOptions = optionsToPrepare;\n }\n\n return preparedOptions;\n};\n\nSelectEditor.prototype.getValue = function () {\n return this.select.value;\n};\n\nSelectEditor.prototype.setValue = function (value) {\n this.select.value = value;\n};\n\nvar onBeforeKeyDown = function onBeforeKeyDown(event) {\n var instance = this;\n var editor = instance.getActiveEditor();\n var previousOptionIndex = editor.select.selectedIndex - 1;\n var nextOptionIndex = editor.select.selectedIndex + 1;\n\n switch (event.keyCode) {\n case _unicode.KEY_CODES.ARROW_UP:\n if (previousOptionIndex >= 0) {\n editor.select[previousOptionIndex].selected = true;\n }\n\n (0, _event.stopImmediatePropagation)(event);\n event.preventDefault();\n break;\n\n case _unicode.KEY_CODES.ARROW_DOWN:\n if (nextOptionIndex <= editor.select.length - 1) {\n editor.select[nextOptionIndex].selected = true;\n }\n\n (0, _event.stopImmediatePropagation)(event);\n event.preventDefault();\n break;\n\n default:\n break;\n }\n};\n\nSelectEditor.prototype.open = function () {\n this._opened = true;\n this.refreshDimensions();\n this.select.style.display = '';\n this.instance.addHook('beforeKeyDown', onBeforeKeyDown);\n};\n\nSelectEditor.prototype.close = function () {\n this._opened = false;\n this.select.style.display = 'none';\n this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);\n};\n\nSelectEditor.prototype.focus = function () {\n this.select.focus();\n};\n\nSelectEditor.prototype.refreshValue = function () {\n var sourceData = this.instance.getSourceDataAtCell(this.row, this.prop);\n this.originalValue = sourceData;\n\n this.setValue(sourceData);\n this.refreshDimensions();\n};\n\nSelectEditor.prototype.refreshDimensions = function () {\n if (this.state !== _baseEditor.EditorState.EDITING) {\n return;\n }\n this.TD = this.getEditedCell();\n\n // TD is outside of the viewport.\n if (!this.TD) {\n this.close();\n\n return;\n }\n var currentOffset = (0, _element.offset)(this.TD);\n var containerOffset = (0, _element.offset)(this.instance.rootElement);\n var scrollableContainer = (0, _element.getScrollableElement)(this.TD);\n var editorSection = this.checkEditorSection();\n var width = (0, _element.outerWidth)(this.TD) + 1;\n var height = (0, _element.outerHeight)(this.TD) + 1;\n var editTop = currentOffset.top - containerOffset.top - 1 - (scrollableContainer.scrollTop || 0);\n var editLeft = currentOffset.left - containerOffset.left - 1 - (scrollableContainer.scrollLeft || 0);\n var cssTransformOffset = void 0;\n\n switch (editorSection) {\n case 'top':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'left':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'top-left-corner':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'bottom-left-corner':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);\n break;\n case 'bottom':\n cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode);\n break;\n default:\n break;\n }\n if (this.instance.getSelectedLast()[0] === 0) {\n editTop += 1;\n }\n\n if (this.instance.getSelectedLast()[1] === 0) {\n editLeft += 1;\n }\n\n var selectStyle = this.select.style;\n\n if (cssTransformOffset && cssTransformOffset !== -1) {\n selectStyle[cssTransformOffset[0]] = cssTransformOffset[1];\n } else {\n (0, _element.resetCssTransform)(this.select);\n }\n var cellComputedStyle = (0, _element.getComputedStyle)(this.TD);\n\n if (parseInt(cellComputedStyle.borderTopWidth, 10) > 0) {\n height -= 1;\n }\n if (parseInt(cellComputedStyle.borderLeftWidth, 10) > 0) {\n width -= 1;\n }\n\n selectStyle.height = height + 'px';\n selectStyle.minWidth = width + 'px';\n selectStyle.top = editTop + 'px';\n selectStyle.left = editLeft + 'px';\n selectStyle.margin = '0px';\n};\n\nSelectEditor.prototype.getEditedCell = function () {\n var editorSection = this.checkEditorSection();\n var editedCell = void 0;\n\n switch (editorSection) {\n case 'top':\n editedCell = this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.select.style.zIndex = 101;\n break;\n case 'corner':\n editedCell = this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.select.style.zIndex = 103;\n break;\n case 'left':\n editedCell = this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({\n row: this.row,\n col: this.col\n });\n this.select.style.zIndex = 102;\n break;\n default:\n editedCell = this.instance.getCell(this.row, this.col);\n this.select.style.zIndex = '';\n break;\n }\n\n return editedCell !== -1 && editedCell !== -2 ? editedCell : void 0;\n};\n\nexports.default = SelectEditor;\n\n/***/ }),\n/* 243 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nfunction cellDecorator(instance, TD, row, col, prop, value, cellProperties) {\n var classesToAdd = [];\n var classesToRemove = [];\n\n if (cellProperties.className) {\n if (TD.className) {\n TD.className = TD.className + ' ' + cellProperties.className;\n } else {\n TD.className = cellProperties.className;\n }\n }\n\n if (cellProperties.readOnly) {\n classesToAdd.push(cellProperties.readOnlyCellClassName);\n }\n\n if (cellProperties.valid === false && cellProperties.invalidCellClassName) {\n classesToAdd.push(cellProperties.invalidCellClassName);\n } else {\n classesToRemove.push(cellProperties.invalidCellClassName);\n }\n\n if (cellProperties.wordWrap === false && cellProperties.noWordWrapClassName) {\n classesToAdd.push(cellProperties.noWordWrapClassName);\n }\n\n if (!value && cellProperties.placeholder) {\n classesToAdd.push(cellProperties.placeholderCellClassName);\n }\n\n (0, _element.removeClass)(TD, classesToRemove);\n (0, _element.addClass)(TD, classesToAdd);\n} /**\n * Adds appropriate CSS class to table cell, based on cellProperties\n */\nexports.default = cellDecorator;\n\n/***/ }),\n/* 244 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _src = __webpack_require__(4);\n\nvar _index = __webpack_require__(14);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar clonableWRAPPER = document.createElement('DIV');\nclonableWRAPPER.className = 'htAutocompleteWrapper';\n\nvar clonableARROW = document.createElement('DIV');\nclonableARROW.className = 'htAutocompleteArrow';\n// workaround for https://github.com/handsontable/handsontable/issues/1946\n// this is faster than innerHTML. See: https://github.com/handsontable/handsontable/wiki/JavaScript-&-DOM-performance-tips\nclonableARROW.appendChild(document.createTextNode(String.fromCharCode(9660)));\n\n/**\n * Autocomplete renderer\n *\n * @private\n * @renderer AutocompleteRenderer\n * @param {Object} instance Handsontable instance\n * @param {Element} TD Table cell where to render\n * @param {Number} row\n * @param {Number} col\n * @param {String|Number} prop Row object property name\n * @param value Value to render (remember to escape unsafe HTML before inserting to DOM!)\n * @param {Object} cellProperties Cell properites (shared by cell renderer and editor)\n */\nfunction autocompleteRenderer(instance, TD, row, col, prop, value, cellProperties) {\n var rendererType = cellProperties.allowHtml ? 'html' : 'text';\n var ARROW = clonableARROW.cloneNode(true); // this is faster than createElement\n\n for (var _len = arguments.length, args = Array(_len > 7 ? _len - 7 : 0), _key = 7; _key < _len; _key++) {\n args[_key - 7] = arguments[_key];\n }\n\n (0, _index.getRenderer)(rendererType).apply(this, [instance, TD, row, col, prop, value, cellProperties].concat(args));\n\n if (!TD.firstChild) {\n // http://jsperf.com/empty-node-if-needed\n // otherwise empty fields appear borderless in demo/renderers.html (IE)\n TD.appendChild(document.createTextNode(String.fromCharCode(160))); // workaround for https://github.com/handsontable/handsontable/issues/1946\n // this is faster than innerHTML. See: https://github.com/handsontable/handsontable/wiki/JavaScript-&-DOM-performance-tips\n }\n\n TD.insertBefore(ARROW, TD.firstChild);\n (0, _element.addClass)(TD, 'htAutocomplete');\n\n if (!instance.acArrowListener) {\n var eventManager = new _eventManager2.default(instance);\n\n // not very elegant but easy and fast\n instance.acArrowListener = function (event) {\n if ((0, _element.hasClass)(event.target, 'htAutocompleteArrow')) {\n instance.view.wt.getSetting('onCellDblClick', null, new _src.CellCoords(row, col), TD);\n }\n };\n\n eventManager.addEventListener(instance.rootElement, 'mousedown', instance.acArrowListener);\n\n // We need to unbind the listener after the table has been destroyed\n instance.addHookOnce('afterDestroy', function () {\n eventManager.destroy();\n });\n }\n}\n\nexports.default = autocompleteRenderer;\n\n/***/ }),\n/* 245 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _string = __webpack_require__(33);\n\nvar _eventManager = __webpack_require__(5);\n\nvar _eventManager2 = _interopRequireDefault(_eventManager);\n\nvar _unicode = __webpack_require__(21);\n\nvar _function = __webpack_require__(43);\n\nvar _event = __webpack_require__(13);\n\nvar _index = __webpack_require__(14);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isListeningKeyDownEvent = new WeakMap();\nvar isCheckboxListenerAdded = new WeakMap();\nvar BAD_VALUE_CLASS = 'htBadValue';\n\n/**\n * Checkbox renderer\n *\n * @private\n * @param {Object} instance Handsontable instance\n * @param {Element} TD Table cell where to render\n * @param {Number} row\n * @param {Number} col\n * @param {String|Number} prop Row object property name\n * @param value Value to render (remember to escape unsafe HTML before inserting to DOM!)\n * @param {Object} cellProperties Cell properties (shared by cell renderer and editor)\n */\nfunction checkboxRenderer(instance, TD, row, col, prop, value, cellProperties) {\n for (var _len = arguments.length, args = Array(_len > 7 ? _len - 7 : 0), _key = 7; _key < _len; _key++) {\n args[_key - 7] = arguments[_key];\n }\n\n (0, _index.getRenderer)('base').apply(this, [instance, TD, row, col, prop, value, cellProperties].concat(args));\n registerEvents(instance);\n\n var input = createInput();\n var labelOptions = cellProperties.label;\n var badValue = false;\n\n if (typeof cellProperties.checkedTemplate === 'undefined') {\n cellProperties.checkedTemplate = true;\n }\n if (typeof cellProperties.uncheckedTemplate === 'undefined') {\n cellProperties.uncheckedTemplate = false;\n }\n\n (0, _element.empty)(TD); // TODO identify under what circumstances this line can be removed\n\n if (value === cellProperties.checkedTemplate || (0, _string.equalsIgnoreCase)(value, cellProperties.checkedTemplate)) {\n input.checked = true;\n } else if (value === cellProperties.uncheckedTemplate || (0, _string.equalsIgnoreCase)(value, cellProperties.uncheckedTemplate)) {\n input.checked = false;\n } else if (value === null) {\n // default value\n (0, _element.addClass)(input, 'noValue');\n } else {\n input.style.display = 'none';\n (0, _element.addClass)(input, BAD_VALUE_CLASS);\n badValue = true;\n }\n\n input.setAttribute('data-row', row);\n input.setAttribute('data-col', col);\n\n if (!badValue && labelOptions) {\n var labelText = '';\n\n if (labelOptions.value) {\n labelText = typeof labelOptions.value === 'function' ? labelOptions.value.call(this, row, col, prop, value) : labelOptions.value;\n } else if (labelOptions.property) {\n labelText = instance.getDataAtRowProp(row, labelOptions.property);\n }\n var label = createLabel(labelText);\n\n if (labelOptions.position === 'before') {\n label.appendChild(input);\n } else {\n label.insertBefore(input, label.firstChild);\n }\n input = label;\n }\n\n TD.appendChild(input);\n\n if (badValue) {\n TD.appendChild(document.createTextNode('#bad-value#'));\n }\n\n if (!isListeningKeyDownEvent.has(instance)) {\n isListeningKeyDownEvent.set(instance, true);\n instance.addHook('beforeKeyDown', onBeforeKeyDown);\n }\n\n /**\n * On before key down DOM listener.\n *\n * @private\n * @param {Event} event\n */\n function onBeforeKeyDown(event) {\n var toggleKeys = 'SPACE|ENTER';\n var switchOffKeys = 'DELETE|BACKSPACE';\n var isKeyCode = (0, _function.partial)(_unicode.isKey, event.keyCode);\n\n if (isKeyCode(toggleKeys + '|' + switchOffKeys) && !(0, _event.isImmediatePropagationStopped)(event)) {\n eachSelectedCheckboxCell(function () {\n (0, _event.stopImmediatePropagation)(event);\n event.preventDefault();\n });\n }\n if (isKeyCode(toggleKeys)) {\n changeSelectedCheckboxesState();\n }\n if (isKeyCode(switchOffKeys)) {\n changeSelectedCheckboxesState(true);\n }\n }\n\n /**\n * Change checkbox checked property\n *\n * @private\n * @param {Boolean} [uncheckCheckbox=false]\n */\n function changeSelectedCheckboxesState() {\n var uncheckCheckbox = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var selRange = instance.getSelectedRangeLast();\n\n if (!selRange) {\n return;\n }\n\n var _selRange$getTopLeftC = selRange.getTopLeftCorner(),\n startRow = _selRange$getTopLeftC.row,\n startColumn = _selRange$getTopLeftC.col;\n\n var _selRange$getBottomRi = selRange.getBottomRightCorner(),\n endRow = _selRange$getBottomRi.row,\n endColumn = _selRange$getBottomRi.col;\n\n var changes = [];\n\n for (var visualRow = startRow; visualRow <= endRow; visualRow += 1) {\n for (var visualColumn = startColumn; visualColumn <= endColumn; visualColumn += 1) {\n var cachedCellProperties = instance.getCellMeta(visualRow, visualColumn);\n\n if (cachedCellProperties.type !== 'checkbox') {\n return;\n }\n\n /* eslint-disable no-continue */\n if (cachedCellProperties.readOnly === true) {\n continue;\n }\n\n if (typeof cachedCellProperties.checkedTemplate === 'undefined') {\n cachedCellProperties.checkedTemplate = true;\n }\n if (typeof cachedCellProperties.uncheckedTemplate === 'undefined') {\n cachedCellProperties.uncheckedTemplate = false;\n }\n\n var dataAtCell = instance.getDataAtCell(visualRow, visualColumn);\n\n if (uncheckCheckbox === false) {\n if ([cachedCellProperties.checkedTemplate, cachedCellProperties.checkedTemplate.toString()].includes(dataAtCell)) {\n changes.push([visualRow, visualColumn, cachedCellProperties.uncheckedTemplate]);\n } else if ([cachedCellProperties.uncheckedTemplate, cachedCellProperties.uncheckedTemplate.toString(), null, void 0].includes(dataAtCell)) {\n changes.push([visualRow, visualColumn, cachedCellProperties.checkedTemplate]);\n }\n } else {\n changes.push([visualRow, visualColumn, cachedCellProperties.uncheckedTemplate]);\n }\n }\n }\n\n if (changes.length > 0) {\n instance.setDataAtCell(changes);\n }\n }\n\n /**\n * Call callback for each found selected cell with checkbox type.\n *\n * @private\n * @param {Function} callback\n */\n function eachSelectedCheckboxCell(callback) {\n var selRange = instance.getSelectedRangeLast();\n\n if (!selRange) {\n return;\n }\n var topLeft = selRange.getTopLeftCorner();\n var bottomRight = selRange.getBottomRightCorner();\n\n for (var visualRow = topLeft.row; visualRow <= bottomRight.row; visualRow++) {\n for (var visualColumn = topLeft.col; visualColumn <= bottomRight.col; visualColumn++) {\n var cachedCellProperties = instance.getCellMeta(visualRow, visualColumn);\n\n if (cachedCellProperties.type !== 'checkbox') {\n return;\n }\n\n var cell = instance.getCell(visualRow, visualColumn);\n\n if (cell == null) {\n\n callback(visualRow, visualColumn, cachedCellProperties);\n } else {\n var checkboxes = cell.querySelectorAll('input[type=checkbox]');\n\n if (checkboxes.length > 0 && !cachedCellProperties.readOnly) {\n callback(checkboxes);\n }\n }\n }\n }\n }\n}\n\n/**\n * Register checkbox listeners.\n *\n * @param {Handsontable} instance Handsontable instance.\n * @returns {EventManager}\n */\nfunction registerEvents(instance) {\n var eventManager = isCheckboxListenerAdded.get(instance);\n\n if (!eventManager) {\n eventManager = new _eventManager2.default(instance);\n eventManager.addEventListener(instance.rootElement, 'click', function (event) {\n return onClick(event, instance);\n });\n eventManager.addEventListener(instance.rootElement, 'mouseup', function (event) {\n return onMouseUp(event, instance);\n });\n eventManager.addEventListener(instance.rootElement, 'change', function (event) {\n return onChange(event, instance);\n });\n\n isCheckboxListenerAdded.set(instance, eventManager);\n }\n\n return eventManager;\n}\n\n/**\n * Create input element.\n *\n * @returns {Node}\n */\nfunction createInput() {\n var input = document.createElement('input');\n\n input.className = 'htCheckboxRendererInput';\n input.type = 'checkbox';\n input.setAttribute('autocomplete', 'off');\n input.setAttribute('tabindex', '-1');\n\n return input.cloneNode(false);\n}\n\n/**\n * Create label element.\n *\n * @returns {Node}\n */\nfunction createLabel(text) {\n var label = document.createElement('label');\n\n label.className = 'htCheckboxRendererLabel';\n label.appendChild(document.createTextNode(text));\n\n return label.cloneNode(true);\n}\n\n/**\n * `mouseup` callback.\n *\n * @private\n * @param {Event} event `mouseup` event.\n * @param {Object} instance Handsontable instance.\n */\nfunction onMouseUp(event, instance) {\n if (!isCheckboxInput(event.target)) {\n return;\n }\n setTimeout(instance.listen, 10);\n}\n\n/**\n * `click` callback.\n *\n * @private\n * @param {Event} event `click` event.\n * @param {Object} instance Handsontable instance.\n */\nfunction onClick(event, instance) {\n if (!isCheckboxInput(event.target)) {\n return false;\n }\n\n var row = parseInt(event.target.getAttribute('data-row'), 10);\n var col = parseInt(event.target.getAttribute('data-col'), 10);\n var cellProperties = instance.getCellMeta(row, col);\n\n if (cellProperties.readOnly) {\n event.preventDefault();\n }\n}\n\n/**\n * `change` callback.\n *\n * @param {Event} event `change` event.\n * @param {Object} instance Handsontable instance.\n * @param {Object} cellProperties Reference to cell properties.\n * @returns {Boolean}\n */\nfunction onChange(event, instance) {\n if (!isCheckboxInput(event.target)) {\n return false;\n }\n\n var row = parseInt(event.target.getAttribute('data-row'), 10);\n var col = parseInt(event.target.getAttribute('data-col'), 10);\n var cellProperties = instance.getCellMeta(row, col);\n\n if (!cellProperties.readOnly) {\n var newCheckboxValue = null;\n\n if (event.target.checked) {\n newCheckboxValue = cellProperties.uncheckedTemplate === void 0 ? true : cellProperties.checkedTemplate;\n } else {\n newCheckboxValue = cellProperties.uncheckedTemplate === void 0 ? false : cellProperties.uncheckedTemplate;\n }\n\n instance.setDataAtCell(row, col, newCheckboxValue);\n }\n}\n\n/**\n * Check if the provided element is the checkbox input.\n *\n * @private\n * @param {HTMLElement} element The element in question.\n * @returns {Boolean}\n */\nfunction isCheckboxInput(element) {\n return element.tagName === 'INPUT' && element.getAttribute('type') === 'checkbox';\n}\n\nexports.default = checkboxRenderer;\n\n/***/ }),\n/* 246 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _index = __webpack_require__(14);\n\n/**\n * @private\n * @renderer HtmlRenderer\n * @param instance\n * @param TD\n * @param row\n * @param col\n * @param prop\n * @param value\n * @param cellProperties\n */\nfunction htmlRenderer(instance, TD, row, col, prop, value) {\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n (0, _index.getRenderer)('base').apply(this, [instance, TD, row, col, prop, value].concat(args));\n\n if (value === null || value === void 0) {\n value = '';\n }\n\n (0, _element.fastInnerHTML)(TD, value);\n}\n\nexports.default = htmlRenderer;\n\n/***/ }),\n/* 247 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _numbro = __webpack_require__(248);\n\nvar _numbro2 = _interopRequireDefault(_numbro);\n\nvar _index = __webpack_require__(14);\n\nvar _number = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Numeric cell renderer\n *\n * @private\n * @renderer NumericRenderer\n * @dependencies numbro\n * @param {Object} instance Handsontable instance\n * @param {Element} TD Table cell where to render\n * @param {Number} row\n * @param {Number} col\n * @param {String|Number} prop Row object property name\n * @param value Value to render (remember to escape unsafe HTML before inserting to DOM!)\n * @param {Object} cellProperties Cell properties (shared by cell renderer and editor)\n */\nfunction numericRenderer(instance, TD, row, col, prop, value, cellProperties) {\n if ((0, _number.isNumeric)(value)) {\n var numericFormat = cellProperties.numericFormat;\n var cellCulture = numericFormat && numericFormat.culture || '-';\n var cellFormatPattern = numericFormat && numericFormat.pattern;\n var className = cellProperties.className || '';\n var classArr = className.length ? className.split(' ') : [];\n\n if (typeof cellCulture !== 'undefined' && !_numbro2.default.languages()[cellCulture]) {\n var shortTag = cellCulture.replace('-', '');\n var langData = _numbro2.default.allLanguages ? _numbro2.default.allLanguages[cellCulture] : _numbro2.default[shortTag];\n\n if (langData) {\n _numbro2.default.registerLanguage(langData);\n }\n }\n\n _numbro2.default.setLanguage(cellCulture);\n\n value = (0, _numbro2.default)(value).format(cellFormatPattern || '0');\n\n if (classArr.indexOf('htLeft') < 0 && classArr.indexOf('htCenter') < 0 && classArr.indexOf('htRight') < 0 && classArr.indexOf('htJustify') < 0) {\n classArr.push('htRight');\n }\n\n if (classArr.indexOf('htNumeric') < 0) {\n classArr.push('htNumeric');\n }\n\n cellProperties.className = classArr.join(' ');\n }\n\n (0, _index.getRenderer)('text')(instance, TD, row, col, prop, value, cellProperties);\n}\n\nexports.default = numericRenderer;\n\n/***/ }),\n/* 248 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_248__;\n\n/***/ }),\n/* 249 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _index = __webpack_require__(14);\n\nvar _number = __webpack_require__(6);\n\n/**\n * @private\n * @renderer PasswordRenderer\n * @param instance\n * @param TD\n * @param row\n * @param col\n * @param prop\n * @param value\n * @param cellProperties\n */\nfunction passwordRenderer(instance, TD, row, col, prop, value, cellProperties) {\n for (var _len = arguments.length, args = Array(_len > 7 ? _len - 7 : 0), _key = 7; _key < _len; _key++) {\n args[_key - 7] = arguments[_key];\n }\n\n (0, _index.getRenderer)('text').apply(this, [instance, TD, row, col, prop, value, cellProperties].concat(args));\n\n value = TD.innerHTML;\n\n var hashLength = cellProperties.hashLength || value.length;\n var hashSymbol = cellProperties.hashSymbol || '*';\n\n var hash = '';\n\n (0, _number.rangeEach)(hashLength - 1, function () {\n hash += hashSymbol;\n });\n (0, _element.fastInnerHTML)(TD, hash);\n}\n\nexports.default = passwordRenderer;\n\n/***/ }),\n/* 250 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _element = __webpack_require__(0);\n\nvar _mixed = __webpack_require__(11);\n\nvar _index = __webpack_require__(14);\n\n/**\n * Default text renderer\n *\n * @private\n * @renderer TextRenderer\n * @param {Object} instance Handsontable instance\n * @param {Element} TD Table cell where to render\n * @param {Number} row\n * @param {Number} col\n * @param {String|Number} prop Row object property name\n * @param value Value to render (remember to escape unsafe HTML before inserting to DOM!)\n * @param {Object} cellProperties Cell properties (shared by cell renderer and editor)\n */\nfunction textRenderer(instance, TD, row, col, prop, value, cellProperties) {\n for (var _len = arguments.length, args = Array(_len > 7 ? _len - 7 : 0), _key = 7; _key < _len; _key++) {\n args[_key - 7] = arguments[_key];\n }\n\n (0, _index.getRenderer)('base').apply(this, [instance, TD, row, col, prop, value, cellProperties].concat(args));\n\n if (!value && cellProperties.placeholder) {\n value = cellProperties.placeholder;\n }\n\n var escaped = (0, _mixed.stringify)(value);\n\n if (!instance.getSettings().trimWhitespace) {\n escaped = escaped.replace(/ /g, String.fromCharCode(160));\n }\n\n if (cellProperties.rendererTemplate) {\n (0, _element.empty)(TD);\n var TEMPLATE = document.createElement('TEMPLATE');\n TEMPLATE.setAttribute('bind', '{{}}');\n TEMPLATE.innerHTML = cellProperties.rendererTemplate;\n HTMLTemplateElement.decorate(TEMPLATE);\n TEMPLATE.model = instance.getSourceDataAtRow(row);\n TD.appendChild(TEMPLATE);\n } else {\n // this is faster than innerHTML. See: https://github.com/handsontable/handsontable/wiki/JavaScript-&-DOM-performance-tips\n (0, _element.fastInnerText)(TD, escaped);\n }\n}\n\nexports.default = textRenderer;\n\n/***/ }),\n/* 251 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = autocompleteValidator;\n/**\n * Autocomplete cell validator.\n *\n * @private\n * @validator AutocompleteValidator\n * @param {*} value - Value of edited cell\n * @param {Function} callback - Callback called with validation result\n */\nfunction autocompleteValidator(value, callback) {\n if (value == null) {\n value = '';\n }\n\n if (this.allowEmpty && value === '') {\n callback(true);\n\n return;\n }\n\n if (this.strict && this.source) {\n if (typeof this.source === 'function') {\n this.source(value, process(value, callback));\n } else {\n process(value, callback)(this.source);\n }\n } else {\n callback(true);\n }\n};\n\n/**\n * Function responsible for validation of autocomplete value.\n *\n * @param {*} value - Value of edited cell\n * @param {Function} callback - Callback called with validation result\n */\nfunction process(value, callback) {\n var originalVal = value;\n\n return function (source) {\n var found = false;\n\n for (var s = 0, slen = source.length; s < slen; s++) {\n if (originalVal === source[s]) {\n found = true; // perfect match\n break;\n }\n }\n\n callback(found);\n };\n}\n\n/***/ }),\n/* 252 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = dateValidator;\nexports.correctFormat = correctFormat;\n\nvar _moment = __webpack_require__(57);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _date = __webpack_require__(192);\n\nvar _editors = __webpack_require__(17);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Date cell validator\n *\n * @private\n * @validator DateValidator\n * @dependencies moment\n * @param {*} value - Value of edited cell\n * @param {Function} callback - Callback called with validation result\n */\nfunction dateValidator(value, callback) {\n var valid = true;\n var dateEditor = (0, _editors.getEditorInstance)('date', this.instance);\n\n if (value == null) {\n value = '';\n }\n var isValidDate = (0, _moment2.default)(new Date(value)).isValid() || (0, _moment2.default)(value, dateEditor.defaultDateFormat).isValid();\n // is it in the specified format\n var isValidFormat = (0, _moment2.default)(value, this.dateFormat || dateEditor.defaultDateFormat, true).isValid();\n\n if (this.allowEmpty && value === '') {\n isValidDate = true;\n isValidFormat = true;\n }\n if (!isValidDate) {\n valid = false;\n }\n if (!isValidDate && isValidFormat) {\n valid = true;\n }\n\n if (isValidDate && !isValidFormat) {\n if (this.correctFormat === true) {\n // if format correction is enabled\n var correctedValue = correctFormat(value, this.dateFormat);\n var row = this.instance.runHooks('unmodifyRow', this.row);\n var column = this.instance.runHooks('unmodifyCol', this.col);\n\n this.instance.setDataAtCell(row, column, correctedValue, 'dateValidator');\n valid = true;\n } else {\n valid = false;\n }\n }\n\n callback(valid);\n};\n\n/**\n * Format the given string using moment.js' format feature\n *\n * @param {String} value\n * @param {String} dateFormat\n * @returns {String}\n */\nfunction correctFormat(value, dateFormat) {\n var dateFromDate = (0, _moment2.default)((0, _date.getNormalizedDate)(value));\n var dateFromMoment = (0, _moment2.default)(value, dateFormat);\n var isAlphanumeric = value.search(/[A-z]/g) > -1;\n var date = void 0;\n\n if (dateFromDate.isValid() && dateFromDate.format('x') === dateFromMoment.format('x') || !dateFromMoment.isValid() || isAlphanumeric) {\n date = dateFromDate;\n } else {\n date = dateFromMoment;\n }\n\n return date.format(dateFormat);\n};\n\n/***/ }),\n/* 253 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = numericValidator;\n/**\n * Numeric cell validator\n *\n * @private\n * @validator NumericValidator\n * @param {*} value - Value of edited cell\n * @param {*} callback - Callback called with validation result\n */\nfunction numericValidator(value, callback) {\n if (value == null) {\n value = '';\n }\n if (this.allowEmpty && value === '') {\n callback(true);\n } else if (value === '') {\n callback(false);\n } else {\n callback(/^-?\\d*(\\.|,)?\\d*$/.test(value));\n }\n};\n\n/***/ }),\n/* 254 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = timeValidator;\n\nvar _moment = __webpack_require__(57);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Formats which are correctly parsed to time (supported by momentjs)\nvar STRICT_FORMATS = ['YYYY-MM-DDTHH:mm:ss.SSSZ', 'X', // Unix timestamp\n'x' // Unix ms timestamp\n];\n\n/**\n * Time cell validator\n *\n * @private\n * @validator TimeValidator\n * @dependencies moment\n * @param {*} value - Value of edited cell\n * @param {Function} callback - Callback called with validation result\n */\nfunction timeValidator(value, callback) {\n var valid = true;\n var timeFormat = this.timeFormat || 'h:mm:ss a';\n\n if (value === null) {\n value = '';\n }\n\n value = /^\\d{3,}$/.test(value) ? parseInt(value, 10) : value;\n\n var twoDigitValue = /^\\d{1,2}$/.test(value);\n\n if (twoDigitValue) {\n value += ':00';\n }\n\n var date = (0, _moment2.default)(value, STRICT_FORMATS, true).isValid() ? (0, _moment2.default)(value) : (0, _moment2.default)(value, timeFormat);\n var isValidTime = date.isValid();\n\n // is it in the specified format\n var isValidFormat = (0, _moment2.default)(value, timeFormat, true).isValid() && !twoDigitValue;\n\n if (this.allowEmpty && value === '') {\n isValidTime = true;\n isValidFormat = true;\n }\n if (!isValidTime) {\n valid = false;\n }\n if (!isValidTime && isValidFormat) {\n valid = true;\n }\n if (isValidTime && !isValidFormat) {\n if (this.correctFormat === true) {\n // if format correction is enabled\n var correctedValue = date.format(timeFormat);\n var row = this.instance.runHooks('unmodifyRow', this.row);\n var column = this.instance.runHooks('unmodifyCol', this.col);\n\n this.instance.setDataAtCell(row, column, correctedValue, 'timeValidator');\n valid = true;\n } else {\n valid = false;\n }\n }\n\n callback(valid);\n};\n\n/***/ }),\n/* 255 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar CELL_TYPE = 'autocomplete';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n renderer: (0, _renderers.getRenderer)(CELL_TYPE),\n validator: (0, _validators.getValidator)(CELL_TYPE)\n};\n\n/***/ }),\n/* 256 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar CELL_TYPE = 'checkbox';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n renderer: (0, _renderers.getRenderer)(CELL_TYPE)\n};\n\n/***/ }),\n/* 257 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar CELL_TYPE = 'date';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n // displays small gray arrow on right side of the cell\n renderer: (0, _renderers.getRenderer)('autocomplete'),\n validator: (0, _validators.getValidator)(CELL_TYPE)\n};\n\n/***/ }),\n/* 258 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar CELL_TYPE = 'dropdown';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n // displays small gray arrow on right side of the cell\n renderer: (0, _renderers.getRenderer)('autocomplete'),\n validator: (0, _validators.getValidator)('autocomplete')\n};\n\n/***/ }),\n/* 259 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar CELL_TYPE = 'handsontable';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n // displays small gray arrow on right side of the cell\n renderer: (0, _renderers.getRenderer)('autocomplete')\n};\n\n/***/ }),\n/* 260 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar CELL_TYPE = 'numeric';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n renderer: (0, _renderers.getRenderer)(CELL_TYPE),\n validator: (0, _validators.getValidator)(CELL_TYPE),\n dataType: 'number'\n};\n\n/***/ }),\n/* 261 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar CELL_TYPE = 'password';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n renderer: (0, _renderers.getRenderer)(CELL_TYPE),\n copyable: false\n};\n\n/***/ }),\n/* 262 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar CELL_TYPE = 'text';\n\nexports.default = {\n editor: (0, _editors.getEditor)(CELL_TYPE),\n renderer: (0, _renderers.getRenderer)(CELL_TYPE)\n};\n\n/***/ }),\n/* 263 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _editors = __webpack_require__(17);\n\nvar _renderers = __webpack_require__(14);\n\nvar _validators = __webpack_require__(34);\n\nvar CELL_TYPE = 'time';\n\nexports.default = {\n editor: (0, _editors.getEditor)('text'),\n // displays small gray arrow on right side of the cell\n renderer: (0, _renderers.getRenderer)('text'),\n validator: (0, _validators.getValidator)(CELL_TYPE)\n};\n\n/***/ }),\n/* 264 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\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 _SheetClip = __webpack_require__(193);\n\nvar _SheetClip2 = _interopRequireDefault(_SheetClip);\n\nvar _data = __webpack_require__(92);\n\nvar _setting = __webpack_require__(91);\n\nvar _object = __webpack_require__(1);\n\nvar _array = __webpack_require__(2);\n\nvar _interval = __webpack_require__(265);\n\nvar _interval2 = _interopRequireDefault(_interval);\n\nvar _number = __webpack_require__(6);\n\nvar _multiMap = __webpack_require__(266);\n\nvar _multiMap2 = _interopRequireDefault(_multiMap);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Utility class that gets and saves data from/to the data source using mapping of columns numbers to object property names\n * @todo refactor arguments of methods getRange, getText to be numbers (not objects)\n * @todo remove priv, GridSettings from object constructor\n *\n * @param {Object} instance Instance of Handsontable\n * @param {*} priv\n * @param {*} GridSettings Grid settings\n * @util\n * @class DataMap\n */\nfunction DataMap(instance, priv, GridSettings) {\n var _this = this;\n\n this.instance = instance;\n this.priv = priv;\n this.GridSettings = GridSettings;\n this.dataSource = this.instance.getSettings().data;\n this.cachedLength = null;\n this.skipCache = false;\n this.latestSourceRowsCount = 0;\n\n if (this.dataSource && this.dataSource[0]) {\n this.duckSchema = this.recursiveDuckSchema(this.dataSource[0]);\n } else {\n this.duckSchema = {};\n }\n this.createMap();\n this.interval = _interval2.default.create(function () {\n return _this.clearLengthCache();\n }, '15fps');\n\n this.instance.addHook('skipLengthCache', function (delay) {\n return _this.onSkipLengthCache(delay);\n });\n this.onSkipLengthCache(500);\n}\n\nDataMap.prototype.DESTINATION_RENDERER = 1;\nDataMap.prototype.DESTINATION_CLIPBOARD_GENERATOR = 2;\n\n/**\n * @param {Object|Array} object\n * @returns {Object|Array}\n */\nDataMap.prototype.recursiveDuckSchema = function (object) {\n return (0, _object.duckSchema)(object);\n};\n\n/**\n * @param {Object} schema\n * @param {Number} lastCol\n * @param {Number} parent\n * @returns {Number}\n */\nDataMap.prototype.recursiveDuckColumns = function (schema, lastCol, parent) {\n var prop = void 0;\n\n if (typeof lastCol === 'undefined') {\n lastCol = 0;\n parent = '';\n }\n if ((typeof schema === 'undefined' ? 'undefined' : _typeof(schema)) === 'object' && !Array.isArray(schema)) {\n for (var i in schema) {\n if ((0, _object.hasOwnProperty)(schema, i)) {\n if (schema[i] === null) {\n prop = parent + i;\n this.colToPropCache.push(prop);\n this.propToColCache.set(prop, lastCol);\n\n lastCol++;\n } else {\n lastCol = this.recursiveDuckColumns(schema[i], lastCol, i + '.');\n }\n }\n }\n }\n\n return lastCol;\n};\n\nDataMap.prototype.createMap = function () {\n var i = void 0;\n var schema = this.getSchema();\n\n if (typeof schema === 'undefined') {\n throw new Error('trying to create `columns` definition but you didn\\'t provide `schema` nor `data`');\n }\n\n this.colToPropCache = [];\n this.propToColCache = new _multiMap2.default();\n\n var columns = this.instance.getSettings().columns;\n\n if (columns) {\n var maxCols = this.instance.getSettings().maxCols;\n var columnsLen = Math.min(maxCols, columns.length);\n var filteredIndex = 0;\n var columnsAsFunc = false;\n var schemaLen = (0, _object.deepObjectSize)(schema);\n\n if (typeof columns === 'function') {\n columnsLen = schemaLen > 0 ? schemaLen : this.instance.countSourceCols();\n columnsAsFunc = true;\n }\n\n for (i = 0; i < columnsLen; i++) {\n var column = columnsAsFunc ? columns(i) : columns[i];\n\n if ((0, _object.isObject)(column)) {\n if (typeof column.data !== 'undefined') {\n var index = columnsAsFunc ? filteredIndex : i;\n this.colToPropCache[index] = column.data;\n this.propToColCache.set(column.data, index);\n }\n\n filteredIndex++;\n }\n }\n } else {\n this.recursiveDuckColumns(schema);\n }\n};\n\n/**\n * Returns property name that corresponds with the given column index.\n *\n * @param {Number} col Visual column index.\n * @returns {Number} Physical column index.\n */\nDataMap.prototype.colToProp = function (col) {\n col = this.instance.runHooks('modifyCol', col);\n\n if (!isNaN(col) && this.colToPropCache && typeof this.colToPropCache[col] !== 'undefined') {\n return this.colToPropCache[col];\n }\n\n return col;\n};\n\n/**\n * @param {Object} prop\n * @fires Hooks#modifyCol\n * @returns {*}\n */\nDataMap.prototype.propToCol = function (prop) {\n var col = void 0;\n\n if (typeof this.propToColCache.get(prop) === 'undefined') {\n col = prop;\n } else {\n col = this.propToColCache.get(prop);\n }\n col = this.instance.runHooks('unmodifyCol', col);\n\n return col;\n};\n\n/**\n * @returns {Object}\n */\nDataMap.prototype.getSchema = function () {\n var schema = this.instance.getSettings().dataSchema;\n\n if (schema) {\n if (typeof schema === 'function') {\n return schema();\n }\n return schema;\n }\n\n return this.duckSchema;\n};\n\n/**\n * Creates row at the bottom of the data array.\n *\n * @param {Number} [index] Physical index of the row before which the new row will be inserted.\n * @param {Number} [amount=1] An amount of rows to add.\n * @param {String} [source] Source of method call.\n * @fires Hooks#afterCreateRow\n * @returns {Number} Returns number of created rows.\n */\nDataMap.prototype.createRow = function (index) {\n var _this2 = this;\n\n var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var source = arguments[2];\n\n var numberOfCreatedRows = 0;\n\n if (typeof index !== 'number' || index >= this.instance.countSourceRows()) {\n index = this.instance.countSourceRows();\n }\n\n var continueProcess = this.instance.runHooks('beforeCreateRow', index, amount, source);\n\n if (continueProcess === false) {\n return 0;\n }\n\n var maxRows = this.instance.getSettings().maxRows;\n var columnCount = this.instance.countCols();\n\n var _loop = function _loop() {\n var row = null;\n\n if (_this2.instance.dataType === 'array') {\n if (_this2.instance.getSettings().dataSchema) {\n // Clone template array\n row = (0, _object.deepClone)(_this2.getSchema());\n } else {\n row = [];\n /* eslint-disable no-loop-func */\n (0, _number.rangeEach)(columnCount - 1, function () {\n return row.push(null);\n });\n }\n } else if (_this2.instance.dataType === 'function') {\n row = _this2.instance.getSettings().dataSchema(index);\n } else {\n row = {};\n (0, _object.deepExtend)(row, _this2.getSchema());\n }\n\n if (index === _this2.instance.countSourceRows()) {\n _this2.dataSource.push(row);\n } else {\n _this2.spliceData(index, 0, row);\n }\n\n numberOfCreatedRows++;\n };\n\n while (numberOfCreatedRows < amount && this.instance.countSourceRows() < maxRows) {\n _loop();\n }\n\n this.instance.runHooks('afterCreateRow', index, numberOfCreatedRows, source);\n this.instance.forceFullRender = true; // used when data was changed\n\n return numberOfCreatedRows;\n};\n\n/**\n * Creates col at the right of the data array.\n *\n * @param {Number} [index] Visual index of the column before which the new column will be inserted\n * @param {Number} [amount] An amount of columns to add.\n * @param {String} [source] Source of method call.\n * @fires Hooks#afterCreateCol\n * @returns {Number} Returns number of created columns\n */\nDataMap.prototype.createCol = function (index, amount, source) {\n if (!this.instance.isColumnModificationAllowed()) {\n throw new Error('Cannot create new column. When data source in an object, ' + 'you can only have as much columns as defined in first data row, data schema or in the \\'columns\\' setting.' + 'If you want to be able to add new columns, you have to use array datasource.');\n }\n var rlen = this.instance.countSourceRows();\n var data = this.dataSource;\n var constructor = void 0;\n var numberOfCreatedCols = 0;\n var currentIndex = void 0;\n\n if (!amount) {\n amount = 1;\n }\n\n if (typeof index !== 'number' || index >= this.instance.countCols()) {\n index = this.instance.countCols();\n }\n this.instance.runHooks('beforeCreateCol', index, amount, source);\n\n currentIndex = index;\n\n var maxCols = this.instance.getSettings().maxCols;\n while (numberOfCreatedCols < amount && this.instance.countCols() < maxCols) {\n constructor = (0, _setting.columnFactory)(this.GridSettings, this.priv.columnsSettingConflicts);\n\n if (typeof index !== 'number' || index >= this.instance.countCols()) {\n if (rlen > 0) {\n for (var r = 0; r < rlen; r++) {\n if (typeof data[r] === 'undefined') {\n data[r] = [];\n }\n data[r].push(null);\n }\n } else {\n data.push([null]);\n }\n // Add new column constructor\n this.priv.columnSettings.push(constructor);\n } else {\n for (var _row = 0; _row < rlen; _row++) {\n data[_row].splice(currentIndex, 0, null);\n }\n // Add new column constructor at given index\n this.priv.columnSettings.splice(currentIndex, 0, constructor);\n }\n\n numberOfCreatedCols++;\n currentIndex++;\n }\n\n this.instance.runHooks('afterCreateCol', index, numberOfCreatedCols, source);\n this.instance.forceFullRender = true; // used when data was changed\n\n return numberOfCreatedCols;\n};\n\n/**\n * Removes row from the data array.\n *\n * @param {Number} [index] Visual index of the row to be removed. If not provided, the last row will be removed\n * @param {Number} [amount] Amount of the rows to be removed. If not provided, one row will be removed\n * @param {String} [source] Source of method call.\n * @fires Hooks#beforeRemoveRow\n * @fires Hooks#afterRemoveRow\n */\nDataMap.prototype.removeRow = function (index, amount, source) {\n if (!amount) {\n amount = 1;\n }\n if (typeof index !== 'number') {\n index = -amount;\n }\n\n amount = this.instance.runHooks('modifyRemovedAmount', amount, index);\n\n index = (this.instance.countSourceRows() + index) % this.instance.countSourceRows();\n\n var logicRows = this.visualRowsToPhysical(index, amount);\n var actionWasNotCancelled = this.instance.runHooks('beforeRemoveRow', index, amount, logicRows, source);\n\n if (actionWasNotCancelled === false) {\n return;\n }\n\n var data = this.dataSource;\n var newData = void 0;\n\n newData = this.filterData(index, amount);\n\n if (newData) {\n data.length = 0;\n Array.prototype.push.apply(data, newData);\n }\n\n this.instance.runHooks('afterRemoveRow', index, amount, logicRows, source);\n\n this.instance.forceFullRender = true; // used when data was changed\n};\n\n/**\n * Removes column from the data array.\n *\n * @param {Number} [index] Visual index of the column to be removed. If not provided, the last column will be removed\n * @param {Number} [amount] Amount of the columns to be removed. If not provided, one column will be removed\n * @param {String} [source] Source of method call.\n * @fires Hooks#beforeRemoveCol\n * @fires Hooks#afterRemoveCol\n */\nDataMap.prototype.removeCol = function (index, amount, source) {\n if (this.instance.dataType === 'object' || this.instance.getSettings().columns) {\n throw new Error('cannot remove column with object data source or columns option specified');\n }\n if (!amount) {\n amount = 1;\n }\n if (typeof index !== 'number') {\n index = -amount;\n }\n\n index = (this.instance.countCols() + index) % this.instance.countCols();\n\n var logicColumns = this.visualColumnsToPhysical(index, amount);\n var descendingLogicColumns = logicColumns.slice(0).sort(function (a, b) {\n return b - a;\n });\n var actionWasNotCancelled = this.instance.runHooks('beforeRemoveCol', index, amount, logicColumns, source);\n\n if (actionWasNotCancelled === false) {\n return;\n }\n\n var isTableUniform = true;\n var removedColumnsCount = descendingLogicColumns.length;\n var data = this.dataSource;\n\n for (var c = 0; c < removedColumnsCount; c++) {\n if (isTableUniform && logicColumns[0] !== logicColumns[c] - c) {\n isTableUniform = false;\n }\n }\n\n if (isTableUniform) {\n for (var r = 0, rlen = this.instance.countSourceRows(); r < rlen; r++) {\n data[r].splice(logicColumns[0], amount);\n }\n } else {\n for (var _r = 0, _rlen = this.instance.countSourceRows(); _r < _rlen; _r++) {\n for (var _c = 0; _c < removedColumnsCount; _c++) {\n data[_r].splice(descendingLogicColumns[_c], 1);\n }\n }\n\n for (var _c2 = 0; _c2 < removedColumnsCount; _c2++) {\n this.priv.columnSettings.splice(logicColumns[_c2], 1);\n }\n }\n\n this.instance.runHooks('afterRemoveCol', index, amount, logicColumns, source);\n\n this.instance.forceFullRender = true; // used when data was changed\n};\n\n/**\n * Add/Removes data from the column.\n *\n * @param {Number} col Physical index of column in which do you want to do splice\n * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end\n * @param {Number} amount An integer indicating the number of old array elements to remove. If amount is 0, no elements are removed\n * @param {Array} [elements]\n * @returns {Array} Returns removed portion of columns\n */\nDataMap.prototype.spliceCol = function (col, index, amount) {\n var colData = this.instance.getDataAtCol(col);\n var removed = colData.slice(index, index + amount);\n var after = colData.slice(index + amount);\n\n for (var _len = arguments.length, elements = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n elements[_key - 3] = arguments[_key];\n }\n\n (0, _array.extendArray)(elements, after);\n var i = 0;\n while (i < amount) {\n elements.push(null); // add null in place of removed elements\n i++;\n }\n (0, _array.to2dArray)(elements);\n this.instance.populateFromArray(index, col, elements, null, null, 'spliceCol');\n\n return removed;\n};\n\n/**\n * Add/Removes data from the row.\n *\n * @param {Number} row Physical index of row in which do you want to do splice\n * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end.\n * @param {Number} amount An integer indicating the number of old array elements to remove. If amount is 0, no elements are removed.\n * @param {Array} [elements]\n * @returns {Array} Returns removed portion of rows\n */\nDataMap.prototype.spliceRow = function (row, index, amount) {\n var rowData = this.instance.getSourceDataAtRow(row);\n var removed = rowData.slice(index, index + amount);\n var after = rowData.slice(index + amount);\n\n for (var _len2 = arguments.length, elements = Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {\n elements[_key2 - 3] = arguments[_key2];\n }\n\n (0, _array.extendArray)(elements, after);\n var i = 0;\n while (i < amount) {\n elements.push(null); // add null in place of removed elements\n i++;\n }\n this.instance.populateFromArray(row, index, [elements], null, null, 'spliceRow');\n\n return removed;\n};\n\n/**\n * Add/remove row(s) to/from the data source.\n *\n * @param {Number} index Physical index of the element to remove.\n * @param {Number} amount Number of rows to add/remove.\n * @param {Object} element Row to add.\n */\nDataMap.prototype.spliceData = function (index, amount, element) {\n var continueSplicing = this.instance.runHooks('beforeDataSplice', index, amount, element);\n\n if (continueSplicing !== false) {\n this.dataSource.splice(index, amount, element);\n }\n};\n\n/**\n * Filter unwanted data elements from the data source.\n *\n * @param {Number} index Visual index of the element to remove.\n * @param {Number} amount Number of rows to add/remove.\n * @returns {Array}\n */\nDataMap.prototype.filterData = function (index, amount) {\n var physicalRows = this.visualRowsToPhysical(index, amount);\n var continueSplicing = this.instance.runHooks('beforeDataFilter', index, amount, physicalRows);\n\n if (continueSplicing !== false) {\n var newData = this.dataSource.filter(function (row, rowIndex) {\n return physicalRows.indexOf(rowIndex) === -1;\n });\n\n return newData;\n }\n};\n\n/**\n * Returns single value from the data array.\n *\n * @param {Number} row Visual row index.\n * @param {Number} prop\n */\nDataMap.prototype.get = function (row, prop) {\n row = this.instance.runHooks('modifyRow', row);\n\n var dataRow = this.dataSource[row];\n // TODO: To remove, use 'modifyData' hook instead (see below)\n var modifiedRowData = this.instance.runHooks('modifyRowData', row);\n\n dataRow = isNaN(modifiedRowData) ? modifiedRowData : dataRow;\n //\n\n var value = null;\n\n // try to get value under property `prop` (includes dot)\n if (dataRow && dataRow.hasOwnProperty && (0, _object.hasOwnProperty)(dataRow, prop)) {\n value = dataRow[prop];\n } else if (typeof prop === 'string' && prop.indexOf('.') > -1) {\n var sliced = prop.split('.');\n var out = dataRow;\n\n if (!out) {\n return null;\n }\n for (var i = 0, ilen = sliced.length; i < ilen; i++) {\n out = out[sliced[i]];\n\n if (typeof out === 'undefined') {\n return null;\n }\n }\n value = out;\n } else if (typeof prop === 'function') {\n /**\n * allows for interacting with complex structures, for example\n * d3/jQuery getter/setter properties:\n *\n * {columns: [{\n * data: function(row, value){\n * if(arguments.length === 1){\n * return row.property();\n * }\n * row.property(value);\n * }\n * }]}\n */\n value = prop(this.dataSource.slice(row, row + 1)[0]);\n }\n\n if (this.instance.hasHook('modifyData')) {\n var valueHolder = (0, _object.createObjectPropListener)(value);\n\n this.instance.runHooks('modifyData', row, this.propToCol(prop), valueHolder, 'get');\n\n if (valueHolder.isTouched()) {\n value = valueHolder.value;\
180
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
181
 
182
  "use strict";
183
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ \"./node_modules/babel-runtime/helpers/extends.js\");\n/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/core-js/json/stringify */ \"./node_modules/babel-runtime/core-js/json/stringify.js\");\n/* harmony import */ var babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_google_charts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-google-charts */ \"./node_modules/react-google-charts/dist/index.esm.js\");\n/* harmony import */ var _handsontable_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @handsontable/react */ \"./node_modules/@handsontable/react/dist/react-handsontable.js\");\n/* harmony import */ var _handsontable_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_handsontable_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! handsontable/dist/handsontable.full.css */ \"./node_modules/handsontable/dist/handsontable.full.css\");\n/* harmony import */ var handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(handsontable_dist_handsontable_full_css__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor.scss */ \"./blocks/chart/editor.scss\");\n/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_editor_scss__WEBPACK_IMPORTED_MODULE_5__);\n\n\n/**\r\n * External dependencies\r\n */\n\n\n\n\n\n\n/**\r\n * WordPress dependencies.\r\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n Button = _wp$components.Button,\n Dashicon = _wp$components.Dashicon,\n FormToggle = _wp$components.FormToggle,\n PanelBody = _wp$components.PanelBody,\n PanelRow = _wp$components.PanelRow,\n TextControl = _wp$components.TextControl,\n Toolbar = _wp$components.Toolbar,\n Tooltip = _wp$components.Tooltip;\nvar _wp$compose = wp.compose,\n compose = _wp$compose.compose,\n withState = _wp$compose.withState;\nvar withSelect = wp.data.withSelect;\nvar _wp$editor = wp.editor,\n BlockControls = _wp$editor.BlockControls,\n InspectorControls = _wp$editor.InspectorControls;\nvar Fragment = wp.element.Fragment;\n\n/**\r\n * Internal dependencies\r\n */\n\n\n\nregisterBlockType('orbitfox/chart-pie', {\n\ttitle: __('Pie Chart'),\n\tdescription: __('Display a beautiful Pie Chart on your blog post with Pie Chart block.'),\n\ticon: 'chart-pie',\n\tcategory: 'orbitfox',\n\tkeywords: [__('pie'), __('chart'), __('orbitfox')],\n\tattributes: {\n\t\tdata: {\n\t\t\ttype: 'string',\n\t\t\tdefault: '[[\"Label\",\"Data\"],[\"Dogs\",40],[\"Cats\",30],[\"Racoons\",20],[\"Monkeys\",10]]'\n\t\t},\n\t\toptions: {\n\t\t\ttype: 'object',\n\t\t\tdefault: {\n\t\t\t\ttitle: 'Animals',\n\t\t\t\tis3D: true\n\t\t\t}\n\t\t},\n\t\tid: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\n\tsupports: {\n\t\talign: true\n\t},\n\n\tedit: compose([withSelect(function (select, props) {\n\t\treturn {\n\t\t\tprops: props\n\t\t};\n\t}), withState({\n\t\tisOpen: false\n\t})])(function (_ref) {\n\t\tvar isOpen = _ref.isOpen,\n\t\t setState = _ref.setState,\n\t\t props = _ref.props,\n\t\t className = _ref.className;\n\n\n\t\tvar updateData = function updateData(value, source) {\n\t\t\tif (value !== null) {\n\t\t\t\tvar options = JSON.parse([props.attributes.data]);\n\t\t\t\tvalue.forEach(function (item) {\n\t\t\t\t\toptions[item[0]][item[1]] = item[3];\n\t\t\t\t});\n\t\t\t\tprops.setAttributes({ data: babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(options) });\n\t\t\t}\n\t\t};\n\n\t\tvar addRow = function addRow() {\n\t\t\tvar options = JSON.parse([props.attributes.data]);\n\t\t\toptions.push([\"\", \"\"]);\n\t\t\tprops.setAttributes({ data: babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(options) });\n\t\t};\n\n\t\tvar changeChartTitle = function changeChartTitle(value) {\n\t\t\tvar options = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props.attributes.options);\n\t\t\toptions['title'] = value;\n\t\t\tprops.setAttributes({ options: options });\n\t\t};\n\n\t\tvar toggle3d = function toggle3d() {\n\t\t\tvar options = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props.attributes.options);\n\t\t\toptions['is3D'] = !props.attributes.options.is3D;\n\t\t\tprops.setAttributes({ options: options });\n\t\t};\n\n\t\tif (props.clientId && props.attributes.id === '') {\n\t\t\tvar id = props.clientId;\n\t\t\tprops.setAttributes({ id: id });\n\t\t}\n\n\t\treturn [wp.element.createElement(\n\t\t\tBlockControls,\n\t\t\t{ key: 'toolbar-controls' },\n\t\t\twp.element.createElement(\n\t\t\t\tToolbar,\n\t\t\t\t{\n\t\t\t\t\tclassName: 'components-toolbar'\n\t\t\t\t},\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tTooltip,\n\t\t\t\t\t{ text: __('Edit Chart') },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\tButton,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclassName: 'components-icon-button components-toolbar__control edit-pie-chart',\n\t\t\t\t\t\t\tonClick: function onClick() {\n\t\t\t\t\t\t\t\treturn setState({ isOpen: !isOpen });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\twp.element.createElement(Dashicon, { icon: isOpen ? 'yes' : 'edit' })\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t), wp.element.createElement(\n\t\t\tInspectorControls,\n\t\t\tnull,\n\t\t\twp.element.createElement(\n\t\t\t\tPanelBody,\n\t\t\t\t{\n\t\t\t\t\ttitle: __('Chart Settings')\n\t\t\t\t},\n\t\t\t\twp.element.createElement(TextControl, {\n\t\t\t\t\tlabel: __('Chart Title'),\n\t\t\t\t\tvalue: props.attributes.options.title,\n\t\t\t\t\tonChange: changeChartTitle\n\t\t\t\t}),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelRow,\n\t\t\t\t\tnull,\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'label',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thtmlFor: 'is-3d-form-toggle'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t__('Is chart 3d?')\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(FormToggle, {\n\t\t\t\t\t\tid: 'is-3d-form-toggle',\n\t\t\t\t\t\tlabel: __('Is chart 3rd? '),\n\t\t\t\t\t\tchecked: props.attributes.options.is3D,\n\t\t\t\t\t\tonChange: toggle3d\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t), wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ className: className },\n\t\t\tisOpen ? wp.element.createElement(\n\t\t\t\tFragment,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(_handsontable_react__WEBPACK_IMPORTED_MODULE_3__[\"HotTable\"], {\n\t\t\t\t\tdata: JSON.parse(props.attributes.data),\n\t\t\t\t\tallowInsertRow: true,\n\t\t\t\t\tcell: [{\n\t\t\t\t\t\trow: 0,\n\t\t\t\t\t\tcol: 0,\n\t\t\t\t\t\treadOnly: true\n\t\t\t\t\t}, {\n\t\t\t\t\t\trow: 0,\n\t\t\t\t\t\tcol: 1,\n\t\t\t\t\t\treadOnly: true\n\t\t\t\t\t}],\n\t\t\t\t\tcolumns: [{\n\t\t\t\t\t\ttype: 'text'\n\t\t\t\t\t}, {\n\t\t\t\t\t\ttype: 'numeric'\n\t\t\t\t\t}],\n\t\t\t\t\tcontextMenu: true,\n\t\t\t\t\tclassName: 'htLeft',\n\t\t\t\t\theight: '200',\n\t\t\t\t\trowHeaders: true,\n\t\t\t\t\tstretchH: 'all',\n\t\t\t\t\tonAfterChange: function onAfterChange(value, source) {\n\t\t\t\t\t\treturn updateData(value, source);\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tButton,\n\t\t\t\t\t{\n\t\t\t\t\t\tonClick: addRow,\n\t\t\t\t\t\tisPrimary: true\n\t\t\t\t\t},\n\t\t\t\t\t__('Add another row')\n\t\t\t\t)\n\t\t\t) : wp.element.createElement(react_google_charts__WEBPACK_IMPORTED_MODULE_2__[\"Chart\"], {\n\t\t\t\tchartType: 'PieChart',\n\t\t\t\tdata: JSON.parse(props.attributes.data),\n\t\t\t\toptions: props.attributes.options,\n\t\t\t\twidth: '100%',\n\t\t\t\theight: '400px',\n\t\t\t\tlegendToggle: true\n\t\t\t})\n\t\t)];\n\t}),\n\n\tsave: function save() {\n\t\treturn null;\n\t}\n});\n\n//# sourceURL=webpack:///./blocks/chart/index.js?");
 
 
 
 
 
 
 
 
 
 
 
184
 
185
  /***/ }),
186
 
630
 
631
  /***/ }),
632
 
633
+ /***/ "./node_modules/babel-runtime/core-js/json/stringify.js":
634
+ /*!**************************************************************!*\
635
+ !*** ./node_modules/babel-runtime/core-js/json/stringify.js ***!
636
+ \**************************************************************/
637
  /*! no static exports found */
638
  /***/ (function(module, exports, __webpack_require__) {
639
 
640
+ eval("module.exports = { \"default\": __webpack_require__(/*! core-js/library/fn/json/stringify */ \"./node_modules/core-js/library/fn/json/stringify.js\"), __esModule: true };\n\n//# sourceURL=webpack:///./node_modules/babel-runtime/core-js/json/stringify.js?");
641
 
642
  /***/ }),
643
 
824
 
825
  /***/ }),
826
 
 
 
 
 
 
 
 
 
 
 
 
 
827
  /***/ "./node_modules/babel-runtime/helpers/typeof.js":
828
  /*!******************************************************!*\
829
  !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
880
 
881
  /***/ }),
882
 
883
+ /***/ "./node_modules/core-js/library/fn/json/stringify.js":
884
+ /*!***********************************************************!*\
885
+ !*** ./node_modules/core-js/library/fn/json/stringify.js ***!
886
+ \***********************************************************/
887
  /*! no static exports found */
888
  /***/ (function(module, exports, __webpack_require__) {
889
 
890
+ eval("var core = __webpack_require__(/*! ../../modules/_core */ \"./node_modules/core-js/library/modules/_core.js\");\nvar $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });\nmodule.exports = function stringify(it) { // eslint-disable-line no-unused-vars\n return $JSON.stringify.apply($JSON, arguments);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/library/fn/json/stringify.js?");
891
 
892
  /***/ }),
893
 
1078
 
1079
  /***/ }),
1080
 
 
 
 
 
 
 
 
 
 
 
 
 
1081
  /***/ "./node_modules/core-js/library/modules/_ctx.js":
1082
  /*!******************************************************!*\
1083
  !*** ./node_modules/core-js/library/modules/_ctx.js ***!
1820
 
1821
  /***/ }),
1822
 
 
 
 
 
 
 
 
 
 
 
 
 
1823
  /***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
1824
  /*!********************************************************************!*\
1825
  !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
2056
  /*! no static exports found */
2057
  /***/ (function(module, exports, __webpack_require__) {
2058