Version Description
/ 23.06.2020
Download this release
Release Info
Developer | supsystic.com |
Plugin | Data Tables Generator by Supsystic |
Version | 1.9.94 |
Comparing to | |
See all releases |
Code changes from version 1.9.80 to 1.9.94
- app/SupsysticTables.php +1 -1
- app/assets/css/supsystic-ui.css +7 -1
- app/assets/js/buttons.js +2 -1
- app/assets/js/supsystic.ui.js +1 -1
- app/langs/default.po +2 -2
- app/templates/layout.twig +5 -5
- index.php +1 -1
- readme.txt +78 -2
- src/SupsysticTables/Core/BaseController.php +39 -1
- src/SupsysticTables/Core/Module.php +69 -13
- src/SupsysticTables/Core/assets/css/lib/jquery.contextMenu.min.css +15 -0
- src/SupsysticTables/Core/assets/css/lib/jquery.dataTables.min.css +1 -1
- src/SupsysticTables/Core/assets/js/core.js +118 -15
- src/SupsysticTables/Core/assets/js/create-table.js +1 -1
- src/SupsysticTables/Core/assets/js/lib/jquery.contextMenu.min.js +1 -0
- src/SupsysticTables/Migrationfree/Controller.php +33 -0
- src/SupsysticTables/Migrationfree/Model/Exporter.php +114 -0
- src/SupsysticTables/Migrationfree/Module.php +42 -0
- src/SupsysticTables/Overview/Controller.php +1 -8
- src/SupsysticTables/Settings/Controller.php +1 -1
- src/SupsysticTables/Tables/Controller.php +68 -25
- src/SupsysticTables/Tables/Model/Tables.php +14 -14
- src/SupsysticTables/Tables/Module.php +39 -22
- src/SupsysticTables/Tables/assets/css/loaders.css +4 -4
- src/SupsysticTables/Tables/assets/css/tables.shortcode.css +56 -2
- src/SupsysticTables/Tables/assets/css/tables.view.css +7 -3
- src/SupsysticTables/Tables/assets/js/editor/tables.editor.js +9 -4
- src/SupsysticTables/Tables/assets/js/editor/tables.editor.toolbar.js +32 -4
- src/SupsysticTables/Tables/assets/js/tables.admin.list.js +4 -2
- src/SupsysticTables/Tables/assets/js/tables.index.js +4 -2
- src/SupsysticTables/Tables/assets/js/tables.model.js +27 -18
- src/SupsysticTables/Tables/assets/js/tables.view.js +15 -7
- src/SupsysticTables/Tables/assets/libraries/datetime-moment.js +77 -0
- src/SupsysticTables/Tables/assets/libraries/handsontable/handsontable.min.js +924 -1
app/SupsysticTables.php
CHANGED
@@ -18,7 +18,7 @@ class SupsysticTables
|
|
18 |
|
19 |
$menuSlug = 'supsystic-tables';
|
20 |
$pluginPath = dirname(dirname(__FILE__));
|
21 |
-
$environment = new Rsc_Environment('st', '1.9.
|
22 |
|
23 |
/* Configure */
|
24 |
$environment->configure(
|
18 |
|
19 |
$menuSlug = 'supsystic-tables';
|
20 |
$pluginPath = dirname(dirname(__FILE__));
|
21 |
+
$environment = new Rsc_Environment('st', '1.9.94', $pluginPath);
|
22 |
|
23 |
/* Configure */
|
24 |
$environment->configure(
|
app/assets/css/supsystic-ui.css
CHANGED
@@ -829,9 +829,15 @@ h3.nav-tab-wrapper {
|
|
829 |
box-shadow: none!important;
|
830 |
outline: none!important;
|
831 |
}
|
|
|
832 |
|
|
|
|
|
|
|
833 |
|
834 |
-
|
|
|
|
|
835 |
|
836 |
|
837 |
/*
|
829 |
box-shadow: none!important;
|
830 |
outline: none!important;
|
831 |
}
|
832 |
+
/*****/
|
833 |
|
834 |
+
.button.button-hero {
|
835 |
+
line-height: 46px !important;
|
836 |
+
}
|
837 |
|
838 |
+
.supsystic-plugin .button-primary.button-hero {
|
839 |
+
line-height: 46px !important;
|
840 |
+
}
|
841 |
|
842 |
|
843 |
/*
|
app/assets/js/buttons.js
CHANGED
@@ -37,6 +37,7 @@ if(typeof(SDT_DATA) == 'undefined') {
|
|
37 |
|
38 |
$.post(url, {
|
39 |
action: 'supsystic-tables',
|
|
|
40 |
route: {
|
41 |
module: 'tables',
|
42 |
action: 'list'
|
@@ -123,4 +124,4 @@ if(typeof(SDT_DATA) == 'undefined') {
|
|
123 |
// Register plugin
|
124 |
tinymce.PluginManager.add( 'addShortcodeDataTable', tinymce.plugins.addShortcodeDataTable );
|
125 |
|
126 |
-
})(jQuery);
|
37 |
|
38 |
$.post(url, {
|
39 |
action: 'supsystic-tables',
|
40 |
+
nonce: DTGS_NONCE,
|
41 |
route: {
|
42 |
module: 'tables',
|
43 |
action: 'list'
|
124 |
// Register plugin
|
125 |
tinymce.PluginManager.add( 'addShortcodeDataTable', tinymce.plugins.addShortcodeDataTable );
|
126 |
|
127 |
+
})(jQuery);
|
app/assets/js/supsystic.ui.js
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
jQuery('.supsystic-admin-notice .notice-dismiss').trigger('click');
|
15 |
|
16 |
window.supsystic.Tables.request({
|
17 |
-
module: 'tables',action: 'reviewNoticeResponse'
|
18 |
},{
|
19 |
responseCode: responseCode,
|
20 |
responseType: responseType
|
14 |
jQuery('.supsystic-admin-notice .notice-dismiss').trigger('click');
|
15 |
|
16 |
window.supsystic.Tables.request({
|
17 |
+
module: 'tables',action: 'reviewNoticeResponse',nonce: DTGS_NONCE,
|
18 |
},{
|
19 |
responseCode: responseCode,
|
20 |
responseType: responseType
|
app/langs/default.po
CHANGED
@@ -876,7 +876,7 @@ msgstr ""
|
|
876 |
msgid "Hide table by default and show only if search has a result."
|
877 |
msgstr ""
|
878 |
|
879 |
-
msgid "Hide the selected cells on frontend. Can be useful for placing intermediate calculations. <br /><br />To display the table correctly, please, add this property for the whole row
|
880 |
msgstr ""
|
881 |
|
882 |
msgid "Highlight the Order Column"
|
@@ -1382,7 +1382,7 @@ msgstr ""
|
|
1382 |
msgid "Remove the escaping of HTML in the selected cells. Can be useful for convert formula result to pure HTML. For example: =CONCATENATE('<a href="';A1;'">';B1;'</a>')"
|
1383 |
msgstr ""
|
1384 |
|
1385 |
-
msgid "Remove the selected cells on frontend. Can be useful for placing information for admin side only. <br /><br />
|
1386 |
msgstr ""
|
1387 |
|
1388 |
msgid "Renew License"
|
876 |
msgid "Hide table by default and show only if search has a result."
|
877 |
msgstr ""
|
878 |
|
879 |
+
msgid "Hide the selected cells on frontend. Can be useful for placing intermediate calculations. <br /><br />To display the table correctly, please, add this property for the whole row of table."
|
880 |
msgstr ""
|
881 |
|
882 |
msgid "Highlight the Order Column"
|
1382 |
msgid "Remove the escaping of HTML in the selected cells. Can be useful for convert formula result to pure HTML. For example: =CONCATENATE('<a href="';A1;'">';B1;'</a>')"
|
1383 |
msgstr ""
|
1384 |
|
1385 |
+
msgid "Remove the selected cells on frontend. Can be useful for placing information for admin side only. <br /><br />Important! To display the table correctly, please, add this property for the whole row of table."
|
1386 |
msgstr ""
|
1387 |
|
1388 |
msgid "Renew License"
|
app/templates/layout.twig
CHANGED
@@ -18,27 +18,27 @@
|
|
18 |
<span>{{ environment.translate('Add new table') }}</span>
|
19 |
</a>
|
20 |
</li>
|
21 |
-
<li {% if environment.isModule('tables') %}class="active"{% endif %}>
|
22 |
<a id="menuItem_tables" href="{{ environment.generateUrl('tables') }}">
|
23 |
<i class="fa fa-fw fa-table"></i>
|
24 |
<span>{{ environment.translate('Tables') }}</span>
|
25 |
</a>
|
26 |
</li>
|
27 |
-
<li {% if environment.isModule('settings') %}class="active"{% endif %}>
|
28 |
<a id="menuItem_tables" href="{{ environment.generateUrl('settings') }}">
|
29 |
<i class="fa fa-fw fa-gear"></i>
|
30 |
<span>{{ environment.translate('Settings') }}</span>
|
31 |
</a>
|
32 |
</li>
|
33 |
{% if environment.getModule('license') != null %}
|
34 |
-
<li {% if environment.isModule('license') %}class="active"{% endif %}>
|
35 |
<a id="menuItem_tables" href="{{ environment.generateUrl('license') }}">
|
36 |
<i class="fa fa-fw fa-hand-o-right "></i>
|
37 |
<span>{{ environment.translate('License') }}</span>
|
38 |
</a>
|
39 |
</li>
|
40 |
{% endif %}
|
41 |
-
<li {% if environment.isModule('featuredplugins') %}class="active"{% endif %}>
|
42 |
<a id="menuItem_tables" href="{{ environment.generateUrl('featuredplugins') }}">
|
43 |
<i class="fa fa-fw fa-heart"></i>
|
44 |
<span>{{ environment.translate('Featured Plugins') }}</span>
|
@@ -91,4 +91,4 @@
|
|
91 |
<!-- /.supsystic-content -->
|
92 |
</div>
|
93 |
<!-- /.supsystic-plugin -->
|
94 |
-
{% endblock layout %}
|
18 |
<span>{{ environment.translate('Add new table') }}</span>
|
19 |
</a>
|
20 |
</li>
|
21 |
+
<li {% if environment.isModule('tables') %} class="active"{% endif %}>
|
22 |
<a id="menuItem_tables" href="{{ environment.generateUrl('tables') }}">
|
23 |
<i class="fa fa-fw fa-table"></i>
|
24 |
<span>{{ environment.translate('Tables') }}</span>
|
25 |
</a>
|
26 |
</li>
|
27 |
+
<li {% if environment.isModule('settings') %} class="active"{% endif %}>
|
28 |
<a id="menuItem_tables" href="{{ environment.generateUrl('settings') }}">
|
29 |
<i class="fa fa-fw fa-gear"></i>
|
30 |
<span>{{ environment.translate('Settings') }}</span>
|
31 |
</a>
|
32 |
</li>
|
33 |
{% if environment.getModule('license') != null %}
|
34 |
+
<li {% if environment.isModule('license') %} class="active"{% endif %}>
|
35 |
<a id="menuItem_tables" href="{{ environment.generateUrl('license') }}">
|
36 |
<i class="fa fa-fw fa-hand-o-right "></i>
|
37 |
<span>{{ environment.translate('License') }}</span>
|
38 |
</a>
|
39 |
</li>
|
40 |
{% endif %}
|
41 |
+
<li {% if environment.isModule('featuredplugins') %} class="active"{% endif %}>
|
42 |
<a id="menuItem_tables" href="{{ environment.generateUrl('featuredplugins') }}">
|
43 |
<i class="fa fa-fw fa-heart"></i>
|
44 |
<span>{{ environment.translate('Featured Plugins') }}</span>
|
91 |
<!-- /.supsystic-content -->
|
92 |
</div>
|
93 |
<!-- /.supsystic-plugin -->
|
94 |
+
{% endblock layout %}
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Data Tables Generator by Supsystic
|
5 |
* Plugin URI: http://supsystic.com
|
6 |
* Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
|
7 |
-
* Version: 1.9.
|
8 |
* Author: supsystic.com
|
9 |
* Author URI: http://supsystic.com
|
10 |
* Text Domain: supsystic_tables
|
4 |
* Plugin Name: Data Tables Generator by Supsystic
|
5 |
* Plugin URI: http://supsystic.com
|
6 |
* Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
|
7 |
+
* Version: 1.9.94
|
8 |
* Author: supsystic.com
|
9 |
* Author URI: http://supsystic.com
|
10 |
* Text Domain: supsystic_tables
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Data Tables Generator by Supsystic ===
|
2 |
Contributors: supsystic.com
|
3 |
Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
|
4 |
-
Tested up to: 5.
|
5 |
-
Stable tag: 1.9.
|
6 |
|
7 |
Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
|
8 |
|
@@ -214,6 +214,82 @@ It's perfect for product [Price List](http://woo.supsystic.com/price-list "Price
|
|
214 |
Create custom order forms which increase your conversion rate!
|
215 |
|
216 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
|
218 |
= 1.9.80 / 18.09.2019 =
|
219 |
* Fixed maps shortcodes
|
1 |
=== Data Tables Generator by Supsystic ===
|
2 |
Contributors: supsystic.com
|
3 |
Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
|
4 |
+
Tested up to: 5.4
|
5 |
+
Stable tag: 1.9.94
|
6 |
|
7 |
Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
|
8 |
|
214 |
Create custom order forms which increase your conversion rate!
|
215 |
|
216 |
== Changelog ==
|
217 |
+
= 1.9.94 / 23.06.2020 =
|
218 |
+
* Fix for DGTS_NONCE Problem
|
219 |
+
* Rename TWIG library for compatibility with other plugins
|
220 |
+
* Create universal TWIG library for supsystic plugins
|
221 |
+
* add fix for ClassLoader
|
222 |
+
* Add fix for TWIG
|
223 |
+
|
224 |
+
= 1.9.93 / 23.04.2020 =
|
225 |
+
* Add support WP 5.4
|
226 |
+
* Change gateway server
|
227 |
+
|
228 |
+
= 1.9.92 / 23.03.2020 =
|
229 |
+
* Add fix for user roles
|
230 |
+
* Add fix for pagination styles
|
231 |
+
|
232 |
+
= 1.9.91 / 28.02.2020 =
|
233 |
+
* Add fix for importer
|
234 |
+
* Add hotfix for XSS and CSRF
|
235 |
+
* Add fix wp_role for XSS and CSRF
|
236 |
+
* Add fix for view tables
|
237 |
+
* Add fix for nonce stack
|
238 |
+
* Add fix for diagram notice
|
239 |
+
* Add fix for FREE version for php 7.4.2
|
240 |
+
|
241 |
+
= 1.9.90 / 25.02.2020 =
|
242 |
+
* Minor fixes
|
243 |
+
|
244 |
+
= 1.9.89 / 24.02.2020 =
|
245 |
+
* Add for Charts
|
246 |
+
* Add security fix for XSS and CSRF
|
247 |
+
|
248 |
+
= 1.9.88 / 14.02.2020 =
|
249 |
+
* Fix issue with js contextmenu
|
250 |
+
|
251 |
+
= 1.9.87 / 12.02.2020 =
|
252 |
+
* Add fix for SUMIFS formula
|
253 |
+
* Problem with currency format
|
254 |
+
* Fix for SSP option
|
255 |
+
|
256 |
+
= 1.9.86 / 15.01.2020 =
|
257 |
+
* Fix query issue
|
258 |
+
|
259 |
+
= 1.9.85 / 14.01.2020 =
|
260 |
+
* Minor fixes;
|
261 |
+
* Add fix for sort table by data column
|
262 |
+
* remove phpmailer code
|
263 |
+
* Add fix for JS with aoColumns
|
264 |
+
|
265 |
+
= 1.9.84 / 27.11.2019 =
|
266 |
+
* Major fixes
|
267 |
+
* Fixes for read-only mode
|
268 |
+
|
269 |
+
= 1.9.83 / 19.11.2019 =
|
270 |
+
* Add fix label PieChart
|
271 |
+
* Add fix for percentage shortcode
|
272 |
+
* Add feature support views reference from database
|
273 |
+
* Add fix (move to first cell after init handsontable)
|
274 |
+
* Fix for mass export
|
275 |
+
* Minor issues fix
|
276 |
+
|
277 |
+
= 1.9.82 / 23.10.2019 =
|
278 |
+
* Fix formulas for pagination
|
279 |
+
* Fix column width for pagination
|
280 |
+
* Fix background editable fields
|
281 |
+
* Fix hide double diagram by error notice in diagram preview
|
282 |
+
* Fix for not formatted value shortcode
|
283 |
+
|
284 |
+
= 1.9.81 / 02.10.2019 =
|
285 |
+
* Fix CSS for slimScroll bar always ON
|
286 |
+
* Fix description tooltip
|
287 |
+
* Add export to admin email frontend table
|
288 |
+
* Fix wp_roles function exist
|
289 |
+
* Fix send table by email with pagination
|
290 |
+
* Fix ajax to send email
|
291 |
+
* Add email timer + notice
|
292 |
+
* Minor issues fix
|
293 |
|
294 |
= 1.9.80 / 18.09.2019 =
|
295 |
* Fixed maps shortcodes
|
src/SupsysticTables/Core/BaseController.php
CHANGED
@@ -86,4 +86,42 @@ abstract class SupsysticTables_Core_BaseController extends Rsc_Mvc_Controller
|
|
86 |
return $this->getEnvironment()->getModule('core');
|
87 |
}
|
88 |
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
return $this->getEnvironment()->getModule('core');
|
87 |
}
|
88 |
|
89 |
+
public function _checkNonce($request){
|
90 |
+
$nonce = '';
|
91 |
+
if (!empty($requestRoute = $request->post->get('route'))) {
|
92 |
+
if (!empty($requestRoute['nonce'])) {
|
93 |
+
$nonce = $requestRoute['nonce'];
|
94 |
+
}
|
95 |
+
}
|
96 |
+
if (!empty($request->post->get('nonce'))) {
|
97 |
+
$nonce = $request->post->get('nonce');
|
98 |
+
}
|
99 |
+
if (!empty($request->query->get('nonce'))) {
|
100 |
+
$nonce = $request->query->get('nonce');
|
101 |
+
}
|
102 |
+
if ( !empty($nonce) && wp_verify_nonce( $nonce, 'dtgs_nonce') ) {
|
103 |
+
return true;
|
104 |
+
}
|
105 |
+
return false;
|
106 |
+
}
|
107 |
+
|
108 |
+
public function _checkNonceFrontend($request){
|
109 |
+
$nonce = '';
|
110 |
+
if (!empty($requestRoute = $request->post->get('route'))) {
|
111 |
+
if (!empty($requestRoute['nonce'])) {
|
112 |
+
$nonce = $requestRoute['nonce'];
|
113 |
+
}
|
114 |
+
}
|
115 |
+
if (!empty($request->post->get('nonce'))) {
|
116 |
+
$nonce = $request->post->get('nonce');
|
117 |
+
}
|
118 |
+
if (!empty($request->query->get('nonce'))) {
|
119 |
+
$nonce = $request->query->get('nonce');
|
120 |
+
}
|
121 |
+
if ( !empty($nonce) && wp_verify_nonce( $nonce, 'dtgs_nonce_frontend') ) {
|
122 |
+
return true;
|
123 |
+
}
|
124 |
+
return false;
|
125 |
+
}
|
126 |
+
|
127 |
+
}
|
src/SupsysticTables/Core/Module.php
CHANGED
@@ -16,7 +16,7 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
16 |
|
17 |
private $frontendMethods = array(
|
18 |
'ajax' => array(
|
19 |
-
'tables' => array('saveEditableFields', 'getPageRows', 'saveEditableFieldsFile', 'deleteEditableFieldsFile'),
|
20 |
'woocommerce' => array('productsAddToCart')
|
21 |
),
|
22 |
'post' => array(
|
@@ -29,7 +29,7 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
29 |
*/
|
30 |
public function onInit()
|
31 |
{
|
32 |
-
|
33 |
|
34 |
$path = dirname(dirname(dirname(dirname(__FILE__))));
|
35 |
$url = plugins_url(basename($path));
|
@@ -42,13 +42,22 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
42 |
$this->registerTwigFunctions();
|
43 |
$this->update();
|
44 |
|
45 |
-
if ((function_exists('
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
-
|
49 |
//add_action('admin_menu', array($this, 'removeDefaultSubMenu'), 999);
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
public function enquieAjaxUrl() {
|
53 |
wp_localize_script('tables-core', 'ajax_obj', array(
|
54 |
'ajaxurl' => admin_url('admin-ajax.php' ),
|
@@ -83,6 +92,36 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
83 |
wp_localize_script('tables-core', 'g_stbAllFontsList', $allFontsList);
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
/**
|
87 |
* {@inheritdoc}
|
88 |
*/
|
@@ -94,7 +133,7 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
94 |
$cachingAllowed = $environment->isProd();
|
95 |
$pluginVersion = $environment->getConfig()->get('plugin_version');
|
96 |
$hookName = 'admin_enqueue_scripts';
|
97 |
-
|
98 |
|
99 |
/* jQuery */
|
100 |
$ui->add(
|
@@ -107,6 +146,21 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
107 |
->setHookName($hookName)
|
108 |
);
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
/* Core script with common functions in supsystic.Tables namespace */
|
111 |
$ui->add(
|
112 |
$ui->createScript('tables-core')
|
@@ -116,9 +170,11 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
116 |
->setCachingAllowed($cachingAllowed)
|
117 |
->setVersion($pluginVersion)
|
118 |
);
|
|
|
119 |
add_action('wp_enqueue_scripts', array($this, 'enquieAjaxUrl'), 999);
|
120 |
add_action($dynamicHookName, array($this, 'addCommonPluginData'), 999);
|
121 |
add_action($dynamicHookName, array($this, 'addFontsData'), 999);
|
|
|
122 |
|
123 |
/* Script for creating new table by click on main plugin tab "Add table" */
|
124 |
$ui->add(
|
@@ -549,11 +605,11 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
549 |
$this->makeDbUpdate($revision);
|
550 |
}
|
551 |
}
|
552 |
-
|
553 |
private function makeDbUpdate($revision) {
|
554 |
$environment = $this->getEnvironment();
|
555 |
$config = $environment->getConfig();
|
556 |
-
|
557 |
/** @var SupsysticTables_Core_Model_Core $core */
|
558 |
$core = $this->getModelsFactory()->get('core');
|
559 |
$updatesPath = $this->getLocation() . '/updates';
|
@@ -594,22 +650,22 @@ class SupsysticTables_Core_Module extends SupsysticTables_Core_BaseModule
|
|
594 |
$twig = $this->getEnvironment()->getTwig();
|
595 |
|
596 |
$twig->addFunction(
|
597 |
-
new
|
598 |
);
|
599 |
$twig->addFunction(
|
600 |
-
new
|
601 |
);
|
602 |
$twig->addFunction(
|
603 |
-
new
|
604 |
);
|
605 |
if (function_exists('dump') && $this->getEnvironment()->isDev()) {
|
606 |
$twig->addFunction(
|
607 |
-
new
|
608 |
);
|
609 |
}
|
610 |
if (function_exists('preg_replace')) {
|
611 |
$twig->addFilter(
|
612 |
-
new
|
613 |
);
|
614 |
}
|
615 |
}
|
16 |
|
17 |
private $frontendMethods = array(
|
18 |
'ajax' => array(
|
19 |
+
'tables' => array('saveEditableFields', 'getPageRows', 'saveEditableFieldsFile', 'deleteEditableFieldsFile', 'sendTableToEmail'),
|
20 |
'woocommerce' => array('productsAddToCart')
|
21 |
),
|
22 |
'post' => array(
|
29 |
*/
|
30 |
public function onInit()
|
31 |
{
|
32 |
+
parent::onInit();
|
33 |
|
34 |
$path = dirname(dirname(dirname(dirname(__FILE__))));
|
35 |
$url = plugins_url(basename($path));
|
42 |
$this->registerTwigFunctions();
|
43 |
$this->update();
|
44 |
|
45 |
+
// if ((function_exists('addslashes') && addslashes()) && $this->getEnvironment()->isPluginPage()) {
|
46 |
+
// add_action('admin_notices', array($this, 'noticeMagicQuotes'));
|
47 |
+
// }
|
48 |
+
$url = home_url($_SERVER['REQUEST_URI']);
|
49 |
+
if ( !empty($url) && ((strpos($url, 'supsystic-tables') !== false)) ) {
|
50 |
+
add_action('admin_enqueue_scripts', array($this, 'includeBootstrapFix'), 99999999);
|
51 |
}
|
|
|
52 |
//add_action('admin_menu', array($this, 'removeDefaultSubMenu'), 999);
|
53 |
}
|
54 |
|
55 |
+
public function includeBootstrapFix() {
|
56 |
+
wp_deregister_script( 'bootstrap' );
|
57 |
+
wp_register_script( 'bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', array( 'jquery' ), '3.3.7', true );
|
58 |
+
wp_enqueue_script( 'bootstrap' );
|
59 |
+
}
|
60 |
+
|
61 |
public function enquieAjaxUrl() {
|
62 |
wp_localize_script('tables-core', 'ajax_obj', array(
|
63 |
'ajaxurl' => admin_url('admin-ajax.php' ),
|
92 |
wp_localize_script('tables-core', 'g_stbAllFontsList', $allFontsList);
|
93 |
}
|
94 |
|
95 |
+
public function loadDataTablesNonces() {
|
96 |
+
$userCanEdit = false;
|
97 |
+
$alowedRoles = array();
|
98 |
+
$settings = get_option('supsystic_tbl_settings');
|
99 |
+
if ($settings && isset($settings['access_roles'])) {
|
100 |
+
$alowedRoles = $settings['access_roles'];
|
101 |
+
}
|
102 |
+
$current_user = wp_get_current_user();
|
103 |
+
if ($current_user) {
|
104 |
+
foreach ($current_user->roles as $role) {
|
105 |
+
if (in_array($role, $alowedRoles)) {
|
106 |
+
$userCanEdit = true;
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
if ( is_admin() && ( (current_user_can('administrator') || $userCanEdit) || empty($settings['access_roles']) ) ) {
|
112 |
+
$nonce = wp_create_nonce('dtgs_nonce');
|
113 |
+
wp_register_script( 'dtgs_nonce', '' );
|
114 |
+
wp_enqueue_script( 'dtgs_nonce' );
|
115 |
+
wp_add_inline_script( 'dtgs_nonce', 'var DTGS_NONCE = "'.$nonce.'"' );
|
116 |
+
}
|
117 |
+
if ( !is_admin() ) {
|
118 |
+
$nonce = wp_create_nonce('dtgs_nonce_frontend');
|
119 |
+
wp_register_script( 'dtgs_nonce_frontend', '' );
|
120 |
+
wp_enqueue_script( 'dtgs_nonce_frontend' );
|
121 |
+
wp_add_inline_script( 'dtgs_nonce_frontend', 'var DTGS_NONCE_FRONTEND = "'.$nonce.'"' );
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
/**
|
126 |
* {@inheritdoc}
|
127 |
*/
|
133 |
$cachingAllowed = $environment->isProd();
|
134 |
$pluginVersion = $environment->getConfig()->get('plugin_version');
|
135 |
$hookName = 'admin_enqueue_scripts';
|
136 |
+
$dynamicHookName = is_admin() ? $hookName : 'wp_enqueue_scripts';
|
137 |
|
138 |
/* jQuery */
|
139 |
$ui->add(
|
146 |
->setHookName($hookName)
|
147 |
);
|
148 |
|
149 |
+
$ui->add(
|
150 |
+
$ui->createScript('jquery-contextmenu')
|
151 |
+
->setHookName($dynamicHookName)
|
152 |
+
//->setExternalSource('https://cdnjs.cloudflare.com/ajax/libs/jquery-contextmenu/2.6.4/jquery.contextMenu.min.js')
|
153 |
+
->setModuleSource($this, 'js/lib/jquery.contextMenu.min.js')
|
154 |
+
->setVersion('2.6.4')
|
155 |
+
);
|
156 |
+
|
157 |
+
$ui->add(
|
158 |
+
$ui->createStyle('jquery-contextmenu')
|
159 |
+
->setHookName($dynamicHookName)
|
160 |
+
->setModuleSource($this, 'css/lib/jquery.contextMenu.min.css')
|
161 |
+
->setVersion('2.6.4')
|
162 |
+
);
|
163 |
+
|
164 |
/* Core script with common functions in supsystic.Tables namespace */
|
165 |
$ui->add(
|
166 |
$ui->createScript('tables-core')
|
170 |
->setCachingAllowed($cachingAllowed)
|
171 |
->setVersion($pluginVersion)
|
172 |
);
|
173 |
+
|
174 |
add_action('wp_enqueue_scripts', array($this, 'enquieAjaxUrl'), 999);
|
175 |
add_action($dynamicHookName, array($this, 'addCommonPluginData'), 999);
|
176 |
add_action($dynamicHookName, array($this, 'addFontsData'), 999);
|
177 |
+
add_action($dynamicHookName, array($this, 'loadDataTablesNonces'), 1);
|
178 |
|
179 |
/* Script for creating new table by click on main plugin tab "Add table" */
|
180 |
$ui->add(
|
605 |
$this->makeDbUpdate($revision);
|
606 |
}
|
607 |
}
|
608 |
+
|
609 |
private function makeDbUpdate($revision) {
|
610 |
$environment = $this->getEnvironment();
|
611 |
$config = $environment->getConfig();
|
612 |
+
|
613 |
/** @var SupsysticTables_Core_Model_Core $core */
|
614 |
$core = $this->getModelsFactory()->get('core');
|
615 |
$updatesPath = $this->getLocation() . '/updates';
|
650 |
$twig = $this->getEnvironment()->getTwig();
|
651 |
|
652 |
$twig->addFunction(
|
653 |
+
new Twig_SupTwg_SimpleFunction('plugin_directory_url', array($this, 'getPluginDirectoryUrl'))
|
654 |
);
|
655 |
$twig->addFunction(
|
656 |
+
new Twig_SupTwg_SimpleFunction('build_pro_url', array($this, 'buildProUrl'))
|
657 |
);
|
658 |
$twig->addFunction(
|
659 |
+
new Twig_SupTwg_SimpleFunction('translate', array($this, 'translate'))
|
660 |
);
|
661 |
if (function_exists('dump') && $this->getEnvironment()->isDev()) {
|
662 |
$twig->addFunction(
|
663 |
+
new Twig_SupTwg_SimpleFunction('dump', 'dump')
|
664 |
);
|
665 |
}
|
666 |
if (function_exists('preg_replace')) {
|
667 |
$twig->addFilter(
|
668 |
+
new Twig_SupTwg_SimpleFilter('preg_replace', array($this, 'addPregReplaceFilter'))
|
669 |
);
|
670 |
}
|
671 |
}
|
src/SupsysticTables/Core/assets/css/lib/jquery.contextMenu.min.css
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";/*!
|
2 |
+
* jQuery contextMenu - Plugin for simple contextMenu handling
|
3 |
+
*
|
4 |
+
* Version: v2.9.0
|
5 |
+
*
|
6 |
+
* Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
|
7 |
+
* Web: http://swisnl.github.io/jQuery-contextMenu/
|
8 |
+
*
|
9 |
+
* Copyright (c) 2011-2019 SWIS BV and contributors
|
10 |
+
*
|
11 |
+
* Licensed under
|
12 |
+
* MIT License http://www.opensource.org/licenses/mit-license
|
13 |
+
*
|
14 |
+
* Date: 2019-10-13T13:09:56.297Z
|
15 |
+
*/@-webkit-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@-o-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@font-face{font-family:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?4f0ru);src:url(font/context-menu-icons.eot?4f0ru#iefix) format("embedded-opentype"),url(font/context-menu-icons.woff2?4f0ru) format("woff2"),url(font/context-menu-icons.woff?4f0ru) format("woff"),url(font/context-menu-icons.ttf?4f0ru) format("truetype")}.context-menu-icon-add:before{content:"\EA01"}.context-menu-icon-copy:before{content:"\EA02"}.context-menu-icon-cut:before{content:"\EA03"}.context-menu-icon-delete:before{content:"\EA04"}.context-menu-icon-edit:before{content:"\EA05"}.context-menu-icon-loading:before{content:"\EA06"}.context-menu-icon-paste:before{content:"\EA07"}.context-menu-icon-quit:before{content:"\EA08"}.context-menu-icon::before{position:absolute;top:50%;left:0;width:2em;font-family:context-menu-icons;font-size:1em;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon-loading:before{-webkit-animation:cm-spin 2s infinite;-o-animation:cm-spin 2s infinite;animation:cm-spin 2s infinite}.context-menu-icon.context-menu-icon--fa{display:list-item;font-family:inherit;line-height:inherit}.context-menu-icon.context-menu-icon--fa::before{position:absolute;top:50%;left:0;width:2em;font-family:FontAwesome;font-size:1em;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon.context-menu-icon--fa.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon--fa5{display:list-item;font-family:inherit;line-height:inherit}.context-menu-icon.context-menu-icon--fa5 i,.context-menu-icon.context-menu-icon--fa5 svg{position:absolute;top:.3em;left:.5em;color:#2980b9}.context-menu-icon.context-menu-icon--fa5.context-menu-hover>i,.context-menu-icon.context-menu-icon--fa5.context-menu-hover>svg{color:#fff}.context-menu-icon.context-menu-icon--fa5.context-menu-disabled i,.context-menu-icon.context-menu-icon--fa5.context-menu-disabled svg{color:#bbb}.context-menu-list{position:absolute;display:inline-block;min-width:13em;max-width:26em;padding:.25em 0;margin:.3em;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px solid #bebebe;border-radius:.2em;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.5);box-shadow:0 2px 5px rgba(0,0,0,.5)}.context-menu-item{position:relative;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;padding:.2em 2em;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:.35em 0;border-bottom:1px solid #e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{color:#bbb;cursor:default;background-color:#fff}.context-menu-input.context-menu-hover{color:#2f2f2f;cursor:default}.context-menu-submenu:after{position:absolute;top:50%;right:.5em;z-index:1;width:0;height:0;content:'';border-color:transparent transparent transparent #2f2f2f;border-style:solid;border-width:.25em 0 .25em .25em;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:.3em .6em}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:.12em;margin-right:.4em}.context-menu-input>label{margin:0}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:7em}.context-menu-item>.context-menu-list{top:.3em;right:-.3em;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}
|
src/SupsysticTables/Core/assets/css/lib/jquery.dataTables.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;*cursor:hand}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}
|
1 |
+
table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;*cursor:hand}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td{}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}.dataTables_scrollBody .stbColumnsSearchWrapper{display:none;}
|
src/SupsysticTables/Core/assets/js/core.js
CHANGED
@@ -94,6 +94,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
94 |
viewId = table.data('view-id');
|
95 |
|
96 |
ruleJSInstances[viewId] = new ruleJS(rootElem.attr('id'));
|
|
|
97 |
return ruleJSInstances[viewId];
|
98 |
});
|
99 |
|
@@ -259,7 +260,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
259 |
setTimeout(function(){
|
260 |
table.trigger('responsive-resize.dt');
|
261 |
self.getTableInstanceById(table.data('id')).fnAdjustColumnSizing(false);
|
262 |
-
},
|
263 |
}
|
264 |
self.initShortcodesInTable(table);
|
265 |
});
|
@@ -400,6 +401,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
400 |
responsive: false,
|
401 |
searching: false,
|
402 |
stateSave: false,
|
|
|
403 |
api: true,
|
404 |
retrieve: true,
|
405 |
processing: true,
|
@@ -421,7 +423,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
421 |
// order param should be disabled later during sorting activation
|
422 |
order: []
|
423 |
};
|
424 |
-
|
425 |
g_stbServerSideProcessing = $table.data('server-side-processing') && $table.data('server-side-processing') == 'on';
|
426 |
|
427 |
// Fix for searching by merged cells
|
@@ -595,11 +597,12 @@ var g_stbServerSideProcessingIsActive = false;
|
|
595 |
aaSorting.push([columnNumber, sortOrder]);
|
596 |
}
|
597 |
}
|
598 |
-
config.aoColumnDefs = [
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
];
|
|
|
603 |
config.aaSorting = aaSorting;
|
604 |
delete defaultFeatures.order;
|
605 |
}
|
@@ -799,7 +802,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
799 |
}
|
800 |
}
|
801 |
|
802 |
-
|
803 |
|
804 |
// Add translation
|
805 |
var langData = typeof g_stbTblLangData != 'undefined' ? JSON.parse(g_stbTblLangData) : $table.data('translation'),
|
@@ -821,7 +824,8 @@ var g_stbServerSideProcessingIsActive = false;
|
|
821 |
var ajaxSource = {};
|
822 |
|
823 |
if(g_stbServerSideProcessing) {
|
824 |
-
var
|
|
|
825 |
loadedRows = [],
|
826 |
loadedCells = [],
|
827 |
headerRowsCount = ($table.data('head') == 'on' ? $table.data('head-rows-count') : 0),
|
@@ -881,7 +885,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
881 |
}
|
882 |
}
|
883 |
};
|
884 |
-
if(typeof(config.aoColumnDefs) == 'undefined') {
|
885 |
config.aoColumnDefs = [];
|
886 |
}
|
887 |
config.aoColumnDefs.push({
|
@@ -925,23 +929,98 @@ var g_stbServerSideProcessingIsActive = false;
|
|
925 |
}
|
926 |
}
|
927 |
$(loadedCells[row][col]).each(function () {
|
928 |
-
if(this.name != 'data-formula') {
|
929 |
$(td).attr(this.name, this.value);
|
930 |
-
}
|
931 |
});
|
932 |
}
|
933 |
}
|
934 |
});
|
935 |
}
|
936 |
$table.trigger('beforeInitializeTable', $table);
|
|
|
|
|
937 |
tableInstance = $table.dataTable($.extend({}, defaultFeatures, config, extraConfig, ajaxSource, reinit));
|
938 |
-
|
939 |
-
|
940 |
tableInstance.fnFakeRowspan();
|
941 |
self._checkOnClickPopups($table);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
942 |
|
943 |
if(g_stbServerSideProcessing) {
|
944 |
-
|
945 |
} else {
|
946 |
self.setColumnSearch($table);
|
947 |
}
|
@@ -1009,6 +1088,7 @@ var g_stbServerSideProcessingIsActive = false;
|
|
1009 |
// Set formats
|
1010 |
self.formatDataAtTable($table, true);
|
1011 |
|
|
|
1012 |
// Apply shortcode param "search"
|
1013 |
if($table.data('search-value')) {
|
1014 |
$table.api().search($table.data('search-value')).draw();
|
@@ -1464,6 +1544,29 @@ var g_stbServerSideProcessingIsActive = false;
|
|
1464 |
value = $.trim($this.html()),
|
1465 |
noFormat = false;
|
1466 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1467 |
// Fix data params for cells which use formulas, which depended on cells with shortcodes inside
|
1468 |
if(correctSorting && toeInArray(formatType, ['date', 'time_duration']) == -1) {
|
1469 |
var dataTableInstance = typeof table.api == 'function' ? table : self.getTableInstanceById(table.data('id'));
|
94 |
viewId = table.data('view-id');
|
95 |
|
96 |
ruleJSInstances[viewId] = new ruleJS(rootElem.attr('id'));
|
97 |
+
ruleJSInstances[viewId].instanceTable = table;
|
98 |
return ruleJSInstances[viewId];
|
99 |
});
|
100 |
|
260 |
setTimeout(function(){
|
261 |
table.trigger('responsive-resize.dt');
|
262 |
self.getTableInstanceById(table.data('id')).fnAdjustColumnSizing(false);
|
263 |
+
}, 500);
|
264 |
}
|
265 |
self.initShortcodesInTable(table);
|
266 |
});
|
401 |
responsive: false,
|
402 |
searching: false,
|
403 |
stateSave: false,
|
404 |
+
bJQueryUI: true,
|
405 |
api: true,
|
406 |
retrieve: true,
|
407 |
processing: true,
|
423 |
// order param should be disabled later during sorting activation
|
424 |
order: []
|
425 |
};
|
426 |
+
|
427 |
g_stbServerSideProcessing = $table.data('server-side-processing') && $table.data('server-side-processing') == 'on';
|
428 |
|
429 |
// Fix for searching by merged cells
|
597 |
aaSorting.push([columnNumber, sortOrder]);
|
598 |
}
|
599 |
}
|
600 |
+
// config.aoColumnDefs = [
|
601 |
+
// { type: 'natural-nohtml-ci', targets: '_all' },
|
602 |
+
// { "sortable": false, "targets": sortingDisable },
|
603 |
+
// { "sortable": true, "targets": sortingEnable }
|
604 |
+
// ];
|
605 |
+
config.aoColumnDefs = {};
|
606 |
config.aaSorting = aaSorting;
|
607 |
delete defaultFeatures.order;
|
608 |
}
|
802 |
}
|
803 |
}
|
804 |
|
805 |
+
//$table.find('.invisibleCell').siblings('td').addClass('invisibleCell');
|
806 |
|
807 |
// Add translation
|
808 |
var langData = typeof g_stbTblLangData != 'undefined' ? JSON.parse(g_stbTblLangData) : $table.data('translation'),
|
824 |
var ajaxSource = {};
|
825 |
|
826 |
if(g_stbServerSideProcessing) {
|
827 |
+
var nonce = (typeof DTGS_NONCE !== "undefined") ? DTGS_NONCE : DTGS_NONCE_FRONTEND;
|
828 |
+
var route = {"action" : "getPageRows", "module": "tables", "nonce": nonce},
|
829 |
loadedRows = [],
|
830 |
loadedCells = [],
|
831 |
headerRowsCount = ($table.data('head') == 'on' ? $table.data('head-rows-count') : 0),
|
885 |
}
|
886 |
}
|
887 |
};
|
888 |
+
if(typeof(config.aoColumnDefs) == 'undefined' || jQuery.isEmptyObject(config.aoColumnDefs)) {
|
889 |
config.aoColumnDefs = [];
|
890 |
}
|
891 |
config.aoColumnDefs.push({
|
929 |
}
|
930 |
}
|
931 |
$(loadedCells[row][col]).each(function () {
|
932 |
+
//if(this.name != 'data-formula') {
|
933 |
$(td).attr(this.name, this.value);
|
934 |
+
//}
|
935 |
});
|
936 |
}
|
937 |
}
|
938 |
});
|
939 |
}
|
940 |
$table.trigger('beforeInitializeTable', $table);
|
941 |
+
var dateFormat = $table.data('date-format');
|
942 |
+
$table.dataTable.moment(dateFormat);
|
943 |
tableInstance = $table.dataTable($.extend({}, defaultFeatures, config, extraConfig, ajaxSource, reinit));
|
944 |
+
tableInstance.table_id = $table.data('id');
|
945 |
+
tableInstance.table_view_id = $table.data('view-id');
|
946 |
tableInstance.fnFakeRowspan();
|
947 |
self._checkOnClickPopups($table);
|
948 |
+
window.table = $table;
|
949 |
+
if($table.data('remove-rows')) {
|
950 |
+
|
951 |
+
$(function(){
|
952 |
+
|
953 |
+
$.contextMenu({
|
954 |
+
selector: '.dataTable td',
|
955 |
+
animation: {duration: 250, show: 'fadeIn', hide: 'fadeOut'},
|
956 |
+
callback: function(key, options) {
|
957 |
+
var m = "clicked: " + key;
|
958 |
+
},
|
959 |
+
items: {
|
960 |
+
"remove_row": {
|
961 |
+
name: "Remove row",
|
962 |
+
callback: function(itemKey, opt, e) {
|
963 |
+
contextMenuAction(this, 'remove_row');
|
964 |
+
}
|
965 |
+
},
|
966 |
+
"add_row_before": {
|
967 |
+
name: "Add row before",
|
968 |
+
callback: function(itemKey, opt, e) {
|
969 |
+
contextMenuAction(this, 'add_row', 'before');
|
970 |
+
}
|
971 |
+
},
|
972 |
+
"add_row_after": {
|
973 |
+
name: "Add row after",
|
974 |
+
callback: function(itemKey, opt, e) {
|
975 |
+
contextMenuAction(this, 'add_row', 'after');
|
976 |
+
}
|
977 |
+
},
|
978 |
+
"sep1": "---------",
|
979 |
+
"quit": {name: "Quit"}
|
980 |
+
}
|
981 |
+
});
|
982 |
+
|
983 |
+
function contextMenuAction(e, action, second) {
|
984 |
+
var coltext = e.text();
|
985 |
+
var colvindex = e.parent().children().index(e);
|
986 |
+
var colindex = $('table.dataTable thead tr th:eq('+colvindex+')').data('column-index');
|
987 |
+
|
988 |
+
/* Global var for counter */
|
989 |
+
var giCount = 1;
|
990 |
+
switch(action){
|
991 |
+
case "remove_row":
|
992 |
+
$table.fnDeleteRow(e.parent('tr'));
|
993 |
+
$table.fnUpdate();
|
994 |
+
break;
|
995 |
+
case "add_row":
|
996 |
+
var tr = e.parent('tr').clone(true, true);
|
997 |
+
tr.find('td').html('').addClass('menu-injected').addClass('editable').addClass('justCloned');
|
998 |
+
tr.find('td').data('original-value', '').attr('data-original-value', '');
|
999 |
+
var order = tr.find('td').data('order');
|
1000 |
+
if (second == 'before') {
|
1001 |
+
order = order - 1;
|
1002 |
+
tr.find('td').data('order', order).attr('data-order', order);
|
1003 |
+
} else {
|
1004 |
+
order = order + 1;
|
1005 |
+
tr.find('td').data('order', order).attr('data-order', order);
|
1006 |
+
}
|
1007 |
+
tr.find('td').data('cell-type', 'text').attr('data-cell-type', 'text');
|
1008 |
+
tr.find('td').data('cell-format-type', '').attr('data-cell-format-type', '');
|
1009 |
+
$table.append(tr);
|
1010 |
+
$table.fnAddData(tr, true);
|
1011 |
+
tr.find('td.justCloned').data('y', '9999').attr('data-y', '9999').removeClass('justCloned');
|
1012 |
+
// $table.fnUpdate();
|
1013 |
+
// $table.trigger('draw.dt');
|
1014 |
+
break;
|
1015 |
+
}
|
1016 |
+
}
|
1017 |
+
|
1018 |
+
});
|
1019 |
+
|
1020 |
+
}
|
1021 |
|
1022 |
if(g_stbServerSideProcessing) {
|
1023 |
+
jQuery('.dataTables_processing').css('z-index', '10');
|
1024 |
} else {
|
1025 |
self.setColumnSearch($table);
|
1026 |
}
|
1088 |
// Set formats
|
1089 |
self.formatDataAtTable($table, true);
|
1090 |
|
1091 |
+
|
1092 |
// Apply shortcode param "search"
|
1093 |
if($table.data('search-value')) {
|
1094 |
$table.api().search($table.data('search-value')).draw();
|
1544 |
value = $.trim($this.html()),
|
1545 |
noFormat = false;
|
1546 |
|
1547 |
+
// function checkIfDate(parts) {
|
1548 |
+
// var newDate = new Date(parts[0], parts[1]-1, parts[2]);
|
1549 |
+
// if (newDate.getTime() === newDate.getTime()) {
|
1550 |
+
// $this.attr('data-cell-format-type', 'date');
|
1551 |
+
// $this.data('cell-format-type', 'date');
|
1552 |
+
// formatType = $this.data('cell-format-type');
|
1553 |
+
// console.log(parts);
|
1554 |
+
// }
|
1555 |
+
// }
|
1556 |
+
// var parts = value.split('.');
|
1557 |
+
// if (parts.length > 0) {
|
1558 |
+
// checkIfDate(parts);
|
1559 |
+
// }
|
1560 |
+
// var parts = value.split('-');
|
1561 |
+
// if (parts.length > 0) {
|
1562 |
+
// checkIfDate(parts);
|
1563 |
+
// }
|
1564 |
+
// var parts = value.split('/');
|
1565 |
+
// if (parts.length > 0) {
|
1566 |
+
// checkIfDate(parts);
|
1567 |
+
// }
|
1568 |
+
|
1569 |
+
|
1570 |
// Fix data params for cells which use formulas, which depended on cells with shortcodes inside
|
1571 |
if(correctSorting && toeInArray(formatType, ['date', 'time_duration']) == -1) {
|
1572 |
var dataTableInstance = typeof table.api == 'function' ? table : self.getTableInstanceById(table.data('id'));
|
src/SupsysticTables/Core/assets/js/create-table.js
CHANGED
@@ -55,7 +55,7 @@
|
|
55 |
|
56 |
$error.fadeOut();
|
57 |
|
58 |
-
app.request({ module: 'tables', action: 'create'}, { title: $input.val(), rows: $rows.val(), cols: $cols.val() })
|
59 |
.done(function (response) {
|
60 |
window.location.href = response.url + '&new=1&cols=' + $cols.val() + '&rows=' + $rows.val();
|
61 |
}).fail(function (message) {
|
55 |
|
56 |
$error.fadeOut();
|
57 |
|
58 |
+
app.request({ module: 'tables', action: 'create', nonce: DTGS_NONCE}, { title: $input.val(), rows: $rows.val(), cols: $cols.val() })
|
59 |
.done(function (response) {
|
60 |
window.location.href = response.url + '&new=1&cols=' + $cols.val() + '&rows=' + $rows.val();
|
61 |
}).fail(function (message) {
|
src/SupsysticTables/Core/assets/js/lib/jquery.contextMenu.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(m){"use strict";var a;m.support.htmlMenuitem="HTMLMenuItemElement"in window,m.support.htmlCommand="HTMLCommandElement"in window,m.support.eventSelectstart="onselectstart"in document.documentElement,m.ui&&m.widget||(m.cleanData=(a=m.cleanData,function(e){var t,n,o;for(o=0;null!=e[o];o++){n=e[o];try{(t=m._data(n,"events"))&&t.remove&&m(n).triggerHandler("remove")}catch(e){}}a(e)}));var c=null,d=!1,p=m(window),f=0,h={},x={},v={},g={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,hideOnSecondTrigger:!1,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(e){if(m.ui&&m.ui.position)e.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var t=this.offset();t.top+=this.outerHeight(),t.left+=this.outerWidth()/2-e.outerWidth()/2,e.css(t)}},position:function(e,t,n){var o;if(t||n){if("maintain"===t&&"maintain"===n)o=e.$menu.position();else{var a=e.$menu.offsetParent().offset();o={top:n-a.top,left:t-a.left}}var s=p.scrollTop()+p.height(),i=p.scrollLeft()+p.width(),c=e.$menu.outerHeight(),l=e.$menu.outerWidth();o.top+c>s&&(o.top-=c),o.top<0&&(o.top=0),o.left+l>i&&(o.left-=l),o.left<0&&(o.left=0),e.$menu.css(o)}else e.determinePosition.call(this,e.$menu)},positionSubmenu:function(e){if(void 0!==e)if(m.ui&&m.ui.position)e.css("display","block").position({my:"left top-5",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var t={top:-9,left:this.outerWidth()-5};e.css(t)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:m.noop,hide:m.noop,activated:m.noop},callback:null,items:{}},s={timer:null,pageX:null,pageY:null},b={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(e){var t=m(this);if("right"===e.data.trigger&&(e.preventDefault(),e.stopImmediatePropagation()),!("right"!==e.data.trigger&&"demand"!==e.data.trigger&&e.originalEvent||!(void 0===e.mouseButton||!e.data||"left"===e.data.trigger&&0===e.mouseButton||"right"===e.data.trigger&&2===e.mouseButton)||t.hasClass("context-menu-active")||t.hasClass("context-menu-disabled"))){if(c=t,e.data.build){var n=e.data.build(c,e);if(!1===n)return;if(e.data=m.extend(!0,{},g,e.data,n||{}),!e.data.items||m.isEmptyObject(e.data.items))throw window.console&&(console.error||console.log).call(console,"No items specified to show in contextMenu"),new Error("No Items specified");e.data.$trigger=c,$.create(e.data)}$.show.call(t,e.data,e.pageX,e.pageY)}},click:function(e){e.preventDefault(),e.stopImmediatePropagation(),m(this).trigger(m.Event("contextmenu",{data:e.data,pageX:e.pageX,pageY:e.pageY}))},mousedown:function(e){var t=m(this);c&&c.length&&!c.is(t)&&c.data("contextMenu").$menu.trigger("contextmenu:hide"),2===e.button&&(c=t.data("contextMenuActive",!0))},mouseup:function(e){var t=m(this);t.data("contextMenuActive")&&c&&c.length&&c.is(t)&&!t.hasClass("context-menu-disabled")&&(e.preventDefault(),e.stopImmediatePropagation(),(c=t).trigger(m.Event("contextmenu",{data:e.data,pageX:e.pageX,pageY:e.pageY}))),t.removeData("contextMenuActive")},mouseenter:function(e){var t=m(this),n=m(e.relatedTarget),o=m(document);n.is(".context-menu-list")||n.closest(".context-menu-list").length||c&&c.length||(s.pageX=e.pageX,s.pageY=e.pageY,s.data=e.data,o.on("mousemove.contextMenuShow",b.mousemove),s.timer=setTimeout(function(){s.timer=null,o.off("mousemove.contextMenuShow"),(c=t).trigger(m.Event("contextmenu",{data:s.data,pageX:s.pageX,pageY:s.pageY}))},e.data.delay))},mousemove:function(e){s.pageX=e.pageX,s.pageY=e.pageY},mouseleave:function(e){var t=m(e.relatedTarget);if(!t.is(".context-menu-list")&&!t.closest(".context-menu-list").length){try{clearTimeout(s.timer)}catch(e){}s.timer=null}},layerClick:function(a){var s,i,c=m(this).data("contextMenuRoot"),l=a.button,r=a.pageX,u=a.pageY,d=void 0===r;a.preventDefault(),setTimeout(function(){if(d)null!=c&&null!==c.$menu&&void 0!==c.$menu&&c.$menu.trigger("contextmenu:hide");else{var e,t="left"===c.trigger&&0===l||"right"===c.trigger&&2===l;if(document.elementFromPoint&&c.$layer){if(c.$layer.hide(),(s=document.elementFromPoint(r-p.scrollLeft(),u-p.scrollTop())).isContentEditable){var n=document.createRange(),o=window.getSelection();n.selectNode(s),n.collapse(!0),o.removeAllRanges(),o.addRange(n)}m(s).trigger(a),c.$layer.show()}if(c.hideOnSecondTrigger&&t&&null!==c.$menu&&void 0!==c.$menu)c.$menu.trigger("contextmenu:hide");else{if(c.reposition&&t)if(document.elementFromPoint){if(c.$trigger.is(s))return void c.position.call(c.$trigger,c,r,u)}else if(i=c.$trigger.offset(),e=m(window),i.top+=e.scrollTop(),i.top<=a.pageY&&(i.left+=e.scrollLeft(),i.left<=a.pageX&&(i.bottom=i.top+c.$trigger.outerHeight(),i.bottom>=a.pageY&&(i.right=i.left+c.$trigger.outerWidth(),i.right>=a.pageX))))return void c.position.call(c.$trigger,c,r,u);s&&t&&c.$trigger.one("contextmenu:hidden",function(){m(s).contextMenu({x:r,y:u,button:l})}),null!=c&&null!==c.$menu&&void 0!==c.$menu&&c.$menu.trigger("contextmenu:hide")}}},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var t={};c&&(t=c.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var n=0,o=function(e){""!==e.style.zIndex?n=e.style.zIndex:null!==e.offsetParent&&void 0!==e.offsetParent?o(e.offsetParent):null!==e.parentElement&&void 0!==e.parentElement&&o(e.parentElement)};if(o(e.target),!(t.$menu&&parseInt(n,10)>parseInt(t.$menu.css("zIndex"),10))){switch(e.keyCode){case 9:case 38:if(b.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("prevcommand"));if(38===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault()}else if(9!==e.keyCode||e.shiftKey)return void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("prevcommand"));break;case 40:if(b.keyStop(e,t),!t.isInput)return void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("nextcommand"));if(9===e.keyCode)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("nextcommand"));if(40===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault();break;case 37:if(b.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var a=t.$selected.parent().parent();return t.$selected.trigger("contextmenu:blur"),void(t.$selected=a)}break;case 39:if(b.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var s=t.$selected.data("contextMenu")||{};if(s.$menu&&t.$selected.hasClass("context-menu-submenu"))return t.$selected=null,s.$selected=null,void s.$menu.trigger("nextcommand");break;case 35:case 36:return t.$selected&&t.$selected.find("input, textarea, select").length?void 0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+", ."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void e.preventDefault());case 13:if(b.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, select"))return void e.preventDefault();break}return void(void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 33:case 34:return void b.keyStop(e,t);case 27:return b.keyStop(e,t),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("contextmenu:hide"));default:var i=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[i])return void t.accesskeys[i].$node.trigger(t.accesskeys[i].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(e){e.stopPropagation();var t=m(this).data("contextMenu")||{},n=m(this).data("contextMenuRoot")||{};if(t.$selected){var o=t.$selected;(t=t.$selected.parent().data("contextMenu")||{}).$selected=o}for(var a=t.$menu.children(),s=t.$selected&&t.$selected.prev().length?t.$selected.prev():a.last(),i=s;s.hasClass(n.classNames.disabled)||s.hasClass(n.classNames.notSelectable)||s.is(":hidden");)if((s=s.prev().length?s.prev():a.last()).is(i))return;t.$selected&&b.itemMouseleave.call(t.$selected.get(0),e),b.itemMouseenter.call(s.get(0),e);var c=s.find("input, textarea, select");c.length&&c.focus()},nextItem:function(e){e.stopPropagation();var t=m(this).data("contextMenu")||{},n=m(this).data("contextMenuRoot")||{};if(t.$selected){var o=t.$selected;(t=t.$selected.parent().data("contextMenu")||{}).$selected=o}for(var a=t.$menu.children(),s=t.$selected&&t.$selected.next().length?t.$selected.next():a.first(),i=s;s.hasClass(n.classNames.disabled)||s.hasClass(n.classNames.notSelectable)||s.is(":hidden");)if((s=s.next().length?s.next():a.first()).is(i))return;t.$selected&&b.itemMouseleave.call(t.$selected.get(0),e),b.itemMouseenter.call(s.get(0),e);var c=s.find("input, textarea, select");c.length&&c.focus()},focusInput:function(){var e=m(this).closest(".context-menu-item"),t=e.data(),n=t.contextMenu,o=t.contextMenuRoot;o.$selected=n.$selected=e,o.isInput=n.isInput=!0},blurInput:function(){var e=m(this).closest(".context-menu-item").data(),t=e.contextMenu;e.contextMenuRoot.isInput=t.isInput=!1},menuMouseenter:function(){m(this).data().contextMenuRoot.hovering=!0},menuMouseleave:function(e){var t=m(this).data().contextMenuRoot;t.$layer&&t.$layer.is(e.relatedTarget)&&(t.hovering=!1)},itemMouseenter:function(e){var t=m(this),n=t.data(),o=n.contextMenu,a=n.contextMenuRoot;a.hovering=!0,e&&a.$layer&&a.$layer.is(e.relatedTarget)&&(e.preventDefault(),e.stopImmediatePropagation()),(o.$menu?o:a).$menu.children("."+a.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),t.hasClass(a.classNames.disabled)||t.hasClass(a.classNames.notSelectable)?o.$selected=null:t.trigger("contextmenu:focus")},itemMouseleave:function(e){var t=m(this),n=t.data(),o=n.contextMenu,a=n.contextMenuRoot;if(a!==o&&a.$layer&&a.$layer.is(e.relatedTarget))return void 0!==a.$selected&&null!==a.$selected&&a.$selected.trigger("contextmenu:blur"),e.preventDefault(),e.stopImmediatePropagation(),void(a.$selected=o.$selected=o.$node);o&&o.$menu&&o.$menu.hasClass("context-menu-visible")||t.trigger("contextmenu:blur")},itemClick:function(e){var t,n=m(this),o=n.data(),a=o.contextMenu,s=o.contextMenuRoot,i=o.contextMenuKey;if(!(!a.items[i]||n.is("."+s.classNames.disabled+", .context-menu-separator, ."+s.classNames.notSelectable)||n.is(".context-menu-submenu")&&!1===s.selectableSubMenu)){if(e.preventDefault(),e.stopImmediatePropagation(),m.isFunction(a.callbacks[i])&&Object.prototype.hasOwnProperty.call(a.callbacks,i))t=a.callbacks[i];else{if(!m.isFunction(s.callback))return;t=s.callback}!1!==t.call(s.$trigger,i,s,e)?s.$menu.trigger("contextmenu:hide"):s.$menu.parent().length&&$.update.call(s.$trigger,s)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(e,t){var n=m(this).data("contextMenuRoot");$.hide.call(n.$trigger,n,t&&t.force)},focusItem:function(e){e.stopPropagation();var t=m(this),n=t.data(),o=n.contextMenu,a=n.contextMenuRoot;t.hasClass(a.classNames.disabled)||t.hasClass(a.classNames.notSelectable)||(t.addClass([a.classNames.hover,a.classNames.visible].join(" ")).parent().find(".context-menu-item").not(t).removeClass(a.classNames.visible).filter("."+a.classNames.hover).trigger("contextmenu:blur"),o.$selected=a.$selected=t,o&&o.$node&&o.$node.hasClass("context-menu-submenu")&&o.$node.addClass(a.classNames.hover),o.$node&&a.positionSubmenu.call(o.$node,o.$menu))},blurItem:function(e){e.stopPropagation();var t=m(this),n=t.data(),o=n.contextMenu,a=n.contextMenuRoot;o.autoHide&&t.removeClass(a.classNames.visible),t.removeClass(a.classNames.hover),o.$selected=null}},$={show:function(n,e,t){var o=m(this),a={};if(m("#context-menu-layer").trigger("mousedown"),n.$trigger=o,!1!==n.events.show.call(o,n))if(!1!==$.update.call(o,n)){if(n.position.call(o,n,e,t),n.zIndex){var s=n.zIndex;"function"==typeof n.zIndex&&(s=n.zIndex.call(o,n)),a.zIndex=function(e){for(var t=0,n=e;t=Math.max(t,parseInt(n.css("z-index"),10)||0),(n=n.parent())&&n.length&&!(-1<"html body".indexOf(n.prop("nodeName").toLowerCase())););return t}(o)+s}$.layer.call(n.$menu,n,a.zIndex),n.$menu.find("ul").css("zIndex",a.zIndex+1),n.$menu.css(a)[n.animation.show](n.animation.duration,function(){o.trigger("contextmenu:visible"),$.activated(n),n.events.activated(n)}),o.data("contextMenu",n).addClass("context-menu-active"),m(document).off("keydown.contextMenu").on("keydown.contextMenu",b.key),n.autoHide&&m(document).on("mousemove.contextMenuAutoHide",function(e){var t=o.offset();t.right=t.left+o.outerWidth(),t.bottom=t.top+o.outerHeight(),!n.$layer||n.hovering||e.pageX>=t.left&&e.pageX<=t.right&&e.pageY>=t.top&&e.pageY<=t.bottom||setTimeout(function(){n.hovering||null===n.$menu||void 0===n.$menu||n.$menu.trigger("contextmenu:hide")},50)})}else c=null;else c=null},hide:function(t,e){var n=m(this);if(t||(t=n.data("contextMenu")||{}),e||!t.events||!1!==t.events.hide.call(n,t)){if(n.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout((o=t.$layer,function(){o.remove()}),10);try{delete t.$layer}catch(e){t.$layer=null}}var o;c=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),m(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),m.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void 0;try{delete t[e]}catch(e){}return!0}})),setTimeout(function(){n.trigger("contextmenu:hidden")},10)})}},create:function(r,u){function d(e){var t=m("<span></span>");if(e._accesskey)e._beforeAccesskey&&t.append(document.createTextNode(e._beforeAccesskey)),m("<span></span>").addClass("context-menu-accesskey").text(e._accesskey).appendTo(t),e._afterAccesskey&&t.append(document.createTextNode(e._afterAccesskey));else if(e.isHtmlName){if(void 0!==e.accesskey)throw new Error("accesskeys are not compatible with HTML names and cannot be used together in the same item");t.html(e.name)}else t.text(e.name);return t}void 0===u&&(u=r),r.$menu=m('<ul class="context-menu-list"></ul>').addClass(r.className||"").data({contextMenu:r,contextMenuRoot:u}),m.each(["callbacks","commands","inputs"],function(e,t){r[t]={},u[t]||(u[t]={})}),u.accesskeys||(u.accesskeys={}),m.each(r.items,function(n,o){var e=m('<li class="context-menu-item"></li>').addClass(o.className||""),t=null,a=null;if(e.on("click",m.noop),"string"!=typeof o&&"cm_separator"!==o.type||(o={type:"cm_seperator"}),o.$node=e.data({contextMenu:r,contextMenuRoot:u,contextMenuKey:n}),void 0!==o.accesskey)for(var s,i=function(e){for(var t,n=e.split(/\s+/),o=[],a=0;t=n[a];a++)t=t.charAt(0).toUpperCase(),o.push(t);return o}(o.accesskey),c=0;s=i[c];c++)if(!u.accesskeys[s]){var l=(u.accesskeys[s]=o).name.match(new RegExp("^(.*?)("+s+")(.*)$","i"));l&&(o._beforeAccesskey=l[1],o._accesskey=l[2],o._afterAccesskey=l[3]);break}if(o.type&&v[o.type])v[o.type].call(e,o,r,u),m.each([r,u],function(e,t){t.commands[n]=o,!m.isFunction(o.callback)||void 0!==t.callbacks[n]&&void 0!==r.type||(t.callbacks[n]=o.callback)});else{switch("cm_seperator"===o.type?e.addClass("context-menu-separator "+u.classNames.notSelectable):"html"===o.type?e.addClass("context-menu-html "+u.classNames.notSelectable):"sub"===o.type||(o.type?(t=m("<label></label>").appendTo(e),d(o).appendTo(t),e.addClass("context-menu-input"),r.hasTypes=!0,m.each([r,u],function(e,t){t.commands[n]=o,t.inputs[n]=o})):o.items&&(o.type="sub")),o.type){case"cm_seperator":break;case"text":a=m('<input type="text" value="1" name="" />').attr("name","context-menu-input-"+n).val(o.value||"").appendTo(t);break;case"textarea":a=m('<textarea name=""></textarea>').attr("name","context-menu-input-"+n).val(o.value||"").appendTo(t),o.height&&a.height(o.height);break;case"checkbox":a=m('<input type="checkbox" value="1" name="" />').attr("name","context-menu-input-"+n).val(o.value||"").prop("checked",!!o.selected).prependTo(t);break;case"radio":a=m('<input type="radio" value="1" name="" />').attr("name","context-menu-input-"+o.radio).val(o.value||"").prop("checked",!!o.selected).prependTo(t);break;case"select":a=m('<select name=""></select>').attr("name","context-menu-input-"+n).appendTo(t),o.options&&(m.each(o.options,function(e,t){m("<option></option>").val(e).text(t).appendTo(a)}),a.val(o.selected));break;case"sub":d(o).appendTo(e),o.appendTo=o.$node,e.data("contextMenu",o).addClass("context-menu-submenu"),o.callback=null,"function"==typeof o.items.then?$.processPromises(o,u,o.items):$.create(o,u);break;case"html":m(o.html).appendTo(e);break;default:m.each([r,u],function(e,t){t.commands[n]=o,!m.isFunction(o.callback)||void 0!==t.callbacks[n]&&void 0!==r.type||(t.callbacks[n]=o.callback)}),d(o).appendTo(e)}o.type&&"sub"!==o.type&&"html"!==o.type&&"cm_seperator"!==o.type&&(a.on("focus",b.focusInput).on("blur",b.blurInput),o.events&&a.on(o.events,r)),o.icon&&(m.isFunction(o.icon)?o._icon=o.icon.call(this,this,e,n,o):"string"==typeof o.icon&&"fa-"===o.icon.substring(0,3)?o._icon=u.classNames.icon+" "+u.classNames.icon+"--fa fa "+o.icon:o._icon=u.classNames.icon+" "+u.classNames.icon+"-"+o.icon,e.addClass(o._icon))}o.$input=a,o.$label=t,e.appendTo(r.$menu),!r.hasTypes&&m.support.eventSelectstart&&e.on("selectstart.disableTextSelect",b.abortevent)}),r.$node||r.$menu.css("display","none").addClass("context-menu-root"),r.$menu.appendTo(r.appendTo||document.body)},resize:function(e,t){var n;e.css({position:"absolute",display:"block"}),e.data("width",(n=e.get(0)).getBoundingClientRect?Math.ceil(n.getBoundingClientRect().width):e.outerWidth()+1),e.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),e.find("> li > ul").each(function(){$.resize(m(this),!0)}),t||e.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return m(this).data("width")})},update:function(s,i){var c=this;void 0===i&&(i=s,$.resize(s.$menu));var l=!1;return s.$menu.children().each(function(){var e,t=m(this),n=t.data("contextMenuKey"),o=s.items[n],a=m.isFunction(o.disabled)&&o.disabled.call(c,n,i)||!0===o.disabled;if((e=m.isFunction(o.visible)?o.visible.call(c,n,i):void 0===o.visible||!0===o.visible)&&(l=!0),t[e?"show":"hide"](),t[a?"addClass":"removeClass"](i.classNames.disabled),m.isFunction(o.icon)&&(t.removeClass(o._icon),o._icon=o.icon.call(this,c,t,n,o),t.addClass(o._icon)),o.type)switch(t.find("input, select, textarea").prop("disabled",a),o.type){case"text":case"textarea":o.$input.val(o.value||"");break;case"checkbox":case"radio":o.$input.val(o.value||"").prop("checked",!!o.selected);break;case"select":o.$input.val((0===o.selected?"0":o.selected)||"")}o.$menu&&($.update.call(c,o,i)&&(l=!0))}),l},layer:function(e,t){var n=e.$layer=m('<div id="context-menu-layer"></div>').css({height:p.height(),width:p.width(),display:"block",position:"fixed","z-index":t,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",e).insertBefore(this).on("contextmenu",b.abortevent).on("mousedown",b.layerClick);return void 0===document.body.style.maxWidth&&n.css({position:"absolute",height:m(document).height()}),n},processPromises:function(e,t,n){function o(e,t,n){void 0===n?(n={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):"string"==typeof n&&(n={error:{name:n}}),a(e,t,n)}function a(e,t,n){void 0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=n,$.create(e,t,!0),$.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),n.then(function(e,t,n){void 0===n&&o(void 0),a(e,t,n)}.bind(this,e,t),o.bind(this,e,t))},activated:function(e){var t=e.$menu,n=t.offset(),o=m(window).height(),a=m(window).scrollTop(),s=t.height();o<s?t.css({height:o+"px","overflow-x":"hidden","overflow-y":"auto",top:a+"px"}):(n.top<a||n.top+s>a+o)&&t.css({top:"0px"})}};function l(e){return e.id&&m('label[for="'+e.id+'"]').val()||e.name}m.fn.contextMenu=function(e){var t=this,n=e;if(0<this.length)if(void 0===e)this.first().trigger("contextmenu");else if(void 0!==e.x&&void 0!==e.y)this.first().trigger(m.Event("contextmenu",{pageX:e.x,pageY:e.y,mouseButton:e.button}));else if("hide"===e){var o=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===e?m.contextMenu("destroy",{context:this}):m.isPlainObject(e)?(e.context=this,m.contextMenu("create",e)):e?this.removeClass("context-menu-disabled"):e||this.addClass("context-menu-disabled");else m.each(x,function(){this.selector===t.selector&&(n.data=this,m.extend(n.data,{trigger:"demand"}))}),b.contextmenu.call(n.target,n);return this},m.contextMenu=function(e,t){"string"!=typeof e&&(t=e,e="create"),"string"==typeof t?t={selector:t}:void 0===t&&(t={});var n=m.extend(!0,{},g,t||{}),o=m(document),a=o,s=!1;switch(n.context&&n.context.length?(a=m(n.context).first(),n.context=a.get(0),s=!m(n.context).is(document)):n.context=document,e){case"update":if(s)$.update(a);else for(var i in x)x.hasOwnProperty(i)&&$.update(x[i]);break;case"create":if(!n.selector)throw new Error("No selector specified");if(n.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+n.selector+'" as it contains a reserved className');if(!n.build&&(!n.items||m.isEmptyObject(n.items)))throw new Error("No Items specified");if(f++,n.ns=".contextMenu"+f,s||(h[n.selector]=n.ns),(x[n.ns]=n).trigger||(n.trigger="right"),!d){var c="click"===n.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",l={"contextmenu:focus.contextMenu":b.focusItem,"contextmenu:blur.contextMenu":b.blurItem,"contextmenu.contextMenu":b.abortevent,"mouseenter.contextMenu":b.itemMouseenter,"mouseleave.contextMenu":b.itemMouseleave};l[c]=b.itemClick,o.on({"contextmenu:hide.contextMenu":b.hideMenu,"prevcommand.contextMenu":b.prevItem,"nextcommand.contextMenu":b.nextItem,"contextmenu.contextMenu":b.abortevent,"mouseenter.contextMenu":b.menuMouseenter,"mouseleave.contextMenu":b.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",b.inputClick).on(l,".context-menu-item"),d=!0}switch(a.on("contextmenu"+n.ns,n.selector,n,b.contextmenu),s&&a.on("remove"+n.ns,function(){m(this).contextMenu("destroy")}),n.trigger){case"hover":a.on("mouseenter"+n.ns,n.selector,n,b.mouseenter).on("mouseleave"+n.ns,n.selector,n,b.mouseleave);break;case"left":a.on("click"+n.ns,n.selector,n,b.click);break;case"touchstart":a.on("touchstart"+n.ns,n.selector,n,b.click)}n.build||$.create(n);break;case"destroy":var r;if(s){var u=n.context;m.each(x,function(e,t){if(!t)return!0;if(!m(u).is(t.selector))return!0;(r=m(".context-menu-list").filter(":visible")).length&&r.data().contextMenuRoot.$trigger.is(m(t.context).find(t.selector))&&r.trigger("contextmenu:hide",{force:!0});try{x[t.ns].$menu&&x[t.ns].$menu.remove(),delete x[t.ns]}catch(e){x[t.ns]=null}return m(t.context).off(t.ns),!0})}else if(n.selector){if(h[n.selector]){(r=m(".context-menu-list").filter(":visible")).length&&r.data().contextMenuRoot.$trigger.is(n.selector)&&r.trigger("contextmenu:hide",{force:!0});try{x[h[n.selector]].$menu&&x[h[n.selector]].$menu.remove(),delete x[h[n.selector]]}catch(e){x[h[n.selector]]=null}o.off(h[n.selector])}}else o.off(".contextMenu .contextMenuAutoHide"),m.each(x,function(e,t){m(t.context).off(t.ns)}),h={},x={},f=0,d=!1,m("#context-menu-layer, .context-menu-list").remove();break;case"html5":(!m.support.htmlCommand&&!m.support.htmlMenuitem||"boolean"==typeof t&&t)&&m('menu[type="context"]').each(function(){this.id&&m.contextMenu({selector:"[contextmenu="+this.id+"]",items:m.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+e+'"')}return this},m.contextMenu.setInputValues=function(e,n){void 0===n&&(n={}),m.each(e.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=n[e]||"";break;case"checkbox":t.selected=!!n[e];break;case"radio":t.selected=(n[t.radio]||"")===t.value;break;case"select":t.selected=n[e]||""}})},m.contextMenu.getInputValues=function(e,n){return void 0===n&&(n={}),m.each(e.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":n[e]=t.$input.val();break;case"checkbox":n[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(n[t.radio]=t.value)}}),n},m.contextMenu.fromMenu=function(e){var t={};return function s(i,e,c){return c||(c=0),e.each(function(){var e,t,n=m(this),o=this,a=this.nodeName.toLowerCase();switch("label"===a&&n.find("input, textarea, select").length&&(e=n.text(),a=(o=(n=n.children().first()).get(0)).nodeName.toLowerCase()),a){case"menu":t={name:n.attr("label"),items:{}},c=s(t.items,n.children(),c);break;case"a":case"button":t={name:n.text(),disabled:!!n.attr("disabled"),callback:function(){n.get(0).click()}};break;case"menuitem":case"command":switch(n.attr("type")){case void 0:case"command":case"menuitem":t={name:n.attr("label"),disabled:!!n.attr("disabled"),icon:n.attr("icon"),callback:function(){n.get(0).click()}};break;case"checkbox":t={type:"checkbox",disabled:!!n.attr("disabled"),name:n.attr("label"),selected:!!n.attr("checked")};break;case"radio":t={type:"radio",disabled:!!n.attr("disabled"),name:n.attr("label"),radio:n.attr("radiogroup"),value:n.attr("id"),selected:!!n.attr("checked")};break;default:t=void 0}break;case"hr":t="-------";break;case"input":switch(n.attr("type")){case"text":t={type:"text",name:e||l(o),disabled:!!n.attr("disabled"),value:n.val()};break;case"checkbox":t={type:"checkbox",name:e||l(o),disabled:!!n.attr("disabled"),selected:!!n.attr("checked")};break;case"radio":t={type:"radio",name:e||l(o),disabled:!!n.attr("disabled"),radio:!!n.attr("name"),value:n.val(),selected:!!n.attr("checked")};break;default:t=void 0}break;case"select":t={type:"select",name:e||l(o),disabled:!!n.attr("disabled"),selected:n.val(),options:{}},n.children().each(function(){t.options[this.value]=m(this).text()});break;case"textarea":t={type:"textarea",name:e||l(o),disabled:!!n.attr("disabled"),value:n.val()};break;case"label":break;default:t={type:"html",html:n.clone(!0)}}t&&(i["key"+ ++c]=t)}),c}(t,m(e).children()),t},m.contextMenu.defaults=g,m.contextMenu.types=v,m.contextMenu.handle=b,m.contextMenu.op=$,m.contextMenu.menus=x});
|
src/SupsysticTables/Migrationfree/Controller.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class SupsysticTables_Migrationfree_Controller extends SupsysticTables_Core_BaseController
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Generates download url.
|
7 |
+
* @param \Rsc_Http_Request $request
|
8 |
+
* @return \Rsc_Http_Response
|
9 |
+
*/
|
10 |
+
public function generateUrlAction(Rsc_Http_Request $request)
|
11 |
+
{
|
12 |
+
if (!$this->_checkNonce($request)) die();
|
13 |
+
$id = $request->post->get_esc_html('id');
|
14 |
+
$slug = $this->getEnvironment()->getMenu()->getMenuSlug();
|
15 |
+
return $this->ajaxSuccess(array(
|
16 |
+
'url' => admin_url(
|
17 |
+
sprintf(
|
18 |
+
'admin.php?page=%s&module=migrationfree&migration-supsystic-table=true&id=%s',
|
19 |
+
$slug,
|
20 |
+
$id
|
21 |
+
)
|
22 |
+
)
|
23 |
+
));
|
24 |
+
}
|
25 |
+
/**
|
26 |
+
* @return SupsysticTables_Migrationfree_Module
|
27 |
+
*/
|
28 |
+
protected function getModule()
|
29 |
+
{
|
30 |
+
$resolver = $this->getEnvironment()->getResolver();
|
31 |
+
return $resolver->getModulesList()->get('migration');
|
32 |
+
}
|
33 |
+
}
|
src/SupsysticTables/Migrationfree/Model/Exporter.php
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class SupsysticTables_Migrationfree_Model_Exporter extends SupsysticTables_Core_BaseModel
|
5 |
+
{
|
6 |
+
public function export($ids)
|
7 |
+
{
|
8 |
+
$tables = array('columns', 'conditions', 'diagrams', 'rows', 'rows_history');
|
9 |
+
|
10 |
+
// Begin export
|
11 |
+
if(ob_get_contents()) ob_end_clean();
|
12 |
+
header('Content-Description: File Transfer');
|
13 |
+
header('Content-Type: application/octet-stream');
|
14 |
+
header('Content-Disposition: attachment; filename="migration.sql"');
|
15 |
+
if(ob_get_contents()) ob_end_clean();
|
16 |
+
$delim = '----------------------------------';
|
17 |
+
$delimEOL = PHP_EOL.$delim.PHP_EOL;
|
18 |
+
|
19 |
+
foreach($ids as $i => $id) {
|
20 |
+
$tableName = $this->getTable('tables');
|
21 |
+
$fields = $this->selectFields($tableName);
|
22 |
+
|
23 |
+
print 'INSERT INTO `%prefix%tables` ('.$fields.')'.PHP_EOL.
|
24 |
+
'VALUES'.$this->selectValues($tableName, $fields, 'id', $id).';'.$delimEOL.
|
25 |
+
'SET @table_id = (SELECT last_insert_id());'.$delimEOL;
|
26 |
+
|
27 |
+
$fieldWhere = 'table_id';
|
28 |
+
$limit = 400;
|
29 |
+
foreach($tables as $t => $table) {
|
30 |
+
$tableName = $this->getTable($table);
|
31 |
+
$countRows = $this->getCountRows($tableName, $fieldWhere, $id);
|
32 |
+
if($countRows > 0) {
|
33 |
+
$fields = $this->selectFields($tableName);
|
34 |
+
$offset = 0;
|
35 |
+
$diag = ($table == 'diagrams');
|
36 |
+
do {
|
37 |
+
$values = $this->selectValues($tableName, $fields, $fieldWhere, $id, '@table_id,', $limit, $offset);
|
38 |
+
|
39 |
+
if(!empty($values)) {
|
40 |
+
print 'INSERT INTO `%prefix%'.$table.'` (`table_id`,'.$fields.')'.PHP_EOL.'VALUES';
|
41 |
+
if($diag) {
|
42 |
+
print str_replace('"table_id":"'.$id.'"', '"table_id":"%table_id%"', $values);
|
43 |
+
} else {
|
44 |
+
print $values;
|
45 |
+
}
|
46 |
+
print ';'.$delimEOL;
|
47 |
+
}
|
48 |
+
$offset += $limit;
|
49 |
+
} while ($offset < $countRows);
|
50 |
+
if($diag) {
|
51 |
+
print 'UPDATE `%prefix%'.$table.'` SET `data`=REPLACE(`data`, "%table_id%", @table_id) WHERE `table_id`=@table_id;'.$delimEOL;
|
52 |
+
}
|
53 |
+
}
|
54 |
+
}
|
55 |
+
print PHP_EOL;
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
private function selectValues($table, $fields, $where, $id, $pre = '', $limit = 0, $offset = 0)
|
60 |
+
{
|
61 |
+
$query = $this->getQueryBuilder()
|
62 |
+
->select($fields)
|
63 |
+
->from($table)
|
64 |
+
->where($where, '=', $id);
|
65 |
+
if($limit > 0) {
|
66 |
+
$query->limit($limit)->offset($offset);
|
67 |
+
}
|
68 |
+
|
69 |
+
$results = $this->db->get_results($query->build(), ARRAY_N);
|
70 |
+
|
71 |
+
if(sizeof($results) == 0) {
|
72 |
+
return '';
|
73 |
+
}
|
74 |
+
|
75 |
+
$values = '';
|
76 |
+
foreach($results as $i => $row) {
|
77 |
+
$value = $pre;
|
78 |
+
foreach($row as $f => $val) {
|
79 |
+
$value .= "'".$val."',";
|
80 |
+
}
|
81 |
+
$values .= '('.substr($value, 0, -1).'),';
|
82 |
+
}
|
83 |
+
return substr($values, 0, -1);
|
84 |
+
}
|
85 |
+
|
86 |
+
private function getCountRows($table, $where, $id)
|
87 |
+
{
|
88 |
+
$query = $this->getQueryBuilder()
|
89 |
+
->select('count(*)')
|
90 |
+
->from($table)
|
91 |
+
->where($where, '=', $id);
|
92 |
+
$results = $this->db->get_row($query->build(), ARRAY_N);
|
93 |
+
return $results[0];
|
94 |
+
}
|
95 |
+
|
96 |
+
private function selectFields($table)
|
97 |
+
{
|
98 |
+
$columns = $this->db->get_results('SHOW COLUMNS FROM '.$table, ARRAY_N);
|
99 |
+
$fields = '';
|
100 |
+
foreach ($columns as $i => $field) {
|
101 |
+
$name = $field[0];
|
102 |
+
if (class_exists('SupsysticTablesWooPro_Woocommerce_Module')) {
|
103 |
+
if($name != 'id' && $name != 'table_id') {
|
104 |
+
$fields .= '`'.$field[0].'`,';
|
105 |
+
}
|
106 |
+
} else {
|
107 |
+
if($name != 'id' && $name != 'table_id' && $name != 'woo_settings') {
|
108 |
+
$fields .= '`'.$field[0].'`,';
|
109 |
+
}
|
110 |
+
}
|
111 |
+
}
|
112 |
+
return substr($fields, 0, -1);
|
113 |
+
}
|
114 |
+
}
|
src/SupsysticTables/Migrationfree/Module.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SupsysticTables_Migrationfree_Module
|
5 |
+
*/
|
6 |
+
class SupsysticTables_Migrationfree_Module extends SupsysticTables_Core_BaseModule
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* {@inheritdoc}
|
10 |
+
*/
|
11 |
+
public function onInit()
|
12 |
+
{
|
13 |
+
$this->handleMigrationRequest();
|
14 |
+
}
|
15 |
+
|
16 |
+
private function handleMigrationRequest()
|
17 |
+
{
|
18 |
+
if(current_user_can('administrator')) {
|
19 |
+
if (!$this->getRequest()->query->has('migration-supsystic-table')) {
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
$config = $this->getEnvironment()->getConfig();
|
23 |
+
$id = $this->getRequest()->query->get_esc_html('id');
|
24 |
+
$ids = explode(';', $id);
|
25 |
+
if(!is_array($ids)) {
|
26 |
+
wp_die(sprintf($this->translate('The table IDs %s not found.'), $id));
|
27 |
+
}
|
28 |
+
$core = $this->getEnvironment()->getModule('core');
|
29 |
+
$tables = $core->getModelsFactory()->get('tables');
|
30 |
+
foreach($ids as $i => $id) {
|
31 |
+
$table = $tables->getById((int)$id);
|
32 |
+
if (null === $table) {
|
33 |
+
wp_die(sprintf($this->translate('The table ID %s not found.'), $id));
|
34 |
+
}
|
35 |
+
}
|
36 |
+
$exporter = $core->getModelsFactory()->get('exporter', 'migrationfree');
|
37 |
+
$exporter->export($ids);
|
38 |
+
die();
|
39 |
+
}
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
}
|
src/SupsysticTables/Overview/Controller.php
CHANGED
@@ -64,18 +64,11 @@ class SupsysticTables_Overview_Controller extends SupsysticTables_Core_BaseContr
|
|
64 |
|
65 |
protected function getMailErrors() {
|
66 |
global $ts_mail_errors;
|
67 |
-
global $phpmailer;
|
68 |
|
69 |
if (!isset($ts_mail_errors)) {
|
70 |
$ts_mail_errors = array();
|
71 |
}
|
72 |
|
73 |
-
if (isset($phpmailer)) {
|
74 |
-
if(!empty($phpmailer->ErrorInfo)) {
|
75 |
-
$ts_mail_errors[] = $phpmailer->ErrorInfo;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
return $ts_mail_errors;
|
80 |
}
|
81 |
|
@@ -113,4 +106,4 @@ class SupsysticTables_Overview_Controller extends SupsysticTables_Core_BaseContr
|
|
113 |
|
114 |
return $news;
|
115 |
}
|
116 |
-
}
|
64 |
|
65 |
protected function getMailErrors() {
|
66 |
global $ts_mail_errors;
|
|
|
67 |
|
68 |
if (!isset($ts_mail_errors)) {
|
69 |
$ts_mail_errors = array();
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
return $ts_mail_errors;
|
73 |
}
|
74 |
|
106 |
|
107 |
return $news;
|
108 |
}
|
109 |
+
}
|
src/SupsysticTables/Settings/Controller.php
CHANGED
@@ -36,7 +36,7 @@ class SupsysticTables_Settings_Controller extends SupsysticTables_Core_BaseContr
|
|
36 |
|
37 |
}
|
38 |
public function saveSettingsAction(Rsc_Http_Request $request) {
|
39 |
-
|
40 |
$optionsName = $this->getConfig()->get('db_prefix') . 'settings';
|
41 |
$currentSettings = get_option($optionsName);
|
42 |
$settings = $request->post->get('settings', array());
|
36 |
|
37 |
}
|
38 |
public function saveSettingsAction(Rsc_Http_Request $request) {
|
39 |
+
if (!$this->_checkNonce($request)) die();
|
40 |
$optionsName = $this->getConfig()->get('db_prefix') . 'settings';
|
41 |
$currentSettings = get_option($optionsName);
|
42 |
$settings = $request->post->get('settings', array());
|
src/SupsysticTables/Tables/Controller.php
CHANGED
@@ -28,6 +28,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
28 |
*/
|
29 |
public function createAction(Rsc_Http_Request $request)
|
30 |
{
|
|
|
31 |
$title = trim($request->post->get('title'));
|
32 |
$rowsCount = (int) $request->post->get('rows');
|
33 |
$colsCount = (int) $request->post->get('cols');
|
@@ -63,7 +64,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
63 |
return $this->ajaxError($e->getMessage());
|
64 |
}
|
65 |
|
66 |
-
return $this->ajaxSuccess(array('url' => $this->generateUrl('tables', 'view', array('id' => $tableId))));
|
67 |
}
|
68 |
|
69 |
/**
|
@@ -73,6 +74,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
73 |
*/
|
74 |
public function removeAction(Rsc_Http_Request $request)
|
75 |
{
|
|
|
76 |
$id = $this->isAjax() ? $request->post->get('id') : $request->query->get('id');
|
77 |
|
78 |
try {
|
@@ -102,6 +104,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
102 |
*/
|
103 |
public function viewAction(Rsc_Http_Request $request)
|
104 |
{
|
|
|
105 |
$this->getEnvironment()->getModule('tables')->setIniLimits();
|
106 |
|
107 |
/** @var SupsysticTables_Tables_Model_Languages $languages */
|
@@ -139,7 +142,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
139 |
'install_link' => admin_url('plugin-install.php?s=contact+form+by+supsystic&tab=search&type=term'),
|
140 |
'create_link' => $contactFormIsInstalled ? $contactForm->findModule('options')->getTabUrl('forms_add_new') : '',
|
141 |
'is_installed' => $contactFormIsInstalled,
|
142 |
-
'forms_list' => $contactFormIsInstalled && method_exists($contactForm->getModel(), 'getAllForms')
|
143 |
? $contactForm->getModel()->getAllForms() : array(),
|
144 |
'pages_list' => $contactFormIsInstalled ? $this->getPagesListForSelect() : array(),
|
145 |
),
|
@@ -169,6 +172,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
169 |
*/
|
170 |
public function renameAction(Rsc_Http_Request $request)
|
171 |
{
|
|
|
172 |
$id = $request->post->get('id');
|
173 |
$title = trim($request->post->get('title'));
|
174 |
|
@@ -190,9 +194,10 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
190 |
*/
|
191 |
public function getPageRowsAction(Rsc_Http_Request $request)
|
192 |
{
|
|
|
193 |
$id = (int)$request->post->get('id');
|
194 |
$tables = $this->getModel('tables');
|
195 |
-
|
196 |
try {
|
197 |
$table = $tables->getById($id);
|
198 |
$this->getEnvironment()->getModule('tables')->setIniLimits();
|
@@ -209,16 +214,18 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
209 |
if ($table->settings['autoIndex'] == 'new' && $this->getEnvironment()->isPro() && isset($table->settings['source']) && isset($table->settings['source']['database']) && $table->settings['source']['database'] == 'on'){
|
210 |
$columns = array_slice($columns, 1);
|
211 |
}
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
|
|
222 |
}
|
223 |
$order = $request->post->get('order');
|
224 |
$orderCol = (isset($order[0]) && isset($order[0]['column']) ? $order[0]['column'] : false);
|
@@ -239,7 +246,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
239 |
$module = $this->getEnvironment()->getModule('tables');
|
240 |
$module->setIniLimits();
|
241 |
$module->setDataForPage($table);
|
242 |
-
|
243 |
return $this->ajaxSuccess(array('draw' => $request->post->get('draw'),
|
244 |
'recordsTotal' => $rows['recordsTotal'],
|
245 |
'recordsFiltered' => $rows['recordsFiltered'],
|
@@ -257,6 +264,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
257 |
*/
|
258 |
public function getColumnsAction(Rsc_Http_Request $request)
|
259 |
{
|
|
|
260 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
261 |
$tables = $this->getModel('tables');
|
262 |
$id = $request->post->get('id');
|
@@ -277,6 +285,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
277 |
*/
|
278 |
public function updateColumnsAction(Rsc_Http_Request $request)
|
279 |
{
|
|
|
280 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
281 |
$tables = $this->getModel('tables');
|
282 |
$id = $request->post->get('id');
|
@@ -305,6 +314,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
305 |
*/
|
306 |
public function getCountRowsAction(Rsc_Http_Request $request)
|
307 |
{
|
|
|
308 |
$tables = $this->getModel('tables');
|
309 |
$id = $request->post->get('id');
|
310 |
|
@@ -326,6 +336,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
326 |
*/
|
327 |
public function getRowsAction(Rsc_Http_Request $request)
|
328 |
{
|
|
|
329 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
330 |
$tables = $this->getModel('tables');
|
331 |
$id = $request->post->get('id');
|
@@ -350,6 +361,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
350 |
*/
|
351 |
public function updateRowsAction(Rsc_Http_Request $request)
|
352 |
{
|
|
|
353 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
354 |
$tables = $this->getModel('tables');
|
355 |
$id = $request->post->get('id');
|
@@ -399,11 +411,20 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
399 |
*/
|
400 |
public function saveSettingsAction(Rsc_Http_Request $request)
|
401 |
{
|
|
|
402 |
$id = $request->post->get('id');
|
403 |
$data = $request->post->get('settings');
|
404 |
-
|
405 |
-
|
406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
parse_str($data, $settings);
|
408 |
|
409 |
try {
|
@@ -424,6 +445,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
424 |
*/
|
425 |
public function renderAction(Rsc_Http_Request $request)
|
426 |
{
|
|
|
427 |
/** @var SupsysticTables_Tables_Module $tables */
|
428 |
$tables = $this->getEnvironment()->getModule('tables');
|
429 |
$id = $request->post->get('id');
|
@@ -431,13 +453,21 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
431 |
$data = $request->post->get('settings');
|
432 |
$settings = false;
|
433 |
if($data && !empty($data)) {
|
434 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
$data = stripslashes($data);
|
436 |
-
|
|
|
|
|
437 |
parse_str($data, $settings);
|
438 |
}
|
439 |
$preview = $request->post->get('preview');
|
440 |
-
|
441 |
$tables->isPreview = ($preview && $preview == 1);
|
442 |
if($tables->isPreview) {
|
443 |
$this->cleanCache($id);
|
@@ -452,6 +482,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
452 |
*/
|
453 |
public function updateMetaAction(Rsc_Http_Request $request)
|
454 |
{
|
|
|
455 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
456 |
$tables = $this->getModel('tables');
|
457 |
$id = $request->post->get('id');
|
@@ -486,6 +517,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
486 |
|
487 |
public function getMetaAction(Rsc_Http_Request $request)
|
488 |
{
|
|
|
489 |
$id = $request->post->get('id');
|
490 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
491 |
$tables = $this->getModel('tables');
|
@@ -538,9 +570,17 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
538 |
} else {
|
539 |
$decodedData = $data;
|
540 |
}
|
541 |
-
|
542 |
-
|
543 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
544 |
$decodedData = json_decode($decodedData, true);
|
545 |
|
546 |
return $decodedData;
|
@@ -548,6 +588,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
548 |
|
549 |
public function cloneTableAction(Rsc_Http_Request $request)
|
550 |
{
|
|
|
551 |
$tablesModule = $this->getEnvironment()->getModule('tables');
|
552 |
$tablesModel = $this->getModel('tables');
|
553 |
|
@@ -585,6 +626,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
585 |
}
|
586 |
|
587 |
public function reviewNoticeResponseAction(Rsc_Http_Request $request) {
|
|
|
588 |
$responseCode = $request->post->get('responseCode');
|
589 |
$responseType = $request->post->get('responseType');
|
590 |
|
@@ -632,8 +674,9 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
632 |
}
|
633 |
}
|
634 |
|
635 |
-
public function getListForTblAction(
|
636 |
{
|
|
|
637 |
$data = $request->post->get('data');
|
638 |
|
639 |
$page = $data['page'];
|
@@ -687,7 +730,7 @@ class SupsysticTables_Tables_Controller extends SupsysticTables_Core_BaseControl
|
|
687 |
$id = $row['id'];
|
688 |
$shortcode = "[".$tableShortcode." id=".$id."]";
|
689 |
$phpcode = htmlspecialchars("<?php echo supsystic_tables_get(".$id."); ?>");
|
690 |
-
$titleUrl = "<a href=".$this->generateUrl('tables', 'view', array( 'id' => $id ) ).">".$row['title']." <i class='fa fa-fw fa-pencil'></i></a>";
|
691 |
$data[$key]['shortcode'] = $shortcode;
|
692 |
$data[$key]['phpcode'] = $phpcode;
|
693 |
$data[$key]['title'] = $titleUrl;
|
28 |
*/
|
29 |
public function createAction(Rsc_Http_Request $request)
|
30 |
{
|
31 |
+
if (!$this->_checkNonce($request)) die();
|
32 |
$title = trim($request->post->get('title'));
|
33 |
$rowsCount = (int) $request->post->get('rows');
|
34 |
$colsCount = (int) $request->post->get('cols');
|
64 |
return $this->ajaxError($e->getMessage());
|
65 |
}
|
66 |
|
67 |
+
return $this->ajaxSuccess(array('url' => $this->generateUrl('tables', 'view', array('id' => $tableId, 'nonce' => wp_create_nonce('dtgs_nonce') ))));
|
68 |
}
|
69 |
|
70 |
/**
|
74 |
*/
|
75 |
public function removeAction(Rsc_Http_Request $request)
|
76 |
{
|
77 |
+
if (!$this->_checkNonce($request)) die();
|
78 |
$id = $this->isAjax() ? $request->post->get('id') : $request->query->get('id');
|
79 |
|
80 |
try {
|
104 |
*/
|
105 |
public function viewAction(Rsc_Http_Request $request)
|
106 |
{
|
107 |
+
|
108 |
$this->getEnvironment()->getModule('tables')->setIniLimits();
|
109 |
|
110 |
/** @var SupsysticTables_Tables_Model_Languages $languages */
|
142 |
'install_link' => admin_url('plugin-install.php?s=contact+form+by+supsystic&tab=search&type=term'),
|
143 |
'create_link' => $contactFormIsInstalled ? $contactForm->findModule('options')->getTabUrl('forms_add_new') : '',
|
144 |
'is_installed' => $contactFormIsInstalled,
|
145 |
+
'forms_list' => $contactFormIsInstalled && method_exists($contactForm->getModel(), 'getAllForms')
|
146 |
? $contactForm->getModel()->getAllForms() : array(),
|
147 |
'pages_list' => $contactFormIsInstalled ? $this->getPagesListForSelect() : array(),
|
148 |
),
|
172 |
*/
|
173 |
public function renameAction(Rsc_Http_Request $request)
|
174 |
{
|
175 |
+
if (!$this->_checkNonce($request)) die();
|
176 |
$id = $request->post->get('id');
|
177 |
$title = trim($request->post->get('title'));
|
178 |
|
194 |
*/
|
195 |
public function getPageRowsAction(Rsc_Http_Request $request)
|
196 |
{
|
197 |
+
if ( !$this->_checkNonce($request) && !$this->_checkNonceFrontend($request) ) die();
|
198 |
$id = (int)$request->post->get('id');
|
199 |
$tables = $this->getModel('tables');
|
200 |
+
|
201 |
try {
|
202 |
$table = $tables->getById($id);
|
203 |
$this->getEnvironment()->getModule('tables')->setIniLimits();
|
214 |
if ($table->settings['autoIndex'] == 'new' && $this->getEnvironment()->isPro() && isset($table->settings['source']) && isset($table->settings['source']['database']) && $table->settings['source']['database'] == 'on'){
|
215 |
$columns = array_slice($columns, 1);
|
216 |
}
|
217 |
+
if (!empty($columns)){
|
218 |
+
foreach ($columns as $j => $column) {
|
219 |
+
if (isset($column['search']) && isset($column['search']['value'])) {
|
220 |
+
$search = $column['search']['value'];
|
221 |
+
if($search != '') {
|
222 |
+
$list = explode('|', $search);
|
223 |
+
if (!in_array('', $list)) {
|
224 |
+
$searchCols[$j] = $list;
|
225 |
+
}
|
226 |
+
}
|
227 |
+
}
|
228 |
+
}
|
229 |
}
|
230 |
$order = $request->post->get('order');
|
231 |
$orderCol = (isset($order[0]) && isset($order[0]['column']) ? $order[0]['column'] : false);
|
246 |
$module = $this->getEnvironment()->getModule('tables');
|
247 |
$module->setIniLimits();
|
248 |
$module->setDataForPage($table);
|
249 |
+
|
250 |
return $this->ajaxSuccess(array('draw' => $request->post->get('draw'),
|
251 |
'recordsTotal' => $rows['recordsTotal'],
|
252 |
'recordsFiltered' => $rows['recordsFiltered'],
|
264 |
*/
|
265 |
public function getColumnsAction(Rsc_Http_Request $request)
|
266 |
{
|
267 |
+
if (!$this->_checkNonce($request)) die();
|
268 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
269 |
$tables = $this->getModel('tables');
|
270 |
$id = $request->post->get('id');
|
285 |
*/
|
286 |
public function updateColumnsAction(Rsc_Http_Request $request)
|
287 |
{
|
288 |
+
if (!$this->_checkNonce($request)) die();
|
289 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
290 |
$tables = $this->getModel('tables');
|
291 |
$id = $request->post->get('id');
|
314 |
*/
|
315 |
public function getCountRowsAction(Rsc_Http_Request $request)
|
316 |
{
|
317 |
+
if (!$this->_checkNonce($request)) die();
|
318 |
$tables = $this->getModel('tables');
|
319 |
$id = $request->post->get('id');
|
320 |
|
336 |
*/
|
337 |
public function getRowsAction(Rsc_Http_Request $request)
|
338 |
{
|
339 |
+
if (!$this->_checkNonce($request)) die();
|
340 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
341 |
$tables = $this->getModel('tables');
|
342 |
$id = $request->post->get('id');
|
361 |
*/
|
362 |
public function updateRowsAction(Rsc_Http_Request $request)
|
363 |
{
|
364 |
+
if (!$this->_checkNonce($request)) die();
|
365 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
366 |
$tables = $this->getModel('tables');
|
367 |
$id = $request->post->get('id');
|
411 |
*/
|
412 |
public function saveSettingsAction(Rsc_Http_Request $request)
|
413 |
{
|
414 |
+
if (!$this->_checkNonce($request)) die();
|
415 |
$id = $request->post->get('id');
|
416 |
$data = $request->post->get('settings');
|
417 |
+
|
418 |
+
if (!defined('PHP_VERSION_ID')) {
|
419 |
+
$version = explode('.', PHP_VERSION);
|
420 |
+
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
|
421 |
+
}
|
422 |
+
if (PHP_VERSION_ID < 70400) {
|
423 |
+
if (get_magic_quotes_gpc()) {
|
424 |
+
$data = stripslashes($data);
|
425 |
+
}
|
426 |
+
}
|
427 |
+
|
428 |
parse_str($data, $settings);
|
429 |
|
430 |
try {
|
445 |
*/
|
446 |
public function renderAction(Rsc_Http_Request $request)
|
447 |
{
|
448 |
+
if (!$this->_checkNonce($request)) die();
|
449 |
/** @var SupsysticTables_Tables_Module $tables */
|
450 |
$tables = $this->getEnvironment()->getModule('tables');
|
451 |
$id = $request->post->get('id');
|
453 |
$data = $request->post->get('settings');
|
454 |
$settings = false;
|
455 |
if($data && !empty($data)) {
|
456 |
+
|
457 |
+
if (!defined('PHP_VERSION_ID')) {
|
458 |
+
$version = explode('.', PHP_VERSION);
|
459 |
+
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
|
460 |
+
}
|
461 |
+
if (PHP_VERSION_ID < 70400) {
|
462 |
+
if (get_magic_quotes_gpc()) {
|
463 |
$data = stripslashes($data);
|
464 |
+
}
|
465 |
+
}
|
466 |
+
|
467 |
parse_str($data, $settings);
|
468 |
}
|
469 |
$preview = $request->post->get('preview');
|
470 |
+
|
471 |
$tables->isPreview = ($preview && $preview == 1);
|
472 |
if($tables->isPreview) {
|
473 |
$this->cleanCache($id);
|
482 |
*/
|
483 |
public function updateMetaAction(Rsc_Http_Request $request)
|
484 |
{
|
485 |
+
if (!$this->_checkNonce($request)) die();
|
486 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
487 |
$tables = $this->getModel('tables');
|
488 |
$id = $request->post->get('id');
|
517 |
|
518 |
public function getMetaAction(Rsc_Http_Request $request)
|
519 |
{
|
520 |
+
if (!$this->_checkNonce($request)) die();
|
521 |
$id = $request->post->get('id');
|
522 |
/** @var SupsysticTables_Tables_Model_Tables $tables */
|
523 |
$tables = $this->getModel('tables');
|
570 |
} else {
|
571 |
$decodedData = $data;
|
572 |
}
|
573 |
+
|
574 |
+
if (!defined('PHP_VERSION_ID')) {
|
575 |
+
$version = explode('.', PHP_VERSION);
|
576 |
+
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
|
577 |
+
}
|
578 |
+
if (PHP_VERSION_ID < 70400) {
|
579 |
+
if (get_magic_quotes_gpc()) {
|
580 |
+
$decodedData = stripslashes($decodedData);
|
581 |
+
}
|
582 |
+
}
|
583 |
+
|
584 |
$decodedData = json_decode($decodedData, true);
|
585 |
|
586 |
return $decodedData;
|
588 |
|
589 |
public function cloneTableAction(Rsc_Http_Request $request)
|
590 |
{
|
591 |
+
if (!$this->_checkNonce($request)) die();
|
592 |
$tablesModule = $this->getEnvironment()->getModule('tables');
|
593 |
$tablesModel = $this->getModel('tables');
|
594 |
|
626 |
}
|
627 |
|
628 |
public function reviewNoticeResponseAction(Rsc_Http_Request $request) {
|
629 |
+
if (!$this->_checkNonce($request)) die();
|
630 |
$responseCode = $request->post->get('responseCode');
|
631 |
$responseType = $request->post->get('responseType');
|
632 |
|
674 |
}
|
675 |
}
|
676 |
|
677 |
+
public function getListForTblAction(Rsc_Http_Request $request)
|
678 |
{
|
679 |
+
if (!$this->_checkNonce($request)) die();
|
680 |
$data = $request->post->get('data');
|
681 |
|
682 |
$page = $data['page'];
|
730 |
$id = $row['id'];
|
731 |
$shortcode = "[".$tableShortcode." id=".$id."]";
|
732 |
$phpcode = htmlspecialchars("<?php echo supsystic_tables_get(".$id."); ?>");
|
733 |
+
$titleUrl = "<a href=".$this->generateUrl('tables', 'view', array( 'id' => $id, 'nonce' => wp_create_nonce('dtgs_nonce') ) ).">".$row['title']." <i class='fa fa-fw fa-pencil'></i></a>";
|
734 |
$data[$key]['shortcode'] = $shortcode;
|
735 |
$data[$key]['phpcode'] = $phpcode;
|
736 |
$data[$key]['title'] = $titleUrl;
|
src/SupsysticTables/Tables/Model/Tables.php
CHANGED
@@ -343,7 +343,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
343 |
* Returns all table rows
|
344 |
* @param int $id Table id
|
345 |
* @param int $limit limit
|
346 |
-
* @param bool $asc
|
347 |
* @param int $offset offset
|
348 |
* @return array
|
349 |
*/
|
@@ -358,7 +358,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
358 |
if ($limit != 0){
|
359 |
$query->order($asc ? 'ASC' : 'DESC')->limit((int)$limit)->offset((int)$offset);
|
360 |
}
|
361 |
-
|
362 |
$rows = $this->db->get_results($query->build());
|
363 |
|
364 |
if ($this->db->last_error) {
|
@@ -492,7 +492,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
492 |
foreach ($results as $i => $row) {
|
493 |
$data = @unserialize($row->data);
|
494 |
$index = array_search($data['cells'][0]['y'], $ids);
|
495 |
-
if($index !== false) {
|
496 |
$rows[$index] = $this->prepareRowsData($data, false);
|
497 |
}
|
498 |
}
|
@@ -514,9 +514,9 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
514 |
->select('count(*)')
|
515 |
->from($this->getTable('rows'))
|
516 |
->where('table_id', '=', (int)$id);
|
517 |
-
|
518 |
$count = $this->db->get_row($query->build(), ARRAY_N);
|
519 |
-
|
520 |
if ($this->db->last_error) {
|
521 |
throw new RuntimeException($this->db->last_error);
|
522 |
}
|
@@ -539,7 +539,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
539 |
}
|
540 |
|
541 |
$rawData = (!$sort && !$search);
|
542 |
-
|
543 |
$recordsTotal = $this->getCountRows($id);
|
544 |
$bodyStart = $header;
|
545 |
$bodyStop = $recordsTotal - $footer - 1;
|
@@ -549,7 +549,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
549 |
->select('id, data')
|
550 |
->from($this->getTable('rows'))
|
551 |
->where('table_id', '=', (int)$id)
|
552 |
-
->orderBy($this->getField('rows', 'id'));
|
553 |
|
554 |
if ($rawData) {
|
555 |
$recordsFiltered = $recordsTotal;
|
@@ -574,7 +574,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
574 |
if($this->db->last_error) {
|
575 |
throw new RuntimeException($this->db->last_error);
|
576 |
}
|
577 |
-
|
578 |
foreach ($rows as $i => $row) {
|
579 |
$values = $this->prepareRowsData(@unserialize($row->data), false);
|
580 |
|
@@ -631,7 +631,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
631 |
->from($this->getTable('rows'))
|
632 |
->where('table_id', '=', (int)$id)
|
633 |
->andWhere('id', 'IN', substr($list, 0, -1));
|
634 |
-
}
|
635 |
|
636 |
$rows = $this->db->get_results($query->build());
|
637 |
if ($this->db->last_error) {
|
@@ -642,10 +642,10 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
642 |
$data = array();
|
643 |
foreach ($rows as $i => $row) {
|
644 |
$values = $this->prepareRowsData(@unserialize($row->data), false);
|
645 |
-
|
646 |
$rowId = $row->id;
|
647 |
$n = ($sort ? $sorter[$rowId] : $num++);
|
648 |
-
$data[$n] = $values;
|
649 |
}
|
650 |
|
651 |
if ($sort) {
|
@@ -750,7 +750,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
750 |
if ($from <= 0) return;
|
751 |
|
752 |
$totalRows = $this->getCountRows($id);
|
753 |
-
|
754 |
$query = $this->getQueryBuilder()
|
755 |
->select('id, data')
|
756 |
->from($this->getTable('rows'))
|
@@ -876,7 +876,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
876 |
if (property_exists($table, 'meta')) {
|
877 |
$table->meta = unserialize(htmlspecialchars_decode($table->meta, ENT_QUOTES));
|
878 |
}
|
879 |
-
|
880 |
return $table;
|
881 |
}
|
882 |
|
@@ -1157,4 +1157,4 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
1157 |
return $rows;
|
1158 |
}
|
1159 |
|
1160 |
-
}
|
343 |
* Returns all table rows
|
344 |
* @param int $id Table id
|
345 |
* @param int $limit limit
|
346 |
+
* @param bool $asc
|
347 |
* @param int $offset offset
|
348 |
* @return array
|
349 |
*/
|
358 |
if ($limit != 0){
|
359 |
$query->order($asc ? 'ASC' : 'DESC')->limit((int)$limit)->offset((int)$offset);
|
360 |
}
|
361 |
+
|
362 |
$rows = $this->db->get_results($query->build());
|
363 |
|
364 |
if ($this->db->last_error) {
|
492 |
foreach ($results as $i => $row) {
|
493 |
$data = @unserialize($row->data);
|
494 |
$index = array_search($data['cells'][0]['y'], $ids);
|
495 |
+
if($index !== false) {
|
496 |
$rows[$index] = $this->prepareRowsData($data, false);
|
497 |
}
|
498 |
}
|
514 |
->select('count(*)')
|
515 |
->from($this->getTable('rows'))
|
516 |
->where('table_id', '=', (int)$id);
|
517 |
+
|
518 |
$count = $this->db->get_row($query->build(), ARRAY_N);
|
519 |
+
|
520 |
if ($this->db->last_error) {
|
521 |
throw new RuntimeException($this->db->last_error);
|
522 |
}
|
539 |
}
|
540 |
|
541 |
$rawData = (!$sort && !$search);
|
542 |
+
|
543 |
$recordsTotal = $this->getCountRows($id);
|
544 |
$bodyStart = $header;
|
545 |
$bodyStop = $recordsTotal - $footer - 1;
|
549 |
->select('id, data')
|
550 |
->from($this->getTable('rows'))
|
551 |
->where('table_id', '=', (int)$id)
|
552 |
+
->orderBy($this->getField('rows', 'id'));
|
553 |
|
554 |
if ($rawData) {
|
555 |
$recordsFiltered = $recordsTotal;
|
574 |
if($this->db->last_error) {
|
575 |
throw new RuntimeException($this->db->last_error);
|
576 |
}
|
577 |
+
|
578 |
foreach ($rows as $i => $row) {
|
579 |
$values = $this->prepareRowsData(@unserialize($row->data), false);
|
580 |
|
631 |
->from($this->getTable('rows'))
|
632 |
->where('table_id', '=', (int)$id)
|
633 |
->andWhere('id', 'IN', substr($list, 0, -1));
|
634 |
+
}
|
635 |
|
636 |
$rows = $this->db->get_results($query->build());
|
637 |
if ($this->db->last_error) {
|
642 |
$data = array();
|
643 |
foreach ($rows as $i => $row) {
|
644 |
$values = $this->prepareRowsData(@unserialize($row->data), false);
|
645 |
+
|
646 |
$rowId = $row->id;
|
647 |
$n = ($sort ? $sorter[$rowId] : $num++);
|
648 |
+
$data[$n] = $values;
|
649 |
}
|
650 |
|
651 |
if ($sort) {
|
750 |
if ($from <= 0) return;
|
751 |
|
752 |
$totalRows = $this->getCountRows($id);
|
753 |
+
|
754 |
$query = $this->getQueryBuilder()
|
755 |
->select('id, data')
|
756 |
->from($this->getTable('rows'))
|
876 |
if (property_exists($table, 'meta')) {
|
877 |
$table->meta = unserialize(htmlspecialchars_decode($table->meta, ENT_QUOTES));
|
878 |
}
|
879 |
+
|
880 |
return $table;
|
881 |
}
|
882 |
|
1157 |
return $rows;
|
1158 |
}
|
1159 |
|
1160 |
+
}
|
src/SupsysticTables/Tables/Module.php
CHANGED
@@ -264,12 +264,12 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
264 |
}
|
265 |
}
|
266 |
$table = $table ? $table : $tables->getById($id);
|
267 |
-
|
268 |
if (!$table) {
|
269 |
return sprintf($environment->translate('The table with ID %d not exists.'), $id);
|
270 |
}
|
271 |
$table->isDB = ($environment->isPro() && !$this->isSingleCell && !$this->isTablePart && isset($table->settings['source']) && isset($table->settings['source']['database']) && $table->settings['source']['database'] == 'on');
|
272 |
-
|
273 |
if($settings) {
|
274 |
if($table->isDB) {
|
275 |
$settings['source'] = $table->settings['source'];
|
@@ -284,7 +284,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
284 |
&& isset($table->settings['serverSideProcessing'])
|
285 |
&& $table->settings['serverSideProcessing'] == 'on'
|
286 |
);
|
287 |
-
|
288 |
if(!isset($table->isPageRows)) {
|
289 |
$table->isPageRows = false;
|
290 |
}
|
@@ -308,9 +308,9 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
308 |
$dispatcher->apply('before_table_render', array($table));
|
309 |
$dispatcher->apply('before_table_render_from_cache', array($table));
|
310 |
return file_get_contents($cachePath);
|
311 |
-
|
312 |
if ($this->checkSpreadsheet) {
|
313 |
-
try {
|
314 |
$this->getEnvironment()->getModule('importer')->autoUpdateTableFromGoogle($id, $table);
|
315 |
} catch(Exception $e) {
|
316 |
return $e->getMessage();
|
@@ -460,7 +460,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
460 |
}
|
461 |
|
462 |
private function _getTblLink($id) {
|
463 |
-
return "<a class='tblEditLink' href=".$this->getController()->generateUrl('tables', 'view', array( 'id' => $id ) )." style='display:inline-block;'>". $this->getEnvironment()->translate('Edit Table'). "</a>";
|
464 |
}
|
465 |
|
466 |
public function getMirrorFooter($table) {
|
@@ -653,21 +653,21 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
653 |
case 'date':
|
654 |
$value = date($formats['date']['format'], strtotime($value));
|
655 |
break;
|
656 |
-
case 'percent':
|
657 |
-
case 'percent-convert':
|
658 |
-
|
659 |
-
|
660 |
case 'currency':
|
661 |
$value = number_format($value, $formats['currency']['decimals']['count'], $formats['currency']['decimals']['sep'], $formats['currency']['thousands']['sep']);
|
662 |
break;
|
663 |
case 'time_duration':
|
664 |
$value = date($formats['time']['format'], strtotime($value));
|
665 |
break;
|
666 |
-
default:
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
}
|
672 |
} else {
|
673 |
if (is_numeric($value)) {
|
@@ -858,14 +858,14 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
858 |
$callable = array($this, 'render');
|
859 |
|
860 |
|
861 |
-
$twig->addFunction(new
|
862 |
}
|
863 |
|
864 |
private function addTwigHighlighter()
|
865 |
{
|
866 |
$twig = $this->getEnvironment()->getTwig();
|
867 |
|
868 |
-
$twig->addFilter( new
|
869 |
}
|
870 |
|
871 |
/**
|
@@ -884,8 +884,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
884 |
public function afterUiLoaded(SupsysticTables_Ui_Module $ui)
|
885 |
{
|
886 |
parent::afterUiLoaded($ui);
|
887 |
-
|
888 |
-
$environment = $this->getEnvironment();
|
889 |
$version = $environment->getConfig()->get('plugin_version');
|
890 |
$cachingAllowed = $environment->isProd();
|
891 |
$hookName = 'admin_enqueue_scripts';
|
@@ -956,6 +955,8 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
956 |
);
|
957 |
|
958 |
/* Backend scripts */
|
|
|
|
|
959 |
if ($environment->isModule('tables')) {
|
960 |
$ui->add(
|
961 |
$ui->createScript('jquery-ui-autocomplete')
|
@@ -1108,6 +1109,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
1108 |
$frontendHookName = 'wp_enqueue_scripts';
|
1109 |
$dynamicHookName = is_admin() ? $hookName : $frontendHookName;
|
1110 |
$coreModulePath = untrailingslashit(plugin_dir_url(dirname(__FILE__)) . 'Core');
|
|
|
1111 |
|
1112 |
if (is_admin() && !$this->getEnvironment()->isModule('tables')) {
|
1113 |
return;
|
@@ -1194,7 +1196,23 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
1194 |
->addDependency('supsystic-tables-datatables-js')
|
1195 |
);
|
1196 |
|
1197 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1198 |
$ui->createScript('supsystic-tables-datatables-natural-sort-js')
|
1199 |
->setHookName($dynamicHookName)
|
1200 |
->setSource($coreModulePath . '/assets/js/lib/natural.js')
|
@@ -1202,7 +1220,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
1202 |
->setCachingAllowed(true)
|
1203 |
->addDependency('jquery')
|
1204 |
->addDependency('supsystic-tables-datatables-js')
|
1205 |
-
)
|
1206 |
}
|
1207 |
|
1208 |
private function loadFeatherLight(SupsysticTables_Ui_Module $ui)
|
@@ -1294,7 +1312,6 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
1294 |
->setCachingAllowed(true)
|
1295 |
->setVersion('7.1.1')
|
1296 |
);
|
1297 |
-
|
1298 |
|
1299 |
$ui->add(
|
1300 |
$ui->createScript('supsystic-tables-rulejs-hot-js')
|
264 |
}
|
265 |
}
|
266 |
$table = $table ? $table : $tables->getById($id);
|
267 |
+
|
268 |
if (!$table) {
|
269 |
return sprintf($environment->translate('The table with ID %d not exists.'), $id);
|
270 |
}
|
271 |
$table->isDB = ($environment->isPro() && !$this->isSingleCell && !$this->isTablePart && isset($table->settings['source']) && isset($table->settings['source']['database']) && $table->settings['source']['database'] == 'on');
|
272 |
+
|
273 |
if($settings) {
|
274 |
if($table->isDB) {
|
275 |
$settings['source'] = $table->settings['source'];
|
284 |
&& isset($table->settings['serverSideProcessing'])
|
285 |
&& $table->settings['serverSideProcessing'] == 'on'
|
286 |
);
|
287 |
+
|
288 |
if(!isset($table->isPageRows)) {
|
289 |
$table->isPageRows = false;
|
290 |
}
|
308 |
$dispatcher->apply('before_table_render', array($table));
|
309 |
$dispatcher->apply('before_table_render_from_cache', array($table));
|
310 |
return file_get_contents($cachePath);
|
311 |
+
}
|
312 |
if ($this->checkSpreadsheet) {
|
313 |
+
try {
|
314 |
$this->getEnvironment()->getModule('importer')->autoUpdateTableFromGoogle($id, $table);
|
315 |
} catch(Exception $e) {
|
316 |
return $e->getMessage();
|
460 |
}
|
461 |
|
462 |
private function _getTblLink($id) {
|
463 |
+
return "<a class='tblEditLink' href=".$this->getController()->generateUrl('tables', 'view', array( 'id' => $id, 'nonce' => wp_create_nonce('dtgs_nonce') ) )." style='display:inline-block;'>". $this->getEnvironment()->translate('Edit Table'). "</a>";
|
464 |
}
|
465 |
|
466 |
public function getMirrorFooter($table) {
|
653 |
case 'date':
|
654 |
$value = date($formats['date']['format'], strtotime($value));
|
655 |
break;
|
656 |
+
// case 'percent':
|
657 |
+
// case 'percent-convert':
|
658 |
+
// $value = number_format($value * 100, $formats['percent']['decimals']['count'], $formats['percent']['decimals']['sep'], ''). '%';
|
659 |
+
// break;
|
660 |
case 'currency':
|
661 |
$value = number_format($value, $formats['currency']['decimals']['count'], $formats['currency']['decimals']['sep'], $formats['currency']['thousands']['sep']);
|
662 |
break;
|
663 |
case 'time_duration':
|
664 |
$value = date($formats['time']['format'], strtotime($value));
|
665 |
break;
|
666 |
+
// default:
|
667 |
+
// if (is_numeric($value)) {
|
668 |
+
// $value = number_format($value, $formats['number']['decimals']['count'], $formats['number']['decimals']['sep'], $formats['number']['thousands']['sep']);
|
669 |
+
// }
|
670 |
+
// break;
|
671 |
}
|
672 |
} else {
|
673 |
if (is_numeric($value)) {
|
858 |
$callable = array($this, 'render');
|
859 |
|
860 |
|
861 |
+
$twig->addFunction(new Twig_SupTwg_SimpleFunction('render_table', $callable, array('is_safe' => array('html'))));
|
862 |
}
|
863 |
|
864 |
private function addTwigHighlighter()
|
865 |
{
|
866 |
$twig = $this->getEnvironment()->getTwig();
|
867 |
|
868 |
+
$twig->addFilter( new Twig_SupTwg_SimpleFilter('highlight', 'highlight_string', array('is_safe' => array('html'))));
|
869 |
}
|
870 |
|
871 |
/**
|
884 |
public function afterUiLoaded(SupsysticTables_Ui_Module $ui)
|
885 |
{
|
886 |
parent::afterUiLoaded($ui);
|
887 |
+
$environment = $this->getEnvironment();
|
|
|
888 |
$version = $environment->getConfig()->get('plugin_version');
|
889 |
$cachingAllowed = $environment->isProd();
|
890 |
$hookName = 'admin_enqueue_scripts';
|
955 |
);
|
956 |
|
957 |
/* Backend scripts */
|
958 |
+
|
959 |
+
|
960 |
if ($environment->isModule('tables')) {
|
961 |
$ui->add(
|
962 |
$ui->createScript('jquery-ui-autocomplete')
|
1109 |
$frontendHookName = 'wp_enqueue_scripts';
|
1110 |
$dynamicHookName = is_admin() ? $hookName : $frontendHookName;
|
1111 |
$coreModulePath = untrailingslashit(plugin_dir_url(dirname(__FILE__)) . 'Core');
|
1112 |
+
$tablesModulePath = untrailingslashit(plugin_dir_url(dirname(__FILE__)) . 'Tables');
|
1113 |
|
1114 |
if (is_admin() && !$this->getEnvironment()->isModule('tables')) {
|
1115 |
return;
|
1196 |
->addDependency('supsystic-tables-datatables-js')
|
1197 |
);
|
1198 |
|
1199 |
+
$ui->add(
|
1200 |
+
$ui->createScript('supsystic-tables-moment-js')
|
1201 |
+
->setHookName($dynamicHookName)
|
1202 |
+
->setSource($tablesModulePath . '/assets/libraries/moment.min.js')
|
1203 |
+
->setCachingAllowed(true)
|
1204 |
+
->setVersion('2.8.4')
|
1205 |
+
);
|
1206 |
+
|
1207 |
+
$ui->add(
|
1208 |
+
$ui->createScript('supsystic-tables-datetime-moment-js')
|
1209 |
+
->setHookName($dynamicHookName)
|
1210 |
+
->setSource($tablesModulePath . '/assets/libraries/datetime-moment.js')
|
1211 |
+
->setCachingAllowed(true)
|
1212 |
+
->setVersion('2.8.4')
|
1213 |
+
);
|
1214 |
+
|
1215 |
+
$ui->add(
|
1216 |
$ui->createScript('supsystic-tables-datatables-natural-sort-js')
|
1217 |
->setHookName($dynamicHookName)
|
1218 |
->setSource($coreModulePath . '/assets/js/lib/natural.js')
|
1220 |
->setCachingAllowed(true)
|
1221 |
->addDependency('jquery')
|
1222 |
->addDependency('supsystic-tables-datatables-js')
|
1223 |
+
);
|
1224 |
}
|
1225 |
|
1226 |
private function loadFeatherLight(SupsysticTables_Ui_Module $ui)
|
1312 |
->setCachingAllowed(true)
|
1313 |
->setVersion('7.1.1')
|
1314 |
);
|
|
|
1315 |
|
1316 |
$ui->add(
|
1317 |
$ui->createScript('supsystic-tables-rulejs-hot-js')
|
src/SupsysticTables/Tables/assets/css/loaders.css
CHANGED
@@ -114,7 +114,7 @@
|
|
114 |
.la-cog,.la-cog>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-cog{display:block;font-size:0;color:#fff}.la-cog.la-dark{color:#333}.la-cog>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-cog{width:31px;height:31px}.la-cog>div{width:100%;height:100%;background-color:transparent;border-style:dashed;border-width:2px;border-radius:100%;-webkit-animation:cog-rotate 4s linear infinite;-moz-animation:cog-rotate 4s linear infinite;-o-animation:cog-rotate 4s linear infinite;animation:cog-rotate 4s linear infinite}.la-cog>div:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border:2px solid currentColor;border-radius:100%}.la-cog.la-sm{width:15px;height:15px}.la-cog.la-sm>div{border-width:1px}.la-cog.la-sm>div:after{border-width:1px}.la-cog.la-2x{width:61px;height:61px}.la-cog.la-2x>div{border-width:4px}.la-cog.la-2x>div:after{border-width:4px}.la-cog.la-3x{width:91px;height:91px}.la-cog.la-3x>div{border-width:6px}.la-cog.la-3x>div:after{border-width:6px}@-webkit-keyframes cog-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes cog-rotate{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes cog-rotate{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cog-rotate{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}
|
115 |
|
116 |
|
117 |
-
.la-cube-transition,.la-cube-transition>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-cube-transition{display:block;font-size:0;color:#fff}.la-cube-transition.la-dark{color:#333}.la-cube-transition>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-cube-transition{width:32px;height:32px}.la-cube-transition>div{position:absolute;top:0;left:0;width:14px;height:14px;margin-top:-7px;margin-left:-7px;border-radius:0;-webkit-animation:cube-transition 1.6s 0s infinite ease-in-out;-moz-animation:cube-transition 1.6s 0s infinite ease-in-out;-o-animation:cube-transition 1.6s 0s infinite ease-in-out;animation:cube-transition 1.6s 0s infinite ease-in-out}.la-cube-transition>div:last-child{-webkit-animation-delay:-.8s;-moz-animation-delay:-.8s;-o-animation-delay:-.8s;animation-delay:-.8s}.la-cube-transition.la-sm{width:16px;height:16px}.la-cube-transition.la-sm>div{width:6px;height:6px;margin-top:-3px;margin-left:-3px}.la-cube-transition.la-2x{width:64px;height:64px}.la-cube-transition.la-2x>div{width:28px;height:28px;margin-top:-14px;margin-left:-14px}.la-cube-transition.la-3x{width:96px;height:96px}.la-cube-transition.la-3x>div{width:42px;height:42px;margin-top:-21px;margin-left:-21px}@-webkit-keyframes cube-transition{25%{top:0;left:100%;-webkit-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-webkit-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-webkit-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-webkit-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@-moz-keyframes cube-transition{25%{top:0;left:100%;-moz-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-moz-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-moz-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-moz-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@-o-keyframes cube-transition{25%{top:0;left:100%;-o-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-o-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-o-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-o-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@keyframes cube-transition{25%{top:0;left:100%;-webkit-transform:scale(0.5) rotate(-90deg);-moz-transform:scale(0.5) rotate(-90deg);-o-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-webkit-transform:scale(1) rotate(-180deg);-moz-transform:scale(1) rotate(-180deg);-o-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-webkit-transform:scale(0.5) rotate(-270deg);-moz-transform:scale(0.5) rotate(-270deg);-o-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-webkit-transform:scale(1) rotate(-360deg);-moz-transform:scale(1) rotate(-360deg);-o-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}
|
118 |
|
119 |
|
120 |
.la-fire,.la-fire>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-fire{display:block;font-size:0;color:#fff}.la-fire.la-dark{color:#333}.la-fire>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-fire{width:32px;height:32px}.la-fire>div{position:absolute;bottom:0;left:50%;width:12px;height:12px;border-radius:0;border-radius:2px;-webkit-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-ms-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-webkit-animation:fire-diamonds 1.5s infinite linear;-moz-animation:fire-diamonds 1.5s infinite linear;-o-animation:fire-diamonds 1.5s infinite linear;animation:fire-diamonds 1.5s infinite linear}.la-fire>div:nth-child(1){-webkit-animation-delay:-.85s;-moz-animation-delay:-.85s;-o-animation-delay:-.85s;animation-delay:-.85s}.la-fire>div:nth-child(2){-webkit-animation-delay:-1.85s;-moz-animation-delay:-1.85s;-o-animation-delay:-1.85s;animation-delay:-1.85s}.la-fire>div:nth-child(3){-webkit-animation-delay:-2.85s;-moz-animation-delay:-2.85s;-o-animation-delay:-2.85s;animation-delay:-2.85s}.la-fire.la-sm{width:16px;height:16px}.la-fire.la-sm>div{width:6px;height:6px}.la-fire.la-2x{width:64px;height:64px}.la-fire.la-2x>div{width:24px;height:24px}.la-fire.la-3x{width:96px;height:96px}.la-fire.la-3x>div{width:36px;height:36px}@-webkit-keyframes fire-diamonds{0%{-webkit-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-webkit-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-webkit-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@-moz-keyframes fire-diamonds{0%{-moz-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-moz-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-moz-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@-o-keyframes fire-diamonds{0%{-o-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-o-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-o-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@keyframes fire-diamonds{0%{-webkit-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-webkit-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);-moz-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);-o-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-webkit-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}
|
@@ -169,8 +169,8 @@
|
|
169 |
.spinner {
|
170 |
display: block;
|
171 |
visibility: visible;
|
172 |
-
width: 40px;
|
173 |
-
height: 40px;
|
174 |
background: transparent;
|
175 |
background-color: #333;
|
176 |
margin: 0 auto;
|
@@ -200,4 +200,4 @@
|
|
200 |
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
201 |
}
|
202 |
}
|
203 |
-
svg > g > g:last-child { pointer-events: none }
|
114 |
.la-cog,.la-cog>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-cog{display:block;font-size:0;color:#fff}.la-cog.la-dark{color:#333}.la-cog>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-cog{width:31px;height:31px}.la-cog>div{width:100%;height:100%;background-color:transparent;border-style:dashed;border-width:2px;border-radius:100%;-webkit-animation:cog-rotate 4s linear infinite;-moz-animation:cog-rotate 4s linear infinite;-o-animation:cog-rotate 4s linear infinite;animation:cog-rotate 4s linear infinite}.la-cog>div:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border:2px solid currentColor;border-radius:100%}.la-cog.la-sm{width:15px;height:15px}.la-cog.la-sm>div{border-width:1px}.la-cog.la-sm>div:after{border-width:1px}.la-cog.la-2x{width:61px;height:61px}.la-cog.la-2x>div{border-width:4px}.la-cog.la-2x>div:after{border-width:4px}.la-cog.la-3x{width:91px;height:91px}.la-cog.la-3x>div{border-width:6px}.la-cog.la-3x>div:after{border-width:6px}@-webkit-keyframes cog-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes cog-rotate{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes cog-rotate{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cog-rotate{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}
|
115 |
|
116 |
|
117 |
+
.la-cube-transition,.la-cube-transition>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-cube-transition{display:block;font-size:0;color:#fff}.la-cube-transition.la-dark{color:#333}.la-cube-transition>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-cube-transition{width:32px;height:32px}.la-cube-transition>div{position:absolute;top:0;left:0;width:14px;height:14px;margin-top:-7px;margin-left:-7px;border-radius:0;-webkit-animation:cube-transition 1.6s 0s infinite ease-in-out;-moz-animation:cube-transition 1.6s 0s infinite ease-in-out;-o-animation:cube-transition 1.6s 0s infinite ease-in-out;animation:cube-transition 1.6s 0s infinite ease-in-out}.la-cube-transition>div:last-child{-webkit-animation-delay:-.8s;-moz-animation-delay:-.8s;-o-animation-delay:-.8s;animation-delay:-.8s}.la-cube-transition.la-sm{width:16px;height:16px}.la-cube-transition.la-sm>div{width:6px;height:6px;margin-top:-3px;margin-left:-3px}.la-cube-transition.la-2x{width:64px !important;height:64px !important;}.la-cube-transition.la-2x>div{width:28px !important;height:28px !important;margin-top:-14px;margin-left:-14px}.la-cube-transition.la-3x{width:96px;height:96px}.la-cube-transition.la-3x>div{width:42px;height:42px;margin-top:-21px;margin-left:-21px}@-webkit-keyframes cube-transition{25%{top:0;left:100%;-webkit-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-webkit-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-webkit-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-webkit-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@-moz-keyframes cube-transition{25%{top:0;left:100%;-moz-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-moz-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-moz-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-moz-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@-o-keyframes cube-transition{25%{top:0;left:100%;-o-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-o-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-o-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-o-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}@keyframes cube-transition{25%{top:0;left:100%;-webkit-transform:scale(0.5) rotate(-90deg);-moz-transform:scale(0.5) rotate(-90deg);-o-transform:scale(0.5) rotate(-90deg);transform:scale(0.5) rotate(-90deg)}50%{top:100%;left:100%;-webkit-transform:scale(1) rotate(-180deg);-moz-transform:scale(1) rotate(-180deg);-o-transform:scale(1) rotate(-180deg);transform:scale(1) rotate(-180deg)}75%{top:100%;left:0;-webkit-transform:scale(0.5) rotate(-270deg);-moz-transform:scale(0.5) rotate(-270deg);-o-transform:scale(0.5) rotate(-270deg);transform:scale(0.5) rotate(-270deg)}100%{top:0;left:0;-webkit-transform:scale(1) rotate(-360deg);-moz-transform:scale(1) rotate(-360deg);-o-transform:scale(1) rotate(-360deg);transform:scale(1) rotate(-360deg)}}
|
118 |
|
119 |
|
120 |
.la-fire,.la-fire>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-fire{display:block;font-size:0;color:#fff}.la-fire.la-dark{color:#333}.la-fire>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-fire{width:32px;height:32px}.la-fire>div{position:absolute;bottom:0;left:50%;width:12px;height:12px;border-radius:0;border-radius:2px;-webkit-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-ms-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);-webkit-animation:fire-diamonds 1.5s infinite linear;-moz-animation:fire-diamonds 1.5s infinite linear;-o-animation:fire-diamonds 1.5s infinite linear;animation:fire-diamonds 1.5s infinite linear}.la-fire>div:nth-child(1){-webkit-animation-delay:-.85s;-moz-animation-delay:-.85s;-o-animation-delay:-.85s;animation-delay:-.85s}.la-fire>div:nth-child(2){-webkit-animation-delay:-1.85s;-moz-animation-delay:-1.85s;-o-animation-delay:-1.85s;animation-delay:-1.85s}.la-fire>div:nth-child(3){-webkit-animation-delay:-2.85s;-moz-animation-delay:-2.85s;-o-animation-delay:-2.85s;animation-delay:-2.85s}.la-fire.la-sm{width:16px;height:16px}.la-fire.la-sm>div{width:6px;height:6px}.la-fire.la-2x{width:64px;height:64px}.la-fire.la-2x>div{width:24px;height:24px}.la-fire.la-3x{width:96px;height:96px}.la-fire.la-3x>div{width:36px;height:36px}@-webkit-keyframes fire-diamonds{0%{-webkit-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-webkit-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-webkit-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@-moz-keyframes fire-diamonds{0%{-moz-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-moz-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-moz-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@-o-keyframes fire-diamonds{0%{-o-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-o-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-o-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@keyframes fire-diamonds{0%{-webkit-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{-webkit-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);-moz-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);-o-transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1);transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}100%{-webkit-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);-moz-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);-o-transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0);transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}
|
169 |
.spinner {
|
170 |
display: block;
|
171 |
visibility: visible;
|
172 |
+
width: 40px !important;
|
173 |
+
height: 40px !important;
|
174 |
background: transparent;
|
175 |
background-color: #333;
|
176 |
margin: 0 auto;
|
200 |
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
201 |
}
|
202 |
}
|
203 |
+
svg > g > g:last-child { pointer-events: none }
|
src/SupsysticTables/Tables/assets/css/tables.shortcode.css
CHANGED
@@ -277,7 +277,8 @@ table.dataTable input.search-column {
|
|
277 |
|
278 |
.dataTables_wrapper table td,
|
279 |
.dataTables_wrapper table th {
|
280 |
-
|
|
|
281 |
}
|
282 |
.supsystic-tables-wrap table.supsystic-table.stripe, .supsystic-tables-wrap table.supsystic-table.hover td {
|
283 |
background-color: inherit;
|
@@ -293,10 +294,63 @@ table.dataTable input.search-column {
|
|
293 |
.supsystic-tables-wrap > a {
|
294 |
display: none;
|
295 |
}
|
|
|
|
|
|
|
296 |
.inputArea {
|
|
|
297 |
-ms-overflow-style: none;
|
298 |
scrollbar-width: none;
|
299 |
}
|
300 |
.inputArea::-webkit-scrollbar {
|
301 |
display: none;
|
302 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
.dataTables_wrapper table td,
|
279 |
.dataTables_wrapper table th {
|
280 |
+
word-break: initial !important;
|
281 |
+
word-wrap: initial !important;
|
282 |
}
|
283 |
.supsystic-tables-wrap table.supsystic-table.stripe, .supsystic-tables-wrap table.supsystic-table.hover td {
|
284 |
background-color: inherit;
|
294 |
.supsystic-tables-wrap > a {
|
295 |
display: none;
|
296 |
}
|
297 |
+
.selectArea {
|
298 |
+
background: white;
|
299 |
+
}
|
300 |
.inputArea {
|
301 |
+
background: white;
|
302 |
-ms-overflow-style: none;
|
303 |
scrollbar-width: none;
|
304 |
}
|
305 |
.inputArea::-webkit-scrollbar {
|
306 |
display: none;
|
307 |
+
}
|
308 |
+
div.dtsFrontendExportNotice {
|
309 |
+
display: none;
|
310 |
+
position: relative;
|
311 |
+
width: 100%;
|
312 |
+
margin: 0px;
|
313 |
+
margin-top: 15px;
|
314 |
+
padding: 5px 4px;
|
315 |
+
color: black;
|
316 |
+
border-radius:3px;
|
317 |
+
border:1px solid gray;
|
318 |
+
background: #dfdfdf;
|
319 |
+
}
|
320 |
+
.dataTables_paginate .ui-state-disabled,
|
321 |
+
.dataTables_paginate .ui-widget-content .ui-state-disabled,
|
322 |
+
.dataTables_paginate .ui-widget-header .ui-state-disabled {
|
323 |
+
opacity: .35;
|
324 |
+
}
|
325 |
+
.dataTables_paginate .button.supsystic-button,
|
326 |
+
.dataTables_paginate .supsystic-plugin .button,
|
327 |
+
.dataTables_paginate .supsystic-plugin .paginate_button,
|
328 |
+
.dataTables_paginate .supsystic-plugin .button-primary,
|
329 |
+
.dataTables_paginate .ui-button:not(.ui-dialog-titlebar-close),
|
330 |
+
.dataTables_paginate .ui-button.ui-state-default:not(.ui-dialog-titlebar-close) {
|
331 |
+
padding: .4em 1em;
|
332 |
+
display: inline-block;
|
333 |
+
position: relative;
|
334 |
+
line-height: normal;
|
335 |
+
margin-right: .1em;
|
336 |
+
cursor: pointer;
|
337 |
+
vertical-align: middle;
|
338 |
+
text-align: center;
|
339 |
+
-webkit-user-select: none;
|
340 |
+
-moz-user-select: none;
|
341 |
+
-ms-user-select: none;
|
342 |
+
user-select: none;
|
343 |
+
overflow: visible;
|
344 |
+
font-size: 15px !important;
|
345 |
+
height: 35px !important;
|
346 |
+
-webkit-border-radius: 0 !important;
|
347 |
+
border-radius: 0 !important;
|
348 |
+
color: #28282a !important;
|
349 |
+
background-color: transparent !important;
|
350 |
+
background: transparent !important;
|
351 |
+
-webkit-box-shadow: none !important;
|
352 |
+
box-shadow: none !important;
|
353 |
+
border: 1px solid #000 !important;
|
354 |
+
line-height: 31px !important;
|
355 |
+
padding: 0 8px 1px!important;
|
356 |
+
}
|
src/SupsysticTables/Tables/assets/css/tables.view.css
CHANGED
@@ -31,8 +31,7 @@
|
|
31 |
}
|
32 |
.stbCopyTextCodeSelectionShell #stbCopyTextCodeExamples {
|
33 |
width: 100%;
|
34 |
-
height:
|
35 |
-
line-height: 33px;
|
36 |
}
|
37 |
.stbCopyTextCodeSelectionShell-wrapper {
|
38 |
padding-right: 10px;
|
@@ -681,4 +680,9 @@
|
|
681 |
.tables-view table .current .relative .changeType{
|
682 |
opacity: 1;
|
683 |
transition: all 0.3s ease;
|
684 |
-
}
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
.stbCopyTextCodeSelectionShell #stbCopyTextCodeExamples {
|
33 |
width: 100%;
|
34 |
+
line-height:33px !important;
|
|
|
35 |
}
|
36 |
.stbCopyTextCodeSelectionShell-wrapper {
|
37 |
padding-right: 10px;
|
680 |
.tables-view table .current .relative .changeType{
|
681 |
opacity: 1;
|
682 |
transition: all 0.3s ease;
|
683 |
+
}
|
684 |
+
.slimScrollBar {
|
685 |
+
display:block !important;
|
686 |
+
opacity:.5 !important;
|
687 |
+
}
|
688 |
+
|
src/SupsysticTables/Tables/assets/js/editor/tables.editor.js
CHANGED
@@ -379,7 +379,7 @@ var g_stbIsDataEdited = {'settings': false, 'source': false, 'history': false, '
|
|
379 |
}
|
380 |
}
|
381 |
}
|
382 |
-
setTimeout(function() {
|
383 |
if (g_stbPagination) {
|
384 |
editor.generatePagingLinks();
|
385 |
editor.setPageData();
|
@@ -520,7 +520,9 @@ var g_stbIsDataEdited = {'settings': false, 'source': false, 'history': false, '
|
|
520 |
value = editor.plugin.utils.updateFormula(value, direction, Math.abs(deltaCol));
|
521 |
}
|
522 |
}
|
523 |
-
|
|
|
|
|
524 |
editor.setCellMetaObject(row, col, g_stbCopyPasteCellsMetaData[j]);
|
525 |
j++;
|
526 |
}
|
@@ -548,6 +550,9 @@ var g_stbIsDataEdited = {'settings': false, 'source': false, 'history': false, '
|
|
548 |
}).always(function (response) {
|
549 |
$('#loadingProgress').remove();
|
550 |
if(!g_stbPagination) editor.renderWithRecalc();
|
|
|
|
|
|
|
551 |
$('#buttonSave').attr('disabled', false);
|
552 |
g_stbDoSaving = false;
|
553 |
});
|
@@ -737,7 +742,7 @@ var g_stbIsDataEdited = {'settings': false, 'source': false, 'history': false, '
|
|
737 |
}
|
738 |
r++;
|
739 |
}
|
740 |
-
|
741 |
this.updateSettings({
|
742 |
manualRowResize: true
|
743 |
});
|
@@ -770,7 +775,7 @@ var g_stbIsDataEdited = {'settings': false, 'source': false, 'history': false, '
|
|
770 |
|
771 |
var mergeNew = [],
|
772 |
realCountRows = this.bufferData.length;
|
773 |
-
|
774 |
for (var i = 0; i < merge.length; i++) {
|
775 |
mergeNew.push({
|
776 |
col: merge[i].col,
|
379 |
}
|
380 |
}
|
381 |
}
|
382 |
+
setTimeout(function() {
|
383 |
if (g_stbPagination) {
|
384 |
editor.generatePagingLinks();
|
385 |
editor.setPageData();
|
520 |
value = editor.plugin.utils.updateFormula(value, direction, Math.abs(deltaCol));
|
521 |
}
|
522 |
}
|
523 |
+
if (value) {
|
524 |
+
editor.setDataAtCell(row, col, value);
|
525 |
+
}
|
526 |
editor.setCellMetaObject(row, col, g_stbCopyPasteCellsMetaData[j]);
|
527 |
j++;
|
528 |
}
|
550 |
}).always(function (response) {
|
551 |
$('#loadingProgress').remove();
|
552 |
if(!g_stbPagination) editor.renderWithRecalc();
|
553 |
+
setTimeout(function(){
|
554 |
+
editor.selectCell(0,0);
|
555 |
+
}, 3000);
|
556 |
$('#buttonSave').attr('disabled', false);
|
557 |
g_stbDoSaving = false;
|
558 |
});
|
742 |
}
|
743 |
r++;
|
744 |
}
|
745 |
+
|
746 |
this.updateSettings({
|
747 |
manualRowResize: true
|
748 |
});
|
775 |
|
776 |
var mergeNew = [],
|
777 |
realCountRows = this.bufferData.length;
|
778 |
+
|
779 |
for (var i = 0; i < merge.length; i++) {
|
780 |
mergeNew.push({
|
781 |
col: merge[i].col,
|
src/SupsysticTables/Tables/assets/js/editor/tables.editor.toolbar.js
CHANGED
@@ -49,6 +49,17 @@ var g_stbCellBgColorTimeoutSet = false,
|
|
49 |
this.toggleClass('underline');
|
50 |
this.getEditor().render();
|
51 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
color: function (color) {
|
53 |
var $style = app.getAdminCellStylesElem(),
|
54 |
classes = app.getClassesRegexp();
|
@@ -357,16 +368,24 @@ var g_stbCellBgColorTimeoutSet = false,
|
|
357 |
this.getEditor().render();
|
358 |
},
|
359 |
addHiddenCell: function() {
|
360 |
-
this.
|
361 |
-
|
|
|
|
|
|
|
|
|
362 |
},
|
363 |
removeHiddenCell: function() {
|
364 |
this.removeClass('hiddenCell');
|
365 |
this.getEditor().render();
|
366 |
},
|
367 |
addInvisibleCell: function() {
|
368 |
-
this.
|
369 |
-
|
|
|
|
|
|
|
|
|
370 |
},
|
371 |
removeInvisibleCell: function() {
|
372 |
this.removeClass('invisibleCell');
|
@@ -422,6 +441,15 @@ var g_stbCellBgColorTimeoutSet = false,
|
|
422 |
return editor;
|
423 |
};
|
424 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
Toolbar.prototype.getFormatClasses = function () {
|
426 |
return formatClasses;
|
427 |
};
|
49 |
this.toggleClass('underline');
|
50 |
this.getEditor().render();
|
51 |
},
|
52 |
+
readonly: function () {
|
53 |
+
selectedRow = this.getEditor().getSelectedRange()[0].highlight.row;
|
54 |
+
selectedCol = this.getEditor().getSelectedRange()[0].highlight.col;
|
55 |
+
cellMeta = this.getEditor().getCellMeta(selectedRow, selectedCol).readOnly;
|
56 |
+
if (cellMeta) {
|
57 |
+
this.getEditor().setCellMeta(selectedRow, selectedCol, 'readOnly', false);
|
58 |
+
} else {
|
59 |
+
this.getEditor().setCellMeta(selectedRow, selectedCol, 'readOnly', true);
|
60 |
+
}
|
61 |
+
this.getEditor().render();
|
62 |
+
},
|
63 |
color: function (color) {
|
64 |
var $style = app.getAdminCellStylesElem(),
|
65 |
classes = app.getClassesRegexp();
|
368 |
this.getEditor().render();
|
369 |
},
|
370 |
addHiddenCell: function() {
|
371 |
+
if(this.isWholeRowColSelected()) {
|
372 |
+
this.replaceClass('hiddenCell', ['hiddenCell', 'invisibleCell']);
|
373 |
+
this.getEditor().render();
|
374 |
+
} else {
|
375 |
+
alert('You must select the whole row or whole column of table.');
|
376 |
+
}
|
377 |
},
|
378 |
removeHiddenCell: function() {
|
379 |
this.removeClass('hiddenCell');
|
380 |
this.getEditor().render();
|
381 |
},
|
382 |
addInvisibleCell: function() {
|
383 |
+
if(this.isWholeRowColSelected()) {
|
384 |
+
this.replaceClass('invisibleCell', ['invisibleCell', 'hiddenCell']);
|
385 |
+
this.getEditor().render();
|
386 |
+
} else {
|
387 |
+
alert('You must select the whole row or whole column of table.');
|
388 |
+
}
|
389 |
},
|
390 |
removeInvisibleCell: function() {
|
391 |
this.removeClass('invisibleCell');
|
441 |
return editor;
|
442 |
};
|
443 |
}
|
444 |
+
Toolbar.prototype.isWholeRowColSelected = function () {
|
445 |
+
var range = editor.getSelected();
|
446 |
+
if(typeof range == 'undefined') return false;
|
447 |
+
range = range[0];
|
448 |
+
if(range.length != 4) return false;
|
449 |
+
if(Math.abs(range[0] - range[2]) + 1 == editor.countRows()) return true;
|
450 |
+
if(Math.abs(range[1] - range[3]) + 1 == editor.countCols()) return true;
|
451 |
+
return false;
|
452 |
+
};
|
453 |
Toolbar.prototype.getFormatClasses = function () {
|
454 |
return formatClasses;
|
455 |
};
|
src/SupsysticTables/Tables/assets/js/tables.admin.list.js
CHANGED
@@ -11,7 +11,8 @@ jQuery('#'+ tblId).jqGrid({
|
|
11 |
datatype: function(postdata){
|
12 |
window.supsystic.Tables.request({
|
13 |
module: 'tables',
|
14 |
-
action: 'getListForTbl'
|
|
|
15 |
}, {
|
16 |
data:postdata,
|
17 |
}).done(function (res) {
|
@@ -143,7 +144,8 @@ jQuery('#ddtTableRemoveGroupBtn').click(function(){
|
|
143 |
action: 'supsystic-tables',
|
144 |
route: {
|
145 |
module: 'tables',
|
146 |
-
action: 'remove'
|
|
|
147 |
},
|
148 |
id: listIds
|
149 |
})
|
11 |
datatype: function(postdata){
|
12 |
window.supsystic.Tables.request({
|
13 |
module: 'tables',
|
14 |
+
action: 'getListForTbl',
|
15 |
+
nonce: DTGS_NONCE,
|
16 |
}, {
|
17 |
data:postdata,
|
18 |
}).done(function (res) {
|
144 |
action: 'supsystic-tables',
|
145 |
route: {
|
146 |
module: 'tables',
|
147 |
+
action: 'remove',
|
148 |
+
nonce: DTGS_NONCE
|
149 |
},
|
150 |
id: listIds
|
151 |
})
|
src/SupsysticTables/Tables/assets/js/tables.index.js
CHANGED
@@ -93,7 +93,8 @@
|
|
93 |
$btn.find('i').removeClass('fa-trash-o').addClass('fa-spin fa-circle-o-notch');
|
94 |
app.request({
|
95 |
module: 'tables',
|
96 |
-
action: 'remove'
|
|
|
97 |
}, {
|
98 |
id: parseInt($btn.parents('tr').data('table-id'))
|
99 |
}).done(function () {
|
@@ -123,7 +124,8 @@
|
|
123 |
|
124 |
app.request({
|
125 |
module: 'tables',
|
126 |
-
action: 'remove'
|
|
|
127 |
}, {
|
128 |
id: ids
|
129 |
}).done(function () {
|
93 |
$btn.find('i').removeClass('fa-trash-o').addClass('fa-spin fa-circle-o-notch');
|
94 |
app.request({
|
95 |
module: 'tables',
|
96 |
+
action: 'remove',
|
97 |
+
nonce: DTGS_NONCE
|
98 |
}, {
|
99 |
id: parseInt($btn.parents('tr').data('table-id'))
|
100 |
}).done(function () {
|
124 |
|
125 |
app.request({
|
126 |
module: 'tables',
|
127 |
+
action: 'remove',
|
128 |
+
nonce: DTGS_NONCE
|
129 |
}, {
|
130 |
id: ids
|
131 |
}).done(function () {
|
src/SupsysticTables/Tables/assets/js/tables.model.js
CHANGED
@@ -16,9 +16,11 @@ var g_stbPreviewTimeoutSet = false;
|
|
16 |
};
|
17 |
}
|
18 |
TablesModel.prototype.request = function (action, data) {
|
|
|
19 |
return app.request({
|
20 |
module: 'tables',
|
21 |
-
action: action
|
|
|
22 |
}, data);
|
23 |
};
|
24 |
|
@@ -29,9 +31,11 @@ var g_stbPreviewTimeoutSet = false;
|
|
29 |
* @returns {jQuery.Deferred.promise}
|
30 |
*/
|
31 |
TablesModel.prototype.settingsRequest = function (action, data) {
|
|
|
32 |
return app.request({
|
33 |
module: 'settings',
|
34 |
-
action: action
|
|
|
35 |
}, data);
|
36 |
};
|
37 |
|
@@ -160,7 +164,8 @@ var g_stbPreviewTimeoutSet = false;
|
|
160 |
TablesModel.prototype.getSettings = function () {
|
161 |
return app.request({
|
162 |
module: 'settings',
|
163 |
-
action: 'getSettings'
|
|
|
164 |
}, {});
|
165 |
};
|
166 |
|
@@ -186,7 +191,7 @@ var g_stbPreviewTimeoutSet = false;
|
|
186 |
throw new Error('Invalid table id.');
|
187 |
}
|
188 |
|
189 |
-
return this.request('saveHistorySettings', { id: id, settings: settings.serialize() });
|
190 |
}
|
191 |
};
|
192 |
|
@@ -370,7 +375,7 @@ var g_stbPreviewTimeoutSet = false;
|
|
370 |
cell.data = '<div class="video-container">' + cell.data + '</div>';
|
371 |
}
|
372 |
} catch(e) {}
|
373 |
-
|
374 |
cells.push(cell.data);
|
375 |
});
|
376 |
data.push(cells);
|
@@ -431,8 +436,8 @@ var g_stbPreviewTimeoutSet = false;
|
|
431 |
};
|
432 |
|
433 |
TablesModel.prototype._saveTable = function(preview, rerender) {
|
434 |
-
// rerender = 1 (needed render preview)
|
435 |
-
// rerender = 2 (needed settings save and render preview)
|
436 |
preview = typeof(preview) != 'undefined' ? preview : false;
|
437 |
rerender = typeof(rerender) != 'undefined' ? rerender : false;
|
438 |
var self = this,
|
@@ -453,10 +458,10 @@ var g_stbPreviewTimeoutSet = false;
|
|
453 |
countCols = editor.bufferCols;
|
454 |
}
|
455 |
|
456 |
-
if(preview !== false) {
|
457 |
if(g_stbDoPreview && rerender) {
|
458 |
g_stbNeedPreview = true;
|
459 |
-
return;
|
460 |
}
|
461 |
for(var key in g_stbIsDataEdited) {
|
462 |
if(g_stbIsDataEdited[key] && (rerender == 2 || key != 'settings')) {
|
@@ -625,7 +630,7 @@ var g_stbPreviewTimeoutSet = false;
|
|
625 |
columnsWidth.push(editor.getColWidth(y));
|
626 |
}
|
627 |
var diagramsExists = cell && cell.toString().match(/(\[\s*supsystic-table-diagram[^\]]*\])+?/gi);
|
628 |
-
|
629 |
if(diagramsExists) {
|
630 |
for(var i = 0; i < diagramsExists.length; i++) {
|
631 |
var diagramId = /id=[\'|\"](\d+)[\'|\"]/gi.exec(diagramsExists[i]);
|
@@ -670,7 +675,6 @@ var g_stbPreviewTimeoutSet = false;
|
|
670 |
|
671 |
// Request to save settings, meta and rows
|
672 |
var ajaxPromise = new $.Deferred().resolve();
|
673 |
-
|
674 |
if(!preview || g_stbIsDataEdited['settings'] || g_stbIsDataEdited['source']) {
|
675 |
if(sourceData.length) {
|
676 |
sourceData.find('input[name="source[dbSQL]"]').val(sourceData.find('#source-db-sql').val());
|
@@ -703,11 +707,16 @@ var g_stbPreviewTimeoutSet = false;
|
|
703 |
}
|
704 |
if(!preview || g_stbIsDataEdited['woocommerce']) {
|
705 |
ajaxPromise = ajaxPromise.then(
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
|
|
|
|
|
|
|
|
|
|
711 |
);
|
712 |
g_stbIsDataEdited['woocommerce'] = false;
|
713 |
if(lastSave == 'woocommerce') {
|
@@ -779,7 +788,7 @@ var g_stbPreviewTimeoutSet = false;
|
|
779 |
self.getPreview(id, preview);
|
780 |
}
|
781 |
}, 2000);
|
782 |
-
|
783 |
});
|
784 |
}
|
785 |
}
|
@@ -816,7 +825,7 @@ var g_stbPreviewTimeoutSet = false;
|
|
816 |
|
817 |
TablesModel.prototype.getCssText = function(rule) {
|
818 |
var value = rule.cssText ? rule.cssText : rule.style.cssText;
|
819 |
-
if(typeof(value) == 'undefined' || value.length == 0 || value.indexOf('@import') >= 0) return '';
|
820 |
if(value.indexOf(rule.selectorText) == -1) {
|
821 |
value = rule.selectorText + '{' + value + '}';
|
822 |
}
|
16 |
};
|
17 |
}
|
18 |
TablesModel.prototype.request = function (action, data) {
|
19 |
+
var urlNonce = new URL(location).searchParams;
|
20 |
return app.request({
|
21 |
module: 'tables',
|
22 |
+
action: action,
|
23 |
+
nonce: (typeof DTGS_NONCE !== "undefined") ? DTGS_NONCE : urlNonce.get('nonce'),
|
24 |
}, data);
|
25 |
};
|
26 |
|
31 |
* @returns {jQuery.Deferred.promise}
|
32 |
*/
|
33 |
TablesModel.prototype.settingsRequest = function (action, data) {
|
34 |
+
var urlNonce = new URL(location).searchParams;
|
35 |
return app.request({
|
36 |
module: 'settings',
|
37 |
+
action: action,
|
38 |
+
nonce: (typeof DTGS_NONCE !== "undefined") ? DTGS_NONCE : urlNonce.get('nonce'),
|
39 |
}, data);
|
40 |
};
|
41 |
|
164 |
TablesModel.prototype.getSettings = function () {
|
165 |
return app.request({
|
166 |
module: 'settings',
|
167 |
+
action: 'getSettings',
|
168 |
+
nonce: DTGS_NONCE,
|
169 |
}, {});
|
170 |
};
|
171 |
|
191 |
throw new Error('Invalid table id.');
|
192 |
}
|
193 |
|
194 |
+
return this.request('saveHistorySettings', { id: id, settings: settings.serialize(), notice: DTGS_NONCE });
|
195 |
}
|
196 |
};
|
197 |
|
375 |
cell.data = '<div class="video-container">' + cell.data + '</div>';
|
376 |
}
|
377 |
} catch(e) {}
|
378 |
+
|
379 |
cells.push(cell.data);
|
380 |
});
|
381 |
data.push(cells);
|
436 |
};
|
437 |
|
438 |
TablesModel.prototype._saveTable = function(preview, rerender) {
|
439 |
+
// rerender = 1 (needed render preview)
|
440 |
+
// rerender = 2 (needed settings save and render preview)
|
441 |
preview = typeof(preview) != 'undefined' ? preview : false;
|
442 |
rerender = typeof(rerender) != 'undefined' ? rerender : false;
|
443 |
var self = this,
|
458 |
countCols = editor.bufferCols;
|
459 |
}
|
460 |
|
461 |
+
if(preview !== false) {
|
462 |
if(g_stbDoPreview && rerender) {
|
463 |
g_stbNeedPreview = true;
|
464 |
+
return;
|
465 |
}
|
466 |
for(var key in g_stbIsDataEdited) {
|
467 |
if(g_stbIsDataEdited[key] && (rerender == 2 || key != 'settings')) {
|
630 |
columnsWidth.push(editor.getColWidth(y));
|
631 |
}
|
632 |
var diagramsExists = cell && cell.toString().match(/(\[\s*supsystic-table-diagram[^\]]*\])+?/gi);
|
633 |
+
|
634 |
if(diagramsExists) {
|
635 |
for(var i = 0; i < diagramsExists.length; i++) {
|
636 |
var diagramId = /id=[\'|\"](\d+)[\'|\"]/gi.exec(diagramsExists[i]);
|
675 |
|
676 |
// Request to save settings, meta and rows
|
677 |
var ajaxPromise = new $.Deferred().resolve();
|
|
|
678 |
if(!preview || g_stbIsDataEdited['settings'] || g_stbIsDataEdited['source']) {
|
679 |
if(sourceData.length) {
|
680 |
sourceData.find('input[name="source[dbSQL]"]').val(sourceData.find('#source-db-sql').val());
|
707 |
}
|
708 |
if(!preview || g_stbIsDataEdited['woocommerce']) {
|
709 |
ajaxPromise = ajaxPromise.then(
|
710 |
+
function() {
|
711 |
+
try {
|
712 |
+
if(SDT_DATA.isWooPro) {
|
713 |
+
return self.setWooSettings(id, $('form#woocommerce-settings'));
|
714 |
+
}
|
715 |
+
}
|
716 |
+
catch (e) {
|
717 |
+
console.log('Woocommerce not installed');
|
718 |
+
}
|
719 |
+
}
|
720 |
);
|
721 |
g_stbIsDataEdited['woocommerce'] = false;
|
722 |
if(lastSave == 'woocommerce') {
|
788 |
self.getPreview(id, preview);
|
789 |
}
|
790 |
}, 2000);
|
791 |
+
|
792 |
});
|
793 |
}
|
794 |
}
|
825 |
|
826 |
TablesModel.prototype.getCssText = function(rule) {
|
827 |
var value = rule.cssText ? rule.cssText : rule.style.cssText;
|
828 |
+
if(typeof(value) == 'undefined' || value.length == 0 || value.indexOf('@import') >= 0) return '';
|
829 |
if(value.indexOf(rule.selectorText) == -1) {
|
830 |
value = rule.selectorText + '{' + value + '}';
|
831 |
}
|
src/SupsysticTables/Tables/assets/js/tables.view.js
CHANGED
@@ -30,6 +30,14 @@ var g_stbCopyPasteColsCount = [];
|
|
30 |
$mainTabs = $('.subsubsub.tabs-wrapper .button'),
|
31 |
$currentTab = $mainTabs.filter('.current').attr('href');
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
$mainTabsContent.filter($currentTab).addClass('active');
|
34 |
$mainTabs.on('click', function (e) {
|
35 |
e.preventDefault();
|
@@ -135,7 +143,7 @@ var g_stbCopyPasteColsCount = [];
|
|
135 |
$('.preview-section .stb-anchor-nav-links').on('click', function(e, funcParams) {
|
136 |
e.preventDefault();
|
137 |
var href = $(this).attr('href');
|
138 |
-
|
139 |
g_stbMobilePreview = false;
|
140 |
$('.preview-styling a').removeClass('active');
|
141 |
$(this).addClass('active');
|
@@ -184,7 +192,7 @@ var g_stbCopyPasteColsCount = [];
|
|
184 |
'min-height': g_stbWindowHeight,
|
185 |
'height': g_stbWindowHeight
|
186 |
});
|
187 |
-
|
188 |
// If turn on chosen plugin for selects of all types - there is conflict with handsontable plugin happen
|
189 |
$('#row-tab-settings select[multiple="multiple"], #row-tab-source select[multiple="multiple"]').chosen({width: '100%'});
|
190 |
|
@@ -762,7 +770,7 @@ var g_stbCopyPasteColsCount = [];
|
|
762 |
// Table Styling
|
763 |
var previewTableId = 'supsystic-table-' + app.getParameterByName('id'),
|
764 |
tableSelector = '#' + previewTableId,
|
765 |
-
wrapperSelector = tableSelector + '_wrapper';
|
766 |
$('.color-picker-wrapper').each(function() {
|
767 |
var $this = $(this),
|
768 |
colorArea = $this.find('.color-picker-preview'),
|
@@ -794,10 +802,10 @@ var g_stbCopyPasteColsCount = [];
|
|
794 |
},
|
795 |
onSubmit: function(hsb, hex, rgb, el) {
|
796 |
colorArea.css('backgroundColor', '#' + curColor);
|
797 |
-
colorInput.val('#' + curColor).trigger('change');
|
798 |
}
|
799 |
});
|
800 |
-
});
|
801 |
|
802 |
formSettings.find('input[name="styles[externalBorderWidth]"]').on('change', function() {
|
803 |
var wBorder = $(this).val(),
|
@@ -963,7 +971,7 @@ var g_stbCopyPasteColsCount = [];
|
|
963 |
{selector: tableSelector, param: 'overflow-wrap', value: checked ? 'break-word' : ''},
|
964 |
{selector: wrapperSelector + ' .dataTables_scroll table', param: 'table-layout', value: checked ? 'fixed !important' : ''},
|
965 |
{selector: wrapperSelector + ' .dataTables_scroll table', param: 'overflow-wrap', value: checked ? 'break-word' : ''},
|
966 |
-
]);
|
967 |
});
|
968 |
formSettings.find('select[name="styles[verticalAlignment]"]').on('change', function() {
|
969 |
tablesModel.updatePreviewCss([{selector: tableSelector + ' th, ' + tableSelector + ' td', param: 'vertical-align', value: $(this).val()}]);
|
@@ -1013,7 +1021,7 @@ var g_stbCopyPasteColsCount = [];
|
|
1013 |
}
|
1014 |
tablesModel.saveTable('#table-preview', $this.attr('data-need-settings-save') == '1' ? 2 : 1);
|
1015 |
});
|
1016 |
-
|
1017 |
// Pro Notifications and Dialog Windows
|
1018 |
var $proNotify = $('.pro-notify');
|
1019 |
|
30 |
$mainTabs = $('.subsubsub.tabs-wrapper .button'),
|
31 |
$currentTab = $mainTabs.filter('.current').attr('href');
|
32 |
|
33 |
+
//Fix for woocommerce button
|
34 |
+
jQuery('body').on('click','[href="#row-tab-woocommerce"]', function(){
|
35 |
+
$mainTabs.filter('.current').removeClass('current');
|
36 |
+
$mainTabsContent.filter('.active').removeClass('active');
|
37 |
+
jQuery(this).addClass('current');
|
38 |
+
jQuery('#row-tab-woocommerce').addClass('active');
|
39 |
+
});
|
40 |
+
|
41 |
$mainTabsContent.filter($currentTab).addClass('active');
|
42 |
$mainTabs.on('click', function (e) {
|
43 |
e.preventDefault();
|
143 |
$('.preview-section .stb-anchor-nav-links').on('click', function(e, funcParams) {
|
144 |
e.preventDefault();
|
145 |
var href = $(this).attr('href');
|
146 |
+
|
147 |
g_stbMobilePreview = false;
|
148 |
$('.preview-styling a').removeClass('active');
|
149 |
$(this).addClass('active');
|
192 |
'min-height': g_stbWindowHeight,
|
193 |
'height': g_stbWindowHeight
|
194 |
});
|
195 |
+
|
196 |
// If turn on chosen plugin for selects of all types - there is conflict with handsontable plugin happen
|
197 |
$('#row-tab-settings select[multiple="multiple"], #row-tab-source select[multiple="multiple"]').chosen({width: '100%'});
|
198 |
|
770 |
// Table Styling
|
771 |
var previewTableId = 'supsystic-table-' + app.getParameterByName('id'),
|
772 |
tableSelector = '#' + previewTableId,
|
773 |
+
wrapperSelector = tableSelector + '_wrapper';
|
774 |
$('.color-picker-wrapper').each(function() {
|
775 |
var $this = $(this),
|
776 |
colorArea = $this.find('.color-picker-preview'),
|
802 |
},
|
803 |
onSubmit: function(hsb, hex, rgb, el) {
|
804 |
colorArea.css('backgroundColor', '#' + curColor);
|
805 |
+
colorInput.val('#' + curColor).trigger('change');
|
806 |
}
|
807 |
});
|
808 |
+
});
|
809 |
|
810 |
formSettings.find('input[name="styles[externalBorderWidth]"]').on('change', function() {
|
811 |
var wBorder = $(this).val(),
|
971 |
{selector: tableSelector, param: 'overflow-wrap', value: checked ? 'break-word' : ''},
|
972 |
{selector: wrapperSelector + ' .dataTables_scroll table', param: 'table-layout', value: checked ? 'fixed !important' : ''},
|
973 |
{selector: wrapperSelector + ' .dataTables_scroll table', param: 'overflow-wrap', value: checked ? 'break-word' : ''},
|
974 |
+
]);
|
975 |
});
|
976 |
formSettings.find('select[name="styles[verticalAlignment]"]').on('change', function() {
|
977 |
tablesModel.updatePreviewCss([{selector: tableSelector + ' th, ' + tableSelector + ' td', param: 'vertical-align', value: $(this).val()}]);
|
1021 |
}
|
1022 |
tablesModel.saveTable('#table-preview', $this.attr('data-need-settings-save') == '1' ? 2 : 1);
|
1023 |
});
|
1024 |
+
|
1025 |
// Pro Notifications and Dialog Windows
|
1026 |
var $proNotify = $('.pro-notify');
|
1027 |
|
src/SupsysticTables/Tables/assets/libraries/datetime-moment.js
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* This plug-in for DataTables represents the ultimate option in extensibility
|
3 |
+
* for sorting date / time strings correctly. It uses
|
4 |
+
* [Moment.js](http://momentjs.com) to create automatic type detection and
|
5 |
+
* sorting plug-ins for DataTables based on a given format. This way, DataTables
|
6 |
+
* will automatically detect your temporal information and sort it correctly.
|
7 |
+
*
|
8 |
+
* For usage instructions, please see the DataTables blog
|
9 |
+
* post that [introduces it](//datatables.net/blog/2014-12-18).
|
10 |
+
*
|
11 |
+
* @name Ultimate Date / Time sorting
|
12 |
+
* @summary Sort date and time in any format using Moment.js
|
13 |
+
* @author [Allan Jardine](//datatables.net)
|
14 |
+
* @depends DataTables 1.10+, Moment.js 1.7+
|
15 |
+
*
|
16 |
+
* @example
|
17 |
+
* $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
|
18 |
+
* $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
|
19 |
+
*
|
20 |
+
* $('#example').DataTable();
|
21 |
+
*/
|
22 |
+
|
23 |
+
(function (factory) {
|
24 |
+
if (typeof define === "function" && define.amd) {
|
25 |
+
define(["jquery", "moment", "datatables.net"], factory);
|
26 |
+
} else {
|
27 |
+
factory(jQuery, moment);
|
28 |
+
}
|
29 |
+
}(function ($, moment) {
|
30 |
+
|
31 |
+
$.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
|
32 |
+
var types = $.fn.dataTable.ext.type;
|
33 |
+
|
34 |
+
// Add type detection
|
35 |
+
types.detect.unshift( function ( d ) {
|
36 |
+
if ( d ) {
|
37 |
+
// Strip HTML tags and newline characters if possible
|
38 |
+
if ( d.replace ) {
|
39 |
+
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
40 |
+
}
|
41 |
+
|
42 |
+
// Strip out surrounding white space
|
43 |
+
d = $.trim( d );
|
44 |
+
}
|
45 |
+
|
46 |
+
// Null and empty values are acceptable
|
47 |
+
if ( d === '' || d === null ) {
|
48 |
+
return 'moment-'+format;
|
49 |
+
}
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
return moment( d, format, locale, true ).isValid() ?
|
54 |
+
'moment-'+format :
|
55 |
+
null;
|
56 |
+
} );
|
57 |
+
|
58 |
+
|
59 |
+
// Add sorting method - use an integer for the sorting
|
60 |
+
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
|
61 |
+
if ( d ) {
|
62 |
+
// Strip HTML tags and newline characters if possible
|
63 |
+
if ( d.replace ) {
|
64 |
+
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
65 |
+
}
|
66 |
+
|
67 |
+
// Strip out surrounding white space
|
68 |
+
d = $.trim( d );
|
69 |
+
}
|
70 |
+
|
71 |
+
return !moment(d, format, locale, true).isValid() ?
|
72 |
+
(reverseEmpties ? -Infinity : Infinity) :
|
73 |
+
parseInt( moment( d, format, locale, true ).format( 'x' ), 10 );
|
74 |
+
};
|
75 |
+
};
|
76 |
+
|
77 |
+
}));
|
src/SupsysticTables/Tables/assets/libraries/handsontable/handsontable.min.js
CHANGED
@@ -1 +1,33909 @@
|
|
1 |
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function d(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,o){return _t(e,t,n,o,!0).utc()}function v(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=v(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function p(e){var t=h(NaN);return null!=e?c(v(t),e):v(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var m=d.momentProperties=[];function y(e,t){var n,o,i;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=v(t)),r(t._locale)||(e._locale=t._locale),0<m.length)for(n=0;n<m.length;n++)r(i=t[o=m[n]])||(e[o]=i);return e}var t=!1;function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,d.updateOffset(this),t=!1)}function C(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=E(t)),n}function k(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&S(e[o])!==S(t[o]))&&a++;return a+r}function T(e){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,r){var a=!0;return c(function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var o in e+="\n["+n+"] ",arguments[0])e+=o+": "+arguments[0][o]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}T(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return r.apply(this,arguments)},r)}var R,_={};function b(e,t){null!=d.deprecationHandler&&d.deprecationHandler(e,t),_[e]||(T(t),_[e]=!0)}function O(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e,t){var n,o=c({},e);for(n in t)f(t,n)&&(s(e[n])&&s(t[n])?(o[n]={},c(o[n],e[n]),c(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)f(e,n)&&!f(t,n)&&s(e[n])&&(o[n]=c({},o[n]));return o}function N(e){null!=e&&this.set(e)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,R=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var A={};function D(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function I(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function H(e){var t,n,o={};for(n in e)f(e,n)&&(t=I(n))&&(o[t]=e[n]);return o}var L={};function P(e,t){L[e]=t}function x(e,t,n){var o=""+Math.abs(e),i=t-o.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},V={};function U(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return x(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),W[t]=W[t]||function(o){var e,i,t,r=o.match(F);for(e=0,i=r.length;e<i;e++)V[r[e]]?r[e]=V[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=O(r[t])?r[t].call(e,o):r[t];return n}}(t),W[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;0<=n&&B.test(e);)e=e.replace(B,o),B.lastIndex=0,n-=1;return e}var z=/\d/,G=/\d\d/,K=/\d{3}/,X=/\d{4}/,q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,oe=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function le(e,n,o){se[e]=O(n)?n:function(e,t){return e&&o?o:n}}function ue(e,t){return f(se,e)?se[e](t._strict,t._locale):new RegExp(function(e){return ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i}))}(e))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function de(e,n){var t,o=n;for("string"==typeof e&&(e=[e]),l(n)&&(o=function(e,t){t[n]=S(e)}),t=0;t<e.length;t++)he[e[t]]=o}function fe(e,i){de(e,function(e,t,n,o){n._w=n._w||{},i(e,n._w,n,o)})}var ve=0,ge=1,pe=2,me=3,ye=4,we=5,Ce=6,Ee=7,Se=8;function ke(e){return Te(e)?366:365}function Te(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),D("year","y"),P("year",1),le("Y",oe),le("YY",Z,G),le("YYYY",ee,X),le("YYYYY",te,q),le("YYYYYY",te,q),de(["YYYYY","YYYYYY"],ve),de("YYYY",function(e,t){t[ve]=2===e.length?d.parseTwoDigitYear(e):S(e)}),de("YY",function(e,t){t[ve]=d.parseTwoDigitYear(e)}),de("Y",function(e,t){t[ve]=parseInt(e,10)}),d.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var Re,_e=be("FullYear",!0);function be(t,n){return function(e){return null!=e?(Me(this,t,e),d.updateOffset(this,n),this):Oe(this,t)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Te(e)?29:28:31-n%7%2}Re=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),D("month","M"),P("month",8),le("M",Z),le("MM",Z,G),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[ge]=S(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[ge]=i:v(n).invalidMonth=e});var Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function He(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(He(this,e),d.updateOffset(this,!0),this):Oe(this,"Month")}var Pe=ae;var xe=ae;function Fe(){function e(e,t){return t.length-e.length}var t,n,o=[],i=[],r=[];for(t=0;t<12;t++)n=h([2e3,t]),o.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)o[t]=ce(o[t]),i[t]=ce(i[t]);for(t=0;t<24;t++)r[t]=ce(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function We(e,t,n){var o=7+t-n;return o-(7+Be(e,0,o).getUTCDay()-t)%7-1}function Ve(e,t,n,o,i){var r,a,s=1+7*(t-1)+(7+n-o)%7+We(e,o,i);return a=s<=0?ke(r=e-1)+s:s>ke(e)?(r=e+1,s-ke(e)):(r=e,s),{year:r,dayOfYear:a}}function Ue(e,t,n){var o,i,r=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?o=a+Ye(i=e.year()-1,t,n):a>Ye(e.year(),t,n)?(o=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),o=a),{week:o,year:i}}function Ye(e,t,n){var o=We(e,t,n),i=We(e+1,t,n);return(ke(e)-o+i)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),P("week",5),P("isoWeek",5),le("w",Z),le("ww",Z,G),le("W",Z),le("WW",Z,G),fe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=S(e)});U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,o){t[o]=S(e)});var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ke=ae;var Xe=ae;var qe=ae;function Ze(){function e(e,t){return t.length-e.length}var t,n,o,i,r,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),o=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(o),s.push(i),l.push(r),u.push(o),u.push(i),u.push(r);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=ce(s[t]),l[t]=ce(l[t]),u[t]=ce(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Qe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,$e),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+$e.apply(this)+x(this.minutes(),2)}),U("hmmss",0,0,function(){return""+$e.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),D("hour","h"),P("hour",13),le("a",Je),le("A",Je),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,G),le("hh",Z,G),le("kk",Z,G),le("hmm",$),le("hmmss",Q),le("Hmm",$),le("Hmmss",Q),de(["H","HH"],me),de(["k","kk"],function(e,t,n){var o=S(e);t[me]=24===o?0:o}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[me]=S(e),v(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[me]=S(e.substr(0,o)),t[ye]=S(e.substr(o)),v(n).bigHour=!0}),de("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[me]=S(e.substr(0,o)),t[ye]=S(e.substr(o,2)),t[we]=S(e.substr(i)),v(n).bigHour=!0}),de("Hmm",function(e,t,n){var o=e.length-2;t[me]=S(e.substr(0,o)),t[ye]=S(e.substr(o))}),de("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[me]=S(e.substr(0,o)),t[ye]=S(e.substr(o,2)),t[we]=S(e.substr(i))});var et,tt=be("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Ie,week:{dow:0,doy:6},weekdays:je,weekdaysMin:Ge,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},ot={},it={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!ot[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),st(t)}catch(e){}return ot[e]}function st(e,t){var n;return e&&(n=r(t)?ut(e):lt(e,t))&&(et=n),et._abbr}function lt(e,t){if(null===t)return delete ot[e],null;var n=nt;if(t.abbr=e,null!=ot[e])b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ot[e]._config;else if(null!=t.parentLocale){if(null==ot[t.parentLocale])return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;n=ot[t.parentLocale]._config}return ot[e]=new N(M(n,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),st(e),ot[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=rt(e[r]).split("-")).length,n=(n=rt(e[r+1]))?n.split("-"):null;0<t;){if(o=at(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&k(i,n,!0)>=t-1)break;t--}r++}return null}(e)}function ct(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[ge]<0||11<n[ge]?ge:n[pe]<1||n[pe]>Ne(n[ve],n[ge])?pe:n[me]<0||24<n[me]||24===n[me]&&(0!==n[ye]||0!==n[we]||0!==n[Ce])?me:n[ye]<0||59<n[ye]?ye:n[we]<0||59<n[we]?we:n[Ce]<0||999<n[Ce]?Ce:-1,v(e)._overflowDayOfYear&&(t<ve||pe<t)&&(t=pe),v(e)._overflowWeeks&&-1===t&&(t=Ee),v(e)._overflowWeekday&&-1===t&&(t=Se),v(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var t,n,o,i,r,a=[];if(!e._d){for(o=function(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[pe]&&null==e._a[ge]&&function(e){var t,n,o,i,r,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ht(t.GG,e._a[ve],Ue(bt(),1,4).year),o=ht(t.W,1),((i=ht(t.E,1))<1||7<i)&&(l=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var u=Ue(bt(),r,a);n=ht(t.gg,e._a[ve],u.year),o=ht(t.w,u.week),null!=t.d?((i=t.d)<0||6<i)&&(l=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(l=!0)):i=r}o<1||o>Ye(n,r,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=Ve(n,o,i,r,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(r=ht(e._a[ve],o[ve]),(e._dayOfYear>ke(r)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=Be(r,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[pe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[me]&&0===e._a[ye]&&0===e._a[we]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,i,r,a){var s=new Date(e,t,n,o,i,r,a);return e<100&&0<=e&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[me]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,o,i,r,a,s=e._i,l=ft.exec(s)||vt.exec(s);if(l){for(v(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){i=pt[t][0],o=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){r=(l[2]||" ")+mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Tt(e)}else e._isValid=!1}var Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Et(e,t,n,o,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Ie.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t=Ct.exec(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e._i));if(t){var n=Et(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1)}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var o=parseInt(n,10),i=o%100;return 60*((o-i)/100)+i}(t[8],t[9],t[10]),e._d=Be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Tt(e){if(e._f!==d.ISO_8601)if(e._f!==d.RFC_2822){e._a=[],v(e).empty=!0;var t,n,o,i,r,a,s,l,u=""+e._i,c=u.length,h=0;for(o=j(e._f,e._locale).match(F)||[],t=0;t<o.length;t++)i=o[t],(n=(u.match(ue(i,e))||[])[0])&&(0<(r=u.substr(0,u.indexOf(n))).length&&v(e).unusedInput.push(r),u=u.slice(u.indexOf(n)+n.length),h+=n.length),V[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),a=i,l=e,null!=(s=n)&&f(he,a)&&he[a](s,l._a,l,a)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-h,0<u.length&&v(e).unusedInput.push(u),e._a[me]<=12&&!0===v(e).bigHour&&0<e._a[me]&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[me]=function(e,t,n){var o;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0)),t)}(e._locale,e._a[me],e._meridiem),dt(e),ct(e)}else kt(e);else wt(e)}function Rt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new w(ct(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,o,i,r;if(0===e._f.length)return v(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Tt(t),g(t)&&(r+=v(t).charsLeftOver,r+=10*v(t).unusedTokens.length,v(t).score=r,(null==o||r<o)&&(o=r,n=t));c(e,n||t)}(e):n?Tt(e):function(e){var t=e._i;r(t)?e._d=new Date(d.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=yt.exec(e._i);null===t?(wt(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,d.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=o(t.slice(0),function(e){return parseInt(e,10)}),dt(e)):s(t)?function(e){if(!e._d){var t=H(e._i);e._a=o([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),dt(e)}}(e):l(t)?e._d=new Date(t):d.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function _t(e,t,n,o,i){var r={};return!0!==n&&!1!==n||(o=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||a(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=o,function(e){var t=new w(ct(Rt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(r)}function bt(e,t,n,o){return _t(e,t,n,o,!1)}d.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),d.ISO_8601=function(){},d.RFC_2822=function(){};var Ot=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Mt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()});function Nt(e,t){var n,o;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Dt(e){var t=H(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Re.call(At,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<At.length;++o)if(e[At[o]]){if(n)return!1;parseFloat(e[At[o]])!==S(e[At[o]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=ut(),this._bubble()}function It(e){return e instanceof Dt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+x(~~(e/60),2)+n+x(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),le("Z",re),le("ZZ",re),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=xt(re,e)});var Pt=/([\+\-]|\d\d)/gi;function xt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=((n[n.length-1]||[])+"").match(Pt)||["-",0,0],i=60*o[1]+S(o[2]);return 0===i?0:"+"===o[0]?i:-i}function Ft(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(C(e)||u(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),d.updateOffset(n,!1),n):bt(e).local()}function Bt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}d.updateOffset=function(){};var Vt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,o,i,r=e,a=null;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=Vt.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:S(a[pe])*n,h:S(a[me])*n,m:S(a[ye])*n,s:S(a[we])*n,ms:S(Ht(1e3*a[Ce]))*n}):(a=Ut.exec(e))?(n="-"===a[1]?-1:(a[1],1),r={y:jt(a[2],n),M:jt(a[3],n),w:jt(a[4],n),d:jt(a[5],n),h:jt(a[6],n),m:jt(a[7],n),s:jt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Ft(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(bt(r.from),bt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),o=new Dt(r),It(e)&&f(e,"_locale")&&(o._locale=e._locale),o}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(o,i){return function(e,t){var n;return null===t||isNaN(+t)||(b(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Kt(this,Yt(e="string"==typeof e?+e:e,t),o),this}}function Kt(e,t,n,o){var i=t._milliseconds,r=Ht(t._days),a=Ht(t._months);e.isValid()&&(o=null==o||o,a&&He(e,Oe(e,"Month")+a*n),r&&Me(e,"Date",Oe(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&d.updateOffset(e,r||a))}Yt.fn=Dt.prototype,Yt.invalid=function(){return Yt(NaN)};var Xt=Gt(1,"add"),qt=Gt(-1,"subtract");function Zt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(1+n,"months")-o)))||0}function $t(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}function en(e,t){U(0,[e,e.length],0,t)}function tn(e,t,n,o,i){var r;return null==e?Ue(this,o,i).year:((r=Ye(e,o,i))<t&&(t=r),function(e,t,n,o,i){var r=Ve(e,t,n,o,i),a=Be(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,o,i))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,G),le("gg",Z,G),le("GGGG",ee,X),le("gggg",ee,X),le("GGGGG",te,q),le("ggggg",te,q),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=S(e)}),fe(["gg","GG"],function(e,t,n,o){t[o]=d.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),D("quarter","Q"),P("quarter",7),le("Q",z),de("Q",function(e,t){t[ge]=3*(S(e)-1)}),U("D",["DD",2],"Do","date"),D("date","D"),P("date",9),le("D",Z),le("DD",Z,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],pe),de("Do",function(e,t){t[pe]=S(e.match(Z)[0])});var nn=be("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),P("dayOfYear",4),le("DDD",J),le("DDDD",K),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),U("m",["mm",2],0,"minute"),D("minute","m"),P("minute",14),le("m",Z),le("mm",Z,G),de(["m","mm"],ye);var on=be("Minutes",!1);U("s",["ss",2],0,"second"),D("second","s"),P("second",15),le("s",Z),le("ss",Z,G),de(["s","ss"],we);var rn,an=be("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),P("millisecond",16),le("S",J,z),le("SS",J,G),le("SSS",J,K),rn="SSSS";rn.length<=9;rn+="S")le(rn,ne);function sn(e,t){t[Ce]=S(1e3*("0."+e))}for(rn="S";rn.length<=9;rn+="S")de(rn,sn);var ln=be("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var un=w.prototype;function cn(e){return e}un.add=Xt,un.calendar=function(e,t){var n=e||bt(),o=Ft(n,this).startOf("day"),i=d.calendarFormat(this,o)||"sameElse",r=t&&(O(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)))},un.clone=function(){return new w(this)},un.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=Ft(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=I(t)){case"year":r=Zt(this,o)/12;break;case"month":r=Zt(this,o);break;case"quarter":r=Zt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:E(r)},un.endOf=function(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},un.format=function(e){e=e||(this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},un.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||bt(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.fromNow=function(e){return this.from(bt(),e)},un.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||bt(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.toNow=function(e){return this.to(bt(),e)},un.get=function(e){return O(this[e=I(e)])?this[e]():this},un.invalidAt=function(){return v(this).overflow},un.isAfter=function(e,t){var n=C(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(r(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},un.isBefore=function(e,t){var n=C(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(r(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},un.isBetween=function(e,t,n,o){return("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},un.isSame=function(e,t){var n,o=C(e)?e:bt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=I(t||"millisecond"))?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},un.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},un.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},un.isValid=function(){return g(this)},un.lang=Qt,un.locale=$t,un.localeData=Jt,un.max=Mt,un.min=Ot,un.parsingFlags=function(){return c({},v(this))},un.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:L[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=H(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(O(this[e=I(e)]))return this[e](t);return this},un.startOf=function(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},un.subtract=qt,un.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},un.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},un.toDate=function(){return new Date(this.valueOf())},un.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},un.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+i)},un.toJSON=function(){return this.isValid()?this.toISOString():null},un.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},un.unix=function(){return Math.floor(this.valueOf()/1e3)},un.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},un.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},un.year=_e,un.isLeapYear=function(){return Te(this.year())},un.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},un.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},un.quarter=un.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},un.month=Le,un.daysInMonth=function(){return Ne(this.year(),this.month())},un.week=un.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},un.isoWeek=un.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},un.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},un.isoWeeksInYear=function(){return Ye(this.year(),1,4)},un.date=nn,un.day=un.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},un.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},un.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)},un.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},un.hour=un.hours=tt,un.minute=un.minutes=on,un.second=un.seconds=an,un.millisecond=un.milliseconds=ln,un.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Bt(this);if("string"==typeof e){if(null===(e=xt(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Bt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Yt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this},un.utc=function(e){return this.utcOffset(0,e)},un.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this},un.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=xt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},un.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},un.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},un.isLocal=function(){return!!this.isValid()&&!this._isUTC},un.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},un.isUtc=Wt,un.isUTC=Wt,un.zoneAbbr=function(){return this._isUTC?"UTC":""},un.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},un.dates=n("dates accessor is deprecated. Use date instead.",nn),un.months=n("months accessor is deprecated. Use month instead",Le),un.years=n("years accessor is deprecated. Use year instead",_e),un.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),un.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Rt(e))._a){var t=e._isUTC?h(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<k(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=N.prototype;function dn(e,t,n,o){var i=ut(),r=h().set(o,t);return i[n](r,e)}function fn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");var o,i=[];for(o=0;o<12;o++)i[o]=dn(e,o,n,"month");return i}function vn(e,t,n,o){t=("boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t||"");var i,r=ut(),a=e?r._week.dow:0;if(null!=n)return dn(t,(n+a)%7,o,"day");var s=[];for(i=0;i<7;i++)s[i]=dn(t,(i+a)%7,o,"day");return s}hn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return O(o)?o.call(t,n):o},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=cn,hn.postformat=cn,hn.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return O(i)?i(e,t,n,o):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)O(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var o,i,r;if(this._monthsParseExact)return function(e,t,n){var o,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=h([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Re.call(this._shortMonthsParse,a))?i:null:-1!==(i=Re.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Re.call(this._shortMonthsParse,a))?i:-1!==(i=Re.call(this._longMonthsParse,a))?i:null:-1!==(i=Re.call(this._longMonthsParse,a))?i:-1!==(i=Re.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=h([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},hn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var o,i,r;if(this._weekdaysParseExact)return function(e,t,n){var o,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=h([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Re.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Re.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Re.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Re.call(this._weekdaysParse,a))?i:-1!==(i=Re.call(this._shortWeekdaysParse,a))?i:-1!==(i=Re.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Re.call(this._shortWeekdaysParse,a))?i:-1!==(i=Re.call(this._weekdaysParse,a))?i:-1!==(i=Re.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Re.call(this._minWeekdaysParse,a))?i:-1!==(i=Re.call(this._weekdaysParse,a))?i:-1!==(i=Re.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=h([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},st("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),d.lang=n("moment.lang is deprecated. Use moment.locale instead.",st),d.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ut);var gn=Math.abs;function pn(e,t,n,o){var i=Yt(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function mn(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var En=Cn("ms"),Sn=Cn("s"),kn=Cn("m"),Tn=Cn("h"),Rn=Cn("d"),_n=Cn("w"),bn=Cn("M"),On=Cn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Mn("milliseconds"),An=Mn("seconds"),Dn=Mn("minutes"),In=Mn("hours"),Hn=Mn("days"),Ln=Mn("months"),Pn=Mn("years");var xn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};var Bn=Math.abs;function Wn(e){return(0<e)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Bn(this._milliseconds)/1e3,o=Bn(this._days),i=Bn(this._months);t=E((e=E(n/60))/60),n%=60,e%=60;var r=E(i/12),a=i%=12,s=o,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Wn(this._months)!==Wn(h)?"-":"",v=Wn(this._days)!==Wn(h)?"-":"",g=Wn(this._milliseconds)!==Wn(h)?"-":"";return d+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(s?v+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Un=Dt.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Un.add=function(e,t){return pn(this,e,t,1)},Un.subtract=function(e,t){return pn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+o/864e5,n=this._months+yn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=En,Un.asSeconds=Sn,Un.asMinutes=kn,Un.asHours=Tn,Un.asDays=Rn,Un.asWeeks=_n,Un.asMonths=bn,Un.asYears=On,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Un._bubble=function(){var e,t,n,o,i,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return 0<=r&&0<=a&&0<=s||r<=0&&a<=0&&s<=0||(r+=864e5*mn(wn(s)+a),s=a=0),l.milliseconds=r%1e3,e=E(r/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,s+=i=E(yn(a+=E(n/24))),a-=mn(wn(i)),o=E(s/12),s%=12,l.days=a,l.months=s,l.years=o,this},Un.clone=function(){return Yt(this)},Un.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=Nn,Un.seconds=An,Un.minutes=Dn,Un.hours=In,Un.days=Hn,Un.weeks=function(){return E(this.days()/7)},Un.months=Ln,Un.years=Pn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var o=Yt(e).abs(),i=xn(o.as("s")),r=xn(o.as("m")),a=xn(o.as("h")),s=xn(o.as("d")),l=xn(o.as("M")),u=xn(o.as("y")),c=i<=Fn.ss&&["s",i]||i<Fn.s&&["ss",i]||r<=1&&["m"]||r<Fn.m&&["mm",r]||a<=1&&["h"]||a<Fn.h&&["hh",a]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=n,function(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Vn,Un.toString=Vn,Un.toJSON=Vn,Un.locale=$t,Un.localeData=Jt,Un.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Un.lang=Qt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),de("x",function(e,t,n){n._d=new Date(S(e))}),d.version="2.20.1",e=bt,d.fn=un,d.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},d.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},d.now=function(){return Date.now?Date.now():+new Date},d.utc=h,d.unix=function(e){return bt(1e3*e)},d.months=function(e,t){return fn(e,t,"months")},d.isDate=u,d.locale=st,d.invalid=p,d.duration=Yt,d.isMoment=C,d.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},d.parseZone=function(){return bt.apply(null,arguments).parseZone()},d.localeData=ut,d.isDuration=It,d.monthsShort=function(e,t){return fn(e,t,"monthsShort")},d.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},d.defineLocale=lt,d.updateLocale=function(e,t){if(null!=t){var n,o,i=nt;null!=(o=at(e))&&(i=o._config),(n=new N(t=M(i,t))).parentLocale=ot[e],ot[e]=n,st(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},d.locales=function(){return R(ot)},d.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},d.normalizeUnits=I,d.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},d.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},d.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},d.prototype=un,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},d}),function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(e){}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){try{n=e("moment")}catch(e){}return t(n)}):e.Pikaday=t(e.moment)}(this,function(r){"use strict";function a(e,t,n,o){c?e.addEventListener(t,n,!!o):e.attachEvent("on"+t,n)}function t(e,t,n,o){c?e.removeEventListener(t,n,!!o):e.detachEvent("on"+t,n)}function i(e,t,n){var o;h.createEvent?((o=h.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=f(o,n),e.dispatchEvent(o)):h.createEventObject&&(o=h.createEventObject(),o=f(o,n),e.fireEvent("on"+t,o))}function s(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function m(e){return/Array/.test(Object.prototype.toString.call(e))}function L(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())}function P(e,t){return[31,function(e){return e%4==0&&e%100!=0||e%400==0}(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}function x(e){L(e)&&e.setHours(0,0,0,0)}function F(e,t){return e.getTime()===t.getTime()}function n(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function o(e,t,n){for(t+=e.firstDay;7<=t;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]}function B(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"}function u(e,t,n,o,i,r){var a,s,l,u,c,h=e._o,d=n===h.minYear,f=n===h.maxYear,v='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,p=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===i?a-t:12+a-t)+'"'+(a===o?' selected="selected"':"")+(d&&a<h.minMonth||f&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",s=m(h.yearRange)?(a=h.yearRange[0],h.yearRange[1]+1):(a=n-h.yearRange,1+n+h.yearRange),l=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?v+=c+u:v+=u+c,d&&(0===o||h.minMonth>=o)&&(g=!1),f&&(11===o||h.maxMonth<=o)&&(p=!1),0===t&&(v+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(v+='<button class="pika-next'+(p?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),v+"</div>"}function W(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+o(e,t)+'">'+o(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+function(e){return"<tbody>"+e.join("")+"</tbody>"}(t)+"</table>"}function e(e){var o=this,i=o.config(e);o._onMouseDown=function(e){if(o._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(s(t,"is-disabled")||(!s(t,"pika-button")||s(t,"is-empty")||s(t.parentNode,"is-disabled")?s(t,"pika-prev")?o.prevMonth():s(t,"pika-next")&&o.nextMonth():(o.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),i.bound&&d(function(){o.hide(),i.field&&i.field.blur()},100))),s(t,"pika-select"))o._c=!0;else{if(!e.preventDefault)return e.returnValue=!1;e.preventDefault()}}},o._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?o.gotoMonth(t.value):s(t,"pika-select-year")&&o.gotoYear(t.value))},o._onKeyChange=function(e){if(e=e||window.event,o.isVisible())switch(e.keyCode){case 13:case 27:i.field.blur();break;case 37:e.preventDefault(),o.adjustDate("subtract",1);break;case 38:o.adjustDate("subtract",7);break;case 39:o.adjustDate("add",1);break;case 40:o.adjustDate("add",7)}},o._onInputChange=function(e){var t;e.firedBy!==o&&(t=l?(t=r(i.field.value,i.format,i.formatStrict))&&t.isValid()?t.toDate():null:new Date(Date.parse(i.field.value)),L(t)&&o.setDate(t),o._v||o.show())},o._onInputFocus=function(){o.show()},o._onInputClick=function(){o.show()},o._onInputBlur=function(){var e=h.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);o._c||(o._b=d(function(){o.hide()},50)),o._c=!1},o._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,n=t;if(t){!c&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),a(t,"change",o._onChange)));do{if(s(n,"pika-single")||n===i.trigger)return}while(n=n.parentNode);o._v&&t!==i.trigger&&n!==i.trigger&&o.hide()}},o.el=h.createElement("div"),o.el.className="pika-single"+(i.isRTL?" is-rtl":"")+(i.theme?" "+i.theme:""),a(o.el,"mousedown",o._onMouseDown,!0),a(o.el,"touchend",o._onMouseDown,!0),a(o.el,"change",o._onChange),a(h,"keydown",o._onKeyChange),i.field&&(i.container?i.container.appendChild(o.el):i.bound?h.body.appendChild(o.el):i.field.parentNode.insertBefore(o.el,i.field.nextSibling),a(i.field,"change",o._onInputChange),i.defaultDate||(l&&i.field.value?i.defaultDate=r(i.field.value,i.format).toDate():i.defaultDate=new Date(Date.parse(i.field.value)),i.setDefaultDate=!0));var t=i.defaultDate;L(t)?i.setDefaultDate?o.setDate(t,!0):o.gotoDate(t):o.gotoDate(new Date),i.bound?(this.hide(),o.el.className+=" is-bound",a(i.trigger,"click",o._onInputClick),a(i.trigger,"focus",o._onInputFocus),a(i.trigger,"blur",o._onInputBlur)):this.show()}var l="function"==typeof r,c=!!window.addEventListener,h=window.document,d=window.setTimeout,f=function(e,t,n){var o,i;for(o in t)(i=void 0!==e[o])&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?L(t[o])?n&&(e[o]=new Date(t[o].getTime())):m(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=f({},t[o],n):!n&&i||(e[o]=t[o]);return e},v={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null};return e.prototype={config:function(e){this._o||(this._o=f({},v,!0));var t=f(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=4<n?4:n,L(t.minDate)||(t.minDate=!1),L(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),m(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||v.yearRange,100<t.yearRange&&(t.yearRange=100);return t},toString:function(e){return L(this._d)?l?r(this._d).format(e||this._o.format):this._d.toDateString():""},getMoment:function(){return l?r(this._d):null},setMoment:function(e,t){l&&r.isMoment(e)&&this.setDate(e.toDate(),t)},getDate:function(){return L(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",i(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),L(e)){var n=this._o.minDate,o=this._o.maxDate;L(n)&&e<n?e=n:L(o)&&o<e&&(e=o),this._d=new Date(e.getTime()),x(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),i(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(L(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=i<n.getTime()||o.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,o=this.getDate(),i=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(o.valueOf()+i):"subtract"===e&&(n=new Date(o.valueOf()-i)),l&&("add"===e?n=r(o).add(t,"days").toDate():"subtract"===e&&(n=r(o).subtract(t,"days").toDate())),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=n(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=n({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(x(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=v.minDate,this._o.minYear=v.minYear,this._o.minMonth=v.minMonth,this._o.startRange=v.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(x(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=v.maxDate,this._o.maxYear=v.maxYear,this._o.maxMonth=v.maxMonth,this._o.endRange=v.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,i=n.maxYear,r=n.minMonth,a=n.maxMonth,s="";this._y<=o&&(this._y=o,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=i&&(this._y=i,!isNaN(a)&&this._m>a&&(this._m=a)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)s+='<div class="pika-lendar">'+u(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=s,n.bound&&"hidden"!==n.field.type&&d(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,i,r,a,s,l,u;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,o=this.el.offsetHeight,i=window.innerWidth||h.documentElement.clientWidth,r=window.innerHeight||h.documentElement.clientHeight,a=window.pageYOffset||h.body.scrollTop||h.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)s=(u=e.getBoundingClientRect()).left+window.pageXOffset,l=u.bottom+window.pageYOffset;else for(s=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)s+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&i<s+n||-1<this._o.position.indexOf("right")&&0<s-n+e.offsetWidth)&&(s=s-n+e.offsetWidth),(this._o.reposition&&r+a<l+o||-1<this._o.position.indexOf("top")&&0<l-o-e.offsetHeight)&&(l=l-o-e.offsetHeight),this.el.style.left=s+"px",this.el.style.top=l+"px"}},render:function(e,t,n){var o=this._o,i=new Date,r=P(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];x(i),0<o.firstDay&&(a-=o.firstDay)<0&&(a+=7);for(var u,c,h,d,f,v,g=0===t?11:t-1,p=11===t?0:t+1,m=0===t?e-1:e,y=11===t?e+1:e,w=P(m,g),C=r+a,E=C;7<E;)E-=7;C+=7-E;for(var S=0,k=0;S<C;S++){var T=new Date(e,t,S-a+1),R=!!L(this._d)&&F(T,this._d),_=F(T,i),b=S<a||r+a<=S,O=S-a+1,M=t,N=e,A=o.startRange&&F(o.startRange,T),D=o.endRange&&F(o.endRange,T),I=o.startRange&&o.endRange&&o.startRange<T&&T<o.endRange;b&&(N=S<a?(O=w+O,M=g,m):(O-=r,M=p,y));var H={day:O,month:M,year:N,isSelected:R,isToday:_,isDisabled:o.minDate&&T<o.minDate||o.maxDate&&T>o.maxDate||o.disableWeekends&&(void 0,0===(v=T.getDay())||6===v)||o.disableDayFn&&o.disableDayFn(T),isEmpty:b,isStartRange:A,isEndRange:D,isInRange:I,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};l.push(B(H)),7==++k&&(o.showWeekNumber&&l.unshift((c=S-a,h=t,d=e,f=void 0,f=new Date(d,0,1),'<td class="pika-week">'+Math.ceil(((new Date(d,h,c)-f)/864e5+f.getDay()+1)/7)+"</td>")),s.push((u=l,"<tr>"+(o.isRTL?u.reverse():u).join("")+"</tr>")),l=[],k=0)}return W(o,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(function(e,t){e.className=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}((" "+e.className+" ").replace(" "+t+" "," "))}(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(a(h,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&t(h,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)}(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),t(this.el,"mousedown",this._onMouseDown,!0),t(this.el,"touchend",this._onMouseDown,!0),t(this.el,"change",this._onChange),this._o.field&&(t(this._o.field,"change",this._onInputChange),this._o.bound&&(t(this._o.trigger,"click",this._onInputClick),t(this._o.trigger,"focus",this._onInputFocus),t(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},e}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("hot-formula-parser"),require("pikaday"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["moment","hot-formula-parser","pikaday","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("moment"),require("hot-formula-parser"),require("pikaday"),require("numbro")):e.Handsontable=t(e.moment,e.formulaParser,e.Pikaday,e.numbro)}("undefined"!=typeof self?self:this,function(n,o,i,r){return(l={},a.m=s=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},function(e,t,n){"use strict";function o(e,t,n,o){var i=-1,r=e,a=n;Array.isArray(e)||(r=Array.from(e));var s=r.length;for(o&&s&&(a=r[i+=1]),i+=1;i<s;)a=t(a,r[i],i,r),i+=1;return a}function i(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));for(var i=o.length;n<i&&!1!==t(o[n],n,o);)n+=1;return e}function r(e){return o(e,function(e,t){return e+t},0)}n(19),n(57),n(12),n(13),t.__esModule=!0,t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},t.extendArray=function(e,t){var n=t.length,o=0;for(;o<n;)e.push(t[o]),o+=1},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,i=0;i<n;i++)for(var r=0;r<o;r++)t[r]||(t[r]=[]),t[r][i]=e[i][r];return t},t.arrayReduce=o,t.arrayFilter=function(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));var i=o.length,r=[],a=-1;for(;n<i;){var s=o[n];t(s,n,o)&&(r[a+=1]=s),n+=1}return r},t.arrayMap=function(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));var i=o.length,r=[],a=-1;for(;n<i;){var s=o[n];r[a+=1]=t(s,n,o),n+=1}return r},t.arrayEach=i,t.arraySum=r,t.arrayMax=function(e){return o(e,function(e,t){return t<e?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return o(e,function(e,t){return e<t?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayAvg=function(e){return e.length?r(e)/e.length:0},t.arrayFlatten=function n(e){return o(e,function(e,t){return e.concat(Array.isArray(t)?n(t):t)},[])},t.arrayUnique=function(e){var t=[];return i(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}},function(e,t,n){"use strict";var o=n(0);n(10),n(36),n(48),t.__esModule=!0,t.duckSchema=function n(e){var o;Array.isArray(e)?o=[]:(o={},c(e,function(e,t){"__children"!==t&&(e&&"object"===(0,a.default)(e)&&!Array.isArray(e)?o[t]=n(e):Array.isArray(e)?e.length&&"object"===(0,a.default)(e[0])&&!Array.isArray(e[0])?o[t]=[n(e[0])]:o[t]=[]:o[t]=null)}));return o},t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e},t.extend=function(n,e){return c(e,function(e,t){n[t]=e}),n},t.deepExtend=function n(o,i){c(i,function(e,t){i[t]&&"object"===(0,a.default)(i[t])?(o[t]||(Array.isArray(i[t])?o[t]=[]:"[object Date]"===Object.prototype.toString.call(i[t])?o[t]=i[t]:o[t]={}),n(o[t],i[t])):o[t]=i[t]})},t.deepClone=l,t.clone=function(e){var n={};return c(e,function(e,t){n[t]=e}),n},t.mixin=function(s){s.MIXINS||(s.MIXINS=[]);for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return(0,i.arrayEach)(t,function(e){s.MIXINS.push(e.MIXIN_NAME),c(e,function(e,t){if(void 0!==s.prototype[t])throw new Error("Mixin conflict. Property '".concat(t,"' already exist and cannot be overwritten."));if("function"==typeof e)s.prototype[t]=e;else{Object.defineProperty(s.prototype,t,{get:(i=t,r=e,a="_".concat(i),function(){return void 0===this[a]&&(this[a]=function(e){var t=e;return(Array.isArray(t)||u(t))&&(t=l(t)),t}(r)),this[a]}),set:(n=t,o="_".concat(n),function(e){this[o]=e}),configurable:!0})}var n,o,i,r,a})}),s},t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.isObject=u,t.defineGetter=function(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)},t.objectEach=c,t.getProperty=function(e,t){var n=t.split("."),o=e;return c(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o},t.deepObjectSize=function(e){return u(e)?function t(e){var n=0;return u(e)?c(e,function(e){n+=t(e)}):n+=1,n}(e):0},t.createObjectPropListener=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"value",o="_".concat(n),i=(t={_touched:!1},(0,r.default)(t,o,e),(0,r.default)(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(i,n,{get:function(){return this[o]},set:function(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.hasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var r=o(n(68)),a=o(n(44)),i=n(3);function l(e){return"object"===(0,a.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}t.exports=n},function(e,t,n){"use strict";var o=n(0);n(19),n(31),n(12),n(53),n(40),n(10),n(133),n(36),n(38),n(39),n(48),n(132),t.__esModule=!0,t.getParent=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null,i=e;for(;null!==i;){if(n===t){o=i;break}i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:(n+=1,i.parentNode)}return o},t.closest=u,t.closestDown=function(e,t,n){var o=[],i=e;for(;(i=i&&u(i,t,n))&&(!n||n.contains(i));)o.push(i),i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i.parentNode;var r=o.length;return r?o[r-1]:null},t.isChildOf=function(e,t){var n=e.parentNode,o=[];"string"==typeof t?o=Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):o.push(t);for(;null!==n;){if(-1<o.indexOf(n))return!0;n=n.parentNode}return!1},t.isChildOfWebComponentTable=function(e){var t="hot-table",n=!1,o=c(e);function i(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===t.toUpperCase()}for(;null!==o;){if(i(o)){n=!0;break}if(o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n=i(o.host))break;o=o.host}o=o.parentNode}return n},t.polymerWrap=c,t.polymerUnwrap=d,t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.overlayContainsElement=function(e,t,n){var o=n.parentElement.querySelector(".ht_clone_".concat(e));return o?o.contains(t):null},t.hasClass=function(e,t){return i(e,t)},t.addClass=function(e,t){return r(e,t)},t.removeClass=function(e,t){return a(e,t)},t.removeTextNodes=function e(t,n){if(3===t.nodeType)n.removeChild(t);else if(-1<["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName))for(var o=t.childNodes,i=o.length-1;0<=i;i--)e(o[i],t)},t.empty=p,t.fastInnerHTML=function(e,t){y.test(t)?e.innerHTML=t:w(e,t)},t.fastInnerText=w,t.isVisible=function e(t){var n=t.ownerDocument.documentElement;var o=t;for(;d(o)!==n;){if(null===o)return!1;if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(o.host){if(o.host.impl)return e(o.host.impl);if(o.host)return e(o.host);throw new Error("Lost in Web Components world")}return!1}if(o.style&&"none"===o.style.display)return!1;o=o.parentNode}return!0},t.offset=function(e){var t,n,o,i,r=e.ownerDocument,a=r.defaultView,s=r.documentElement,l=e;if((0,h.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(i=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:i.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,o=l;for(;(l=l.offsetParent)&&l!==r.body;)t+=l.offsetLeft,n+=l.offsetTop,o=l;o&&"fixed"===o.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.getWindowScrollTop=C,t.getWindowScrollLeft=E,t.getScrollTop=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return e!==t?e.scrollTop:C(t)},t.getScrollLeft=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return e!==t?e.scrollLeft:E(t)},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var o=["auto","scroll"],i=(0,h.isGetComputedStyleSupported)(),r=e.parentNode;for(;r&&r.style&&t.body!==r;){var a=r.style,s=a.overflow,l=a.overflowX,u=a.overflowY;if([s,l,u].includes("scroll"))return r;if(i){var c=n.getComputedStyle(r);if(s=c.overflow,l=c.overflowX,u=c.overflowY,o.includes(s)||o.includes(l)||o.includes(u))return r}if(r.clientHeight<=r.scrollHeight+1&&(o.includes(u)||o.includes(s)))return r;if(r.clientWidth<=r.scrollWidth+1&&(o.includes(l)||o.includes(s)))return r;r=r.parentNode}return n},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,o=e.parentNode;for(;o&&o.style&&t.body!==o;){if("visible"!==o.style.overflow&&""!==o.style.overflow)return o;var i=S(o,n),r=["scroll","hidden","auto"],a=i.getPropertyValue("overflow"),s=i.getPropertyValue("overflow-y"),l=i.getPropertyValue("overflow-x");if(r.includes(a)||r.includes(s)||r.includes(l))return o;o=o.parentNode}return n},t.getStyle=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:window;{if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0}var o=e.style[t];if(""!==o&&void 0!==o)return o;var i=S(e,n);if(""!==i[t]&&void 0!==i[t])return i[t]},t.getComputedStyle=S,t.outerWidth=function(e){return e.offsetWidth},t.outerHeight=function(e){if((0,h.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.addEvent=function(e,t,n){var o=e.defaultView;o=o||(e.document?e:e.ownerDocument.defaultView);o.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on".concat(t),n)},t.removeEvent=function(e,t,n){var o=e.defaultView;o=o||(e.document?e:e.ownerDocument.defaultView);o.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on".concat(t),n)},t.getCaretPosition=function(e){var t=e.ownerDocument;{if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var o=e.createTextRange(),i=o.duplicate();return o.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",o),i.text.length}}return 0},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;{if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}}return 0},t.getSelectionText=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.clearTextSelection=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.setCaretPosition=function(t,n,o){void 0===o&&(o=n);if(t.setSelectionRange){t.focus();try{t.setSelectionRange(n,o)}catch(e){var i=t.parentNode,r=i.style.display;i.style.display="block",t.setSelectionRange(n,o),i.style.display=r}}else if(t.createTextRange){var e=t.createTextRange();e.collapse(!0),e.moveEnd("character",o),e.moveStart("character",n),e.select()}},t.getScrollbarWidth=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document;void 0===m&&(m=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth);return(e.body||e.documentElement).removeChild(n),o-i}(e));return m},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.setOverlayPosition=function(e,t,n){(0,l.isIE8)()||(0,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.isSafari)()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")},t.getCssTransform=function(e){var t;{if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t]}return-1},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.isInput=k,t.isOutsideInput=T,t.selectElementIfAllowed=function(e){T(e.ownerDocument.activeElement)||e.select()},t.HTML_CHARACTERS=void 0;var i,r,a,s=o(n(37)),l=n(73),h=n(74);function u(e,t,n){for(var o=e;null!==o&&o!==n;){if(o.nodeType===Node.ELEMENT_NODE&&(-1<t.indexOf(o.nodeName)||-1<t.indexOf(o)))return o;o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode}return null}function c(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function d(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function f(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}if((0,h.isClassListSupported)()){var v=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},r=function(e,t){var n,o=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),0<(i=f(i)).length)if(v(o))(n=e.classList).add.apply(n,(0,s.default)(i));else for(var r=0;i&&i[r];)e.classList.add(i[r]),r+=1},a=function(e,t){var n,o=t;"string"==typeof o&&(o=o.split(" ")),0<(o=f(o)).length&&(n=e.classList).remove.apply(n,(0,s.default)(o))}}else{var g=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&g(t).test(e.className)},r=function(e,t){var n=0,o=e.className,i=t;if("string"==typeof i&&(i=i.split(" ")),""===o)o=i.join(" ");else for(;i&&i[n];)g(i[n]).test(o)||(o+=" ".concat(i[n])),n+=1;e.className=o},a=function(e,t){var n=0,o=e.className,i=t;for("string"==typeof i&&(i=i.split(" "));i&&i[n];)o=o.replace(g(i[n])," ").trim(),n+=1;e.className!==o&&(e.className=o)}}function p(e){for(var t;t=e.lastChild;)e.removeChild(t)}var m,y=/(<(.*)>|&(.*);)/;function w(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?h.isTextContentSupported?n.textContent=t:n.data=t:(p(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function C(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function E(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function S(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function k(e){return e&&(-1<["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)||"true"===e.contentEditable)}function T(e){return k(e)&&-1===e.className.indexOf("handsontableInput")&&-1===e.className.indexOf("copyPaste")}t.HTML_CHARACTERS=y},function(e,t,n){var o=n(44),i=n(26);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var o=n(282);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}},function(e,t,n){var o=n(66),i=n(275),r=Object.prototype;i!==r.toString&&o(r,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_CANCEL=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_NAMESPACE=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXT_MENU_ITEMS_NAMESPACE=void 0;var o="ContextMenu:items";t.CONTEXT_MENU_ITEMS_NAMESPACE=o;var i="".concat(o,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=i;var r="".concat(o,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=r;var a="".concat(o,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(o,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(o,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(o,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(o,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var h="".concat(o,".undo");t.CONTEXTMENU_ITEMS_UNDO=h;var d="".concat(o,".redo");t.CONTEXTMENU_ITEMS_REDO=d;var f="".concat(o,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var v="".concat(o,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=v;var g="".concat(o,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var p="".concat(o,".cut");t.CONTEXTMENU_ITEMS_CUT=p;var m="".concat(o,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=m;var y="".concat(o,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=y;var w="".concat(o,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=w;var C="".concat(o,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=C;var E="".concat(o,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=E;var S="".concat(o,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=S;var k="".concat(o,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=k;var T="".concat(o,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=T;var R="".concat(o,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=R;var _="".concat(o,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=_;var b="".concat(o,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=b;var O="".concat(o,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=O;var M="".concat(o,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=M;var N="".concat(o,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=N;var A="".concat(o,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=A;var D="".concat(o,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=D;var I="".concat(o,".borders");t.CONTEXTMENU_ITEMS_BORDERS=I;var H="".concat(o,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=H;var L="".concat(o,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=L;var P="".concat(o,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=P;var x="".concat(o,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=x;var F="".concat(o,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=F;var B="".concat(o,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(o,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;var V="".concat(o,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=V;var U="".concat(o,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=U;var Y="".concat(o,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=Y;var j="".concat(o,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=j;var z="Filters:";t.FILTERS_NAMESPACE=z;var G="".concat(z,"conditions");t.FILTERS_CONDITIONS_NAMESPACE=G;var K="".concat(G,".none");t.FILTERS_CONDITIONS_NONE=K;var X="".concat(G,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=X;var q="".concat(G,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=q;var Z="".concat(G,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var $="".concat(G,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=$;var Q="".concat(G,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=Q;var J="".concat(G,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=J;var ee="".concat(G,".contains");t.FILTERS_CONDITIONS_CONTAINS=ee;var te="".concat(G,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=te;var ne="".concat(G,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=ne;var oe="".concat(G,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=oe;var ie="".concat(G,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ie;var re="".concat(G,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=re;var ae="".concat(G,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=ae;var se="".concat(G,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=se;var le="".concat(G,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=le;var ue="".concat(G,".after");t.FILTERS_CONDITIONS_AFTER=ue;var ce="".concat(G,".before");t.FILTERS_CONDITIONS_BEFORE=ce;var he="".concat(G,".today");t.FILTERS_CONDITIONS_TODAY=he;var de="".concat(G,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=de;var fe="".concat(G,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=fe;var ve="".concat(z,"labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=ve;var ge="".concat(z,"labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ge;var pe="".concat(z,"labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=pe;var me="".concat(z,"labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=me;var ye="".concat(z,"values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=ye;var we="".concat(z,"buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=we;var Ce="".concat(z,"buttons.clear");t.FILTERS_BUTTONS_CLEAR=Ce;var Ee="".concat(z,"buttons.ok");t.FILTERS_BUTTONS_OK=Ee;var Se="".concat(z,"buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var ke="".concat(z,"buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=ke;var Te="".concat(z,"buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Te;var Re="".concat(z,"buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Re},function(e,t,n){"use strict";var o=n(21),i=n(146).indexOf,r=n(129),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,l=r("indexOf");o({target:"Array",proto:!0,forced:s||l},{indexOf:function(e,t){return s?a.apply(this,arguments)||0:i(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){"use strict";var i=n(151).charAt,o=n(85),r=n(149),a="String Iterator",s=o.set,l=o.getterFor(a);r(String,"String",function(e){s(this,{type:a,string:String(e),index:0})},function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=i(n,o),t.index+=e.length,{value:e,done:!1})})},function(o,e,t){t(5);var r=t(309);function i(e,t,n){return"undefined"!=typeof Reflect&&Reflect.get?o.exports=i=Reflect.get:o.exports=i=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},i(e,t,n||e)}o.exports=i},function(e,t,n){"use strict";var o=n(63),i=n(100),r=n(103),a=n(85),s=n(149),l="Array Iterator",u=a.set,c=a.getterFor(l);e.exports=s(Array,"Array",function(e,t){u(this,{type:l,target:o(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var o=n(35),i=n(199),r=n(15),a=n(64),s=n(34),l=s("iterator"),u=s("toStringTag"),c=r.values;for(var h in i){var d=o[h],f=d&&d.prototype;if(f){if(f[l]!==c)try{a(f,l,c)}catch(e){f[l]=c}if(f[u]||a(f,u,h),i[h])for(var v in r)if(f[v]!==r[v])try{a(f,v,r[v])}catch(e){f[v]=r[v]}}}},function(e,t,n){"use strict";var o=n(0);n(10),n(36),n(39),t.__esModule=!0,t.isNumeric=function(e){var t=(0,i.default)(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)},t.rangeEach=function(e,t,n){var o=-1;"function"==typeof t?(n=t,t=e):o=e-1;for(;++o<=t&&!1!==n(o););},t.rangeEachReverse=function(e,t,n){var o=e+1;"function"==typeof t&&(n=t,t=0);for(;--o>=t&&!1!==n(o););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10)};var i=o(n(44))},function(e,t,n){var o=n(219),i=n(288),r=n(220);e.exports=function(e,t){return o(e)||i(e,t)||r()}},function(e,t,n){"use strict";function u(e){if(!a(e))return!1;var t=e[l];return void 0!==t?!!t:r(e)}var o=n(21),i=n(27),r=n(128),a=n(42),c=n(60),h=n(52),d=n(105),f=n(157),s=n(106),l=n(34)("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",p=!i(function(){var e=[];return e[l]=!1,e.concat()[0]!==e}),m=s("concat");o({target:"Array",proto:!0,forced:!p||!m},{concat:function(e){var t,n,o,i,r,a=c(this),s=f(a,0),l=0;for(t=-1,o=arguments.length;t<o;t++)if(u(r=-1===t?a:arguments[t])){if(i=h(r.length),v<l+i)throw TypeError(g);for(n=0;n<i;n++,l++)n in r&&d(s,l,r[n])}else{if(v<=l)throw TypeError(g);d(s,l++,r)}return s.length=l,s}})},function(e,t,n){"use strict";var o=n(0);n(15),n(61),n(10),n(13),n(23),n(16),t.__esModule=!0,t.registerPlugin=function(e,t){var n=(0,a.toUpperCaseFirst)(e);i.default.getSingleton().add("construct",function(){s.has(this)||s.set(this,{});var e=s.get(this);e[n]||(e[n]=new t(this))}),i.default.getSingleton().add("afterDestroy",function(){if(s.has(this)){var e=s.get(this);(0,r.objectEach)(e,function(e){return e.destroy()}),s.delete(this)}})},t.getPlugin=function(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,a.toUpperCaseFirst)(t);return s.has(e)&&s.get(e)[n]?s.get(e)[n]:void 0},t.getRegistredPluginNames=function(e){return s.has(e)?Object.keys(s.get(e)):[]},t.getPluginName=function(e,n){var o=null;s.has(e)&&(0,r.objectEach)(s.get(e),function(e,t){e===n&&(o=t)});return o};var i=o(n(43)),r=n(4),a=n(72),s=new WeakMap},function(e,t,n){var c=n(35),h=n(91).f,d=n(64),f=n(66),v=n(145),g=n(183),p=n(124);e.exports=function(e,t){var n,o,i,r,a,s=e.target,l=e.global,u=e.stat;if(n=l?c:u?c[s]||v(s,{}):(c[s]||{}).prototype)for(o in t){if(r=t[o],i=e.noTargetGet?(a=h(n,o))&&a.value:n[o],!p(l?o:s+(u?".":"#")+o,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;g(r,i)}(e.sham||i&&i.sham)&&d(r,"sham",!0),f(n,o,r,e)}}},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(30),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(4),s=n(3),l=n(92),u=n(20),c=new WeakMap,h=null,d=function(){function n(e){var t=this;(0,i.default)(this,n),(0,a.defineGetter)(this,"hot",e,{writable:!1}),(0,a.defineGetter)(this,"t",(0,l.getTranslator)(e),{writable:!1}),c.set(this,{hooks:{}}),h=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return t.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(e){return t.onUpdateSettings(e)}),this.hot.addHook("beforeInit",function(){return t.init()})}return(0,r.default)(n,[{key:"init",value:function(){this.pluginName=(0,u.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),0<=(h=h||(0,u.getRegistredPluginNames)(this.hot)).indexOf(this.pluginName)&&h.splice(h.indexOf(this.pluginName),1),h.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){c.get(this).hooks[e]=c.get(this).hooks[e]||[];var n=c.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),c.get(this).hooks[e]=n}},{key:"removeHooks",value:function(t){var n=this;(0,s.arrayEach)(c.get(this).hooks[t]||[],function(e){n.hot.removeHook(t,e)})}},{key:"clearHooks",value:function(){var n=this,e=c.get(this).hooks;(0,a.objectEach)(e,function(e,t){return n.removeHooks(t)}),e.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,s.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var n=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,a.objectEach)(this,function(e,t){"hot"!==t&&"t"!==t&&(n[t]=null)}),delete this.t,delete this.hot}}]),n}();t.default=d},function(e,t,n){"use strict";function o(t){return function(e){return t(this,arguments.length?e:void 0)}}var i,r=n(35),a=n(152),s=n(126),l=n(127),u=n(198),c=n(42),h=n(85).enforce,d=n(182),f=!r.ActiveXObject&&"ActiveXObject"in r,v=Object.isExtensible,g=e.exports=l("WeakMap",o,u,!0,!0);if(d&&f){i=u.getConstructor(o,"WeakMap",!0),s.REQUIRED=!0;var p=g.prototype,m=p.delete,y=p.has,w=p.get,C=p.set;a(p,{delete:function(e){if(!c(e)||v(e))return m.call(this,e);var t=h(this);return t.frozen||(t.frozen=new i),m.call(this,e)||t.frozen.delete(e)},has:function(e){if(!c(e)||v(e))return y.call(this,e);var t=h(this);return t.frozen||(t.frozen=new i),y.call(this,e)||t.frozen.has(e)},get:function(e){if(!c(e)||v(e))return w.call(this,e);var t=h(this);return t.frozen||(t.frozen=new i),y.call(this,e)?w.call(this,e):t.frozen.get(e)},set:function(e,t){if(c(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new i),y.call(this,e)?C.call(this,e,t):n.frozen.set(e,t)}else C.call(this,e,t);return this}})}},function(e,t,n){"use strict";var o=n(0);n(30),t.__esModule=!0,t.getListenersCounter=function(){return l},t.default=void 0;var i=o(n(1)),r=o(n(2)),u=n(6),c=n(4),h=n(74),d=n(33),l=0,f=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;(0,i.default)(this,t),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,r.default)(t,[{key:"addEventListener",value:function(e,t,n,o){var i=this,r=3<arguments.length&&void 0!==o&&o,a=this.context;function s(e){n.call(this,function(e,t){var n,o,i,r,a,s="HOT-TABLE";t.isTargetWebComponent=!1,t.realTarget=t.target;var l=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){l.apply(this),(0,d.stopImmediatePropagation)(this)},!f.isHotTableEnv)return t;t=(0,u.polymerWrap)(t),a=t.path?t.path.length:0;for(;a;){if(a-=1,t.path[a].nodeName===s)n=!0;else if(n&&t.path[a].shadowRoot){r=t.path[a];break}0!==a||r||(r=t.path[a])}r=r||t.target;t.isTargetWebComponent=!0,(0,h.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:((0,c.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&((0,c.hasOwnProperty)(e,"hot")?o=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?o=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(o=e.wtTable.TABLE.parentNode.parentNode),i=(0,u.closest)(t.target,[s],o),t.realTarget=i&&o.querySelector(s)||t.target);return Object.defineProperty(t,"target",{get:function(){return(0,u.polymerWrap)(r)},enumerable:!0,configurable:!0}),t}(a,e))}return"boolean"==typeof r||(0,h.isPassiveEventSupported)()||(r=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:s,options:r,eventManager:this}),e.addEventListener(t,s,r),l+=1,function(){i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n,o){for(var i,r=3<arguments.length&&void 0!==o&&o,a=this.context.eventListeners.length;a;)if(a-=1,(i=this.context.eventListeners[a]).event===t&&i.element===e){if(n&&n!==i.callback)continue;if(r&&i.eventManager!==this)continue;this.context.eventListeners.splice(a,1),i.element.removeEventListener(i.event,i.callbackProxy,i.options),l-=1}}},{key:"clearEvents",value:function(e){var t=0<arguments.length&&void 0!==e&&e;if(this.context)for(var n=this.context.eventListeners.length;n;){n-=1;var o=this.context.eventListeners[n];o&&this.removeEventListener(o.element,o.event,o.callback,t)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,o=e;n||(o=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var i,r={bubbles:!0,cancelable:"mousemove"!==t,view:o,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(i=n.createEvent("MouseEvents")).initMouseEvent(t,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget||n.body.parentNode):i=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on".concat(t),i)}}]),t}();var a=f;t.default=a},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.Renderer=void 0;var r=i(n(205));t.ViewportColumnsCalculator=r.default;var a=i(n(206));t.ViewportRowsCalculator=a.default;var s=i(n(108));t.CellCoords=s.default;var l=i(n(207));t.CellRange=l.default;var u=i(n(208));t.ColumnFilter=u.default;var c=i(n(209));t.RowFilter=c.default;var h=i(n(283));t.LeftOverlay=h.default;var d=i(n(302));t.TopOverlay=d.default;var f=i(n(303));t.TopLeftCornerOverlay=f.default;var v=i(n(304));t.BottomOverlay=v.default;var g=i(n(305));t.BottomLeftCornerOverlay=g.default;var p=i(n(225));t.Border=p.default;var m=i(n(213));t.default=m.default,t.Core=m.default;var y=i(n(214));t.Event=y.default;var w=i(n(215));t.Overlays=w.default;var C=i(n(216));t.Scroll=C.default;var E=i(n(306));t.Selection=E.default;var S=i(n(217));t.Settings=S.default;var k=i(n(218));t.Table=k.default;var T=o(n(221));t.Renderer=T;var R=n(135);t.OrderView=R.OrderView,t.SharedOrderView=R.SharedOrderView;var _=i(n(224));t.Viewport=_.default;var b=n(24);t.getListenersCounter=b.getListenersCounter},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var o=n(0);n(10),n(36),n(284),n(211),n(39),n(48),t.__esModule=!0,t.stringify=function(e){var t;switch((0,r.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t},t.isDefined=function(e){return void 0!==e},t.isUndefined=f,t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t._injectProductInfo=function(e,t){var n,o=!g(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="7.1.1",a="invalid",s="invalid",l=function(e){var t=[][p],n=t;if(e[p]!==C("Z"))return!1;for(var o="",i="B<H4P+".split(""),r=C(i.shift());r;r=C(i.shift()||"A"))--r<""[p]?n|=(y("".concat(y(m(o)+(m(w(e,Math.abs(r),2))+[]).padStart(2,"0"))))%97||2)>>1:o=w(e,r,r?1===i[p]?9:8:6);return n===t}(e=E(e||""));if(o||i||l)if(l){var u=(0,v.default)("12/08/2019","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),h=S(e);if(n=(0,v.default)(864e5*(h+1),"x").format("MMMM DD, YYYY"),h<c){var d=(0,v.default)().diff(u,"days");a=d<=1?"valid":"expired",s=d<=15?"valid":"expired"}else s=a="valid"}else s=i?(a="non_commercial","valid"):a="invalid";else s=a="missing";k()&&(s=a="valid");if(!T&&"valid"!==a){R[a]({keyValidityDate:n,hotVersion:r})&&console["non_commercial"===a?"info":"warn"](R[a]({keyValidityDate:n,hotVersion:r})),T=!0}if("valid"!==s&&t.parentNode){if(_[s]({keyValidityDate:n,hotVersion:r})){var f=document.createElement("div");f.id="hot-display-license-info",f.innerHTML=_[s]({keyValidityDate:n,hotVersion:r}),t.parentNode.insertBefore(f,t.nextSibling)}}};var i=o(n(69)),r=o(n(44)),v=o(n(70)),a=n(71);function s(){var e=(0,i.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.']);return s=function(){return e},e}function l(){var e=(0,i.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.']);return l=function(){return e},e}function u(){var e=(0,i.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.']);return u=function(){return e},e}function c(){var e=(0,i.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."]);return c=function(){return e},e}function h(){var e=(0,i.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."]);return h=function(){return e},e}function d(){var e=(0,i.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."]);return d=function(){return e},e}function f(e){return void 0===e}function g(e){return null===e||""===e||f(e)}var p="length",m=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},w=function(e,t,n){return e.substr(t,n)},C=function(e){return e.codePointAt(0)-65},E=function(e){return"".concat(e).replace(/\-/g,"")},S=function(e){return m(w(E(e),m("12"),C("F")))/(m(w(E(e),C("B"),~~![][p]))||9)},k=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},T=!1,R={invalid:function(){return(0,a.toSingleLine)(d())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,a.toSingleLine)(h(),t,n,t)},missing:function(){return(0,a.toSingleLine)(c())},non_commercial:function(){return""}},_={invalid:function(){return(0,a.toSingleLine)(u())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,a.toSingleLine)(l(),t,n,t)},missing:function(){return(0,a.toSingleLine)(s())},non_commercial:function(){return""}}},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.getCondition=function(e,t){if(!a[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=a[e],o=n.condition,i=n.descriptor,r=t;i.inputValuesDecorator&&(r=i.inputValuesDecorator(r));return function(e){return o.apply(e.meta.instance,[].concat([e],[r]))}},t.getConditionDescriptor=function(e){if(a[e])return a[e].descriptor;throw Error('Filter condition "'.concat(e,'" does not exist.'))},t.registerCondition=function(e,t,n){n.key=e,a[e]={condition:t,descriptor:n}},t.conditions=void 0;var a={};t.conditions=a},function(e,t,n){"use strict";var o=n(21),d=n(123),f=n(86),v=n(52),g=n(60),p=n(157),m=n(105),i=n(106),y=Math.max,w=Math.min;o({target:"Array",proto:!0,forced:!i("splice")},{splice:function(e,t){var n,o,i,r,a,s,l=g(this),u=v(l.length),c=d(e,u),h=arguments.length;if(0===h?n=o=0:o=1===h?(n=0,u-c):(n=h-2,w(y(f(t),0),u-c)),9007199254740991<u+n-o)throw TypeError("Maximum allowed length exceeded");for(i=p(l,o),r=0;r<o;r++)(a=c+r)in l&&m(i,r,l[a]);if(n<(i.length=o)){for(r=c;r<u-o;r++)s=r+n,(a=r+o)in l?l[s]=l[a]:delete l[s];for(r=u;u-o+n<r;r--)delete l[r-1]}else if(o<n)for(r=u-o;c<r;r--)s=r+n-1,(a=r+o-1)in l?l[s]=l[a]:delete l[s];for(r=0;r<n;r++)l[r+c]=arguments[r+2];return l.length=u-o+n,i}})},function(e,t,n){"use strict";var o=n(21),i=n(146).includes,r=n(100);o({target:"Array",proto:!0},{includes:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),r("includes")},function(e,t,n){function o(i){return function(e,t){var n=2<arguments.length,o=n?s.call(arguments,2):void 0;return i(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,t)}}var i=n(21),r=n(35),a=n(210),s=[].slice;i({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:o(r.setTimeout),setInterval:o(r.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0},t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.stopPropagation=function(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.pageX=function(e){if(e.pageX)return e.pageX;var t=e.target.ownerDocument.defaultView;return e.clientX+(0,o.getWindowScrollLeft)(t)},t.pageY=function(e){if(e.pageY)return e.pageY;var t=e.target.ownerDocument.defaultView;return e.clientY+(0,o.getWindowScrollTop)(t)},t.isRightClick=function(e){return 2===e.button},t.isLeftClick=function(e){return 0===e.button};var o=n(6)},function(e,t,n){var o=n(35),i=n(97),r=n(121),a=n(188),s=o.Symbol,l=i("wks");e.exports=function(e){return l[e]||(l[e]=a&&s[e]||(a?s:r)("Symbol."+e))}},function(e,t){function n(e){return e&&e.Math==Math&&e}var o="object";e.exports=n(typeof globalThis==o&&globalThis)||n(typeof window==o&&window)||n(typeof self==o&&self)||n(typeof global==o&&global)||Function("return this")()},function(e,t,n){"use strict";var o=n(66),i=n(46),r=n(27),a=n(158),s="toString",l=RegExp.prototype,u=l[s],c=r(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),h=u.name!=s;(c||h)&&o(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)},{unsafe:!0})},function(e,t,n){var o=n(277),i=n(202),r=n(278);e.exports=function(e){return o(e)||i(e)||r()}},function(e,t,n){"use strict";var o=n(21),i=n(163),r=n(49);o({target:"String",proto:!0,forced:!n(164)("includes")},{includes:function(e,t){return!!~String(r(this)).indexOf(i(e),1<arguments.length?t:void 0)}})},function(e,t,n){"use strict";var o=n(130),T=n(46),d=n(60),R=n(52),_=n(86),r=n(49),b=n(161),O=n(131),M=Math.max,N=Math.min,f=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;o("replace",2,function(i,E,S){return[function(e,t){var n=r(this),o=null==e?void 0:e[i];return void 0!==o?o.call(e,n,t):E.call(String(n),e,t)},function(e,t){var n=S(E,e,this,t);if(n.done)return n.value;var o=T(e),i=String(this),r="function"==typeof t;r||(t=String(t));var a=o.global;if(a){var s=o.unicode;o.lastIndex=0}for(var l=[];;){var u=O(o,i);if(null===u)break;if(l.push(u),!a)break;""===String(u[0])&&(o.lastIndex=b(i,R(o.lastIndex),s))}for(var c,h="",d=0,f=0;f<l.length;f++){u=l[f];for(var v=String(u[0]),g=M(N(_(u.index),i.length),0),p=[],m=1;m<u.length;m++)p.push(void 0===(c=u[m])?c:String(c));var y=u.groups;if(r){var w=[v].concat(p,g,i);void 0!==y&&w.push(y);var C=String(t.apply(void 0,w))}else C=k(v,i,g,p,y,t);d<=g&&(h+=i.slice(d,g)+C,d=g+v.length)}return h+i.slice(d)}];function k(r,a,s,l,u,e){var c=s+r.length,h=l.length,t=g;return void 0!==u&&(u=d(u),t=v),E.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return r;case"`":return a.slice(0,s);case"'":return a.slice(c);case"<":n=u[t.slice(1,-1)];break;default:var o=+t;if(0==o)return e;if(h<o){var i=f(o/10);return 0===i?e:i<=h?void 0===l[i-1]?t.charAt(1):l[i-1]+t.charAt(1):e}n=l[o-1]}return void 0===n?"":n})}})},function(e,t,n){"use strict";var o=n(21),u=n(42),c=n(128),h=n(123),d=n(52),f=n(63),v=n(105),i=n(106),g=n(34)("species"),p=[].slice,m=Math.max;o({target:"Array",proto:!0,forced:!i("slice")},{slice:function(e,t){var n,o,i,r=f(this),a=d(r.length),s=h(e,a),l=h(void 0===t?a:t,a);if(c(r)&&("function"!=typeof(n=r.constructor)||n!==Array&&!c(n.prototype)?u(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(r,s,l);for(o=new(void 0===n?Array:n)(m(l-s,0)),i=0;s<l;s++,i++)s in r&&v(o,i,r[s]);return o.length=i,o}})},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(g(e))return v(e);throw Error('No registered renderer found under "'.concat(e,'" name'))},t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.registerRenderer=void 0;var i=o(n(77)),r=o(n(319)),a=o(n(320)),s=o(n(321)),l=o(n(322)),u=o(n(323)),c=o(n(325)),h=o(n(326)),d=(0,i.default)("renderers"),f=d.register,v=d.getItem,g=d.hasItem,p=d.getNames,m=d.getValues;t.getRegisteredRenderers=m,t.getRegisteredRendererNames=p,t.hasRenderer=g,(t.registerRenderer=f)("base",r.default),f("autocomplete",a.default),f("checkbox",s.default),f("html",l.default),f("numeric",u.default),f("password",c.default),f("text",h.default)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";var o=n(0);n(12),n(30),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),s=n(3),a=n(4),l=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","modifyGetCellCoords","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","skipLengthCache","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions"],u=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,r.default)(e,null,[{key:"getSingleton",value:function(){return c}}]),(0,r.default)(e,[{key:"createEmptyBucket",value:function(){var t=Object.create(null);return(0,s.arrayEach)(l,function(e){return t[e]=[]}),t}},{key:"getBucket",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;return t?(t.pluginHookBucket||(t.pluginHookBucket=this.createEmptyBucket()),t.pluginHookBucket):this.globalBucket}},{key:"add",value:function(n,o,e){var t=this,i=2<arguments.length&&void 0!==e?e:null;if(Array.isArray(o))(0,s.arrayEach)(o,function(e){return t.add(n,e,i)});else{var r=this.getBucket(i);if(void 0===r[n]&&(this.register(n),r[n]=[]),o.skip=!1,-1===r[n].indexOf(o)){var a=!1;o.initialHook&&(0,s.arrayEach)(r[n],function(e,t){if(e.initialHook)return r[n][t]=o,!(a=!0)}),a||r[n].push(o)}}return this}},{key:"once",value:function(t,e,n){var o=this,i=2<arguments.length&&void 0!==n?n:null;Array.isArray(e)?(0,s.arrayEach)(e,function(e){return o.once(t,e,i)}):(e.runOnce=!0,this.add(t,e,i))}},{key:"remove",value:function(e,t,n){var o=2<arguments.length&&void 0!==n?n:null,i=this.getBucket(o);return void 0!==i[e]&&0<=i[e].indexOf(t)&&(t.skip=!0)}},{key:"has",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,o=this.getBucket(n);return!(void 0===o[e]||!o[e].length)}},{key:"run",value:function(e,t,n,o,i,r,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c<u;)if(l[c]&&!l[c].skip){var h=l[c].call(e,n,o,i,r,a,s);void 0!==h&&(n=h),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var d=this.getBucket(e)[t],f=d?d.length:0,v=0;if(f)for(;v<f;)if(d[v]&&!d[v].skip){var g=d[v].call(e,n,o,i,r,a,s);void 0!==g&&(n=g),d[v]&&d[v].runOnce&&this.remove(t,d[v],e),v+=1}else v+=1;return n}},{key:"destroy",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;(0,a.objectEach)(this.getBucket(t),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||l.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&l.splice(l.indexOf(e),1)}},{key:"isRegistered",value:function(e){return 0<=l.indexOf(e)}},{key:"getRegistered",value:function(){return l}}]),e}(),c=new u;var h=u;t.default=h},function(t,e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(e){return n(e)}:t.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(e)}t.exports=o},function(e,t,n){var o=n(27);e.exports=!o(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(42);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var o=n(21),i=n(87).filter;o({target:"Array",proto:!0,forced:!n(106)("filter")},{filter:function(e,t){return i(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){"use strict";var o=n(130),h=n(160),w=n(46),d=n(49),C=n(280),E=n(161),S=n(52),k=n(131),f=n(159),i=n(27),v=[].push,T=Math.min,R=4294967295,_=!i(function(){return!RegExp(R,"y")});o("split",2,function(i,p,m){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=String(d(this)),o=void 0===t?R:t>>>0;if(0==o)return[];if(void 0===e)return[n];if(!h(e))return p.call(n,e,o);for(var i,r,a,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,c=new RegExp(e.source,l+"g");(i=f.call(c,n))&&!(u<(r=c.lastIndex)&&(s.push(n.slice(u,i.index)),1<i.length&&i.index<n.length&&v.apply(s,i.slice(1)),a=i[0].length,u=r,s.length>=o));)c.lastIndex===i.index&&c.lastIndex++;return u===n.length?!a&&c.test("")||s.push(""):s.push(n.slice(u)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)}:p,[function(e,t){var n=d(this),o=null==e?void 0:e[i];return void 0!==o?o.call(e,n,t):y.call(String(n),e,t)},function(e,t){var n=m(y,e,this,t,y!==p);if(n.done)return n.value;var o=w(e),i=String(this),r=C(o,RegExp),a=o.unicode,s=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(_?"y":"g"),l=new r(_?o:"^(?:"+o.source+")",s),u=void 0===t?R:t>>>0;if(0==u)return[];if(0===i.length)return null===k(l,i)?[i]:[];for(var c=0,h=0,d=[];h<i.length;){l.lastIndex=_?h:0;var f,v=k(l,_?i:i.slice(h));if(null===v||(f=T(S(l.lastIndex+(_?0:h)),i.length))===c)h=E(i,h,a);else{if(d.push(i.slice(c,h)),d.length===u)return d;for(var g=1;g<=v.length-1;g++)if(d.push(v[g]),d.length===u)return d;h=c=f}}return d.push(i.slice(c)),d}]},!_)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(45),i=n(180),r=n(46),a=n(96),s=Object.defineProperty;t.f=o?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(86),i=Math.min;e.exports=function(e){return 0<e?i(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(21),i=n(118),r=n(63),a=n(129),s=[].join,l=i!=Object,u=a("join",",");o({target:"Array",proto:!0,forced:l||u},{join:function(e){return s.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";n(31),n(12),n(38),n(48),t.__esModule=!0,t.isPrintableChar=function(e){return 32===e||48<=e&&e<=57||96<=e&&e<=111||186<=e&&e<=192||219<=e&&e<=222||226<=e||65<=e&&e<=90},t.isMetaKey=function(e){return-1!==[r.ARROW_DOWN,r.ARROW_UP,r.ARROW_LEFT,r.ARROW_RIGHT,r.HOME,r.END,r.DELETE,r.BACKSPACE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.TAB,r.PAGE_DOWN,r.PAGE_UP,r.ENTER,r.ESCAPE,r.SHIFT,r.CAPS_LOCK,r.ALT].indexOf(e)},t.isCtrlKey=function(e){var t=[];navigator.platform.includes("Mac")?t.push(r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX):t.push(r.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)},t.isKey=function(t,e){var n=e.split("|"),o=!1;return(0,i.arrayEach)(n,function(e){if(t===r[e])return!(o=!0)}),o},t.KEY_CODES=void 0;var i=n(3),r={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88};t.KEY_CODES=r},function(e,t,n){var o=n(45),i=n(51).f,r=Function.prototype,a=r.toString,s=/^\s*function ([^ (]*)/;!o||"name"in r||i(r,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.RegisteredEditor=k,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)p.get(e)||T(null,e),n=p.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=w(e)}if(n)return n.getInstance(t);throw Error('No editor registered under name "'.concat(e,'"'))},t.registerEditor=T,t.getEditor=function(e){if(C(e))return w(e).getConstructor();throw Error('No registered editor found under "'.concat(e,'" name'))},t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=void 0;var i=o(n(77)),r=o(n(43)),a=o(n(107)),s=o(n(227)),l=o(n(311)),u=o(n(312)),c=o(n(315)),h=o(n(228)),d=o(n(316)),f=o(n(317)),v=o(n(318)),g=o(n(110)),p=new WeakMap,m=(0,i.default)("editors"),y=m.register,w=m.getItem,C=m.hasItem,E=m.getNames,S=m.getValues;function k(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},r.default.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function T(e,t){var n=new k(t);"string"==typeof e&&y(e,n),p.set(t,n)}t.getRegisteredEditors=S,t.getRegisteredEditorNames=E,t.hasEditor=C,T("base",a.default),T("autocomplete",s.default),T("checkbox",l.default),T("date",u.default),T("dropdown",c.default),T("handsontable",h.default),T("numeric",d.default),T("password",f.default),T("select",v.default),T("text",g.default)},function(e,t,n){var o=n(21),i=n(279);o({target:"Array",stat:!0,forced:!n(197)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";t.__esModule=!0,t.log=function(){var e;(0,o.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,o.isDefined)(console)&&(e=console).warn.apply(e,arguments)},t.info=function(){var e;(0,o.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.error=function(){var e;(0,o.isDefined)(console)&&(e=console).error.apply(e,arguments)};var o=n(28)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(3),o=n(4),i={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this._localHooks[e]&&(0,r.arrayEach)(this._localHooks[e],function(e){return e.apply(t,o)})},clearLocalHooks:function(){return this._localHooks={},this}};(0,o.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){var o=n(49);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(21),i=n(60),r=n(102);o({target:"Object",stat:!0,forced:n(27)(function(){r(1)})},{keys:function(e){return r(i(e))}})},function(e,t,n){"use strict";n(19),n(12),n(40),n(55),n(39),t.__esModule=!0,t.normalizeSelection=function(e){return(0,i.arrayMap)(e,function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}})},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isSelectionDisabled=function(e){return(0,o.hasClass)(e,"htSelectionDisabled")},t.getValidSelection=function(e){var t=e.getSelected();if(!t)return null;if(t[0]<0)return null;return t},t.prepareVerticalAlignClass=l,t.prepareHorizontalAlignClass=u,t.getAlignmentClasses=function(e,r){var a={};return(0,i.arrayEach)(e,function(e){for(var t=e.from,n=e.to,o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++)a[o]||(a[o]=[]),a[o][i]=r(o,i)}),a},t.align=function(e,r,a,s,l){(0,i.arrayEach)(e,function(e){var t=e.from,n=e.to;if(t.row===n.row&&t.col===n.col)c(t.row,t.col,r,a,s,l);else for(var o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++)c(o,i,r,a,s,l)})},t.checkSelectionConsistency=function(e,n){var o=!1;Array.isArray(e)&&(0,i.arrayEach)(e,function(e){return e.forAll(function(e,t){if(n(e,t))return!(o=!0)}),o});return o},t.markLabelAsSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.filterSeparators=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.KEY,n=e.slice(0);return n=function(e){var n=[];return(0,i.arrayEach)(e,function(e,t){0<t?n[n.length-1].name!==e.name&&n.push(e):n.push(e)}),n}(n=function(e,t){var n=e.slice(0);return n.reverse(),(n=a(n,t)).reverse(),n}(n=a(n,t),t))};var i=n(3),o=n(6),r=n(172);function l(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function u(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function c(e,t,n,o,i,r){var a=i(e,t),s=o;a.className&&(s="vertical"===n?l(a.className,o):u(a.className,o)),r(e,t,"className",s)}function a(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}},function(e,t,n){var o=n(118),i=n(49);e.exports=function(e){return o(i(e))}},function(e,t,n){var o=n(45),i=n(51),r=n(95);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=n(21),i=n(154),r=n(60),a=n(27),s=n(129),l=[].sort,u=[1,2,3],c=a(function(){u.sort(void 0)}),h=a(function(){u.sort(null)}),d=s("sort");o({target:"Array",proto:!0,forced:c||!h||d},{sort:function(e){return void 0===e?l.call(r(this)):l.call(r(this),i(e))}})},function(e,t,n){var s=n(35),o=n(97),l=n(64),u=n(50),c=n(145),i=n(181),r=n(85),a=r.get,h=r.enforce,d=String(i).split("toString");o("inspectSource",function(e){return i.call(e)}),(e.exports=function(e,t,n,o){var i=!!o&&!!o.unsafe,r=!!o&&!!o.enumerable,a=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||u(n,"name")||l(n,"name",t),h(n).source=d.join("string"==typeof t?t:"")),e!==s?(i?!a&&e[t]&&(r=!0):delete e[t],r?e[t]=n:l(e,t,n)):r?e[t]=n:c(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&a(this).source||i.call(this)})},function(e,t,n){"use strict";var o=n(127),i=n(200);e.exports=o("Map",function(t){return function(e){return t(this,arguments.length?e:void 0)}},i,!0)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t=t||e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){e.exports=n},function(e,t,n){"use strict";n(39),n(132),t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return(0,i.arrayReduce)(e,function(e,t,n){return e+t.replace(/(?:\r?\n\s+)/g,"")+(o[n]?o[n]:"")},"").trim()};var i=n(3)},function(e,t,n){"use strict";n(12),n(10),n(36),n(39),t.__esModule=!0,t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i=n.length;for(;i;){i-=1;var r=(0,a.stringify)(n[i]).toLowerCase();-1===e.indexOf(r)&&e.push(r)}return 1===e.length},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.substitute=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,t){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===n[t]?"":n[t]})},t.stripTags=function(e){return"".concat(e).replace(o,"")};var a=n(28);var o=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi},function(e,t,n){"use strict";t.__esModule=!0,t.setBrowserMeta=i,t.isChrome=function(){return a.chrome.value},t.isEdge=function(){return a.edge.value},t.isIE=function(){return a.ie.value},t.isIE8=function(){return a.ie8.value},t.isIE9=function(){return a.ie9.value},t.isMSBrowser=function(){return a.ie.value||a.edge.value},t.isMobileBrowser=function(){return a.mobile.value},t.isSafari=function(){return a.safari.value};function o(n){var o={value:!1,test:function(e,t){o.value=n(e,t)}};return o}var r=n(4),a={chrome:o(function(e,t){return/Chrome/.test(e)&&/Google/.test(t)}),edge:o(function(e){return/Edge/.test(e)}),ie:o(function(e){return/Trident/.test(e)}),ie8:o(function(){return!document.createTextNode("test").textContent}),ie9:o(function(){return!!document.documentMode}),mobile:o(function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}),safari:o(function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)})};function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,o=e.vendor,i=void 0===o?navigator.vendor:o;(0,r.objectEach)(a,function(e){(0,e.test)(n,i)})}i()},function(e,t,n){"use strict";var o=n(0);n(10),n(36),n(134),n(32),t.__esModule=!0,t.requestAnimationFrame=function(e){return c.call(window,e)},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.cancelAnimationFrame=function(e){h.call(window,e)},t.isTouchSupported=function(){return"ontouchstart"in window},t.isWebComponentSupportedNatively=function(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))},t.hasCaptionProblem=function(){void 0===i&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),i=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return i},t.getComparisonFunction=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;r="object"===("undefined"==typeof Intl?"undefined":(0,s.default)(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:t<e?-1:1};return r},t.isPassiveEventSupported=function(){if(void 0!==a)return a;try{var e={get passive(){a=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){a=!1}return a};for(var i,r,a,s=o(n(44)),l=0,u=["ms","moz","webkit","o"],c=window.requestAnimationFrame,h=window.cancelAnimationFrame,d=0;d<u.length&&!c;++d)c=window["".concat(u[d],"RequestAnimationFrame")],h=window["".concat(u[d],"CancelAnimationFrame")]||window["".concat(u[d],"CancelRequestAnimationFrame")];c=c||function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),o=window.setTimeout(function(){e(t+n)},n);return l=t+n,o},h=h||function(e){clearTimeout(e)}},function(e,t,n){"use strict";n(19),n(40),n(32),t.__esModule=!0,t.isFunction=function(e){return"function"==typeof e},t.throttle=a,t.throttleAfterHits=function(o){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:10,i=a(o,e),r=t;function n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r?(r-=1,o.apply(this,t)):i.apply(this,t)}return n.clearHits=function(){r=t},n},t.debounce=function(i){var r,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200,s=null;return function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s&&clearTimeout(s),s=setTimeout(function(){r=i.apply(e,n)},a),r}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,function(e,t){return t(e)},o.apply(this,t))}},t.partial=function(o){for(var e=arguments.length,i=new Array(1<e?e-1:0),t=1;t<e;t++)i[t-1]=arguments[t];return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(this,i.concat(t))}},t.curry=function(a){var s=a.length;return function i(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.concat(t);return o.length>=s?a.apply(this,o):i(o)}}([])},t.curryRight=function(a){var s=a.length;return function i(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.concat(t.reverse());return o.length>=s?a.apply(this,o):i(o)}}([])};var r=n(3);function a(s){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200,u=0,c={lastCallThrottled:!0},h=null;return function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i=Date.now(),r=!1;c.lastCallThrottled=!0,u||(u=i,r=!0);var a=l-(i-u);return r?(c.lastCallThrottled=!1,s.apply(this,n)):(h&&clearTimeout(h),h=setTimeout(function(){c.lastCallThrottled=!1,s.apply(e,n),h=void(u=0)},a)),c}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(0);n(15),n(67),n(10),n(13),n(16),t.__esModule=!0,t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);var n=r.get(e);return{register:function(e,t){n.set(e,t)},getItem:function(e){return n.get(e)},hasItem:function(e){return n.has(e)},getNames:function(){return(0,i.default)(n.keys())},getValues:function(){return(0,i.default)(n.values())}}},t.collection=void 0;var i=o(n(37)),r=new Map;t.collection=r},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(d(e))return h(e);throw Error('No registered validator found under "'.concat(e,'" name'))},t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.registerValidator=void 0;var i=o(n(77)),r=o(n(327)),a=o(n(328)),s=o(n(330)),l=o(n(331)),u=(0,i.default)("validators"),c=u.register,h=u.getItem,d=u.hasItem,f=u.getNames,v=u.getValues;t.getRegisteredValidators=v,t.getRegisteredValidatorNames=f,t.hasValidator=d,(t.registerValidator=c)("autocomplete",r.default),c("date",a.default),c("numeric",s.default),c("time",l.default)},function(e,t,n){"use strict";function o(e){var t,n,o,i,r,a,s,l,u=h(e,!1);if("string"==typeof u&&2<u.length)if(43===(t=(u=m(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:o=2,i=49;break;case 79:case 111:o=8,i=55;break;default:return+u}for(a=(r=u.slice(2)).length,s=0;s<a;s++)if((l=r.charCodeAt(s))<48||i<l)return NaN;return parseInt(r,o)}return+u}var i=n(45),r=n(35),a=n(124),s=n(66),l=n(50),u=n(76),c=n(156),h=n(96),d=n(27),f=n(101),v=n(99).f,g=n(91).f,p=n(51).f,m=n(203).trim,y="Number",w=r[y],C=w.prototype,E=u(f(C))==y;if(a(y,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var S,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(E?d(function(){C.valueOf.call(n)}):u(n)!=y)?c(new w(o(t)),n,k):o(t)},T=i?v(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),R=0;T.length>R;R++)l(w,S=T[R])&&!l(k,S)&&p(k,S,g(w,S));(k.prototype=C).constructor=k,s(r,y,k)}},function(e,t,n){n(21)({target:"Number",stat:!0},{isInteger:n(341)})},function(e,t,n){"use strict";var o=n(127),i=n(200);e.exports=o("Set",function(t){return function(e){return t(this,arguments.length?e:void 0)}},i)},function(e,t,n){"use strict";var o=n(0),i=n(9);n(12),t.__esModule=!0,t.predefinedItems=function(){var n={};return(0,a.objectEach)(S,function(e,t){n[t]=e()}),n},t.addItem=function(e,t){-1===E.indexOf(e)&&(S[e]=t)},t.ITEMS=t.UNDO=t.NO_ITEMS=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var r=o(n(68)),a=n(4),s=i(n(391));t.ALIGNMENT=s.KEY;var l=i(n(392));t.CLEAR_COLUMN=l.KEY;var u=i(n(393));t.COLUMN_LEFT=u.KEY;var c=i(n(394));t.COLUMN_RIGHT=c.KEY;var h=i(n(395));t.READ_ONLY=h.KEY;var d=i(n(396));t.REDO=d.KEY;var f=i(n(397));t.REMOVE_COLUMN=f.KEY;var v=i(n(398));t.REMOVE_ROW=v.KEY;var g=i(n(399));t.ROW_ABOVE=g.KEY;var p=i(n(400));t.ROW_BELOW=p.KEY;var m=i(n(172));t.SEPARATOR=m.KEY;var y=i(n(401));t.NO_ITEMS=y.KEY;var w,C=i(n(402));t.UNDO=C.KEY;var E=[g.KEY,p.KEY,u.KEY,c.KEY,l.KEY,v.KEY,f.KEY,C.KEY,d.KEY,h.KEY,s.KEY,m.KEY,y.KEY];t.ITEMS=E;var S=(w={},(0,r.default)(w,m.KEY,m.default),(0,r.default)(w,y.KEY,y.default),(0,r.default)(w,g.KEY,g.default),(0,r.default)(w,p.KEY,p.default),(0,r.default)(w,u.KEY,u.default),(0,r.default)(w,c.KEY,c.default),(0,r.default)(w,l.KEY,l.default),(0,r.default)(w,v.KEY,v.default),(0,r.default)(w,f.KEY,f.default),(0,r.default)(w,C.KEY,C.default),(0,r.default)(w,d.KEY,d.default),(0,r.default)(w,h.KEY,h.default),(0,r.default)(w,s.KEY,s.default),w)},function(e,t,n){"use strict";function o(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}n(134),n(39),t.__esModule=!0,t.isFormulaExpression=function(e){return"string"==typeof e&&2<=e.length&&"="===e.charAt(0)},t.isFormulaExpressionEscaped=o,t.unescapeFormulaExpression=function(e){return o(e)?e.substr(1):e},t.toUpperCaseFormula=function(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],o=-1;return e.toUpperCase().replace(t,function(){return n[o+=1]})},t.cellCoordFactory=function(t,n){return function(e){return{row:"row"===t?n:e.row,column:"column"===t?n:e.column}}}},function(e,t,n){"use strict";var o=n(0);n(12),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(5)),s=o(n(2)),l=o(n(8)),u=n(115),c=n(3),h=o(n(265)),d=[1,2,3],f=function(e){function o(e,t){var n;return(0,i.default)(this,o),(n=(0,r.default)(this,(0,a.default)(o).call(this,e,t))).precedents=[],n.value=null,n.error=null,n.state=o.STATE_UP_TO_DATE,n}return(0,l.default)(o,e),(0,s.default)(o,null,[{key:"STATE_OUT_OFF_DATE",get:function(){return 1}},{key:"STATE_COMPUTING",get:function(){return 2}},{key:"STATE_UP_TO_DATE",get:function(){return 3}}]),(0,s.default)(o,[{key:"setValue",value:function(e){this.value=e}},{key:"getValue",value:function(){return this.value}},{key:"setError",value:function(e){this.error=e}},{key:"getError",value:function(){return this.error}},{key:"hasError",value:function(){return null!==this.error}},{key:"setState",value:function(e){if(-1===d.indexOf(e))throw Error("Unrecognized state: ".concat(e));this.state=e}},{key:"isState",value:function(e){return this.state===e}},{key:"addPrecedent",value:function(e){if(this.isEqual(e))throw Error(u.ERROR_REF);this.hasPrecedent(e)||this.precedents.push(e)}},{key:"removePrecedent",value:function(t){if(this.isEqual(t))throw Error(u.ERROR_REF);this.precedents=(0,c.arrayFilter)(this.precedents,function(e){return!e.isEqual(t)})}},{key:"clearPrecedents",value:function(){this.precedents.length=0}},{key:"getPrecedents",value:function(){return this.precedents}},{key:"hasPrecedents",value:function(){return 0<this.precedents.length}},{key:"hasPrecedent",value:function(t){return 0<(0,c.arrayFilter)(this.precedents,function(e){return e.isEqual(t)}).length}}]),o}(h.default);t.default=f},function(e,t,n){var o,i,r,a=n(182),s=n(35),l=n(42),u=n(64),c=n(50),h=n(120),d=n(98),f=s.WeakMap;if(a){var v=new f,g=v.get,p=v.has,m=v.set;o=function(e,t){return m.call(v,e,t),t},i=function(e){return g.call(v,e)||{}},r=function(e){return p.call(v,e)}}else{var y=h("state");d[y]=!0,o=function(e,t){return u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},r=function(e){return c(e,y)}}e.exports={set:o,get:i,has:r,enforce:function(e){return r(e)?i(e):o(e,{})},getterFor:function(n){return function(e){var t;if(!l(e)||(t=i(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?o:n)(e)}},function(e,t,n){function o(f){var v=1==f,g=2==f,p=3==f,m=4==f,y=6==f,w=5==f||y;return function(e,t,n,o){for(var i,r,a=S(e),s=E(a),l=C(t,n,3),u=k(s.length),c=0,h=o||T,d=v?h(e,u):g?h(e,0):void 0;c<u;c++)if((w||c in s)&&(r=l(i=s[c],c,a),f))if(v)d[c]=r;else if(r)switch(f){case 3:return!0;case 5:return i;case 6:return c;case 2:R.call(d,i)}else if(m)return!1;return y?-1:p||m?m:d}}var C=n(104),E=n(118),S=n(60),k=n(52),T=n(157),R=[].push;e.exports={forEach:o(0),map:o(1),filter:o(2),some:o(3),every:o(4),find:o(5),findIndex:o(6)}},function(e,t,n){"use strict";var o=n(0);n(12),t.__esModule=!0,t.default=void 0;var s=o(n(1)),i=o(n(2)),u=n(6),c=n(4),r=n(3),h=n(58),a=o(n(24)),d=o(n(213)),f={},l=function(){function l(e){(0,s.default)(this,l),(0,c.defineGetter)(this,"wot",e,{writable:!1});var t=this.wot.wtTable,n=t.TABLE,o=t.hider,i=t.spreader,r=t.holder,a=t.wtRootElement;this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=n,this.hider=o,this.spreader=i,this.holder=r,this.wtRootElement=a,this.trimmingContainer=(0,u.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return(0,i.default)(l,null,[{key:"registerOverlay",value:function(e,t){if(-1===l.CLONE_TYPES.indexOf(e))throw new Error("Unsupported overlay (".concat(e,")."));f[e]=t}},{key:"createOverlay",value:function(e,t){return new f[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==f[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[l.CLONE_TOP,l.CLONE_BOTTOM,l.CLONE_LEFT,l.CLONE_TOP_LEFT_CORNER,l.CLONE_BOTTOM_LEFT_CORNER,l.CLONE_DEBUG]}}]),(0,i.default)(l,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,u.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot,t=e.wtTable;"hidden"===e.rootWindow.getComputedStyle(t.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,u.getScrollableElement)(t.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var o=this.mainTableScrollableElement===this.wot.rootWindow,i=n<this.wot.getSetting("fixedColumnsLeft"),r=t<this.wot.getSetting("fixedRowsTop"),a=t>=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),s={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},l={left:e.offsetLeft,top:e.offsetTop};return o?this.getRelativeCellPositionWithinWindow(r,i,l,s):this.getRelativeCellPositionWithinHolder(r,a,i,l,s)}(0,h.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,o){var i=this.wot.wtTable.wtRootElement.getBoundingClientRect(),r=0,a=0;(r=t?i.left<=0?-1*i.left:0:o.left,e)?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-i.top:a=o.top;return{left:n.left+r,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,o,i){var r=this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),a=this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=r-i.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=a-i.top);return{left:o.left-s,top:o.top-l}}},{key:"makeClone",value:function(e){if(-1===l.CLONE_TYPES.indexOf(e))throw new Error('Clone type "'.concat(e,'" is not supported.'));var t=this.wot,n=t.wtTable,o=t.rootDocument,i=t.rootWindow,r=o.createElement("DIV"),a=o.createElement("TABLE");r.className="ht_clone_".concat(e," handsontable"),r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.overflow="hidden",a.className=n.TABLE.className,r.appendChild(a),this.type=e,n.wtRootElement.parentNode.appendChild(r);var s=this.wot.getSetting("preventOverflow");return!0===s||"horizontal"===s&&this.type===l.CLONE_TOP||"vertical"===s&&this.type===l.CLONE_LEFT?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(n.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=n.holder:this.mainTableScrollableElement=(0,u.getScrollableElement)(n.TABLE),new d.default({cloneSource:this.wot,cloneOverlay:this,table:a})}},{key:"refresh",value:function(e){var t=0<arguments.length&&void 0!==e&&e,n=this.shouldBeRendered();this.clone&&(this.needFullRender||n)&&this.clone.draw(t),this.needFullRender=n}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,o=t.style,i=e.parentNode.style;(0,r.arrayEach)([n,o,i],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new a.default(this.clone).destroy()}}]),l}();t.default=l},function(e,t,n){var o=n(35),i=n(199),r=n(287),a=n(64);for(var s in i){var l=o[s],u=l&&l.prototype;if(u&&u.forEach!==r)try{a(u,"forEach",r)}catch(e){u.forEach=r}}},function(e,t,n){"use strict";n(65),t.__esModule=!0;var o=n(249);t.registerRootComparator=o.registerRootComparator,t.getRootComparator=o.getRootComparator,t.getCompareFunctionFactory=o.getCompareFunctionFactory;var i=n(383);t.FIRST_AFTER_SECOND=i.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=i.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=i.DO_NOT_SWAP,t.sort=i.sort},function(e,t,n){var o=n(45),i=n(117),r=n(95),a=n(63),s=n(96),l=n(50),u=n(180),c=Object.getOwnPropertyDescriptor;t.f=o?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(l(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.registerIdentity=function(e,t){u.set(e,t)},t.getTranslator=function(e){var t,n=e instanceof a.default?e:h(e);c.has(n)?t=c.get(n):(t=new l(n),c.set(n,t));return t},t.getIdentity=h,t.RecordTranslator=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(166)),s=n(4),l=function(){function t(e){(0,i.default)(this,t),this.hot=e}return(0,r.default)(t,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,s.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,s.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),t}();t.RecordTranslator=l;var u=new WeakMap,c=new WeakMap;function h(e){if(!u.has(e))throw Error("Record translator was not registered for this object identity");return u.get(e)}},function(e,t,n){"use strict";var o=n(0);n(19),n(12),n(65),n(30),t.__esModule=!0,t.default=void 0;var i=o(n(37)),a=n(3),r=n(4),s=n(17),l={_arrayMap:[],getValueByIndex:function(e){var t=null;return e<this._arrayMap.length&&(t=this._arrayMap[e]),t},getIndexByValue:function(e){var t;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(t,e){var n=this,o=1<arguments.length&&void 0!==e?e:1,i=(0,a.arrayMax)(this._arrayMap)+1,r=[];return(0,s.rangeEach)(o-1,function(e){r.push(n._arrayMap.splice(t+e,0,i+e))}),r},removeItems:function(e,t){var n=1<arguments.length&&void 0!==t?t:1,o=[];if(Array.isArray(e)){var i=[].concat(this._arrayMap);e.sort(function(e,t){return t-e});for(var r=0,a=e.length;r<a;r++){var s=e[r];this._arrayMap.splice(s,1),o.push(i[s])}}else o=this._arrayMap.splice(e,n);return o},unshiftItems:function(e,t){var n=1<arguments.length&&void 0!==t?t:1,i=this.removeItems(e,n);this._arrayMap=(0,a.arrayMap)(this._arrayMap,function(e){var t=e,n=function(o){return(0,a.arrayReduce)(i,function(e,t){var n=e;return t<o&&(n+=1),n},0)}(t);return n&&(t-=n),t})},shiftItems:function(n,e){var t=this,o=1<arguments.length&&void 0!==e?e:1;this._arrayMap=(0,a.arrayMap)(this._arrayMap,function(e){var t=e;return n<=t&&(t+=o),t}),(0,s.rangeEach)(o-1,function(e){t._arrayMap.splice(n+e,0,n+e)})},swapIndexes:function(e,t){var n;(n=this._arrayMap).splice.apply(n,[t,0].concat((0,i.default)(this._arrayMap.splice(e,1))))},clearMap:function(){this._arrayMap.length=0}};(0,r.defineGetter)(l,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1});var u=l;t.default=u},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.createId=o,t.createDefaultCustomBorder=i,t.createSingleEmptyBorder=r,t.createDefaultHtBorder=l,t.createEmptyBorders=function(e,t){return{id:o(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},right:{hide:!0},bottom:{hide:!0},left:{hide:!0}}},t.extendDefaultBorder=function(e,t){(0,a.hasOwnProperty)(t,"border")&&(e.border=t.border);(0,a.hasOwnProperty)(t,"top")&&(t.top?(0,a.isObject)(t.top)||(t.top={width:1,color:"#000"}):t.top={hide:!0},e.top=t.top);(0,a.hasOwnProperty)(t,"right")&&(t.right?(0,a.isObject)(t.right)||(t.right={width:1,color:"#000"}):t.right={hide:!0},e.right=t.right);(0,a.hasOwnProperty)(t,"bottom")&&(t.bottom?(0,a.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}):t.bottom={hide:!0},e.bottom=t.bottom);(0,a.hasOwnProperty)(t,"left")&&(t.left?(0,a.isObject)(t.left)||(t.left={width:1,color:"#000"}):t.left={hide:!0},e.left=t.left);return e},t.checkSelectionBorders=function(o,i){var r=!1;return(0,s.arrayEach)(o.getSelectedRange(),function(e){e.forAll(function(e,t){var n=o.getCellMeta(e,t).borders;if(n){if(!i)return!(r=!0);if(!(0,a.hasOwnProperty)(n[i],"hide")||!1===n[i].hide)return!(r=!0)}})}),r},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)};var a=n(4),s=n(3);function o(e,t){return"border_row".concat(e,"col").concat(t)}function i(){return{width:1,color:"#000"}}function r(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(42);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(35),i=n(145),r=n(119),a="__core-js_shared__",s=o[a]||i(a,{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports={}},function(e,t,n){var o=n(186),i=n(147).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t,n){var o=n(34),i=n(101),r=n(64),a=o("unscopables"),s=Array.prototype;null==s[a]&&r(s,a,i(null)),e.exports=function(e){s[a][e]=!0}},function(e,t,n){function o(){}var i=n(46),r=n(272),a=n(147),s=n(98),l=n(189),u=n(144),c=n(120)("IE_PROTO"),h="prototype",d=function(){var e,t=u("iframe"),n=a.length;for(t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d[h][a[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[h]=i(e),n=new o,o[h]=null,n[c]=e):n=d(),void 0===t?n:r(n,t)},s[c]=!0},function(e,t,n){var o=n(186),i=n(147);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t){e.exports={}},function(e,t,n){var r=n(154);e.exports=function(o,i,e){if(r(o),void 0===i)return o;switch(e){case 0:return function(){return o.call(i)};case 1:return function(e){return o.call(i,e)};case 2:return function(e,t){return o.call(i,e,t)};case 3:return function(e,t,n){return o.call(i,e,t,n)}}return function(){return o.apply(i,arguments)}}},function(e,t,n){"use strict";var i=n(96),r=n(51),a=n(95);e.exports=function(e,t,n){var o=i(t);o in e?r.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var o=n(27),i=n(34)("species");e.exports=function(t){return!o(function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(e,t,n){"use strict";var o=n(0);n(132),t.__esModule=!0,t.default=t.EditorState=void 0;var i=o(n(7)),r=o(n(5)),a=o(n(8)),s=o(n(1)),l=o(n(2)),u=n(25),c=n(28),h=n(4),d=o(n(308)),f={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};t.EditorState=f;var v=function(){function t(e){(0,s.default)(this,t),this.hot=e,this.instance=e,this.state=f.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,l.default)(t,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,o,i,r){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=i,this.cellProperties=r,this.state=f.VIRGIN}},{key:"extend",value:function(){return function(e){function t(){return(0,s.default)(this,t),(0,i.default)(this,(0,r.default)(t).apply(this,arguments))}return(0,a.default)(t,e),t}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,o;t?((n=this.hot.getSelectedLast())[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.hot.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===f.VIRGIN){if(this.hot.view.scrollViewport(new u.CellCoords(this.row,this.col)),this.state=f.EDITING,this.isInFullEditMode()){var n="string"==typeof e?e:(0,c.stringify)(this.originalValue);this.setValue(n)}this.open(t),this._opened=!0,this.focus(),this.hot.view.render(),this.hot.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(e){r&&r(e),n(e),i.hot.view.render()}}if(!this.isWaiting())if(this.state!==f.VIRGIN){if(this.state===f.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var a=this.getValue();o=this.hot.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=f.WAITING,this.saveValue(o,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",function(e){i.state=f.FINISHED,i.discardEditor(e)}):(this.state=f.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(function(){i._fireCallbacks(!0)})}},{key:"cancelChanges",value:function(){this.state=f.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===f.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=f.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=f.VIRGIN,this._fireCallbacks(!0)))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===f.WAITING}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsLeft&&(t="left"),t}}]),t}();(0,h.mixin)(v,d.default);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function n(e,t){(0,i.default)(this,n),this.row=null,this.col=null,void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}return(0,r.default)(n,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),n}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(293)),s=function(){function n(e,t){(0,i.default)(this,n),this.nodesPool="string"==typeof e?new a.default(e):null,this.nodeType=e,this.rootNode=t,this.table=null,this.renderedNodes=0}return(0,r.default)(n,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),n}();t.default=s},function(e,t,n){"use strict";var o=n(9),i=n(0);n(19),n(31),n(12),n(40),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=i(n(7)),l=i(n(26)),h=i(n(5)),d=i(n(14)),u=i(n(8)),P=n(6),f=i(n(310)),v=n(73),x=o(n(107)),g=i(n(24)),p=n(54),m=n(33),c=function(e){function c(e){var t;return(0,r.default)(this,c),(t=(0,s.default)(this,(0,h.default)(c).call(this,e))).eventManager=new g.default((0,l.default)(t)),t.autoResize=(0,f.default)(),t.holderZIndex=-1,t.TEXTAREA=void 0,t.textareaStyle=void 0,t.TEXTAREA_PARENT=void 0,t.textareaParentStyle=void 0,t.createElements(),t.bindEvents(),t.hot.addHookOnce("afterDestroy",function(){return t.destroy()}),t}return(0,u.default)(c,e),(0,a.default)(c,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var t=this;this.refreshDimensions(),this.showEditableElement(),this.addHook("beforeKeyDown",function(e){return t.onBeforeKeyDown(e)})}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.removeHooksByKey("beforeKeyDown")}},{key:"prepare",value:function(e,t,n,o,i,r){var a=this,s=this.state;if((0,d.default)((0,h.default)(c.prototype),"prepare",this).call(this,e,t,n,o,i,r),!r.readOnly){this.refreshDimensions(!0);var l=r.allowInvalid,u=r.fragmentSelection;l&&(this.TEXTAREA.value=""),s!==x.EditorState.FINISHED&&this.hideEditableElement(),u||(0,v.isMobileBrowser)()||this.hot._registerImmediate(function(){return a.focus(!0)})}}},{key:"beginEditing",value:function(e,t){this.state===x.EditorState.VIRGIN&&(this.TEXTAREA.value="",(0,d.default)((0,h.default)(c.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(e){0<arguments.length&&void 0!==e&&e?(0,P.selectElementIfAllowed)(this.TEXTAREA):(this.TEXTAREA.select(),(0,P.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length))}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,(0,P.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,P.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.zIndex="-1",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"getEditedCell",value:function(){var e;switch(this.checkEditorSection()){case"top":e=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=101;break;case"top-left-corner":e=this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"bottom-left-corner":e=this.hot.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"left":e=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;case"bottom":e=this.hot.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;default:e=this.hot.getCell(this.row,this.col),this.holderZIndex=-1}return e<0?void 0:e}},{key:"hideEditableElement",value:function(){((0,v.isIE)()||(0,v.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",this.textareaParentStyle.zIndex="-1"}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle.right="auto",this.textareaParentStyle.zIndex=0<=this.holderZIndex?this.holderZIndex:"",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden"}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(e){var t=0<arguments.length&&void 0!==e&&e;if(this.state===x.EditorState.EDITING||t)if(this.TD=this.getEditedCell(),this.TD){var n,o=this.hot.view.wt,i=o.wtOverlays,r=o.wtViewport,a=(0,P.offset)(this.TD),s=(0,P.offset)(this.hot.rootElement),l=i.topOverlay.holder,u=i.leftOverlay.holder,c=this.hot.countRows(),h=l!==this.hot.rootWindow?l.scrollTop:0,d=u!==this.hot.rootWindow?u.scrollLeft:0,f=this.checkEditorSection(),v=["","left"].includes(f)?h:0,g=["","top","bottom"].includes(f)?d:0,p=a.top===s.top?0:1,m=this.hot.getSettings(),y=this.hot.hasColHeaders(),w=this.TD.style.backgroundColor,C=a.top-s.top-p-v,E=a.left-s.left-1-g;switch(f){case"top":n=(0,P.getCssTransform)(i.topOverlay.clone.wtTable.holder.parentNode);break;case"left":n=(0,P.getCssTransform)(i.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":n=(0,P.getCssTransform)(i.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":n=(0,P.getCssTransform)(i.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":n=(0,P.getCssTransform)(i.bottomOverlay.clone.wtTable.holder.parentNode)}(y&&0===this.hot.getSelectedLast()[0]||m.fixedRowsBottom&&this.hot.getSelectedLast()[0]===c-m.fixedRowsBottom)&&(C+=1),0===this.hot.getSelectedLast()[1]&&(E+=1),n&&-1!==n?this.textareaParentStyle[n[0]]=n[1]:(0,P.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(C,"px"),this.textareaParentStyle.left="".concat(E,"px"),this.showEditableElement();var S=r.rowsRenderCalculator.startPosition,k=r.columnsRenderCalculator.startPosition,T=i.leftOverlay.getScrollPosition(),R=i.topOverlay.getScrollPosition(),_=(0,P.getScrollbarWidth)(this.hot.rootDocument),b=this.TD.offsetTop+S-R,O=this.TD.offsetLeft+k-T,M=(0,P.innerWidth)(this.TD)-8,N=(0,P.hasVerticalScrollbar)(l)?_:0,A=(0,P.hasHorizontalScrollbar)(u)?_:0,D=this.hot.view.maximumVisibleElementWidth(O)-9-N,I=this.TD.scrollHeight+1,H=Math.max(this.hot.view.maximumVisibleElementHeight(b)-A,23),L=(0,P.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=L.fontSize,this.TEXTAREA.style.fontFamily=L.fontFamily,this.TEXTAREA.style.backgroundColor=w,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(I,H),maxHeight:H,minWidth:Math.min(M,D),maxWidth:D},!0)}else t||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){return(0,m.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){return(0,m.stopPropagation)(e)}),this.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()})}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!(0,m.isImmediatePropagationStopped)(e)){switch(e.keyCode){case p.KEY_CODES.ARROW_RIGHT:case p.KEY_CODES.ARROW_LEFT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||(0,m.stopImmediatePropagation)(e));break;case p.KEY_CODES.ARROW_UP:case p.KEY_CODES.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||(0,m.stopImmediatePropagation)(e));break;case p.KEY_CODES.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var o=(0,P.getCaretPosition)(this.TEXTAREA),i=this.getValue(),r="".concat(i.slice(0,o),"\n").concat(i.slice(o));this.setValue(r),(0,P.setCaretPosition)(this.TEXTAREA,o+1)}else this.beginEditing("".concat(this.originalValue,"\n"));(0,m.stopImmediatePropagation)(e)}e.preventDefault();break;case p.KEY_CODES.BACKSPACE:case p.KEY_CODES.DELETE:case p.KEY_CODES.HOME:case p.KEY_CODES.END:(0,m.stopImmediatePropagation)(e)}-1===[p.KEY_CODES.ARROW_UP,p.KEY_CODES.ARROW_RIGHT,p.KEY_CODES.ARROW_DOWN,p.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}]),c}(x.default);t.default=c},function(e,t,n){"use strict";function i(e,t){var n=te[e]=E(X[Y]);return z(n,{type:U,tag:e,description:t}),c||(n.description=t),n}function o(t,e){p(t);var n=y(e),o=S(n).concat(de(n));return W(o,function(e){c&&!he.call(n,e)||ce(t,e,n[e])}),t}function r(e,t){var n=y(e),o=w(t,!0);if(n!==K||!f(te,o)||f(ne,o)){var i=$(n,o);return!i||!f(te,o)||f(n,V)&&n[V][o]||(i.enumerable=!0),i}}function a(e){var t=J(y(e)),n=[];return W(t,function(e){f(te,e)||f(I,e)||n.push(e)}),n}var s=n(21),l=n(35),u=n(119),c=n(45),h=n(188),d=n(27),f=n(50),v=n(128),g=n(42),p=n(46),m=n(60),y=n(63),w=n(96),C=n(95),E=n(101),S=n(102),k=n(99),T=n(187),R=n(148),_=n(91),b=n(51),O=n(117),M=n(64),N=n(66),A=n(97),D=n(120),I=n(98),H=n(121),L=n(34),P=n(235),x=n(236),F=n(125),B=n(85),W=n(87).forEach,V=D("hidden"),U="Symbol",Y="prototype",j=L("toPrimitive"),z=B.set,G=B.getterFor(U),K=Object[Y],X=l.Symbol,q=l.JSON,Z=q&&q.stringify,$=_.f,Q=b.f,J=T.f,ee=O.f,te=A("symbols"),ne=A("op-symbols"),oe=A("string-to-symbol-registry"),ie=A("symbol-to-string-registry"),re=A("wks"),ae=l.QObject,se=!ae||!ae[Y]||!ae[Y].findChild,le=c&&d(function(){return 7!=E(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=$(K,t);o&&delete K[t],Q(e,t,n),o&&e!==K&&Q(K,t,o)}:Q,ue=h&&"symbol"==typeof X.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof X},ce=function(e,t,n){e===K&&ce(ne,t,n),p(e);var o=w(t,!0);return p(n),f(te,o)?(n.enumerable?(f(e,V)&&e[V][o]&&(e[V][o]=!1),n=E(n,{enumerable:C(0,!1)})):(f(e,V)||Q(e,V,C(1,{})),e[V][o]=!0),le(e,o,n)):Q(e,o,n)},he=function(e){var t=w(e,!0),n=ee.call(this,t);return!(this===K&&f(te,t)&&!f(ne,t))&&(!(n||!f(this,t)||!f(te,t)||f(this,V)&&this[V][t])||n)},de=function(e){var t=e===K,n=J(t?ne:y(e)),o=[];return W(n,function(e){!f(te,e)||t&&!f(K,e)||o.push(te[e])}),o};h||(N((X=function(e){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==e?String(e):void 0,n=H(t),o=function(e){this===K&&o.call(ne,e),f(this,V)&&f(this[V],n)&&(this[V][n]=!1),le(this,n,C(1,e))};return c&&se&&le(K,n,{configurable:!0,set:o}),i(n,t)})[Y],"toString",function(){return G(this).tag}),O.f=he,b.f=ce,_.f=r,k.f=T.f=a,R.f=de,c&&(Q(X[Y],"description",{configurable:!0,get:function(){return G(this).description}}),u||N(K,"propertyIsEnumerable",he,{unsafe:!0})),P.f=function(e){return i(L(e),e)}),s({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:X}),W(S(re),function(e){x(e)}),s({target:U,stat:!0,forced:!h},{for:function(e){var t=String(e);if(f(oe,t))return oe[t];var n=X(t);return oe[t]=n,ie[n]=t,n},keyFor:function(e){if(!ue(e))throw TypeError(e+" is not a symbol");if(f(ie,e))return ie[e]},useSetter:function(){se=!0},useSimple:function(){se=!1}}),s({target:"Object",stat:!0,forced:!h,sham:!c},{create:function(e,t){return void 0===t?E(e):o(E(e),t)},defineProperty:ce,defineProperties:o,getOwnPropertyDescriptor:r}),s({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:a,getOwnPropertySymbols:de}),s({target:"Object",stat:!0,forced:d(function(){R.f(1)})},{getOwnPropertySymbols:function(e){return R.f(m(e))}}),q&&s({target:"JSON",stat:!0,forced:!h||d(function(){var e=X();return"[null]"!=Z([e])||"{}"!=Z({a:e})||"{}"!=Z(Object(e))})},{stringify:function(e){for(var t,n,o=[e],i=1;i<arguments.length;)o.push(arguments[i++]);if(n=t=o[1],(g(t)||void 0!==e)&&!ue(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ue(t))return t}),o[1]=t,Z.apply(q,o)}}),X[Y][j]||M(X[Y],j,X[Y].valueOf),F(X,U),I[V]=!0},function(e,t,n){"use strict";n(57),n(12),n(15),n(65),n(10),n(81),n(13),n(16),t.__esModule=!0,t.sortComparison=function(e,t){return"number"!=typeof e||"number"!=typeof t?i(e,t):e-t},t.toVisualValue=u,t.createArrayAssertion=c,t.toEmptyString=function(e){return null==e?"":e},t.unifyColumnValues=function(e){var t=e;t=a?Array.from(new Set(t)):(0,l.arrayUnique)(t);return t=t.sort(function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:t<e?1:-1})},t.intersectValues=function(e,t,o,i){var r,a=[],s=e===t;s||(r=c(t));return(0,l.arrayEach)(e,function(e){var t=!1;(s||r(e))&&(t=!0);var n={checked:t,value:e,visualValue:u(e,o)};i&&i(n),a.push(n)}),a};var o=n(74),l=n(3),i=(0,o.getComparisonFunction)();function u(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var r=new Set([1]).has(1),a=r&&"function"==typeof Array.from;function c(e){var t=e;return r&&(t=new Set(t)),function(e){return r?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";n(55),t.__esModule=!0,t.getOperationFunc=function(e){if(!o[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var n=o[e].func;return function(e,t){return n(e,t)}},t.getOperationName=function(e){return o[e].name},t.registerOperation=function(e,t,n){o[e]={name:t,func:n}},t.operations=void 0;var o={};t.operations=o},function(e,t,n){"use strict";var o=n(9),i=n(0);n(142),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=n(4),l=i(n(59)),u=i(n(24)),c=n(6),h=n(3),d=o(n(11)),f="building",v=["click","input","keydown","keypress","keyup","focus","blur","change"],g=function(){function n(e,t){(0,r.default)(this,n),this.hot=e,this.eventManager=new u.default(this),this.options=(0,s.extend)(n.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=!1}return(0,a.default)(n,null,[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),(0,a.default)(n,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(d.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){function t(e,t){n.eventManager.addEventListener(e,t,function(e){return n.runLocalHooks(t,e,n)})}var n=this;if(this.buildState||(this.buildState=f),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,function(e){return n._element.appendChild(e.element)});else if(this.options.wrapIt){var o=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,function(e,t){void 0!==o[t]&&"className"!==t&&"tagName"!==t&&"children"!==t&&(o[t]=n.translateIfPossible(e))}),this._element.appendChild(o),(0,h.arrayEach)(v,function(e){return t(o,e)})}else(0,h.arrayEach)(v,function(e){return t(n._element,e)})}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}},{key:"element",get:function(){return this.buildState===f||("built"===this.buildState?this.update():(this.buildState=f,this.build(),this.buildState="built")),this._element}}]),n}();(0,s.mixin)(g,l.default);var p=g;t.default=p},function(e,t){e.exports=o},function(e,t,n){"use strict";var o=n(0);n(12),n(134),n(39),n(48),n(142),t.__esModule=!0,t.default=void 0;var v=o(n(18)),i=o(n(1)),r=o(n(2)),g=n(115),s=n(3),a=n(4),l=o(n(59)),u=n(83),c=/^\$?[A-Z]+\$?\d+$/,h=/\$?[A-Z]+\$?\d+/,d=/(?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ])/g,p=/\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+/g,f=/((?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ]))|(\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+)/g,m=function(){function t(e){(0,i.default)(this,t),this.expression="",this.cells=[],this.customModifier=null,"string"==typeof e&&this.setExpression(e)}return(0,r.default)(t,[{key:"setExpression",value:function(e){return this.cells.length=0,this.expression=(0,u.toUpperCaseFormula)(e),this._extractCells(),this._extractCellsRange(),this}},{key:"useCustomModifier",value:function(e){this.customModifier=e}},{key:"translate",value:function(e,t){var n=this,o=e.row,i=e.column,r=1<arguments.length&&void 0!==t?t:{};return(0,s.arrayEach)(this.cells,function(e){null!=o&&n._translateCell(e,"row",o,r.row),null!=i&&n._translateCell(e,"column",i,r.column)}),this}},{key:"toString",value:function(){var l=this,e=this.expression.replace(f,function(e,t,n){var o=-1===e.indexOf(":"),i=e,r=e,a=null;o&&(r=c.test(t)?t:n);var s=l._searchCell(r);return s&&(a=s.refError?(0,g.error)(g.ERROR_REF):s.toLabel(),i=o?e.replace(r,a):a),i});return e.startsWith("=")||(e="=".concat(e)),e}},{key:"_translateCell",value:function(e,t,n,o){var i=e.start,r=e.end,a=i[t].index,s=r[t].index,l=n,u=n,c=!1;if(this.customModifier){var h=this.customModifier(e,t,n,o),d=(0,v.default)(h,3);l=d[0],u=d[1],c=d[2]}else i[t].isAbsolute&&(l=0),r[t].isAbsolute&&(u=0);l&&!c&&(a+l<0&&(c=!0),i[t].index=Math.max(a+l,0)),u&&!c&&(s+u<0&&(c=!0),r[t].index=Math.max(s+u,0)),c&&(e.refError=!0)}},{key:"_extractCells",value:function(){var a=this,e=this.expression.match(d);e&&(0,s.arrayEach)(e,function(e){var t=e.match(h);if(t){var n=(0,g.extractLabel)(t[0]),o=(0,v.default)(n,2),i=o[0],r=o[1];a.cells.push(a._createCell({row:i,column:r},{row:i,column:r},t[0]))}})}},{key:"_extractCellsRange",value:function(){var f=this,e=this.expression.match(p);e&&(0,s.arrayEach)(e,function(e){var t=e.split(":"),n=(0,v.default)(t,2),o=n[0],i=n[1],r=(0,g.extractLabel)(o),a=(0,v.default)(r,2),s=a[0],l=a[1],u=(0,g.extractLabel)(i),c=(0,v.default)(u,2),h={row:s,column:l},d={row:c[0],column:c[1]};f.cells.push(f._createCell(h,d,e))})}},{key:"_searchCell",value:function(t){var e=(0,s.arrayFilter)(this.cells,function(e){return e.origLabel===t});return(0,v.default)(e,1)[0]||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=(0,g.toLabel)(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat((0,g.toLabel)(this.end.row,this.end.column))),e}}}}]),t}();(0,a.mixin)(m,l.default);var y=m;t.default=y},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},function(e,t,n){var o=n(27),i=n(76),r="".split;e.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e,t){e.exports=!1},function(e,t,n){var o=n(97),i=n(121),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},function(e,t,n){function o(e){return"function"==typeof e?e:void 0}var i=n(185),r=n(35);e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var o=n(86),i=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?i(n+t,0):r(n,t)}},function(e,t,n){function o(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?i(t):!!t)}var i=n(27),r=/#|\.prototype\./,a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var o=n(51).f,i=n(50),r=n(34)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},function(e,t,n){function o(e){s(e,c,{value:{objectID:"O"+ ++h,weakData:{}}})}var i=n(98),r=n(42),a=n(50),s=n(51).f,l=n(121),u=n(276),c=l("meta"),h=0,d=Object.isExtensible||function(){return!0},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!d(e))return"F";if(!t)return"E";o(e)}return e[c].objectID},getWeakData:function(e,t){if(!a(e,c)){if(!d(e))return!0;if(!t)return!1;o(e)}return e[c].weakData},onFreeze:function(e){return u&&f.REQUIRED&&d(e)&&!a(e,c)&&o(e),e}};i[c]=!0},function(e,t,n){"use strict";var p=n(21),m=n(35),y=n(124),w=n(66),C=n(126),E=n(153),S=n(155),k=n(42),T=n(27),R=n(197),_=n(125),b=n(156);e.exports=function(o,e,t,i,r){function n(e){var n=s[e];w(s,e,"add"==e?function(e){return n.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!k(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return r&&!k(e)?void 0:n.call(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!k(e))&&n.call(this,0===e?0:e)}:function(e,t){return n.call(this,0===e?0:e,t),this})}var a=m[o],s=a&&a.prototype,l=a,u=i?"set":"add",c={};if(y(o,"function"!=typeof a||!(r||s.forEach&&!T(function(){(new a).entries().next()}))))l=t.getConstructor(e,o,i,u),C.REQUIRED=!0;else if(y(o,!0)){var h=new l,d=h[u](r?{}:-0,1)!=h,f=T(function(){h.has(1)}),v=R(function(e){new a(e)}),g=!r&&T(function(){for(var e=new a,t=5;t--;)e[u](t,t);return!e.has(-0)});v||(((l=e(function(e,t){S(e,l,o);var n=b(new a,e,l);return null!=t&&E(t,n[u],n,i),n})).prototype=s).constructor=l),(f||g)&&(n("delete"),n("has"),i&&n("get")),(g||d)&&n(u),r&&s.clear&&delete s.clear}return c[o]=l,p({global:!0,forced:l!=a},c),_(l,o),r||t.setStrong(l,o,i),l}},function(e,t,n){var o=n(76);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(27);e.exports=function(e,t){var n=[][e];return!n||!o(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";var h=n(64),d=n(66),f=n(27),v=n(34),g=n(159),p=v("species"),m=!f(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),y=!f(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(n,e,t,o){var i=v(n),r=!f(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),a=r&&!f(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[p]=function(){return t}),t[i](""),!e});if(!r||!a||"replace"===n&&!m||"split"===n&&!y){var s=/./[i],l=t(i,""[n],function(e,t,n,o,i){return t.exec===g?r&&!i?{done:!0,value:s.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),u=l[0],c=l[1];d(String.prototype,n,u),d(RegExp.prototype,i,2==e?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}),o&&h(RegExp.prototype[i],"sham",!0)}}},function(e,t,n){var i=n(76),r=n(159);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";var o=n(21),i=n(203).trim;o({target:"String",proto:!0,forced:n(281)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var o=n(45),i=n(35),r=n(124),a=n(156),s=n(51).f,l=n(99).f,u=n(160),c=n(158),h=n(66),d=n(27),f=n(201),v=n(34)("match"),g=i.RegExp,p=g.prototype,m=/a/g,y=/a/g,w=new g(m)!==m;if(o&&r("RegExp",!w||d(function(){return y[v]=!1,g(m)!=m||g(y)==y||"/a/i"!=g(m,"i")}))){function C(t){t in E||s(E,t,{configurable:!0,get:function(){return g[t]},set:function(e){g[t]=e}})}for(var E=function(e,t){var n=this instanceof E,o=u(e),i=void 0===t;return!n&&o&&e.constructor===E&&i?e:a(w?new g(o&&!i?e.source:e,t):g((o=e instanceof E)?e.source:e,o&&i?c.call(e):t),n?this:p,E)},S=l(g),k=0;S.length>k;)C(S[k++]);(p.constructor=E).prototype=p,h(i,"RegExp",E)}f("RegExp")},function(e,t,n){"use strict";var o=n(130),h=n(46),d=n(52),i=n(49),f=n(161),v=n(131);o("match",1,function(o,u,c){return[function(e){var t=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=c(u,e,this);if(t.done)return t.value;var n=h(e),o=String(this);if(!n.global)return v(n,o);for(var i,r=n.unicode,a=[],s=n.lastIndex=0;null!==(i=v(n,o));){var l=String(i[0]);""===(a[s]=l)&&(n.lastIndex=f(o,d(n.lastIndex),r)),s++}return 0===s?null:a}]})},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0;var i=o(n(222));t.OrderView=i.default;var r=o(n(292));t.SharedOrderView=r.default},function(e,t,n){"use strict";var o=n(21),i=n(87).find,r=n(100),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),o({target:"Array",proto:!0,forced:a},{find:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),r("find")},function(e,t,n){"use strict";n(232),t.__esModule=!0,t.spreadsheetColumnLabel=l,t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,o=e.length-1;n<e.length;n+=1,o-=1)t+=Math.pow(s,o)*(i.indexOf(e[n])+1);return t-=1},t.createSpreadsheetData=function(){var e,t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e<n;e++){var r=[];for(t=0;t<o;t++)r.push(l(t)+(e+1));i.push(r)}return i},t.createSpreadsheetObjectData=function(){var e,t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e<n;e++){var r={};for(t=0;t<o;t++)r["prop".concat(t)]=l(t)+(e+1);i.push(r)}return i},t.createEmptySpreadsheetData=function(e,t){for(var n,o=[],i=0;i<e;i++){n=[];for(var r=0;r<t;r++)n.push("");o.push(n)}return o},t.translateRowsToColumns=function(e){var t,n,o,i,r=[],a=0;for(t=0,n=e.length;t<n;t++)for(o=0,i=e[t].length;o<i;o++)o===a&&(r.push([]),a+=1),r[o].push(e[t][o]);return r},t.cellMethodLookupFactory=function(o,e){var i=void 0===e||e;return function(e,t){return function e(t){if(t){if((0,a.hasOwnProperty)(t,o)&&void 0!==t[o])return t[o];if((0,a.hasOwnProperty)(t,"type")&&t.type){if("string"!=typeof t.type)throw new Error("Cell type must be a string ");var n=(0,r.getCellType)(t.type);if((0,a.hasOwnProperty)(n,o))return n[o];if(i)return}return e(Object.getPrototypeOf(t))}}("number"==typeof e?this.getCellMeta(e,t):e)}};var r=n(165),a=n(4),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=i.length;function l(e){for(var t,n=e+1,o="";0<n;)t=(n-1)%s,o=String.fromCharCode(65+t)+o,n=parseInt((n-t)/s,10);return o}},function(e,t,n){"use strict";var o=n(21),i=n(45),r=n(35),a=n(50),s=n(42),l=n(51).f,u=n(183),c=r.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},d=function(e){var t=arguments.length<1||void 0===e?void 0:String(e),n=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(h[n]=!0),n};u(d,c);var f=d.prototype=c.prototype;f.constructor=d;var v=f.toString,g="Symbol(test)"==String(c("test")),p=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=v.call(e);if(a(h,e))return"";var n=g?t.slice(7,-1):t.replace(p,"$1");return""===n?void 0:n}}),o({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.registerLanguageDictionary=v,t.getLanguageDictionary=function(e){return g(e)?(0,i.deepClone)(h(e)):null},t.hasLanguageDictionary=g,t.getDefaultLanguageDictionary=function(){return s.default},t.getLanguagesDictionaries=function(){return f()},t.DEFAULT_LANGUAGE_CODE=void 0;var i=n(4),r=n(239),a=o(n(77)),s=o(n(350)),l=s.default.languageCode;t.DEFAULT_LANGUAGE_CODE=l;var u=(0,a.default)("languagesDictionaries"),c=u.register,h=u.getItem,d=u.hasItem,f=u.getValues;function v(e,t){var n=e,o=t;return(0,i.isObject)(e)&&(n=(o=e).languageCode),function(e,t){e!==l&&(0,r.extendNotExistingKeys)(t,h(l))}(n,o),c(n,(0,i.deepClone)(o)),(0,i.deepClone)(o)}function g(e){return d(e)}v(s.default)},function(e,t,n){"use strict";var o=n(0);n(57),n(15),n(10),n(81),n(13),n(16),t.__esModule=!0,t._getRefCount=function(){return l},t._resetState=u,t.isPressed=function(t){return Array.from(s.values()).some(function(e){return(0,r.isKey)(e,t)})},t.isPressedCtrlKey=function(){return Array.from(s.values()).some(function(e){return(0,r.isCtrlMetaKey)(e)})},t.startObserving=function(e){0===l&&(a.addEventListener(e,"keydown",function(e){s.has(e.keyCode)||s.add(e.keyCode)}),a.addEventListener(e,"keyup",function(e){s.has(e.keyCode)&&s.delete(e.keyCode)}),a.addEventListener(e,"visibilitychange",function(){e.hidden&&s.clear()}),a.addEventListener(e.defaultView,"blur",function(){s.clear()}));l+=1},t.stopObserving=function(){0<l&&(l-=1);0===l&&u()};var i=o(n(24)),r=n(54),a=new i.default,s=new Set,l=0;function u(){a.clearEvents(),s.clear(),l=0}},function(e,t,n){"use strict";var o=n(0);n(111),n(138),n(57),n(31),n(15),n(65),n(10),n(81),n(38),n(13),n(16),t.__esModule=!0,t.detectSelectionType=y,t.normalizeSelectionFactory=w,t.transformSelectionToColumnDistance=function(e){var t=y(e);if(t===c||t===h)return[];var r=w(t),a=new Set;(0,u.arrayEach)(e,function(e){var t=r(e),n=(0,s.default)(t,4),o=n[1],i=n[3]-o+1;(0,u.arrayEach)(Array.from(new Array(i),function(e,t){return o+t}),function(e){a.has(e)||a.add(e)})});var n=Array.from(a).sort(function(e,t){return e-t});return(0,u.arrayReduce)(n,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])},t.transformSelectionToRowDistance=function(e){var t=y(e);if(t===c||t===h)return[];var r=w(t),a=new Set;(0,u.arrayEach)(e,function(e){var t=r(e),n=(0,s.default)(t,3),o=n[0],i=n[2]-o+1;(0,u.arrayEach)(Array.from(new Array(i),function(e,t){return o+t}),function(e){a.has(e)||a.add(e)})});var n=Array.from(a).sort(function(e,t){return e-t});return(0,u.arrayReduce)(n,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])},t.isValidCoord=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&0<=e&&e<t},t.SELECTION_TYPES=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_UNRECOGNIZED=void 0;var s=o(n(18)),a=o(n(44)),l=n(25),u=n(3),f=n(28),c=0;t.SELECTION_TYPE_UNRECOGNIZED=c;var h=1;t.SELECTION_TYPE_EMPTY=h;var d=2;t.SELECTION_TYPE_ARRAY=d;var v=3,i=[t.SELECTION_TYPE_OBJECT=v,d];t.SELECTION_TYPES=i;var g=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],p=Symbol("root"),m=Symbol("child");function y(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:p;if(t!==p&&t!==m)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),o=t===p,i=c;if(n){var r=e[0];if(0===e.length)i=h;else if(o&&r instanceof l.CellRange)i=v;else if(o&&Array.isArray(r))i=y(r,m);else if(2<=e.length&&e.length<=4){!e.some(function(e,t){return!g[t].includes((0,a.default)(e))})&&(i=d)}}return i}function w(c){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=e.keepDirection,h=void 0!==t&&t,d=e.propToCol;if(!i.includes(c))throw new Error("Unsupported selection ranges schema type was provided.");return function(e){var t=c===v,n=t?e.from.row:e[0],o=t?e.from.col:e[1],i=t?e.to.row:e[2],r=t?e.to.col:e[3];if("function"==typeof d&&("string"==typeof o&&(o=d(o)),"string"==typeof r&&(r=d(r))),(0,f.isUndefined)(i)&&(i=n),(0,f.isUndefined)(r)&&(r=o),!h){var a=n,s=o,l=i,u=r;n=Math.min(a,l),o=Math.min(s,u),i=Math.max(a,l),r=Math.max(s,u)}return[n,o,i,r]}}},function(e,t,n){"use strict";var o=n(21),r=n(52),a=n(163),s=n(49),i=n(164),l="".startsWith,u=Math.min;o({target:"String",proto:!0,forced:!i("startsWith")},{startsWith:function(e,t){var n=String(s(this));a(e);var o=r(u(1<arguments.length?t:void 0,n.length)),i=String(e);return l?l.call(n,i,o):n.slice(o,o+i.length)===i}})},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(3),s=n(4),l=o(n(59)),u=o(n(475)),c=function(){function t(e){(0,i.default)(this,t),this.hot=e,this.elements=[],this.hidden=!1}return(0,r.default)(t,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,function(e){return e.reset()})}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return this.hidden}},{key:"destroy",value:function(){this.clearLocalHooks(),(0,a.arrayEach)(this.elements,function(e){return e.destroy()}),this.elements=null,this.hot=null}}]),t}();(0,s.mixin)(c,l.default),(0,s.mixin)(c,u.default);var h=c;t.default=h},function(e,t,n){var o=n(35),i=n(42),r=o.document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var o=n(35),i=n(64);e.exports=function(t,n){try{i(o,t,n)}catch(e){o[t]=n}return n}},function(e,t,n){function o(s){return function(e,t,n){var o,i=l(e),r=u(i.length),a=c(n,r);if(s&&t!=t){for(;a<r;)if((o=i[a++])!=o)return!0}else for(;a<r;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}var l=n(63),u=n(52),c=n(123);e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";function m(){return this}var y=n(21),w=n(273),C=n(150),E=n(192),S=n(125),k=n(64),T=n(66),o=n(34),R=n(119),_=n(103),i=n(190),b=i.IteratorPrototype,O=i.BUGGY_SAFARI_ITERATORS,M=o("iterator"),N="values";e.exports=function(e,t,n,o,i,r,a){w(n,t,o);function s(e){if(e===i&&g)return g;if(!O&&e in f)return f[e];switch(e){case"keys":case N:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var l,u,c,h=t+" Iterator",d=!1,f=e.prototype,v=f[M]||f["@@iterator"]||i&&f[i],g=!O&&v||s(i),p="Array"==t&&f.entries||v;if(p&&(l=C(p.call(new e)),b!==Object.prototype&&l.next&&(R||C(l)===b||(E?E(l,b):"function"!=typeof l[M]&&k(l,M,m)),S(l,h,!0,!0),R&&(_[h]=m))),i==N&&v&&v.name!==N&&(d=!0,g=function(){return v.call(this)}),R&&!a||f[M]===g||k(f,M,g),_[t]=g,i)if(u={values:s(N),keys:r?g:s("keys"),entries:s("entries")},a)for(c in u)!O&&!d&&c in f||T(f,c,u[c]);else y({target:t,proto:!0,forced:O||d},u);return u}},function(e,t,n){var o=n(50),i=n(60),r=n(120),a=n(191),s=r("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),o(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){function o(s){return function(e,t){var n,o,i=String(u(e)),r=l(t),a=i.length;return r<0||a<=r?s?"":void 0:(n=i.charCodeAt(r))<55296||56319<n||r+1===a||(o=i.charCodeAt(r+1))<56320||57343<o?s?i.charAt(r):n:s?i.slice(r,r+2):o-56320+(n-55296<<10)+65536}}var l=n(86),u=n(49);e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var i=n(66);e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},function(e,t,n){function d(e,t){this.stopped=e,this.result=t}var f=n(46),v=n(194),g=n(52),p=n(104),m=n(195),y=n(196);(e.exports=function(e,t,n,o,i){var r,a,s,l,u,c,h=p(t,n,o?2:1);if(i)r=e;else{if("function"!=typeof(a=m(e)))throw TypeError("Target is not iterable");if(v(a)){for(s=0,l=g(e.length);s<l;s++)if((u=o?h(f(c=e[s])[0],c[1]):h(e[s]))&&u instanceof d)return u;return new d(!1)}r=a.call(e)}for(;!(c=r.next()).done;)if((u=y(r,h,c.value,o))&&u instanceof d)return u;return new d(!1)}).stop=function(e){return new d(!0,e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(42),a=n(192);e.exports=function(e,t,n){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(e,i),e}},function(e,t,n){var o=n(42),i=n(128),r=n(34)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var o=n(46);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o,i,r=n(158),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u=(o=/a/,i=/b*/g,a.call(o,"a"),a.call(i,"a"),0!==o.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(l=function(e){var t,n,o,i;return c&&(n=new RegExp("^"+this.source+"$(?!\\s)",r.call(this))),u&&(t=this.lastIndex),o=a.call(this,e),u&&o&&(this.lastIndex=this.global?o.index+o[0].length:t),c&&o&&1<o.length&&s.call(o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o}),e.exports=l},function(e,t,n){var o=n(42),i=n(76),r=n(34)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";var o=n(151).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){"use strict";t.__esModule=!0,t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=t.RENDER_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){var o=n(160);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var o=n(34)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.registerCellType=k,t.getCellType=function(e){if(C(e))return w(e);throw Error('You declared cell type "'.concat(e,'" 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'))},t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=void 0;var i=o(n(77)),r=n(56),a=n(41),s=n(78),l=o(n(332)),u=o(n(333)),c=o(n(334)),h=o(n(335)),d=o(n(336)),f=o(n(337)),v=o(n(338)),g=o(n(339)),p=o(n(340)),m=(0,i.default)("cellTypes"),y=m.register,w=m.getItem,C=m.hasItem,E=m.getNames,S=m.getValues;function k(e,t){var n=t.editor,o=t.renderer,i=t.validator;n&&(0,r.registerEditor)(e,n),o&&(0,a.registerRenderer)(e,o),i&&(0,s.registerValidator)(e,i),y(e,t)}t.getRegisteredCellTypes=S,t.getRegisteredCellTypeNames=E,t.hasCellType=C,k("autocomplete",l.default),k("checkbox",u.default),k("date",c.default),k("dropdown",h.default),k("handsontable",d.default),k("numeric",f.default),k("password",v.default),k("text",g.default),k("time",p.default)},function(e,t,n){"use strict";var o=n(0);n(19),n(57),n(12),n(65),n(30),n(79),n(80),n(13),n(39),n(342),n(32),t.__esModule=!0,t.default=function(e,t){var B,m,h,y,g,d=this,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],f=!1,W=this,p=function(){},o=new u.default(W);(0,j.extend)(p.prototype,q.default.prototype),(0,j.extend)(p.prototype,t),(0,j.extend)(p.prototype,T(t)),(0,J.applyLanguageSetting)(p.prototype,t.language),(0,G.hasValidParameter)(n)&&(0,G.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,ee.startObserving)(this.rootDocument),this.isDestroyed=!1,this.isHotTableEnv=(0,_.isChildOfWebComponentTable)(this.rootElement),u.default.isHotTableEnv=this.isHotTableEnv,this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,G.isRootInstance)(this)&&(0,Y._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,H.randomString)());var w=(0,F.getTranslator)(W);h=new x.default(W),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);B={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width","language"],settings:new p,selRange:null,isPopulated:null,scrollable:null,firstRun:!0};var C=new te.Selection(B.settings,{countCols:function(){return W.countCols()},countRows:function(){return W.countRows()},propToCol:function(e){return m.propToCol(e)},isEditorOpened:function(){return!!W.getActiveEditor()&&W.getActiveEditor().isOpened()}});function E(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function v(i,e,t){if(i.length){var n=W.getActiveEditor(),o=W.runHooks("beforeChange",i,e||"edit"),r=!0;if((0,O.isFunction)(o))(0,M.warn)("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed).");else if(!1===o)return void(n&&n.cancelChanges());var a,s,l,u=new E;u.onQueueEmpty=function(e){n&&r&&n.cancelChanges(),t(e)};for(var c=i.length-1;0<=c;c--)if(null===i[c])i.splice(c,1);else{var h=(0,R.default)(i[c],4),d=h[0],f=h[1],v=h[3],g=m.propToCol(f),p=W.getCellMeta(d,g);"numeric"===p.type&&"string"==typeof v&&(0<(l=v).length&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(l))&&(i[c][3]=(void 0,s=(a=v).replace(",","."),!1===isNaN(parseFloat(s))?parseFloat(s):a)),W.getCellValidator(p)&&(u.addValidatorToQueue(),W.validateCell(i[c][3],p,function(n,o){return function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");if(!1===e&&!1===o.allowInvalid){r=!1,i.splice(n,1),o.valid=!0;var t=W.getCell(o.visualRow,o.visualCol);null!==t&&(0,_.removeClass)(t,W.getSettings().invalidCellClassName)}u.removeValidatorFormQueue()}}(c,p),e))}u.checkIfQueueIsEmpty()}}function S(e,t){var n=e.length-1;if(!(n<0)){for(;0<=n;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(B.settings.allowInsertRow)for(;e[n][0]>W.countRows()-1;){if(0===m.createRow(void 0,void 0,t)){o=!0;break}}if("array"===W.dataType&&(!B.settings.columns||0===B.settings.columns.length)&&B.settings.allowInsertColumn)for(;m.propToCol(e[n][1])>W.countCols()-1;){if(0===m.createCol(void 0,void 0,t)){o=!0;break}}o||m.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}W.forceFullRender=!0,y.adjustRowsAndCols(),W.runHooks("beforeChangeRender",e,t),g.lockEditor(),W._refreshBorders(null),g.unlockEditor(),W.view.wt.wtOverlays.adjustElementsSize(),W.runHooks("afterChange",e,t||"edit");var i=W.getActiveEditor();i&&(0,Y.isDefined)(i.refreshValue)&&i.refreshValue()}}function k(e,t,n){return"object"===(0,V.default)(e)?e:[[e,t,n]]}function T(e){if((0,j.hasOwnProperty)(e,"type")){var t,n={};for(var o in"object"===(0,V.default)(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,Z.getCellType)(e.type)),t)(0,j.hasOwnProperty)(t,o)&&!(0,j.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}this.selection=C,this.selection.addLocalHook("beforeSetRangeStart",function(e){d.runHooks("beforeSetRangeStart",e)}),this.selection.addLocalHook("beforeSetRangeStartOnly",function(e){d.runHooks("beforeSetRangeStartOnly",e)}),this.selection.addLocalHook("beforeSetRangeEnd",function(e){d.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=d.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=d.view.wt.wtTable.getFirstVisibleColumn())}),this.selection.addLocalHook("afterSetRangeEnd",function(e){var t=(0,j.createObjectPropListener)(!1),n=d.selection.getSelectedRange(),o=n.current(),i=o.from,r=o.to,a=n.size()-1;d.runHooks("afterSelection",i.row,i.col,r.row,r.col,t,a),d.runHooks("afterSelectionByProp",i.row,W.colToProp(i.col),r.row,W.colToProp(r.col),t,a);var s=d.selection.isSelectedByAnyHeader(),l=d.selection.selectedRange.current(),u=!0;f&&(u=!1),t.isTouched()&&(u=!t.value);var c=d.selection.isSelectedByRowHeader(),h=d.selection.isSelectedByColumnHeader();!1!==u&&(s?c?d.view.scrollViewportVertically(e.row):h&&d.view.scrollViewportHorizontally(e.col):l&&!d.selection.isMultiple()?d.view.scrollViewport(l.from):d.view.scrollViewport(e)),c&&h?(0,_.addClass)(d.rootElement,["ht__selection--rows","ht__selection--columns"]):c?((0,_.removeClass)(d.rootElement,"ht__selection--columns"),(0,_.addClass)(d.rootElement,"ht__selection--rows")):h?((0,_.removeClass)(d.rootElement,"ht__selection--rows"),(0,_.addClass)(d.rootElement,"ht__selection--columns")):(0,_.removeClass)(d.rootElement,["ht__selection--rows","ht__selection--columns"]),d._refreshBorders(null)}),this.selection.addLocalHook("afterSelectionFinished",function(e){var t=e.length-1,n=e[t],o=n.from,i=n.to;d.runHooks("afterSelectionEnd",o.row,o.col,i.row,i.col,t),d.runHooks("afterSelectionEndByProp",o.row,W.colToProp(o.col),i.row,W.colToProp(i.col),t)}),this.selection.addLocalHook("afterIsMultipleSelection",function(e){var t=d.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("beforeModifyTransformStart",function(e){d.runHooks("modifyTransformStart",e)}),this.selection.addLocalHook("afterModifyTransformStart",function(e,t,n){d.runHooks("afterModifyTransformStart",e,t,n)}),this.selection.addLocalHook("beforeModifyTransformEnd",function(e){d.runHooks("modifyTransformEnd",e)}),this.selection.addLocalHook("afterModifyTransformEnd",function(e,t,n){d.runHooks("afterModifyTransformEnd",e,t,n)}),this.selection.addLocalHook("afterDeselect",function(){g.destroyEditor(),d._refreshBorders(),(0,_.removeClass)(d.rootElement,["ht__selection--rows","ht__selection--columns"]),d.runHooks("afterDeselect")}),this.selection.addLocalHook("insertRowRequire",function(e){d.alter("insert_row",e,1,"auto")}),this.selection.addLocalHook("insertColRequire",function(e){d.alter("insert_col",e,1,"auto")}),y={alter:function(e,t,n,o,i){var r,u=2<arguments.length&&void 0!==n?n:1,c=3<arguments.length?o:void 0,a=4<arguments.length?i:void 0;function s(e,t,n,o){var i=(0,N.arrayMap)(new Array(n),function(){return function(){var e;return"array"===o?e=[]:"object"===o&&(e={}),e}()});i.unshift(t,0),e.splice.apply(e,(0,U.default)(i))}function l(e){if(0===e.length)return[];var t=(0,U.default)(e);return t.sort(function(e,t){var n=(0,R.default)(e,1)[0],o=(0,R.default)(t,1)[0];return n===o?0:o<n?1:-1}),(0,N.arrayReduce)(t,function(e,t){var n=(0,R.default)(t,2),o=n[0],i=n[1],r=e[e.length-1],a=(0,R.default)(r,2),s=a[0]+a[1];if(o<=s){var l=Math.max(i-(s-o),0);r[1]+=l}else e.push([o,i]);return e},[t[0]])}switch(e){case"insert_row":var h=W.countSourceRows();if(W.getSettings().maxRows===h)return;t=(0,Y.isDefined)(t)?t:h,r=m.createRow(t,u,c),s(B.cellSettings,t,u,"array"),r&&(C.isSelected()&&C.selectedRange.current().from.row>=t?(C.selectedRange.current().from.row+=r,C.transformEnd(r,0)):W._refreshBorders());break;case"insert_col":r=m.createCol(t,u,c);for(var d=0,f=W.countSourceRows();d<f;d++)B.cellSettings[d]&&s(B.cellSettings[d],t,u);if(r){if(Array.isArray(W.getSettings().colHeaders)){var v=[t,0];v.length+=r,Array.prototype.splice.apply(W.getSettings().colHeaders,v)}C.isSelected()&&C.selectedRange.current().from.col>=t?(C.selectedRange.current().from.col+=r,C.transformEnd(0,r)):W._refreshBorders()}break;case"remove_row":var g=function(e){var l=0;(0,N.arrayEach)(e,function(e){var t=(0,R.default)(e,2),n=t[0],o=t[1],i=(0,Y.isEmpty)(n)?W.countRows()-1:Math.max(n-l,0);Number.isInteger(n)&&(n=Math.max(n-l,0)),m.removeRow(n,o,c),B.cellSettings.splice(i,u);var r=W.countRows(),a=W.getSettings().fixedRowsTop;i+1<=a&&(W.getSettings().fixedRowsTop-=Math.min(o,a-i));var s=W.getSettings().fixedRowsBottom;s&&r-s<=i&&(W.getSettings().fixedRowsBottom-=Math.min(o,s)),l+=o})};Array.isArray(t)?g(l(t)):g([[t,u]]),y.adjustRowsAndCols(),W._refreshBorders();break;case"remove_col":var p=function(e){var u=0;(0,N.arrayEach)(e,function(e){var t=(0,R.default)(e,2),n=t[0],o=t[1],i=(0,Y.isEmpty)(n)?W.countCols()-1:Math.max(n-u,0),r=w.toPhysicalColumn(i);Number.isInteger(n)&&(n=Math.max(n-u,0)),m.removeCol(n,o,c);for(var a=0,s=W.countSourceRows();a<s;a++)B.cellSettings[a]&&B.cellSettings[a].splice(r,o);var l=W.getSettings().fixedColumnsLeft;i+1<=l&&(W.getSettings().fixedColumnsLeft-=Math.min(o,l-i)),Array.isArray(W.getSettings().colHeaders)&&(void 0===r&&(r=-1),W.getSettings().colHeaders.splice(r,o)),u+=o})};Array.isArray(t)?p(l(t)):p([[t,u]]),y.adjustRowsAndCols(),W._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}a||y.adjustRowsAndCols()},adjustRowsAndCols:function(){if(B.settings.minRows){var e=W.countRows();if(e<B.settings.minRows)for(var t=0,n=B.settings.minRows;t<n-e;t++)m.createRow(W.countRows(),1,"auto")}if(B.settings.minSpareRows){var o=W.countEmptyRows(!0);if(o<B.settings.minSpareRows)for(;o<B.settings.minSpareRows&&W.countSourceRows()<B.settings.maxRows;o++)m.createRow(W.countRows(),1,"auto")}var i;if((B.settings.minCols||B.settings.minSpareCols)&&(i=W.countEmptyCols(!0)),B.settings.minCols&&!B.settings.columns&&W.countCols()<B.settings.minCols)for(;W.countCols()<B.settings.minCols;i++)m.createCol(W.countCols(),1,"auto");if(B.settings.minSpareCols&&!B.settings.columns&&"array"===W.dataType&&i<B.settings.minSpareCols)for(;i<B.settings.minSpareCols&&W.countCols()<B.settings.maxCols;i++)m.createCol(W.countCols(),1,"auto");var a=W.countRows(),s=W.countCols();0!==a&&0!==s||C.deselect(),C.isSelected()&&(0,N.arrayEach)(C.selectedRange,function(e){var t=!1,n=e.from.row,o=e.from.col,i=e.to.row,r=e.to.col;a-1<n?(t=!0,(n=a-1)<i&&(i=n)):a-1<i&&(t=!0,(i=a-1)<n&&(n=i)),s-1<o?(t=!0,(o=s-1)<r&&(r=o)):s-1<r&&(t=!0,(r=s-1)<o&&(o=r)),t&&W.selectCell(n,o,i,r)}),W.view&&W.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,i,t,n,o,r,a){var s,l,u,c,h,d,f,v,g=[],p={};if(0===(l=i.length))return!1;switch(o){case"shift_down":for(h=t?t.col-e.col+1:0,d=t?t.row-e.row+1:0,c=(i=(u=0,z.translateRowsToColumns)(i)).length,f=Math.max(c,h);u<f;u++)if(u<c){var m;for(s=0,l=i[u].length;s<d-l;s++)i[u].push(i[u][s%l]);i[u].unshift(e.col+u,e.row,0),(m=W).spliceCol.apply(m,(0,U.default)(i[u]))}else{var y;i[u%c][0]=e.col+u,(y=W).spliceCol.apply(y,(0,U.default)(i[u%c]))}break;case"shift_right":for(h=t?t.col-e.col+1:0,d=t?t.row-e.row+1:0,s=0,l=i.length,v=Math.max(l,d);s<v;s++)if(s<l){var w;for(u=0,c=i[s].length;u<h-c;u++)i[s].push(i[s][u%c]);i[s].unshift(e.row+s,e.col,0),(w=W).spliceRow.apply(w,(0,U.default)(i[s]))}else{var C;i[s%l][0]=e.row+s,(C=W).spliceRow.apply(C,(0,U.default)(i[s%l]))}break;case"overwrite":default:p.row=e.row,p.col=e.col;var E,S={row:t&&e?t.row-e.row+1:1,col:t&&e?t.col-e.col+1:1},k=0,T=0,R=!0,_=function(e,t){var n=1<arguments.length&&void 0!==t?t:null,o=i[e%i.length];return null!==n?o[n%o.length]:o},b=i.length,O=t?t.row-e.row+1:0;for(l=t?O:Math.max(b,O),s=0;s<l&&!(t&&p.row>t.row&&b<O||!B.settings.allowInsertRow&&p.row>W.countRows()-1||p.row>=B.settings.maxRows);s++){var M=s-k,N=_(M).length,A=t?t.col-e.col+1:0;if(c=t?A:Math.max(N,A),p.col=e.col,E=W.getCellMeta(p.row,p.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!E.skipRowOnPaste){for(u=T=0;u<c&&!(t&&p.col>t.col&&N<A||!B.settings.allowInsertColumn&&p.col>W.countCols()-1||p.col>=B.settings.maxCols);u++)if(E=W.getCellMeta(p.row,p.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!E.skipColumnOnPaste)if(E.readOnly)p.col+=1;else{var D=u-T,I=_(M,D),H=W.getDataAtCell(p.row,p.col),L={row:M,col:D};if("Autofill.fill"===n){var P=W.runHooks("beforeAutofillInsidePopulate",L,r,i,a,{},S);P&&(I=(0,Y.isUndefined)(P.value)?I:P.value)}if(null!==I&&"object"===(0,V.default)(I))if(Array.isArray(I)&&null===H&&(H=[]),null===H||"object"!==(0,V.default)(H))R=!1;else{var x=(0,j.duckSchema)(Array.isArray(H)?H:H[0]||H),F=(0,j.duckSchema)(Array.isArray(I)?I:I[0]||I);(0,j.isObjectEqual)(x,F)?I=(0,j.deepClone)(I):R=!1}else null!==H&&"object"===(0,V.default)(H)&&(R=!1);R&&g.push([p.row,p.col,I]),R=!0,p.col+=1}else T+=1,p.col+=1,c+=1;p.row+=1}else k+=1,p.row+=1,l+=1}W.setDataAtCell(g,null,null,n||"populateFromArray")}}},this.init=function(){h.setData(B.settings.data),W.runHooks("beforeInit"),(0,a.isMobileBrowser)()&&(0,_.addClass)(W.rootElement,"mobile"),this.updateSettings(B.settings,!0),this.view=new P.default(this),g=l.default.getInstance(W,B,C,m),this.forceFullRender=!0,W.runHooks("init"),this.view.render(),"object"===(0,V.default)(B.firstRun)&&(W.runHooks("afterChange",B.firstRun[0],B.firstRun[1]),B.firstRun=!1),W.runHooks("afterInit")},this.validateCell=function(t,r,a,n){var o,e=W.getCellValidator(r);function i(e,t){if((!(1<arguments.length&&void 0!==t)||t)&&!0!==r.hidden){var n=r.visualCol,o=r.visualRow,i=W.getCell(o,n,!0);i&&"TH"!==i.nodeName&&W.view.wt.wtSettings.settings.cellRenderer(o,n,i),a(e)}else a(e)}(0,Y.isRegExp)(e)&&(o=e,e=function(e,t){t(o.test(e))}),(0,O.isFunction)(e)?(t=W.runHooks("beforeValidate",t,r.visualRow,r.prop,n),W._registerImmediate(function(){e.call(r,t,function(e){W&&(e=W.runHooks("afterValidate",e,t,r.visualRow,r.prop,n),i(r.valid=e),W.runHooks("postAfterValidate",e,t,r.visualRow,r.prop,n))})})):W._registerImmediate(function(){r.valid=!0,i(r.valid,!1)})},this.setDataAtCell=function(e,t,n,o){var i,r,a,s=k(e,t,n),l=[],u=o;for(i=0,r=s.length;i<r;i++){if("object"!==(0,V.default)(s[i]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof s[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");var c=w.toPhysicalRow(s[i][0]);a=m.colToProp(s[i][1]),l.push([s[i][0],a,h.getAtCell(c,s[i][1]),s[i][2]])}u||"object"!==(0,V.default)(e)||(u=t),W.runHooks("afterSetDataAtCell",l,u),v(l,u,function(){S(l,u)})},this.setDataAtRowProp=function(e,t,n,o){var i,r,a=k(e,t,n),s=[],l=o;for(i=0,r=a.length;i<r;i++){var u=w.toPhysicalRow(a[i][0]);s.push([a[i][0],a[i][1],h.getAtCell(u,a[i][1]),a[i][2]])}l||"object"!==(0,V.default)(e)||(l=t),W.runHooks("afterSetDataAtRowProp",s,l),v(s,l,function(){S(s,l)})},this.listen=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=W.rootDocument;if(e){var n=!t.activeElement||t.activeElement&&void 0===t.activeElement.nodeName;t.activeElement&&t.activeElement!==t.body&&!n?t.activeElement.blur():n&&t.body.focus()}W&&!W.isListening()&&(ne=W.guid,W.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(ne=null,W.runHooks("afterUnlisten"))},this.isListening=function(){return ne===W.guid},this.destroyEditor=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];W._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,o,i,r,a,s,l){if("object"!==(0,V.default)(n)||"object"!==(0,V.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var u="number"==typeof o?new K.CellCoords(o,i):null;return y.populateFromArray(new K.CellCoords(e,t),n,u,r,a,s,l)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,r=new Array(3<i?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];return(o=m).spliceCol.apply(o,[e,t,n].concat(r))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,r=new Array(3<i?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];return(o=m).spliceRow.apply(o,[e,t,n].concat(r))},this.getSelected=function(){if(C.isSelected())return(0,N.arrayMap)(C.getSelectedRange(),function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]})},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&0<t.length&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(C.isSelected())return Array.from(C.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&0<t.length&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var i=this;if(C.isSelected()){var r=[];(0,N.arrayEach)(C.getSelectedRange(),function(e){var n=e.getTopLeftCorner(),o=e.getBottomRightCorner();(0,L.rangeEach)(n.row,o.row,function(t){(0,L.rangeEach)(n.col,o.col,function(e){i.getCellMeta(t,e).readOnly||r.push([t,e,null])})})}),0<r.length&&this.setDataAtCell(r,e)}},this.render=function(){W.view&&(W.renderCall=!0,W.forceFullRender=!0,g.lockEditor(),W._refreshBorders(null),g.unlockEditor())},this.refreshDimensions=function(){if(W.view){var e=W.view.getLastSize(),t=e.width,n=e.height,o=W.rootElement.getBoundingClientRect(),i=o.width,r=o.height,a=i!==t||r!==n;!1===W.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:i,height:r},a)||(!a&&W.view.wt.wtOverlays.scrollableElement!==W.rootWindow||(W.view.setLastSize(i,r),W.render()),W.runHooks("afterRefreshDimensions",{width:t,height:n},{width:i,height:r},a))}},this.loadData=function(e){if(Array.isArray(B.settings.dataSchema)?W.dataType="array":(0,O.isFunction)(B.settings.dataSchema)?W.dataType="function":W.dataType="object",m&&m.destroy(),m=new s.default(W,B,p),"object"===(0,V.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays (".concat((0,V.default)(e)," given)"));var t,n=m.getSchema();e=[];var o,i=0;for(i=0,o=B.settings.startRows;i<o;i++)if("object"!==W.dataType&&"function"!==W.dataType||!B.settings.dataSchema)if("array"===W.dataType)t=(0,j.deepClone)(n[0]),e.push(t);else{t=[];for(var r=0,a=B.settings.startCols;r<a;r++)t.push(null);e.push(t)}else t=(0,j.deepClone)(n),e.push(t)}B.isPopulated=!1,p.prototype.data=e,Array.isArray(e[0])&&(W.dataType="array"),m.dataSource=e,h.data=e,h.dataType=W.dataType,h.colToProp=m.colToProp.bind(m),h.propToCol=m.propToCol.bind(m),B.cellSettings.length=0,y.adjustRowsAndCols(),W.runHooks("afterLoadData",B.firstRun),B.firstRun?B.firstRun=[null,"loadData"]:(W.runHooks("afterChange",null,"loadData"),W.render()),B.isPopulated=!0},this.getData=function(e,t,n,o){return(0,Y.isUndefined)(e)?m.getAll():m.getRange(new K.CellCoords(e,t),new K.CellCoords(n,o),m.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return m.getCopyableText(new K.CellCoords(e,t),new K.CellCoords(n,o))},this.getCopyableData=function(e,t){return m.getCopyable(e,m.colToProp(t))},this.getSchema=function(){return m.getSchema()},this.updateSettings=function(e){var t,n,o,i,r,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],s=!1;if((0,Y.isDefined)(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,Y.isDefined)(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(t in e)"data"!==t&&("language"!==t?-1<X.default.getSingleton().getRegistered().indexOf(t)?((0,O.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,W.addHook(t,e[t])):!a&&(0,j.hasOwnProperty)(e,t)&&(p.prototype[t]=e[t]):(i=e.language,void 0,r=(0,J.normalizeLanguageCode)(i),(0,Q.hasLanguageDictionary)(r)?(W.runHooks("beforeLanguageChange",r),p.prototype.language=r,W.runHooks("afterLanguageChange",r)):(0,J.warnUserAboutLanguageRegistration)(i)));void 0===e.data&&void 0===B.settings.data?W.loadData(null):void 0!==e.data?W.loadData(e.data):void 0!==e.columns&&m.createMap(),o=W.countCols();var l,u,c=e.columns||p.prototype.columns;if(c&&(0,O.isFunction)(c)&&(o=W.countSourceCols(),s=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(B.cellSettings.length=0),0<o)for(n=t=0;t<o;t++)s&&!c(t)||(B.columnSettings[n]=(0,b.columnFactory)(p,B.columnsSettingConflicts),l=B.columnSettings[n].prototype,c&&(u=s?c(t):c[n])&&((0,j.extend)(l,u),(0,j.extend)(l,T(u))),n+=1);(0,Y.isDefined)(e.cell)&&(0,j.objectEach)(e.cell,function(e){W.setCellMetaObject(e.row,e.col,e)}),W.runHooks("afterCellMetaReset"),(0,Y.isDefined)(e.className)&&(p.prototype.className&&(0,_.removeClass)(W.rootElement,p.prototype.className),e.className&&(0,_.addClass)(W.rootElement,e.className));var h=W.rootElement.style.height;""!==h&&(h=parseInt(W.rootElement.style.height,10));var d=e.height;(0,O.isFunction)(d)&&(d=d()),!a||W.rootElement.getAttribute("style")&&W.rootElement.setAttribute("data-initialstyle",W.rootElement.getAttribute("style"));if(null===d){var f=W.rootElement.getAttribute("data-initialstyle");f&&(-1<f.indexOf("height")||-1<f.indexOf("overflow"))?W.rootElement.setAttribute("style",f):(W.rootElement.style.height="",W.rootElement.style.overflow="")}else void 0!==d&&(W.rootElement.style.height=isNaN(d)?"".concat(d):"".concat(d,"px"),W.rootElement.style.overflow="hidden");if(void 0!==e.width){var v=e.width;(0,O.isFunction)(v)&&(v=v()),W.rootElement.style.width=isNaN(v)?"".concat(v):"".concat(v,"px")}a||(m.clearLengthCache(),W.view&&W.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),W.runHooks("afterUpdateSettings",e)),y.adjustRowsAndCols(),W.view&&!B.firstRun&&(W.forceFullRender=!0,g.lockEditor(),W._refreshBorders(null),g.unlockEditor()),a||!W.view||""!==h&&""!==d&&void 0!==d||h===d||W.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=W.getSelectedLast();if(p.prototype.getValue){if((0,O.isFunction)(p.prototype.getValue))return p.prototype.getValue.call(W);if(e)return W.getData()[e[0][0]][p.prototype.getValue]}else if(e)return W.getDataAtCell(e[0],e[1])},this.getSettings=function(){return B.settings},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,o,i){y.alter(e,t,n,o,i)},this.getCell=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return W.view.getCellAtCoords(new K.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return m.colToProp(e)},this.propToCol=function(e){return m.propToCol(e)},this.toVisualRow=function(e){return w.toVisualRow(e)},this.toVisualColumn=function(e){return w.toVisualColumn(e)},this.toPhysicalRow=function(e){return w.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return w.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return m.get(e,m.colToProp(t))},this.getDataAtRowProp=function(e,t){return m.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,(0,U.default)(m.getRange(new K.CellCoords(0,e),new K.CellCoords(B.settings.data.length-1,e),m.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=m.getRange(new K.CellCoords(0,m.propToCol(e)),new K.CellCoords(B.settings.data.length-1,m.propToCol(e)),m.DESTINATION_RENDERER);return(t=[]).concat.apply(t,(0,U.default)(n))},this.getSourceData=function(e,t,n,o){return void 0===e?h.getData():h.getByRange(new K.CellCoords(e,t),new K.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?h.getData(!0):h.getByRange(new K.CellCoords(e,t),new K.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return h.getAtColumn(e)},this.getSourceDataAtRow=function(e){return h.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return h.getAtCell(e,t)},this.getDataAtRow=function(e){return m.getRange(new K.CellCoords(e,0),new K.CellCoords(e,this.countCols()-1),m.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var i=this,r=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,o],a=r[0],s=r[1],l=r[2],u=r[3],c=null,h=null;void 0===l&&(l=a),void 0===u&&(u=s);var d="mixed";return(0,L.rangeEach)(Math.min(a,l),Math.max(a,l),function(n){var o=!0;return(0,L.rangeEach)(Math.min(s,u),Math.max(s,u),function(e){var t=i.getCellMeta(n,e);return h=t.type,c?o=c===h:c=h,o}),d=o?h:"mixed",o}),d},this.removeCellMeta=function(e,t,n){var o=w.toPhysical(e,t),i=(0,R.default)(o,2),r=i[0],a=i[1],s=B.cellSettings[r][a][n];!1!==W.runHooks("beforeRemoveCellMeta",e,t,n,s)&&(delete B.cellSettings[r][a][n],W.runHooks("afterRemoveCellMeta",e,t,n,s)),s=null},this.spliceCellsMeta=function(e,t){for(var n,o=arguments.length,i=new Array(2<o?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];(n=B.cellSettings).splice.apply(n,[e,t].concat(i))},this.setCellMetaObject=function(n,o,e){var i=this;"object"===(0,V.default)(e)&&(0,j.objectEach)(e,function(e,t){i.setCellMeta(n,o,t,e)})},this.setCellMeta=function(e,t,n,o){var i=w.toPhysical(e,t),r=(0,R.default)(i,2),a=r[0],s=r[1];B.columnSettings[s]||(B.columnSettings[s]=(0,b.columnFactory)(p,B.columnsSettingConflicts)),B.cellSettings[a]||(B.cellSettings[a]=[]),B.cellSettings[a][s]||(B.cellSettings[a][s]=new B.columnSettings[s]),B.cellSettings[a][s][n]=o,W.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return(0,N.arrayFlatten)(B.cellSettings)},this.getCellMeta=function(e,t){var n=m.colToProp(t),o=w.toPhysical(e,t),i=(0,R.default)(o,2),r=i[0],a=i[1],s=r;null===s&&(s=e),B.columnSettings[a]||(B.columnSettings[a]=(0,b.columnFactory)(p,B.columnsSettingConflicts)),B.cellSettings[s]||(B.cellSettings[s]=[]),B.cellSettings[s][a]||(B.cellSettings[s][a]=new B.columnSettings[a]);var l=B.cellSettings[s][a];if(l.row=s,l.col=a,l.visualRow=e,l.visualCol=t,l.prop=n,(l.instance=W).runHooks("beforeGetCellMeta",e,t,l),(0,j.extend)(l,T(l)),l.cells){var u=l.cells.call(l,s,a,n);u&&((0,j.extend)(l,u),(0,j.extend)(l,T(u)))}return W.runHooks("afterGetCellMeta",e,t,l),l},this.getCellMetaAtRow=function(e){return B.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===W.dataType||W.getSettings().columns)};var i=(0,z.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,D.getRenderer)(i.call(this,e,t))},this.getCellEditor=(0,z.cellMethodLookupFactory)("editor");var r=(0,z.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=r.call(this,e,t);return"string"==typeof n&&(n=(0,I.getValidator)(n)),n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var o=new E;e&&(o.onQueueEmpty=e);for(var i=W.countRows()-1;0<=i;)if(void 0===t||-1!==t.indexOf(i)){for(var r=W.countCols()-1;0<=r;)(void 0===n||-1!==n.indexOf(r))&&(o.addValidatorToQueue(),W.validateCell(W.getDataAtCell(i,r),W.getCellMeta(i,r),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(o.valid=!1),o.removeValidatorFormQueue()},"validateCells")),r-=1;i-=1}else i-=1;o.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=B.settings.rowHeaders,n=e;return void 0!==n&&(n=W.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,L.rangeEach)(W.countRows()-1,function(e){t.push(W.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,O.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!B.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==B.settings.colHeaders&&null!==B.settings.colHeaders)return!!B.settings.colHeaders;for(var e=0,t=W.countCols();e<t;e++)if(W.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=B.settings.columns&&(0,O.isFunction)(B.settings.columns),n=W.runHooks("modifyColHeader",e),o=B.settings.colHeaders;if(void 0===n){for(var i=[],r=t?W.countSourceCols():W.countCols(),a=0;a<r;a++)i.push(W.getColHeader(a));o=i}else{var s=n,l=W.runHooks("modifyCol",s),u=function(e){for(var t=[],n=W.countSourceCols(),o=0;o<n;o++)(0,O.isFunction)(W.getSettings().columns)&&W.getSettings().columns(o)&&t.push(o);return t[e]}(l);!1===B.settings.colHeaders?o=null:B.settings.columns&&(0,O.isFunction)(B.settings.columns)&&B.settings.columns(u)&&B.settings.columns(u).title?o=B.settings.columns(u).title:B.settings.columns&&B.settings.columns[l]&&B.settings.columns[l].title?o=B.settings.columns[l].title:Array.isArray(B.settings.colHeaders)&&void 0!==B.settings.colHeaders[l]?o=B.settings.colHeaders[l]:(0,O.isFunction)(B.settings.colHeaders)?o=B.settings.colHeaders(l):B.settings.colHeaders&&"string"!=typeof B.settings.colHeaders&&"number"!=typeof B.settings.colHeaders&&(o=(0,z.spreadsheetColumnLabel)(s))}return o},this._getColWidthFromSettings=function(e){var t=W.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==B.settings.width||(n=t.colWidths),null!=n){switch((0,V.default)(n)){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=W._getColWidthFromSettings(e);return void 0===(t=W.runHooks("modifyColWidth",t,e))&&(t=K.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=B.settings.rowHeights;if(null!=t){switch((0,V.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=W._getRowHeightFromSettings(e);return t=W.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return W.runHooks("modifySourceLength")||(W.getSourceData()?W.getSourceData().length:0)},this.countSourceCols=function(){var e=W.getSourceData()&&W.getSourceData()[0]?W.getSourceData()[0]:[];return(0,j.isObject)(e)?(0,j.deepObjectSize)(e):e.length||0},this.countRows=function(){return m.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,n=0;if("array"===W.dataType&&(t=B.settings.data&&B.settings.data[0]&&B.settings.data[0].length),t&&(n=B.settings.data[0].length),B.settings.columns)if((0,O.isFunction)(B.settings.columns))if("array"===W.dataType){for(var o=0,i=0;i<n;i++)B.settings.columns(i)&&(o+=1);n=o}else"object"!==W.dataType&&"function"!==W.dataType||(n=m.colToPropCache.length);else n=B.settings.columns.length;else"object"!==W.dataType&&"function"!==W.dataType||(n=m.colToPropCache.length);return Math.min(e,n)},this.rowOffset=function(){return W.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return W.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return W.view.wt.drawn?W.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return W.view.wt.drawn?W.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return W.view.wt.drawn?W.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return W.view.wt.drawn?W.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=0;return(0,L.rangeEachReverse)(W.countRows()-1,function(e){if(W.isEmptyRow(e))n+=1;else if(!0===t)return!1}),n},this.countEmptyCols=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(W.countRows()<1)return 0;var n=0;return(0,L.rangeEachReverse)(W.countCols()-1,function(e){if(W.isEmptyCol(e))n+=1;else if(!0===t)return!1}),n},this.isEmptyRow=function(e){return B.settings.isEmptyRow.call(W,e)},this.isEmptyCol=function(e){return B.settings.isEmptyCol.call(W,e)},this.selectCell=function(e,t,n,o){var i=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],r=!(5<arguments.length&&void 0!==arguments[5])||arguments[5];return!(0,Y.isUndefined)(e)&&!(0,Y.isUndefined)(t)&&this.selectCells([[e,t,n,o]],i,r)},this.selectCells=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[[]],t=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];!1===(!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(f=!0);var n=C.selectCells(e);return n&&t&&W.listen(),f=!1,n},this.selectColumns=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;return C.selectColumns(e,t)},this.selectRows=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;return C.selectRows(e,t)},this.deselectCell=function(){C.deselect()},this.selectAll=function(){f=!0,C.selectAll(),f=!1},this.scrollViewportTo=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],i=!n,r=!o,a=!1;return void 0!==e&&void 0!==t&&(a=W.view.scrollViewport(new K.CellCoords(e,t),i,o,n,r)),"number"==typeof e&&"number"!=typeof t&&(a=W.view.scrollViewportVertically(e,i,n)),"number"==typeof t&&"number"!=typeof e&&(a=W.view.scrollViewportHorizontally(t,o,r)),a},this.destroy=function(){if(W._clearTimeouts(),W._clearImmediates(),W.view&&W.view.destroy(),h&&h.destroy(),h=null,(0,ee.stopObserving)(),(0,G.isRootInstance)(W)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,_.empty)(W.rootElement),o.destroy(),g&&g.destroy(),W.runHooks("afterDestroy"),X.default.getSingleton().destroy(W),(0,j.objectEach)(W,function(e,t,n){(0,O.isFunction)(e)?n[t]=function(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}(t):"guid"!==t&&(n[t]=null)}),W.isDestroyed=!0,m&&m.destroy(),p=W=g=C=y=B=m=null},this.getActiveEditor=function(){return g.getActiveEditor()},this.getPlugin=function(e){return(0,A.getPlugin)(this,e)},this.getInstance=function(){return W},this.addHook=function(e,t){X.default.getSingleton().add(e,t,W)},this.hasHook=function(e){return X.default.getSingleton().has(e,W)},this.addHookOnce=function(e,t){X.default.getSingleton().once(e,t,W)},this.removeHook=function(e,t){X.default.getSingleton().remove(e,t,W)},this.runHooks=function(e,t,n,o,i,r,a){return X.default.getSingleton().run(W,e,t,n,o,i,r,a)},this.getTranslatedPhrase=function(e,t){return(0,$.getTranslatedPhrase)(B.settings.language,e,t)},this.toHTML=function(){return(0,c.instanceToHTML)(d)},this.toTableElement=function(){var e=d.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,c.instanceToHTML)(d)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=e;"function"==typeof t&&(t=setTimeout(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,N.arrayEach)(this.timeouts,function(e){clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,N.arrayEach)(this.immediates,function(e){clearImmediate(e)})},this._refreshBorders=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];g.destroyEditor(e),W.view.render(),t&&C.isSelected()&&g.prepareEditor()},X.default.getSingleton().run(W,"construct")};var V=o(n(44)),R=o(n(18)),U=o(n(37)),_=n(6),b=n(167),O=n(75),M=n(58),Y=n(28),a=n(73),s=o(n(344)),l=o(n(346)),u=o(n(24)),j=n(4),N=n(3),c=n(168),A=n(20),D=n(41),I=n(78),H=n(72),L=n(17),P=o(n(348)),x=o(n(349)),z=n(137),F=n(92),G=n(234),K=n(25),X=o(n(43)),q=o(n(237)),Z=n(165),$=n(238),Q=n(139),J=n(239),ee=n(140),te=n(240),ne=null},function(e,t,n){"use strict";t.__esModule=!0,t.columnFactory=function(e,t){function n(){}(0,r.inherit)(n,e);for(var o=0,i=t.length;o<i;o++)n.prototype[t[o]]=void 0;return n};var r=n(4)},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(347),n(57),n(31),n(53),n(30),n(10),n(36),n(38),n(13),n(39),t.__esModule=!0,t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),o=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],i=e.getData.apply(e,o),r=i.length,a=0<r?i[0].length:0,s=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,h=t?1:0,d=0;d<r;d+=1){for(var f=t&&0===d,v=[],g=0;g<a;g+=1){var p=!f&&n&&0===g,m="";if(f)m="<th>".concat(e.getColHeader(g-c),"</th>");else if(p)m="<th>".concat(e.getRowHeader(d-h),"</th>");else{var y=i[d][g],w=e.getCellMeta(d-c,g-h),C=w.hidden,E=w.rowspan,S=w.colspan;if(!C){var k=[];if(E&&k.push('rowspan="'.concat(E,'"')),S&&k.push('colspan="'.concat(S,'"')),(0,_.isEmpty)(y))m="<td ".concat(k.join(" "),"></td>");else{var T=y.toString().replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");m="<td ".concat(k.join(" "),">").concat(T,"</td>")}}}v.push(m)}var R=["<tr>"].concat(v,["</tr>"]).join("");f?l.splice(1,0,R):u.splice(-1,0,R)}return s.splice(1,0,l.join(""),u.join("")),s.join("")},t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],o=0;o<t;o+=1){var i=e[o],r=i.length,a=[];0===o&&n.push("<tbody>");for(var s=0;s<r;s+=1){var l=i[s],u=(0,_.isEmpty)(l)?"":l.toString().replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");a.push("<td>".concat(u,"</td>"))}n.push.apply(n,["<tr>"].concat(a,["</tr>"])),o+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document,n={},o=t.createDocumentFragment(),i=t.createElement("div");o.appendChild(i);var r=e;"string"==typeof r&&(i.insertAdjacentHTML("afterbegin","".concat(r)),r=i.querySelector("table"));if(!r||!function(e){return"TABLE"===(e&&e.nodeName||"")}(r))return;var a=i.querySelector("style"),s=null,c=[];a&&(t.body.appendChild(a),a.disabled=!0,s=a.sheet,c=s?Array.from(s.cssRules):[],t.body.removeChild(a));var h,d=i.querySelector('meta[name$="enerator"]'),l=null!==r.querySelector("tbody th"),u=Array.from(r.querySelector("tr").cells).reduce(function(e,t){return e+t.colSpan},0)-(l?1:0),f=r.tFoot&&Array.from(r.tFoot.rows)||[],v=[],g=!1,p=0;if(r.tHead){var m=Array.from(r.tHead.rows).filter(function(e){var t=null!==e.querySelector("td");return t&&v.push(e),!t});p=m.length,g=0<p,1<p?n.nestedHeaders=Array.from(m).reduce(function(e,t){var n=Array.from(t.cells).reduce(function(e,t,n){if(l&&0===n)return e;var o=t.colSpan,i=t.innerHTML,r=1<o?{label:i,colspan:o}:i;return e.push(r),e},[]);return e.push(n),e},[]):g&&(n.colHeaders=Array.from(m[0].children).reduce(function(e,t,n){return l&&0===n||e.push(t.innerHTML),e},[]))}v.length&&(n.fixedRowsTop=v.length);f.length&&(n.fixedRowsBottom=f.length);var y=[].concat(v,(0,M.default)(Array.from(r.tBodies).reduce(function(e,t){return e.push.apply(e,(0,M.default)(t.rows)),e},[])),(0,M.default)(f));h=y.length;for(var w=new Array(h),C=0;C<h;C++)w[C]=new Array(u);for(var E=[],S=[],k=0;k<h;k++)for(var T=y[k],R=Array.from(T.cells),_=R.length,b=function(e){var o=R[e],t=o.nodeName,n=o.innerHTML,i=o.rowSpan,r=o.colSpan,a=w[k].findIndex(function(e){return void 0===e});if("TD"===t){if(1<i||1<r){for(var s=k;s<k+i;s++)if(s<h)for(var l=a;l<a+r;l++)w[s][l]=null;var u=o.getAttribute("style");u&&u.includes("mso-ignore:colspan")||E.push({col:a,row:k,rowspan:i,colspan:r})}"nowrap"===c.reduce(function(e,t){if(t.selectorText&&N(o,t.selectorText)){var n=t.style.whiteSpace;n&&(e.whiteSpace=n)}return e},{}).whiteSpace?w[k][a]=n.replace(/[\r\n][\x20]{0,2}/gim," ").replace(/<br(\s*|\/)>/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/ /gi," "):d&&/excel/gi.test(d.content)?w[k][a]=n.replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,2}/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/ /gi," "):w[k][a]=n.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/ /gi," ")}else S.push(n)},O=0;O<_;O++)b(O);E.length&&(n.mergeCells=E);S.length&&(n.rowHeaders=S);w.length&&(n.data=w);return n};var M=o(n(37)),_=n(28);function N(e,t){var n;return e.msMatchesSelector?n=e.msMatchesSelector(t):e.matches&&(n=e.matches(t)),n}},function(e,t,n){"use strict";var o=n(0);n(132),n(89),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),c=n(6),h=n(3),a=function(){function t(e){(0,i.default)(this,t),this.hot=e,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,r.default)(t,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!=t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(t){this.injected||this.injectTable(),(0,h.arrayEach)(this.rows,function(e){t(e.row,(0,c.outerHeight)(e.table)-1)})}},{key:"getWidths",value:function(t){this.injected||this.injectTable(),(0,h.arrayEach)(this.columns,function(e){t(e.col,(0,c.outerWidth)(e.table))})}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var t=this,n=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(e){(0,h.arrayEach)(e.strings,function(e){n.appendChild(t.createColElement(e.col))})}),n}},{key:"createRow",value:function(r){var a=this,s=this.hot.rootDocument,l=s.createDocumentFragment(),e=s.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(r,e),l.appendChild(e)),this.samples.forEach(function(e){(0,h.arrayEach)(e.strings,function(e){var t=e.col,n=a.hot.getCellMeta(r,t);n.col=t,n.row=r;var o=a.hot.getCellRenderer(n),i=s.createElement("td");i.setAttribute("ghost-table",1),o(a.hot,i,r,t,a.hot.colToProp(t),e.value,n),l.appendChild(i)})}),l}},{key:"createColumnHeadersRow",value:function(){var o=this,i=this.hot.rootDocument,r=i.createDocumentFragment();if(this.hot.hasRowHeaders()){var e=i.createElement("th");this.hot.view.appendColHeader(-1,e),r.appendChild(e)}return this.samples.forEach(function(e){(0,h.arrayEach)(e.strings,function(e){var t=e.col,n=i.createElement("th");o.hot.view.appendColHeader(t,n),r.appendChild(n)})}),r}},{key:"createCol",value:function(a){var s=this,l=this.hot.rootDocument,u=l.createDocumentFragment();return this.samples.forEach(function(e){(0,h.arrayEach)(e.strings,function(e){var t=e.row,n=s.hot.getCellMeta(t,a);n.col=a,n.row=t;var o=s.hot.getCellRenderer(n),i=l.createElement("td"),r=l.createElement("tr");i.setAttribute("ghost-table",1),o(s.hot,i,t,a,s.hot.colToProp(a),e.value,n),r.appendChild(i),u.appendChild(r)})}),u}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;this.injected||((t||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view.wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(e){var t=0<arguments.length&&void 0!==e?e:"",n=this.hot.rootDocument,o=n.createDocumentFragment(),i=n.createElement("table"),r=n.createElement("thead"),a=n.createElement("tbody"),s=n.createElement("colgroup"),l=n.createElement("tr"),u=n.createElement("th");return this.isVertical()&&i.appendChild(s),this.isHorizontal()&&(l.appendChild(u),r.appendChild(l),i.style.tableLayout="auto",i.style.width="auto"),i.appendChild(r),this.isVertical()&&a.appendChild(l),i.appendChild(a),(0,c.addClass)(i,t),o.appendChild(i),{fragment:o,table:i,tHead:r,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(e){var t=0<arguments.length&&void 0!==e?e:"",n=this.hot.rootDocument,o=n.createDocumentFragment(),i=n.createElement("div"),r="htGhostTable htAutoSize ".concat(t.trim());return(0,c.addClass)(i,r),o.appendChild(i),{fragment:o,container:i}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(21),i=n(87).map;o({target:"Array",proto:!0,forced:!n(106)("map")},{map:function(e,t){return i(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){"use strict";n(57),n(31),n(12),n(15),n(170),n(79),n(80),n(10),n(81),n(13),n(16),t.__esModule=!0,t.areValidSortStates=function(e){if(!1===Array.isArray(e)||!1===e.every(function(e){return(0,i.isObject)(e)}))return!1;var t=e.map(function(e){return e.column});return new Set(t).size===t.length&&e.every(u)},t.getNextSortOrder=function(e){{if(e===s)return;if(e===a)return s}return a},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat(l))},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;return-1==Array.from(n).indexOf(t.parentNode)-n.length},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&0<=t&&!1===(0,r.isRightClick)(n)},t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0;var o=n(28),i=n(4),r=n(33),a="asc";t.ASC_SORT_STATE=a;var s="desc";t.DESC_SORT_STATE=s;var l="colHeader";function u(e){if((0,o.isUndefined)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[a,s].includes(n)}t.HEADER_SPAN_CLASS=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{name:o}},t.KEY=void 0;var o="---------";t.KEY=o},function(e,t,n){"use strict";var o=n(0);n(19),n(55),n(61),n(10),n(133),n(36),n(39),t.__esModule=!0,t.default=void 0;var r=o(n(1)),a=o(n(2)),s=o(n(166)),v=n(6),l=n(3),u=o(n(403)),c=o(n(24)),g=n(4),h=n(28),d=n(75),f=n(62),p=n(54),i=o(n(59)),m=n(82),y=n(33),w=function(){function i(e,t){(0,r.default)(this,i),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215},this.eventManager=new c.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.default)(i,[{key:"registerEvents",value:function(){var t=this;this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"mousedown",function(e){return t.onDocumentMouseDown(e)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0;this.offset[e]=n}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var a=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var n=(0,d.debounce)(function(e){return a.openSubMenu(e)},300),t=this.options.minWidth||215,o=!1,i=(0,l.arrayFilter)(this.menuItems,function(e){return e.key===m.NO_ITEMS&&(o=!0),(0,f.isItemHidden)(e,a.hot)});if(i.length<1&&!o)i.push((0,m.predefinedItems)()[m.NO_ITEMS]);else if(0===i.length)return;var e={data:i=(0,f.filterSeparators)(i,m.SEPARATOR),colHeaders:!1,autoColumnSize:!0,modifyColWidth:function(e){return(0,h.isDefined)(e)&&e<t?t:e},autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(e,t,n,o,i,r){return a.menuItemRenderer(e,t,n,o,i,r)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(e){return a.onBeforeKeyDown(e)},afterOnCellMouseOver:function(e,t){a.isAllSubMenusClosed()?n(t.row):a.openSubMenu(t.row)},rowHeights:function(e){return i[e].name===m.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new s.default(this.container,e),this.hotMenu.addHook("afterInit",function(){return a.onAfterInit()}),this.hotMenu.addHook("afterSelection",function(){return a.onAfterSelection.apply(a,arguments)}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(e){var t=0<arguments.length&&void 0!==e&&e;this.isOpened()&&(t&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(e){if(!this.hotMenu)return!1;var t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,f.hasSubMenu)(t))return!1;var n=this.hotMenu.getSourceDataAtRow(e),o=new i(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0});return o.setMenuItems(n.submenu.items),o.open(),o.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var n=this;(0,l.arrayEach)(this.hotMenu.getData(),function(e,t){return n.closeSubMenu(t)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelectedLast()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==m.SEPARATOR){var n=this.hot.getSelectedRange(),o=n?(0,f.normalizeSelection)(n):[],i=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(i=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),i&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new u.default(e,this.hot.rootWindow);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+(0,v.getScrollbarWidth)(this.hot.rootDocument)+4;this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,f.isSeparator)(e)||(0,f.isDisabled)(e)||(0,f.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,f.isSeparator)(t)||(0,f.isDisabled)(t)||(0,f.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&((0,f.isSeparator)(o)||(0,f.isDisabled)(o)||(0,f.isSelectionDisabled)(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,o=0<=n?this.hotMenu.getCell(n,t):null;o&&((0,f.isSeparator)(o)||(0,f.isDisabled)(o)||(0,f.isSelectionDisabled)(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,o,i,r){function a(e){return e.disableSelection}var s,l,u,c=this,h=e.getSourceDataAtRow(n),d=this.hot.rootDocument.createElement("div"),f=r;"function"==typeof f&&(f=f.call(this.hot)),(0,v.empty)(t),(0,v.addClass)(d,"htItemWrapper"),t.appendChild(d),s=h,new RegExp(m.SEPARATOR,"i").test(s.name)?(0,v.addClass)(t,"htSeparator"):"function"==typeof h.renderer?((0,v.addClass)(t,"htCustomMenuRenderer"),t.appendChild(h.renderer(e,d,n,o,i,f))):(0,v.fastInnerHTML)(d,f),!0===(u=h).disabled||"function"==typeof u.disabled&&!0===u.disabled.call(c.hot)?((0,v.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):a(h)?((0,v.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):(l=h,(0,g.hasOwnProperty)(l,"submenu")?(0,v.addClass)(t,"htSubmenu"):((0,v.removeClass)(t,"htSubmenu"),(0,v.removeClass)(t,"htDisabled")),a(h)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)}))}},{key:"createContainer",value:function(e){var t,n=0<arguments.length&&void 0!==e?e:null,o=this.hot.rootDocument,i=n;return i&&((0,d.isFunction)(i)&&(i=null===(i=i.call(this.hot))||(0,h.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-z0-9]/g,"_"),i="".concat(this.options.className,"Sub_").concat(i),t=o.querySelector(".".concat(this.options.className,".").concat(i))),t||(t=o.createElement("div"),(0,v.addClass)(t,"htMenu ".concat(this.options.className)),i&&(0,v.addClass)(t,i),o.getElementsByTagName("body")[0].appendChild(t)),t}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case p.KEY_CODES.ESCAPE:this.close(),n=!0;break;case p.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case p.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case p.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case p.KEY_CODES.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case p.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,y.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view.wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,o=e.holder.style,i=parseInt(n.width,10),r=(0,l.arrayReduce)(t,function(e,t){return e+(t.name===m.SEPARATOR?1:26)},0);o.width="".concat(i+22,"px"),o.height="".concat(r+4,"px"),n.height=o.height}},{key:"onAfterSelection",value:function(e,t,n,o,i){!1===this.keyEvent&&(i.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,v.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,v.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,v.isChildOf)(e.target,".htMenu")&&(0,v.isChildOf)(e.target,this.hot.rootDocument)&&this.close(!0))}}]),i}();(0,g.mixin)(w,i.default);var C=w;t.default=C},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(69)),r=o(n(1)),a=o(n(2)),s=n(25),l=n(71);function u(){var e=(0,i.default)(["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n "0", which is not supported. It cannot be added to the collection.']);return u=function(){return e},e}function c(){var e=(0,i.default)(["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.']);return c=function(){return e},e}function h(){var e=(0,i.default)(["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."]);return h=function(){return e},e}function d(){var e=(0,i.default)(["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."]);return d=function(){return e},e}var f=function(){function i(e,t,n,o){(0,r.default)(this,i),this.row=e,this.col=t,this.rowspan=n,this.colspan=o,this.removed=!1}return(0,a.default)(i,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],o=t+Math.abs(e[0]||e[1])-1,i=e[0]?"colspan":"rowspan",r=e[0]?"col":"row",a=Math.min(t,o),s=Math.max(t,o),l=this[r],u=this[r]+this[i]-1;if(t<=l&&(this[r]+=n),0<n)t<=u&&l<t&&(this[i]+=n);else if(n<0){if(a<=l&&u<=s)return!(this.removed=!0);if(a<=l&&l<=s){var c=s-l+1,h=Math.abs(n)-c;this[r]-=h+n,this[i]-=c}else if(l<=a&&s<=u)this[i]+=n;else if(l<=a&&a<=u&&u<s){var d=u-a+1;this[i]-=d}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new s.CellRange(new s.CellCoords(this.row,this.col),new s.CellCoords(this.row,this.col),new s.CellCoords(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,l.toSingleLine)(d(),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,l.toSingleLine)(h(),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,l.toSingleLine)(c(),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,l.toSingleLine)(u(),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),i}();t.default=f},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=function(e){var n=[],t=e;x[t]||(t=P);return(0,a.arrayEach)(x[t],function(e){var t;t=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,r.clone)((0,l.getConditionDescriptor)(e)),n.push(t)}),n},t.TYPES=t.TYPE_DATE=t.TYPE_TEXT=t.TYPE_NUMERIC=void 0;var i=o(n(68)),r=n(4),a=n(3),s=n(82),l=n(29),u=n(476);t.CONDITION_NONE=u.CONDITION_NAME;var c=n(255);t.CONDITION_EMPTY=c.CONDITION_NAME;var h=n(477);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var d=n(256);t.CONDITION_EQUAL=d.CONDITION_NAME;var f=n(478);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var v=n(479);t.CONDITION_GREATER_THAN=v.CONDITION_NAME;var g=n(480);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=n(481);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var m=n(482);t.CONDITION_LESS_THAN_OR_EQUAL=m.CONDITION_NAME;var y=n(257);t.CONDITION_BETWEEN=y.CONDITION_NAME;var w=n(483);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var C=n(484);t.CONDITION_BEGINS_WITH=C.CONDITION_NAME;var E=n(485);t.CONDITION_ENDS_WITH=E.CONDITION_NAME;var S=n(260);t.CONDITION_CONTAINS=S.CONDITION_NAME;var k=n(487);t.CONDITION_NOT_CONTAINS=k.CONDITION_NAME;var T=n(259);t.CONDITION_DATE_BEFORE=T.CONDITION_NAME;var R=n(258);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var _=n(488);t.CONDITION_TOMORROW=_.CONDITION_NAME;var b=n(489);t.CONDITION_TODAY=b.CONDITION_NAME;var O=n(490);t.CONDITION_YESTERDAY=O.CONDITION_NAME;var M=n(491);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var N=n(492);t.CONDITION_TRUE=N.CONDITION_NAME;var A=n(493);t.CONDITION_FALSE=A.CONDITION_NAME;var D=n(176);t.OPERATION_AND=D.OPERATION_ID;var I=n(261);t.OPERATION_OR=I.OPERATION_ID;var H,L=n(262);t.OPERATION_OR_THEN_VARIABLE=L.OPERATION_ID;t.TYPE_NUMERIC="numeric";var P="text";t.TYPE_TEXT=P;t.TYPE_DATE="date";var x=(H={},(0,i.default)(H,"numeric",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,v.CONDITION_NAME,g.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,y.CONDITION_NAME,w.CONDITION_NAME]),(0,i.default)(H,P,[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,C.CONDITION_NAME,E.CONDITION_NAME,s.SEPARATOR,S.CONDITION_NAME,k.CONDITION_NAME]),(0,i.default)(H,"date",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,T.CONDITION_NAME,R.CONDITION_NAME,y.CONDITION_NAME,s.SEPARATOR,_.CONDITION_NAME,b.CONDITION_NAME,O.CONDITION_NAME]),H);t.TYPES=x},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.operationResult=l,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0;var i=o(n(11)),r=n(113),a="conjunction";t.OPERATION_ID=a;var s=i.FILTERS_LABELS_CONJUNCTION;function l(e,t){return e.every(function(e){return e.func(t)})}t.SHORT_NAME_FOR_COMPONENT=s,(0,r.registerOperation)(a,s,l)},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(26)),s=o(n(5)),l=o(n(14)),u=o(n(2)),c=o(n(8)),h=n(6),d=n(4),f=o(n(114)),v=new WeakMap,g=function(e){function o(e,t){var n;return(0,i.default)(this,o),n=(0,r.default)(this,(0,s.default)(o).call(this,e,(0,d.extend)(o.DEFAULTS,t))),v.set((0,a.default)(n),{}),n.registerHooks(),n}return(0,c.default)(o,e),(0,u.default)(o,null,[{key:"DEFAULTS",get:function(){return(0,d.clone)({placeholder:"",type:"text",tagName:"input"})}}]),(0,u.default)(o,[{key:"registerHooks",value:function(){var t=this;this.addLocalHook("click",function(){return t.onClick()}),this.addLocalHook("keyup",function(e){return t.onKeyup(e)})}},{key:"build",value:function(){(0,l.default)((0,s.default)(o.prototype),"build",this).call(this);var e=v.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,h.addClass)(this._element,"htUIInput"),(0,h.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=v.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&v.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}]),o}(f.default);t.default=g},function(e,t,n){"use strict";n(19),n(55),n(10),n(36),t.__esModule=!0,t.getMixedMonthObject=function(e,t){return{name:e,days:o,daysBeforeFullWeeks:0,daysAfterFullWeeks:0,fullWeeks:1,index:t}},t.getMixedMonthName=function(e,t){var n=null,o=s(t[e].name),i=0<e?s(t[e-1].name):null,r=s(t[0].name),a=s(t[t.length-1].name);n=0<e?"".concat(i,"/").concat(o):e===t.length-1?"".concat(o,"/").concat(r):"".concat(a,"/").concat(o);return n},t.getShorthand=s,t.getStartDate=function(e){return i(Array.isArray(e)?e[1]:e.startDate)},t.getEndDate=function(e){return i(Array.isArray(e)?e[2]:e.endDate)},t.getAdditionalData=function(e){return Array.isArray(e)?e[3]:e.additionalData},t.setStartDate=function(e,t){Array.isArray(e)?e[1]=t:e.startDate=t},t.setEndDate=function(e,t){Array.isArray(e)?e[2]=t:e.endDate=t},t.parseDate=i,t.getDateYear=function(e){var t=i(e);return t?t.getFullYear():null},t.WEEK_LENGTH=t.DEC_LENGTH=void 0;t.DEC_LENGTH=31;var o=7;function s(e){return e.substring(0,3)}function i(e){var t=e;return null===t?null:t instanceof Date||"Invalid Date"!==(t=new Date(t)).toString()?t:null}t.WEEK_LENGTH=o},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;function i(e,t){(0,r.default)(this,i),this.hot=t,this.plugin=e}var r=o(n(1));t.default=i},function(e,t,n){var o=n(45),i=n(27),r=n(144);e.exports=!o&&!i(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(97);e.exports=o("native-function-to-string",Function.toString)},function(e,t,n){var o=n(35),i=n(181),r=o.WeakMap;e.exports="function"==typeof r&&/native code/.test(i.call(r))},function(e,t,n){var s=n(50),l=n(184),u=n(91),c=n(51);e.exports=function(e,t){for(var n=l(t),o=c.f,i=u.f,r=0;r<n.length;r++){var a=n[r];s(e,a)||o(e,a,i(t,a))}}},function(e,t,n){var o=n(122),i=n(99),r=n(148),a=n(46);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){e.exports=n(35)},function(e,t,n){var a=n(50),s=n(63),l=n(146).indexOf,u=n(98);e.exports=function(e,t){var n,o=s(e),i=0,r=[];for(n in o)!a(u,n)&&a(o,n)&&r.push(n);for(;t.length>i;)a(o,n=t[i++])&&(~l(r,n)||r.push(n));return r}},function(e,t,n){var o=n(63),i=n(99).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(o(e))}},function(e,t,n){var o=n(27);e.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},function(e,t,n){var o=n(122);e.exports=o("document","documentElement")},function(e,t,n){"use strict";var o,i,r,a=n(150),s=n(64),l=n(50),u=n(34),c=n(119),h=u("iterator"),d=!1;[].keys&&("next"in(r=[].keys())?(i=a(a(r)))!==Object.prototype&&(o=i):d=!0),null==o&&(o={}),c||l(o,h)||s(o,h,function(){return this}),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var o=n(27);e.exports=!o(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var i=n(46),r=n(274);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,o=!1,e={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return i(e),r(t),o?n.call(e,t):e.__proto__=t,e}}():void 0)},function(e,t,n){var i=n(76),r=n(34)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:a?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var o=n(34),i=n(103),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){var o=n(193),i=n(103),r=n(34)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var r=n(46);e.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(e,t,n){var i=n(34)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){"use strict";function l(e){return e.frozen||(e.frozen=new w)}function o(e,t){return a(e.entries,function(e){return e[0]===t})}var u=n(152),c=n(126).getWeakData,h=n(46),d=n(42),f=n(155),v=n(153),i=n(87),g=n(50),r=n(85),p=r.set,m=r.getterFor,a=i.find,s=i.findIndex,y=0,w=function(){this.entries=[]};w.prototype={get:function(e){var t=o(this,e);if(t)return t[1]},has:function(e){return!!o(this,e)},set:function(e,t){var n=o(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=s(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},e.exports={getConstructor:function(e,n,o,i){function r(e,t,n){var o=s(e),i=c(h(t),!0);return!0===i?l(o).set(t,n):i[o.id]=n,e}var a=e(function(e,t){f(e,a,n),p(e,{type:n,id:y++,frozen:void 0}),null!=t&&v(t,e[i],e,o)}),s=m(n);return u(a.prototype,{delete:function(e){var t=s(this);if(!d(e))return!1;var n=c(e);return!0===n?l(t).delete(e):n&&g(n,t.id)&&delete n[t.id]},has:function(e){var t=s(this);if(!d(e))return!1;var n=c(e);return!0===n?l(t).has(e):n&&g(n,t.id)}}),u(a.prototype,o?{get:function(e){var t=s(this);if(d(e)){var n=c(e);return!0===n?l(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return r(this,e,t)}}:{add:function(e){return r(this,e,!0)}}),a}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var u=n(51).f,c=n(101),h=n(152),d=n(104),f=n(155),v=n(153),a=n(149),s=n(201),g=n(45),p=n(126).fastKey,o=n(85),m=o.set,y=o.getterFor;e.exports={getConstructor:function(e,n,o,i){function r(e,t,n){var o,i,r=s(e),a=l(e,t);return a?a.value=n:(r.last=a={index:i=p(t,!0),key:t,value:n,previous:o=r.last,next:void 0,removed:!1},r.first||(r.first=a),o&&(o.next=a),g?r.size++:e.size++,"F"!==i&&(r.index[i]=a)),e}var a=e(function(e,t){f(e,a,n),m(e,{type:n,index:c(null),first:void 0,last:void 0,size:0}),g||(e.size=0),null!=t&&v(t,e[i],e,o)}),s=y(n),l=function(e,t){var n,o=s(e),i=p(t);if("F"!==i)return o.index[i];for(n=o.first;n;n=n.next)if(n.key==t)return n};return h(a.prototype,{clear:function(){for(var e=s(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,g?e.size=0:this.size=0},delete:function(e){var t=s(this),n=l(this,e);if(n){var o=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==n&&(t.first=o),t.last==n&&(t.last=i),g?t.size--:this.size--}return!!n},forEach:function(e,t){for(var n,o=s(this),i=d(e,1<arguments.length?t:void 0,3);n=n?n.next:o.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!l(this,e)}}),h(a.prototype,o?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return r(this,0===e?0:e,t)}}:{add:function(e){return r(this,e=0===e?0:e,e)}}),g&&u(a.prototype,"size",{get:function(){return s(this).size}}),a},setStrong:function(e,t,n){var o=t+" Iterator",i=y(t),r=y(o);a(e,t,function(e,t){m(this,{type:o,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=r(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),s(t)}}},function(e,t,n){"use strict";var o=n(122),i=n(51),r=n(34),a=n(45),s=r("species");e.exports=function(e){var t=o(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t,n){function o(n){return function(e){var t=String(i(e));return 1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(s,"")),t}}var i=n(49),r="["+n(204)+"]",a=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$");e.exports={start:o(1),end:o(2),trim:o(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var h=o(n(1)),i=o(n(2)),f=n(162),v=new WeakMap,r=function(){function c(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.viewportSize,n=e.scrollOffset,o=e.totalItems,i=e.itemSizeFn,r=e.overrideFn,a=e.calculationType,s=e.stretchMode,l=e.stretchingItemWidthFn,u=void 0===l?function(e){return e}:l;(0,h.default)(this,c),v.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:o,columnWidthFn:i,overrideFn:r,calculationType:a,stretchingColumnWidthFn:u}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=s,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(c,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),(0,i.default)(c,[{key:"calculate",value:function(){for(var e,t=0,n=!0,o=[],i=v.get(this),r=i.calculationType,a=i.overrideFn,s=i.scrollOffset,l=i.totalColumns,u=i.viewportWidth,c=0;c<l;c++){e=this._getColumnWidth(c),t<=s&&r!==f.FULLY_VISIBLE_TYPE&&(this.startColumn=c);var h=0<s?u+1:u;if(s<=t&&t+(r===f.FULLY_VISIBLE_TYPE?e:0)<=s+h&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=c),this.endColumn=c),o.push(t),t+=e,r!==f.FULLY_VISIBLE_TYPE&&(this.endColumn=c),s+u<=t){n=!1;break}}if(this.endColumn===l-1&&n)for(this.startColumn=this.endColumn;0<this.startColumn;){var d=o[this.endColumn]+e-o[this.startColumn-1];if((d<=u||r!==f.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),u<d)break}r===f.RENDER_TYPE&&null!==this.startColumn&&a&&a(this),this.startPosition=o[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),l<this.endColumn&&(this.endColumn=l-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=v.get(this),o=n.totalColumns,i=0,r=0;r<o;r++){var a=this._getColumnWidth(r),s=n.stretchingColumnWidthFn(void 0,r);"number"==typeof s?t-=s:i+=a}var l=t-i;if("all"===this.stretch&&0<l)this.stretchAllRatio=t/i,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var u=this._getColumnWidth(o-1),c=l+u;this.stretchLastWidth=0<=c?c:u}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,o=v.get(this),i=o.totalColumns;if(!this.stretchAllColumnsWidth[e]){var r=Math.round(t*this.stretchAllRatio),a=o.stretchingColumnWidthFn(r,e);this.stretchAllColumnsWidth[e]=void 0===a?r:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var s=0;s<this.stretchAllColumnsWidth.length;s++)n+=this.stretchAllColumnsWidth[s];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===v.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(e){var t=v.get(this).columnWidthFn(e);return isNaN(t)&&(t=c.DEFAULT_WIDTH),t}}]),c}();t.default=r},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var l=o(n(1)),i=o(n(2)),g=n(162),p=new WeakMap,r=function(){function v(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.viewportSize,n=e.scrollOffset,o=e.totalItems,i=e.itemSizeFn,r=e.overrideFn,a=e.calculationType,s=e.scrollbarHeight;(0,l.default)(this,v),p.set(this,{viewportHeight:t,scrollOffset:n,totalRows:o,rowHeightFn:i,overrideFn:r,calculationType:a,horizontalScrollbarHeight:s}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return(0,i.default)(v,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),(0,i.default)(v,[{key:"calculate",value:function(){for(var e,t=0,n=!0,o=[],i=p.get(this),r=i.calculationType,a=i.overrideFn,s=i.rowHeightFn,l=i.scrollOffset,u=i.totalRows,c=i.viewportHeight,h=i.horizontalScrollbarHeight||0,d=0;d<u;d++)if(e=s(d),isNaN(e)&&(e=v.DEFAULT_HEIGHT),t<=l&&r!==g.FULLY_VISIBLE_TYPE&&(this.startRow=d),l<=t&&t+(r===g.FULLY_VISIBLE_TYPE?e:0)<=l+c-h&&(null===this.startRow&&(this.startRow=d),this.endRow=d),o.push(t),t+=e,r!==g.FULLY_VISIBLE_TYPE&&(this.endRow=d),l+c-h<=t){n=!1;break}if(this.endRow===u-1&&n)for(this.startRow=this.endRow;0<this.startRow;){var f=o[this.endRow]+e-o[this.startRow-1];if((f<=c-h||r!==g.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),c-h<=f)break}r===g.RENDER_TYPE&&null!==this.startRow&&a&&a(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),u<this.endRow&&(this.endRow=u-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),v}();t.default=r},function(e,t,n){"use strict";var o=n(0);n(31),n(12),n(38),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),d=o(n(108)),a=function(){function o(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e;(0,i.default)(this,o),this.highlight=e,this.from=t,this.to=n}return(0,r.default)(o,[{key:"setHighlight",value:function(e){return this.highlight=e,this}},{key:"setFrom",value:function(e){return this.from=e,this}},{key:"setTo",value:function(e){return this.to=e,this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),i=this.getBottomRightCorner();return o.row<=t&&i.row>=t&&o.col<=n&&i.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getTopRightCorner().col>=e.getTopLeftCorner().col&&this.getTopRightCorner().col<=e.getTopRightCorner().col||this.getTopLeftCorner().col<=e.getTopRightCorner().col&&this.getTopLeftCorner().col>=e.getTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getBottomRightCorner().row>=e.getTopRightCorner().row&&this.getBottomRightCorner().row<=e.getBottomRightCorner().row||this.getTopRightCorner().row<=e.getBottomRightCorner().row&&this.getTopRightCorner().row>=e.getTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new d.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new d.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=this.getDirection(),i=e.getTopLeftCorner(),r=e.getBottomRightCorner(),a=Math.min(t.row,i.row),s=Math.min(t.col,i.col),l=Math.max(n.row,r.row),u=Math.max(n.col,r.col),c=new d.default(a,s),h=new d.default(l,u);return this.from=c,this.to=h,this.setDirection(o),this.highlight.row===this.getBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var i=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=i[0],this.to=i[1]}}},{key:"getVerticalDirection",value:function(){return-1<["NE-SW","NW-SE"].indexOf(this.getDirection())?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return-1<["NW-SE","SW-NE"].indexOf(this.getDirection())?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopLeftCorner",value:function(){return new d.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new d.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new d.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new d.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new d.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new d.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new d.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new d.default(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof d.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new d.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new d.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new d.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new d.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),o=Math.min(this.from.col,this.to.col),i=Math.max(this.from.col,this.to.col),r=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===r&&u.push("top"),i===l&&u.push("right"),n===a&&u.push("bottom"),o===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var i=e.col;i<=t.col;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new d.default(o,i));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var i=e.col;i<=t.col;i++)e.row===o&&e.col===i?n.push(e):t.row===o&&t.col===i?n.push(t):n.push(new d.default(o,i));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++){if(!1===e(o,i))return}}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}]),o}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function o(e,t,n){(0,i.default)(this,o),this.offset=e,this.total=t,this.countTH=n}return(0,r.default)(o,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),o}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function o(e,t,n){(0,i.default)(this,o),this.offset=e,this.total=t,this.countTH=n}return(0,r.default)(o,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),o}();t.default=a},function(e,t,n){var o=n(122);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(21),i=n(285).start;o({target:"String",proto:!0,forced:n(286)},{padStart:function(e,t){return i(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){"use strict";var i=n(86),r=n(49);e.exports="".repeat||function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;0<o;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var o=n(0);n(12),t.__esModule=!0,t.default=void 0;var r=o(n(1)),a=o(n(2)),s=n(6),l=n(4),u=n(72),c=o(n(214)),h=o(n(215)),d=o(n(216)),f=o(n(217)),v=o(n(218)),g=o(n(224)),i=function(){function i(e){(0,r.default)(this,i);var n=[];if(this.guid="wt_".concat((0,u.randomString)()),this.rootDocument=e.table.ownerDocument,this.rootWindow=this.rootDocument.defaultView,e.cloneSource?(this.cloneSource=e.cloneSource,this.cloneOverlay=e.cloneOverlay,this.wtSettings=e.cloneSource.wtSettings,this.wtTable=new v.default(this,e.table,e.wtRootElement),this.wtScroll=new d.default(this),this.wtViewport=e.cloneSource.wtViewport,this.wtEvent=new c.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new f.default(this,e),this.wtTable=new v.default(this,e.table),this.wtScroll=new d.default(this),this.wtViewport=new g.default(this),this.wtEvent=new c.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new h.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;t<o;t++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,s.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return(0,a.default)(i,[{key:"draw",value:function(e){var t=0<arguments.length&&void 0!==e&&e;return this.drawInterrupted=!1,t||this.wtTable.isVisible()?this.wtTable.draw(t):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e,t){if(!(1<arguments.length&&void 0!==t&&t))return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<o&&e.col<r)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<r&&e.row>=n-i){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<r)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollViewport",value:function(e,t,n,o,i){return this.wtScroll.scrollViewport(e,t,n,o,i)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isClone",value:function(){return!this.cloneSource}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var n=this,o=[],i=[];(0,l.objectEach)({rowHeaders:["array"],columnHeaders:["array"]},function(e,t){-1<e.indexOf("array")&&n.getSetting(t).length&&i.push("ht".concat((0,u.toUpperCaseFirst)(t))),o.push("ht".concat((0,u.toUpperCaseFirst)(t)))}),(0,s.removeClass)(this.wtTable.wtRootElement.parentNode,o),(0,s.addClass)(this.wtTable.wtRootElement.parentNode,i)}},{key:"getSetting",value:function(e,t,n,o,i){return this.wtSettings.getSetting(e,t,n,o,i)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),i}();t.default=i},function(e,t,n){"use strict";var o=n(0);n(31),n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(6),s=n(75),l=n(74),u=n(73),c=o(n(24)),h=new WeakMap,d=function(){function t(e){(0,i.default)(this,t),this.instance=e,this.eventManager=new c.default(e),h.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,r.default)(t,[{key:"registerEvents",value:function(){var t=this;this.eventManager.addEventListener(this.instance.wtTable.holder,"contextmenu",function(e){return t.onContextMenu(e)}),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseover",function(e){return t.onMouseOver(e)}),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseout",function(e){return t.onMouseOut(e)});function e(){t.eventManager.addEventListener(t.instance.wtTable.holder,"touchstart",function(e){return t.onTouchStart(e)}),t.eventManager.addEventListener(t.instance.wtTable.holder,"touchend",function(e){return t.onTouchEnd(e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),t.eventManager.addEventListener(t.instance.wtTable.holder,"scroll",function(){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}(0,u.isMobileBrowser)()?e():((0,l.isTouchSupported)()&&e(),t.eventManager.addEventListener(t.instance.wtTable.holder,"mouseup",function(e){return t.onMouseUp(e)}),t.eventManager.addEventListener(t.instance.wtTable.holder,"mousedown",function(e){return t.onMouseDown(e)}))}},{key:"selectedCellWasTouched",value:function(e){var t=h.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var o=[n.row,t.selectedCellBeforeTouchEnd.from.row],i=o[0],r=o[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return i===r&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.instance.wtTable.TABLE,o=(0,a.closestDown)(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.instance.selections.getCell().cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.instance.selections.createOrGetArea().cellRange&&(t.coords=this.instance.selections.createOrGetArea().cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=h.get(this),n=this.instance.rootDocument.activeElement,o=(0,s.partial)(a.getParent,e.realTarget),i=e.realTarget;if(i!==n&&o(0)!==n&&o(1)!==n){var r=this.parentCell(i);(0,a.hasClass)(i,"corner")?this.instance.getSetting("onCellCornerMouseDown",e,i):r.TD&&this.instance.hasSetting("onCellMouseDown")&&this.instance.getSetting("onCellMouseDown",e,r.coords,r.TD,this.instance),2!==e.button&&r.TD&&(t.dblClickOrigin[0]=r.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){t.dblClickOrigin[0]=null},1e3))}}},{key:"onContextMenu",value:function(e){if(this.instance.hasSetting("onCellContextMenu")){var t=this.parentCell(e.realTarget);t.TD&&this.instance.getSetting("onCellContextMenu",e,t.coords,t.TD,this.instance)}}},{key:"onMouseOver",value:function(e){if(this.instance.hasSetting("onCellMouseOver")){var t=this.instance.wtTable.TABLE,n=(0,a.closestDown)(e.realTarget,["TD","TH"],t),o=this.instance.cloneSource||this.instance;n&&n!==o.lastMouseOver&&(0,a.isChildOf)(n,t)&&(o.lastMouseOver=n,this.instance.getSetting("onCellMouseOver",e,this.instance.wtTable.getCoords(n),n,this.instance))}}},{key:"onMouseOut",value:function(e){if(this.instance.hasSetting("onCellMouseOut")){var t=this.instance.wtTable.TABLE,n=(0,a.closestDown)(e.realTarget,["TD","TH"],t),o=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t);n&&n!==o&&(0,a.isChildOf)(n,t)&&this.instance.getSetting("onCellMouseOut",e,this.instance.wtTable.getCoords(n),n,this.instance)}}},{key:"onMouseUp",value:function(e){if(2!==e.button){var t=h.get(this),n=this.parentCell(e.realTarget);n.TD&&this.instance.hasSetting("onCellMouseUp")&&this.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,this.instance),n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.realTarget,"corner")?this.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,this.instance):this.instance.getSetting("onCellDblClick",e,n.coords,n.TD,this.instance),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){t.dblClickOrigin[1]=null},500))}}},{key:"onTouchStart",value:function(e){h.get(this).selectedCellBeforeTouchEnd=this.instance.selections.getCell().cellRange,this.instance.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t=e.target;(this.instance.touchApplied=!1)===this.selectedCellWasTouched(t)&&["A","BUTTON","INPUT"].includes(t.tagName)&&e.preventDefault(),this.onMouseUp(e)}},{key:"destroy",value:function(){var e=h.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),t}();t.default=d},function(e,t,n){"use strict";var o=n(0);n(89),n(32),t.__esModule=!0,t.default=void 0;var u=o(n(1)),i=o(n(2)),c=n(6),r=n(3),a=n(54),h=n(73),d=o(n(24)),s=o(n(88)),l=function(){function l(e){(0,u.default)(this,l),this.wot=e;var t=this.wot,n=t.rootDocument,o=t.rootWindow,i=t.wtTable,r=parseInt(o.getComputedStyle(n.body).lineHeight,10),a=1.2*parseInt(o.getComputedStyle(n.body).fontSize,10);this.instance=this.wot,this.eventManager=new d.default(this.wot),this.scrollbarSize=(0,c.getScrollbarWidth)(n),this.wot.update("scrollbarWidth",this.scrollbarSize),this.wot.update("scrollbarHeight",this.scrollbarSize);var s="hidden"===o.getComputedStyle(i.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=s?i.holder:(0,c.getScrollableElement)(i.TABLE),this.topOverlay=void 0,this.bottomOverlay=void 0,this.leftOverlay=void 0,this.topLeftCornerOverlay=void 0,this.bottomLeftCornerOverlay=void 0,this.prepareOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.browserLineHeight=r||a,this.registerListeners(),this.lastScrollX=o.scrollX,this.lastScrollY=o.scrollY}return(0,i.default)(l,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=s.default.createOverlay(s.default.CLONE_TOP,this.wot),s.default.hasOverlay(s.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),s.default.hasOverlay(s.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=s.default.createOverlay(s.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=s.default.createOverlay(s.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=s.default.createOverlay(s.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=s.default.createOverlay(s.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=s.default.createOverlay(s.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wot.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var n=this,e=this.wot,t=e.rootDocument,o=e.rootWindow,i=this.topOverlay.mainTableScrollableElement,r=this.leftOverlay.mainTableScrollableElement;this.eventManager.addEventListener(t.documentElement,"keydown",function(e){return n.onKeyDown(e)}),this.eventManager.addEventListener(t.documentElement,"keyup",function(){return n.onKeyUp()}),this.eventManager.addEventListener(t,"visibilitychange",function(){return n.onKeyUp()}),this.eventManager.addEventListener(i,"scroll",function(e){return n.onTableScroll(e)},{passive:!0}),i!==r&&this.eventManager.addEventListener(r,"scroll",function(e){return n.onTableScroll(e)},{passive:!0});var a,s=o.devicePixelRatio&&1<o.devicePixelRatio,l=this.scrollableElement===o,u=this.wot.wtSettings.getSetting("preventWheel"),c={passive:l};!u&&!s&&(0,h.isChrome)()||this.eventManager.addEventListener(this.wot.wtTable.wtRootElement,"wheel",function(e){return n.onCloneWheel(e,u)},c),[this.topOverlay,this.bottomOverlay,this.leftOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay].forEach(function(e){if(e&&e.needFullRender){var t=e.clone.wtTable.holder;n.eventManager.addEventListener(t,"wheel",function(e){return n.onCloneWheel(e,u)},c)}}),this.eventManager.addEventListener(o,"resize",function(){clearTimeout(a),a=setTimeout(function(){n.wot.getSetting("onWindowResize")},200)})}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.wot.rootWindow,n=this.leftOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target;this.keyPressed&&(o!==t&&i!==t&&!e.target.contains(o)||n!==t&&i!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.wot.rootWindow,o=this.leftOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,a=i!==n&&r!==n&&!r.contains(i),s=o!==n&&r!==n&&!r.contains(o);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,a.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.browserLineHeight,n=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,o=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(o+=o*t,n+=n*t);var i=this.scrollVertically(n),r=this.scrollHorizontally(o);return i||r}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.wot.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.leftOverlay.clone.wtTable.holder,o=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],i=o[0],r=o[1];if(this.horizontalScrolling=t.scrollLeft!==i||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==r||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=i;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=i)}this.verticalScrolling&&(n.scrollTop=r),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wot,t=e.rootWindow,n=e.wtTable;"hidden"===t.getComputedStyle(n.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=n.holder:this.scrollableElement=(0,c.getScrollableElement)(n.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(e){var t=0<arguments.length&&void 0!==e&&e;if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var n=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,o=n.clientWidth,i=n.clientHeight;o===this.spreaderLastSize.width&&i===this.spreaderLastSize.height||(this.spreaderLastSize.width=o,this.spreaderLastSize.height=i,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(t),this.leftOverlay.refresh(t),this.topOverlay.refresh(t),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(t),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(t),this.debug&&this.debug.refresh(t)}},{key:"adjustElementsSize",value:function(e){var t=0<arguments.length&&void 0!==e&&e,n=this.wot,o=n.wtViewport,i=n.wtTable,r=this.wot.getSetting("totalColumns"),a=this.wot.getSetting("totalRows"),s=o.getRowHeaderWidth(),l=o.getColumnHeaderHeight(),u=i.hider.style;if(u.width="".concat(s+this.leftOverlay.sumCellSizes(0,r),"px"),u.height="".concat(l+this.topOverlay.sumCellSizes(0,a)+1,"px"),0<this.scrollbarSize){var c=i.wtRootElement,h=c.scrollHeight,d=c.scrollWidth,f=i.holder,v=f.scrollHeight,g=f.scrollWidth;this.hasScrollbarRight=h<v,this.hasScrollbarBottom=d<g,this.hasScrollbarRight&&i.hider.scrollWidth+this.scrollbarSize>d?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&i.hider.scrollHeight+this.scrollbarSize>h&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(t),this.leftOverlay.adjustElementsSize(t),this.bottomOverlay.adjustElementsSize(t)}},{key:"applyToDOM",value:function(){this.wot.wtTable.isVisible()&&(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(t){if(!t)return null;var e=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,r.arrayEach)(e,function(e){e&&e.clone&&e.clone.wtTable.TABLE.contains(t)&&(n=e.clone)}),n}}]),l}();t.default=l},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),v=n(6),a=function(){function t(e){(0,i.default)(this,t),this.wot=e}return(0,r.default)(t,[{key:"scrollViewport",value:function(e,t,n,o,i){var r=this.scrollViewportHorizontally(e.col,n,i),a=this.scrollViewportVertically(e.row,t,o);return r||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),i=o.fixedColumnsLeft,r=o.leftOverlay,a=o.totalColumns,s=!1;return 0<=e&&e<=Math.max(a-1,0)&&(i<=e&&(e<this.getFirstVisibleColumn()||n)?s=r.scrollTo(e):(e>this.getLastVisibleColumn()||t)&&(s=r.scrollTo(e,!0))),s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),i=o.fixedRowsBottom,r=o.fixedRowsTop,a=o.topOverlay,s=o.totalRows,l=!1;return 0<=e&&e<=Math.max(s-1,0)&&(r<=e&&(e<this.getFirstVisibleRow()||t)?l=a.scrollTo(e):(e>this.getLastVisibleRow()&&e<s-i||n)&&(l=a.scrollTo(e,!0))),l}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,r=e.fixedRowsTop,a=this.wot.rootWindow,s=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,v.offset)(n.wtRootElement),u=(0,v.innerHeight)(n.hider),c=(0,v.innerHeight)(a),h=(0,v.getScrollTop)(a,a);if(l.top+u-c<=h){var d=o.getColumnHeaderHeight();d+=t.sumCellSizes(0,r);for(var f=i;0<f;f--)if(d+=t.sumCellSizes(f-1,f),l.top+u-d<=h){s=f;break}}}return s}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,r=this.wot.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===r){var s=(0,v.offset)(n.wtRootElement),l=(0,v.getScrollTop)(r,r);if(s.top>l)for(var u=(0,v.innerHeight)(r),c=o.getColumnHeaderHeight(),h=1;h<=i;h++)if(c+=t.sumCellSizes(h-1,h),s.top+c-l>=u){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,r=this.wot.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===r){var s=(0,v.offset)(n.wtRootElement),l=(0,v.innerWidth)(n.hider),u=(0,v.innerWidth)(r),c=(0,v.getScrollLeft)(r,r);if(s.left+l-u<=c)for(var h=o.getRowHeaderWidth(),d=i;0<d;d--)if(h+=t.sumCellSizes(d-1,d),s.left+l-h<=c){a=d;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,r=this.wot.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===r){var s=(0,v.offset)(n.wtRootElement),l=(0,v.getScrollLeft)(r,r);if(s.left>l)for(var u=(0,v.innerWidth)(r),c=o.getRowHeaderWidth(),h=1;h<=i;h++)if(c+=t.sumCellSizes(h-1,h),s.left+c-l>=u){a=h-2;break}}return a}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var r=o(n(1)),i=o(n(2)),a=n(6),s=n(4),l=function(){function t(e,n){var i=this;(0,r.default)(this,t),this.wot=e,this.instance=e,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=i.getSetting("data",e,t);(0,a.fastInnerText)(n,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onWindowResize:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},(0,s.objectEach)(this.defaults,function(e,t){if(void 0!==n[t])i.settings[t]=n[t];else{if(void 0===e)throw new Error('A required setting "'.concat(t,'" was not provided'));i.settings[t]=e}})}return(0,i.default)(t,[{key:"update",value:function(e,t){var n=this;return void 0===t?(0,s.objectEach)(e,function(e,t){n.settings[t]=e}):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,o,i){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,i):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),t}();t.default=l},function(e,t,n){"use strict";var o=n(0);n(57),n(31),n(13),t.__esModule=!0,t.default=void 0;var r=o(n(37)),a=o(n(18)),s=o(n(1)),l=o(n(2)),T=n(6),u=n(75),c=o(n(108)),R=o(n(208)),_=o(n(209)),h=n(221),b=o(n(88)),d=o(n(299)),f=o(n(300)),i=function(){function i(e,t){var n=this;(0,s.default)(this,i),this.wot=e,this.instance=this.wot,this.TABLE=t,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,this.hasTableHeight=!0,this.hasTableWidth=!0,this.isTableVisible=!1,(0,T.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var o=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return n._modifyRowHeaderWidth(o)},this.rowUtils=new f.default(this.wot),this.columnUtils=new d.default(this.wot),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wot.wtSettings.settings.cellRenderer})}return(0,l.default)(i,[{key:"fixTableDomTree",value:function(){var e=this.wot.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(e.createElement("TR"))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,T.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,T.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,T.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isWorkingOnClone()||(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t}},{key:"alignOverlaysWithTrimmingContainer",value:function(){if(!this.isWorkingOnClone()){var e=(0,T.getTrimmingContainer)(this.wtRootElement),t=this.wot.rootWindow;if(e===t){this.wot.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,o=(0,T.getStyle)(e,"height",t),i=(0,T.getStyle)(e,"overflow",t),r=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),u=l.width,c=l.height;if(n&&["auto","hidden","scroll"].includes(i)){var h=e.cloneNode(!1);n.insertBefore(h,e);var d=(0,T.getComputedStyle)(h,t).height;n.removeChild(h),0===parseInt(d,10)&&(c=0)}c=Math.min(c,s),r.height="auto"===o?"auto":"".concat(c,"px"),u=Math.min(u,a),r.width="".concat(u,"px"),r.overflow="",this.hasTableHeight=0<c,this.hasTableWidth=0<u}this.isTableVisible=(0,T.isVisible)(this.TABLE)}}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t=0<arguments.length&&void 0!==e&&e,n=this.wot,o=n.wtOverlays,i=n.wtViewport,r=this.isWorkingOnClone(),a=this.instance.getSetting("totalRows"),s=this.instance.getSetting("totalColumns"),l=n.getSetting("rowHeaders"),u=l.length,c=n.getSetting("columnHeaders"),h=c.length,d=!1,f=t;if(!r&&(this.holderOffset=(0,T.offset)(this.holder),f=i.createRenderCalculators(f),u&&!n.getSetting("fixedColumnsLeft"))){var v=o.leftOverlay.getScrollPosition(),g=this.correctHeaderWidth;this.correctHeaderWidth=0<v,g!==this.correctHeaderWidth&&(f=!1)}if(r||(d=o.prepareOverlays()),f)r||i.createVisibleCalculators(),o&&o.refresh(!0);else{var p,m,y=n.cloneOverlay;this.tableOffset=r?this.wot.cloneSource.wtTable.tableOffset:(0,T.offset)(this.TABLE),p=b.default.isOverlayTypeOf(y,b.default.CLONE_TOP)||b.default.isOverlayTypeOf(y,b.default.CLONE_TOP_LEFT_CORNER)?0:b.default.isOverlayTypeOf(y,b.default.CLONE_BOTTOM)||b.default.isOverlayTypeOf(y,b.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(a-n.getSetting("fixedRowsBottom"),0):i.rowsRenderCalculator.startRow,m=b.default.isOverlayTypeOf(y,b.default.CLONE_LEFT)||b.default.isOverlayTypeOf(y,b.default.CLONE_TOP_LEFT_CORNER)||b.default.isOverlayTypeOf(y,b.default.CLONE_BOTTOM_LEFT_CORNER)?0:i.columnsRenderCalculator.startColumn,this.rowFilter=new _.default(p,a,h),this.columnFilter=new R.default(m,s,u),this.alignOverlaysWithTrimmingContainer();var w,C=r;if(!r){var E={};this.wot.getSetting("beforeDraw",!0,E),C=!0!==E.skipRender}if(C)if(this.tableRenderer.setHeaderContentRenderers(l,c),(b.default.isOverlayTypeOf(y,b.default.CLONE_BOTTOM)||b.default.isOverlayTypeOf(y,b.default.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(l,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),r||(w=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),r&&!this.wot.isOverlayName(b.default.CLONE_BOTTOM)||this.markOversizedRows(),r)this.wot.isOverlayName(b.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var S=(0,T.outerWidth)(this.hider),k=(0,T.outerWidth)(this.TABLE);0!==S&&k!==S&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),w!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}}return this.refreshSelections(f),r||(o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&o.bottomOverlay.resetFixedPosition(),o.leftOverlay.resetFixedPosition(),o.topLeftCornerOverlay&&o.topLeftCornerOverlay.resetFixedPosition(),o.bottomLeftCornerOverlay&&o.bottomLeftCornerOverlay.clone&&o.bottomLeftCornerOverlay.resetFixedPosition()),d&&o.syncScrollWithMaster(),n.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,o,i=this.wot.wtTable.columnFilter.renderedToSource(e),r=this.wot.getSetting("columnHeaders").length,a=this.wot.wtSettings.settings.defaultRowHeight,s=this.wot.getSetting("columnHeaderHeight")||[];r;)r-=1,t=this.wot.wtTable.getColumnHeaderHeight(r),(n=this.wot.wtTable.getColumnHeader(i,r))&&(o=(0,T.innerHeight)(n),(!t&&a<o||t<o)&&(this.wot.wtViewport.oversizedColumnHeaders[r]=o),Array.isArray(s)?null!==s[r]&&void 0!==s[r]&&(this.wot.wtViewport.oversizedColumnHeaders[r]=s[r]):isNaN(s)||(this.wot.wtViewport.oversizedColumnHeaders[r]=s),this.wot.wtViewport.oversizedColumnHeaders[r]<(s[r]||s)&&(this.wot.wtViewport.oversizedColumnHeaders[r]=s[r]||s))}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot,t=this.isWorkingOnClone(),n=e.getOverlayName(),o=e.getSetting("columnHeaders").length;if(o&&!e.wtViewport.hasOversizedColumnHeadersMarked[n]&&!t){for(var i=e.getSetting("rowHeaders").length,r=this.getRenderedColumnsCount(),a=0;a<o;a++)for(var s=-1*i;s<r;s++)this.markIfOversizedColumnHeader(s);e.wtViewport.hasOversizedColumnHeadersMarked[n]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot,t=e.wtTable.THEAD.childNodes,n=e.wtViewport.oversizedColumnHeaders,o=0,i=e.getSetting("columnHeaders").length;o<i;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height="".concat(n[o],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wot;if(!e.getSetting("externalRowCalculator")&&(!this.isWorkingOnClone()||e.isOverlayName(b.default.CLONE_BOTTOM)))for(var t=this.getRenderedRowsCount(),n=0;n<t;n++){var o=this.rowFilter.renderedToSource(n);e.wtViewport.oversizedRows&&e.wtViewport.oversizedRows[o]&&(e.wtViewport.oversizedRows[o]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,o=t.length;n<o;n++)(0,T.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wot;if(t.selections){var n=Array.from(t.selections),o=n.length;if(e){for(var i=[],r=0;r<o;r++){for(var a=n[r].settings,s=a.highlightHeaderClassName,l=a.highlightRowClassName,u=a.highlightColumnClassName,c=n[r].classNames,h=c.length,d=0;d<h;d++)i.includes(c[d])||i.push(c[d]);s&&!i.includes(s)&&i.push(s),l&&!i.includes(l)&&i.push(l),u&&!i.includes(u)&&i.push(u)}var f=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(f))for(var v=0;v<f.length;v++)i.push(f[v]);for(var g=i.length,p=0;p<g;p++)this.removeClassFromCells(i[p])}for(var m=0;m<o;m++)n[m].draw(t,e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,o=this.wot.getSetting("onModifyGetCellCoords",t,n);if(o&&Array.isArray(o)){var i=(0,a.default)(o,2);t=i[0],n=i[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(t)];return r?r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)]:void 0}},{key:"getColumnHeader",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,o=this.THEAD.childNodes[n];if(o)return o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,T.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,o=n.parentNode,i=(0,T.index)(n),r=t.cellIndex;if((0,T.overlayContainsElement)(b.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||(0,T.overlayContainsElement)(b.default.CLONE_TOP,t,this.wtRootElement))"THEAD"===o.nodeName&&(i-=o.childNodes.length);else if((0,T.overlayContainsElement)(b.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||(0,T.overlayContainsElement)(b.default.CLONE_BOTTOM,t,this.wtRootElement)){i=this.wot.getSetting("totalRows")-o.childNodes.length+i}else i=o===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(i):this.rowFilter.renderedToSource(i);return r=(0,T.overlayContainsElement)(b.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||(0,T.overlayContainsElement)(b.default.CLONE_LEFT,t,this.wtRootElement)||(0,T.overlayContainsElement)(b.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(r):this.columnFilter.visibleRowHeadedColumnToSourceColumn(r),new c.default(i,r)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,o,i,r=this.TBODY.childNodes.length;if(r*this.wot.wtSettings.settings.defaultRowHeight!=(0,T.innerHeight)(this.TBODY)-1||this.wot.getSetting("fixedRowsBottom"))for(;r;)r-=1,n=this.rowFilter.renderedToSource(r),e=this.getRowHeight(n),t=(i=(o=this.getTrForRow(n)).querySelector("th"))?(0,T.innerHeight)(i):(0,T.innerHeight)(o)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeight<t||e<t)&&(t+=1,this.wot.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)<0&&0<=e}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return!b.default.isOverlayTypeOf(this.wot.cloneOverlay,b.default.CLONE_BOTTOM)&&!b.default.isOverlayTypeOf(this.wot.cloneOverlay,b.default.CLONE_BOTTOM_LEFT_CORNER)&&(this.rowFilter&&e>this.getLastRenderedRow())}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&0<=e}},{key:"isColumnBeforeRenderedColumns",value:function(e){return this.columnFilter&&this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)<0&&0<=e}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count;if(this.wot.isOverlayName(b.default.CLONE_LEFT)||this.wot.isOverlayName(b.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(b.default.CLONE_BOTTOM_LEFT_CORNER)){var t=this.wot.getSetting("totalColumns");return Math.min(this.wot.getSetting("fixedColumnsLeft"),t)}return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count;if(this.wot.isOverlayName(b.default.CLONE_TOP)||this.wot.isOverlayName(b.default.CLONE_TOP_LEFT_CORNER)){var t=this.wot.getSetting("totalRows");e=Math.min(this.wot.getSetting("fixedRowsTop"),t)}else if(this.wot.isOverlayName(b.default.CLONE_BOTTOM)||this.wot.isOverlayName(b.default.CLONE_BOTTOM_LEFT_CORNER)){var n=this.wot.getSetting("totalRows");e=Math.min(this.wot.getSetting("fixedRowsBottom"),n)}return e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return(0,T.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,u.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,r.default)(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),i}();t.default=i},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.Renderer=void 0;var u=o(n(1)),i=o(n(2)),c=o(n(289));t.RowHeadersRenderer=c.default;var h=o(n(294));t.ColumnHeadersRenderer=h.default;var d=o(n(295));t.ColGroupRenderer=d.default;var f=o(n(296));t.RowsRenderer=f.default;var v=o(n(297));t.CellsRenderer=v.default;var g=o(n(298));t.TableRenderer=g.default;var r=function(){function l(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.TABLE,n=e.THEAD,o=e.COLGROUP,i=e.TBODY,r=e.rowUtils,a=e.columnUtils,s=e.cellRenderer;(0,u.default)(this,l),this.renderer=new g.default(t,{cellRenderer:s}),this.renderer.setRenderers({rowHeaders:new c.default,columnHeaders:new h.default(n),colGroup:new d.default(o),rows:new f.default(i),cells:new v.default}),this.renderer.setAxisUtils(r,a)}return(0,i.default)(l,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),l}();t.Renderer=r},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),s=n(223),a=o(n(290)),l=function(){function o(e,t,n){(0,i.default)(this,o),this.rootNode=e,this.nodesPool=t,this.sizeSet=new a.default,this.childNodeType=n.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,r.default)(o,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return 0<e?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var o=e.firstElementChild;o;){if(o.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(s.WORKING_SPACE_TOP))break;o=o.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),o=t.getViewSize().nextSize,i=this.getRenderedChildCount();i<o;){var r=this.nodesPool();!n||n&&t.isPlaceOn(s.WORKING_SPACE_BOTTOM)?e.appendChild(r):e.insertBefore(r,e.firstChild),i+=1}for(var a=n&&t.isPlaceOn(s.WORKING_SPACE_TOP);o<i;)e.removeChild(a?e.firstChild:e.lastChild),i-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(s.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var o=e.childNodes[n];if(o.tagName!==this.childNodeType){var i=this.nodesPool();e.replaceChild(i,o),o=i}this.collectedNodes.push(o),this.visualIndex+=1}},{key:"end",value:function(){}}]),o}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_TOP=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),v=n(6),a=n(4),s=o(n(24)),g=n(301),l=function(){function n(e){var t=this;(0,i.default)(this,n),this.wot=e,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new s.default(this.wot),this.eventManager.addEventListener(this.wot.rootWindow,"resize",function(){t.clientHeight=t.getWorkspaceHeight()})}return(0,r.default)(n,[{key:"getWorkspaceHeight",value:function(){var e=this.wot.rootDocument,t=this.instance.wtOverlays.topOverlay.trimmingContainer,n=0;t===this.wot.rootWindow?n=e.documentElement.clientHeight:n=0<(0,v.outerHeight)(t)&&0<t.clientHeight?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wot,o=n.rootDocument,i=n.rootWindow,r=this.instance.wtOverlays.leftOverlay.trimmingContainer,a=o.documentElement.offsetWidth,s=n.getSetting("totalColumns");if(n.getSetting("preventOverflow"))return(0,v.outerWidth)(this.instance.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(a-this.getWorkspaceOffset().left,a):Math.min(this.getContainerFillWidth(),a-this.getWorkspaceOffset().left,a),r===i&&0<s&&this.sumColumnWidths(0,s-1)>e)return o.documentElement.clientWidth;if(r!==i&&("scroll"===(t=(0,v.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,r.clientWidth);var l=n.getSetting("stretchH");return"none"!==l&&l?e:Math.max(e,(0,v.outerWidth)(this.instance.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=this.wot.wtTable,o=0,i=e;i<t;)o+=n.getColumnWidth(i),i+=1;return o}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=this.wot.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,v.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,v.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){var e=this.wot.wtTable;return(0,v.outerWidth)(e.TABLE)||(0,v.outerWidth)(e.TBODY)||(0,v.outerWidth)(e.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return this.instance.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,v.outerHeight)(this.wot.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return 0<t&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e)for(var n=this.rowHeaderWidth=0,o=t.length;n<o;n++)this.rowHeaderWidth+=e[n]||e;if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length)for(var i=this.instance.wtTable.TABLE.querySelector("TH"),r=this.rowHeaderWidth=0,a=t.length;r<a;r++)i?(this.rowHeaderWidth+=(0,v.outerWidth)(i),i=i.nextSibling):this.rowHeaderWidth+=50;else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return 0<t?e-t:e}},{key:"createRowsCalculator",value:function(e){var t,n,o,i=0<arguments.length&&void 0!==e?e:g.RENDER_TYPE,r=this.wot,a=r.wtSettings,s=r.wtOverlays,l=r.wtTable,u=r.rootDocument;this.rowHeaderWidth=NaN,t=a.settings.renderAllRows&&i===g.RENDER_TYPE?1/0:this.getViewportHeight();var c=s.topOverlay.getScrollPosition()-s.topOverlay.getTableParentOffset();c<0&&(c=0);var h=r.getSetting("fixedRowsTop"),d=r.getSetting("fixedRowsBottom"),f=r.getSetting("totalRows");return h&&(c+=o=s.topOverlay.sumCellSizes(0,h),t-=o),d&&s.bottomOverlay.clone&&(t-=o=s.bottomOverlay.sumCellSizes(f-d,f)),n=l.holder.clientHeight===l.holder.offsetHeight?0:(0,v.getScrollbarWidth)(u),new g.ViewportRowsCalculator({viewportSize:t,scrollOffset:c,totalItems:r.getSetting("totalRows"),itemSizeFn:function(e){return l.getRowHeight(e)},overrideFn:a.settings.viewportRowCalculatorOverride,calculationType:i,scrollbarHeight:n})}},{key:"createColumnsCalculator",value:function(e){var t=0<arguments.length&&void 0!==e?e:g.RENDER_TYPE,n=this.wot,o=n.wtSettings,i=n.wtOverlays,r=n.wtTable,a=n.rootDocument,s=this.getViewportWidth(),l=i.leftOverlay.getScrollPosition()-i.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,l<0&&(l=0);var u=n.getSetting("fixedColumnsLeft");if(u){var c=i.leftOverlay.sumCellSizes(0,u);l+=c,s-=c}return r.holder.clientWidth!==r.holder.offsetWidth&&(s-=(0,v.getScrollbarWidth)(a)),new g.ViewportColumnsCalculator({viewportSize:s,scrollOffset:l,totalItems:n.getSetting("totalColumns"),itemSizeFn:function(e){return n.wtTable.getColumnWidth(e)},overrideFn:o.settings.viewportColumnCalculatorOverride,calculationType:t,stretchMode:n.getSetting("stretchH"),stretchingItemWidthFn:function(e,t){return n.getSetting("onBeforeStretchingColumnWidth",e,t)}})}},{key:"createRenderCalculators",value:function(e){var t=0<arguments.length&&void 0!==e&&e;if(t){var n=this.createRowsCalculator(g.FULLY_VISIBLE_TYPE),o=this.createColumnsCalculator(g.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(o)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(g.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(g.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(g.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(g.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,o=this.rowsRenderCalculator,i=o.startRow,r=o.endRow;return!(t<i||t===i&&0<t)&&!(r<n||n===r&&n<this.wot.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,o=this.columnsRenderCalculator,i=o.startColumn,r=o.endColumn;return!(t<i||t===i&&0<t)&&!(r<n||n===r&&n<this.wot.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,a.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),n}();t.default=l},function(e,t,n){"use strict";var o=n(0);n(31),n(53),n(38),t.__esModule=!0,t.default=void 0;var G=o(n(18)),i=o(n(1)),r=o(n(2)),K=n(6),a=n(33),s=n(4),X=n(73),l=o(n(24)),q=o(n(108)),u=function(){function n(e,t){(0,i.default)(this,n),t&&(this.eventManager=new l.default(e),this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}return(0,r.default)(n,[{key:"registerListeners",value:function(){var n=this,e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",function(){return n.onMouseDown()}),this.eventManager.addEventListener(e,"mouseup",function(){return n.onMouseUp()});for(var t=function(t,e){n.eventManager.addEventListener(n.main.childNodes[t],"mouseenter",function(e){return n.onMouseEnter(e,n.main.childNodes[t])})},o=0,i=this.main.childNodes.length;o<i;o++)t(o)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,n){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,a.stopImmediatePropagation)(e);var o=this,i=this.wot.rootDocument.body,r=n.getBoundingClientRect();n.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(t){!function(e){return e.clientY<Math.floor(r.top)||e.clientY>Math.ceil(r.top+r.height)||e.clientX<Math.floor(r.left)||e.clientX>Math.ceil(r.left+r.width)||void 0}(t)||(o.eventManager.removeEventListener(i,"mousemove",e),n.style.display="block")})}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","left","bottom","right","corner"],o=this.main.style;o.position="absolute",o.top=0;for(var i=o.left=0;i<5;i++){var r=n[i],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[r]&&this.settings[r].hide&&(a.className+=" hidden"),(o=a.style).backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,o.height=this.settings[r]&&this.settings[r].width?"".concat(this.settings[r].width,"px"):"".concat(e.border.width,"px"),o.width=this.settings[r]&&this.settings[r].width?"".concat(this.settings[r].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,X.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var n=this,e=this.wot.rootDocument;this.selectionHandles={topLeft:e.createElement("DIV"),topLeftHitArea:e.createElement("DIV"),bottomRight:e.createElement("DIV"),bottomRightHitArea:e.createElement("DIV")};this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var t={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,s.objectEach)(t,function(e,t){n.selectionHandles.styles.bottomRightHitArea[t]=e,n.selectionHandles.styles.topLeftHitArea[t]=e});var o={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,s.objectEach)(o,function(e,t){n.selectionHandles.styles.bottomRight[t]=e,n.selectionHandles.styles.topLeft[t]=e}),this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,o,i,r){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top="".concat(parseInt(n-a,10),"px"),this.selectionHandles.styles.topLeft.left="".concat(parseInt(o-a,10),"px"),this.selectionHandles.styles.topLeftHitArea.top="".concat(parseInt(n-s/4*3,10),"px"),this.selectionHandles.styles.topLeftHitArea.left="".concat(parseInt(o-s/4*3,10),"px"),this.selectionHandles.styles.bottomRight.top="".concat(parseInt(n+r,10),"px"),this.selectionHandles.styles.bottomRight.left="".concat(parseInt(o+i,10),"px"),this.selectionHandles.styles.bottomRightHitArea.top="".concat(parseInt(n+r-s/4,10),"px"),this.selectionHandles.styles.bottomRightHitArea.left="".concat(parseInt(o+i-s/4,10),"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,o,i,r=this.wot,a=r.wtTable,s=r.rootDocument,l=r.rootWindow,u=a.getRenderedRowsCount(),c=0;c<u;c+=1){var h=a.rowFilter.renderedToSource(c);if(h>=e[0]&&h<=e[2]){t=h;break}}for(var d=u-1;0<=d;d-=1){var f=a.rowFilter.renderedToSource(d);if(f>=e[0]&&f<=e[2]){n=f;break}}for(var v=a.getRenderedColumnsCount(),g=0;g<v;g+=1){var p=a.columnFilter.renderedToSource(g);if(p>=e[1]&&p<=e[3]){o=p;break}}for(var m=v-1;0<=m;m-=1){var y=a.columnFilter.renderedToSource(m);if(y>=e[1]&&y<=e[3]){i=y;break}}if(void 0!==t&&void 0!==o){var w=a.getCell(new q.default(t,o)),C=t!==n||o!==i,E=C?a.getCell(new q.default(n,i)):w,S=(0,K.offset)(w),k=C?(0,K.offset)(E):S,T=(0,K.offset)(a.TABLE),R=S.top,_=S.left,b=_-T.left-1,O=k.left+(0,K.outerWidth)(E)-_;if(this.isEntireColumnSelected(t,n)){var M=this.getDimensionsFromHeader("columns",o,i,T),N=null;if(M){var A=(0,G.default)(M,3);N=A[0],b=A[1],O=A[2]}N&&(w=N)}var D=R-T.top-1,I=k.top+(0,K.outerHeight)(E)-R;if(this.isEntireRowSelected(o,i)){var H=this.getDimensionsFromHeader("rows",t,n,T),L=null;if(H){var P=(0,G.default)(H,3);L=P[0],D=P[1],I=P[2]}L&&(w=L)}var x=(0,K.getComputedStyle)(w,l);0<parseInt(x.borderTopWidth,10)&&(D+=1,I=0<I?I-1:0),0<parseInt(x.borderLeftWidth,10)&&(b+=1,O=0<O?O-1:0),this.topStyle.top="".concat(D,"px"),this.topStyle.left="".concat(b,"px"),this.topStyle.width="".concat(O,"px"),this.topStyle.display="block",this.leftStyle.top="".concat(D,"px"),this.leftStyle.left="".concat(b,"px"),this.leftStyle.height="".concat(I,"px"),this.leftStyle.display="block";var F=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(D+I-F,"px"),this.bottomStyle.left="".concat(b,"px"),this.bottomStyle.width="".concat(O,"px"),this.bottomStyle.display="block",this.rightStyle.top="".concat(D,"px"),this.rightStyle.left="".concat(b+O-F,"px"),this.rightStyle.height="".concat(I+1,"px"),this.rightStyle.display="block";var B=this.settings.border.cornerVisible;B="function"==typeof B?B(this.settings.layerLevel):B;var W=this.wot.getSetting("onModifyGetCellCoords",n,i),V=n,U=i;if(W&&Array.isArray(W)){var Y=(0,G.default)(W,4);V=Y[2],U=Y[3]}if((0,X.isMobileBrowser)()||!B||this.isPartRange(V,U))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(D+I-4,"px"),this.cornerStyle.left="".concat(b+O-4,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var j=(0,K.getTrimmingContainer)(a.TABLE),z=j===l;if(z&&(j=s.documentElement),i===this.wot.getSetting("totalColumns")-1)(z?E.getBoundingClientRect().left:E.offsetLeft)+(0,K.outerWidth)(E)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,K.innerWidth)(j)&&(this.cornerStyle.left="".concat(Math.floor(b+O-3-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle.borderRightWidth=0);if(n===this.wot.getSetting("totalRows")-1)(z?E.getBoundingClientRect().top:E.offsetTop)+(0,K.outerHeight)(E)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,K.innerHeight)(j)&&(this.cornerStyle.top="".concat(Math.floor(D+I-3-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,X.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,D,b,O,I)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,o){var i=this.wot.wtTable,r=i.wtRootElement.parentNode,a=null,s=null,l=null,u=null,c=null,h=null,d=null,f=null;switch(e){case"rows":a=function(){return i.getRowHeader.apply(i,arguments)},s=function(){return K.outerHeight.apply(void 0,arguments)},l="ht__selection--rows",h="top";break;case"columns":a=function(){return i.getColumnHeader.apply(i,arguments)},s=function(){return K.outerWidth.apply(void 0,arguments)},l="ht__selection--columns",h="left"}if(r.className.includes(l)){var v=this.wot.getSetting("columnHeaders").length;if(d=a(t,v-1),f=a(n,v-1),!d||!f)return!1;var g=(0,K.offset)(d),p=(0,K.offset)(f);return d&&f&&(u=g[h]-o[h]-1,c=p[h]+s(f)-g[h]),[d,u,c]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,o=t[e];!o||o.hide?(0,K.addClass)(this[e],"hidden"):((0,K.hasClass)(this[e],"hidden")&&(0,K.removeClass)(this[e],"hidden"),n.backgroundColor=o.color,"top"!==e&&"bottom"!==e||(n.height="".concat(o.width,"px")),"right"!==e&&"left"!==e||(n.width="".concat(o.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",o=this[e].style;o.backgroundColor=n,o.width="".concat(t,"px"),o.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,K.addClass)(this[e],"hidden"):(0,K.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,X.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),n}();t.default=u},function(e,t,n){var o=n(21),i=n(307).values;o({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){"use strict";var o=n(0);n(47),n(136),n(12),n(15),n(65),n(10),n(13),n(39),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=n(54),v=n(28),d=n(72),g=n(3),p=n(6),f=o(n(228)),m=new WeakMap,y=function(e){function f(e){var t;return(0,i.default)(this,f),(t=(0,a.default)(this,(0,l.default)(f).call(this,e))).query=null,t.strippedChoices=[],t.rawChoices=[],m.set((0,s.default)(t),{skipOne:!1}),t}return(0,c.default)(f,e),(0,r.default)(f,[{key:"getValue",value:function(){var t=this,e=this.rawChoices.find(function(e){return t.stripValueIfNeeded(e)===t.TEXTAREA.value});return(0,v.isDefined)(e)?e:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,u.default)((0,l.default)(f.prototype),"createElements",this).call(this),(0,p.addClass)(this.htContainer,"autocompleteEditor"),(0,p.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var d=this,e=m.get(this);this.TEXTAREA_PARENT.style.overflow="auto",(0,u.default)((0,l.default)(f.prototype),"open",this).call(this),this.TEXTAREA_PARENT.style.overflow="";var t=this.htEditor.getInstance(),r=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var n=(0,p.getScrollbarWidth)(this.hot.rootDocument);t.updateSettings({colWidths:r?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:r?(0,p.outerWidth)(this.TEXTAREA)+n+2:void 0,afterRenderer:function(e,t,n,o,i){var r,a,s=d.cellProperties,l=s.filteringCaseSensitive,u=s.allowHtml,c=d.query,h=(0,v.stringify)(i);h&&!u&&-1!==(r=!0===l?h.indexOf(c):h.toLowerCase().indexOf(c.toLowerCase()))&&(a=h.substr(r,c.length),h=h.replace(a,"<strong>".concat(a,"</strong>"))),e.innerHTML=h},autoColumnSize:!0,modifyColWidth:function(e,t){var n=this.getPlugin("autoColumnSize"),o=e;if(n){var i=n.widths;i[t]&&(o=i[t])}return r?o:o+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]="".concat(n+2,"px"),e.skipOne&&(e.skipOne=!1),this.hot._registerTimeout(function(){d.queryChoices(d.TEXTAREA.value)})}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,u.default)((0,l.default)(f.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,u.default)((0,l.default)(f.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"==typeof n?n.call(this.cellProperties,e,function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))}):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var t=(0,p.getCaretPosition)(this.TEXTAREA),n=(0,p.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,r=null,a=null,s=e;o&&(r=f.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(r)?r.length:0;if(!1===i)l&&(a=r[0]);else{for(var u=[],c=0,h=s.length;c<h&&!(o&&l<=c);c++)l?u.push(s[r[c]]):u.push(s[c]);a=0,s=u}this.strippedChoices=s,this.htEditor.loadData((0,g.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(!1),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.offset)(this.TEXTAREA),t=(0,p.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),o=(0,p.getTrimmingContainer)(this.hot.view.wt.wtTable.TABLE),i=o.scrollTop,r=(0,p.outerHeight)(this.hot.view.wt.wtTable.THEAD),a={row:0,col:0};o!==this.hot.rootWindow&&(a=(0,p.offset)(o));var s=e.top-a.top-r+i,l=o.scrollHeight-s-r-t,u=l<n&&l<s;return u?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(u?s:l,n),u}},{key:"limitDropdownIfNeeded",value:function(e,t){if(e<t){for(var n,o=0,i=0,r=0;o+=r=this.htEditor.getRowHeight(i)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,i+=1,o<e;);n=o-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(o-r)}}},{key:"flipDropdown",value:function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+(0,p.getScrollbarWidth)(this.hot.rootDocument)+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()}},{key:"setDropdownHeight",value:function(e){this.htEditor.updateSettings({height:e})}},{key:"highlightBestMatchingChoice",value:function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=(0,g.arrayMap)(e,function(e){return(0,v.stringify)(e)});return(0,g.arrayMap)(n,function(e){return t?e:(0,d.stripTags)(e)})}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,o=!1;return e===h.KEY_CODES.ARROW_DOWN&&0<n&&n<this.htEditor.countRows()-1&&(o=!0),e===h.KEY_CODES.ARROW_UP&&-1<n&&(o=!0),o}},{key:"onBeforeKeyDown",value:function(e){var t=this,n=m.get(this);if(n.skipOne=!1,(0,h.isPrintableChar)(e.keyCode)||e.keyCode===h.KEY_CODES.BACKSPACE||e.keyCode===h.KEY_CODES.DELETE||e.keyCode===h.KEY_CODES.INSERT){var o=0;if(e.keyCode===h.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(o+=10),this.htEditor&&this.hot._registerTimeout(function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0},o)}(0,u.default)((0,l.default)(f.prototype),"onBeforeKeyDown",this).call(this,e)}}]),f}(f.default);y.sortByRelevance=function(e,t,n){var o,i,r,a,s=[],l=e.length,u=[],c=t.length;if(0===l){for(a=0;a<c;a++)u.push(a);return u}for(a=0;a<c;a++)o=(0,d.stripTags)((0,v.stringify)(t[a])),-1!==(i=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()))&&(r=o.length-i-l,s.push({baseIndex:a,index:i,charsLeft:r,value:o}));for(s.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),a=0,c=s.length;a<c;a++)u.push(s[a].baseIndex);return u};var w=y;t.default=w},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),u=o(n(5)),c=o(n(14)),s=o(n(8)),h=n(54),d=n(4),f=n(6),v=n(33),l=function(e){function l(){return(0,i.default)(this,l),(0,a.default)(this,(0,u.default)(l).apply(this,arguments))}return(0,s.default)(l,e),(0,r.default)(l,[{key:"open",value:function(){(0,c.default)((0,u.default)(l.prototype),"open",this).call(this),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,f.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,c.default)((0,u.default)(l.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,n,o,i,r){(0,c.default)((0,u.default)(l.prototype),"prepare",this).call(this,e,t,n,o,i,r);var a=this,s={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&a.setValue(n),a.instance.destroyEditor()},preventWheel:!0};this.cellProperties.handsontable&&(0,d.extend)(s,r.handsontable),this.htOptions=s}},{key:"beginEditing",value:function(e,t){var n=this.hot.getSettings().onBeginEditing;n&&!1===n()||(0,c.default)((0,u.default)(l.prototype),"beginEditing",this).call(this,e,t)}},{key:"focus",value:function(e){(0,c.default)((0,u.default)(l.prototype),"focus",this).call(this,e)}},{key:"createElements",value:function(){(0,c.default)((0,u.default)(l.prototype),"createElements",this).call(this);var e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}},{key:"finishEditing",value:function(e,t,n){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}return(0,c.default)((0,u.default)(l.prototype),"finishEditing",this).call(this,e,t,n)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})}},{key:"onBeforeKeyDown",value:function(e){if(!(0,v.isImmediatePropagationStopped)(e)){var t,n,o=this.htEditor.getInstance();if(e.keyCode===h.KEY_CODES.ARROW_DOWN)if(o.getSelectedLast()||o.flipped){if(o.getSelectedLast())if(o.flipped)t=o.getSelectedLast()[0]+1;else if(!o.flipped){var i=o.countRows()-1;n=o.getSelectedLast()[0],t=Math.min(i,n+1)}}else t=0;else e.keyCode===h.KEY_CODES.ARROW_UP&&(!o.getSelectedLast()&&o.flipped?t=o.countRows()-1:o.getSelectedLast()&&(t=o.flipped?(n=o.getSelectedLast()[0],Math.max(0,n-1)):(n=o.getSelectedLast()[0])-1));void 0!==t&&(t<0||o.flipped&&t>o.countRows()-1?o.deselectCell():o.selectCell(t,0),o.getData().length&&(e.preventDefault(),(0,v.stopImmediatePropagation)(e),this.hot.listen(),this.TEXTAREA.focus())),(0,c.default)((0,u.default)(l.prototype),"onBeforeKeyDown",this).call(this,e)}}}]),l}(o(n(110)).default);t.default=l},function(e,t,n){"use strict";var o=n(130),l=n(46),i=n(49),u=n(329),c=n(131);o("search",1,function(o,a,s){return[function(e){var t=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=s(a,e,this);if(t.done)return t.value;var n=l(e),o=String(this),i=n.lastIndex;u(i,0)||(n.lastIndex=0);var r=c(n,o);return u(n.lastIndex,i)||(n.lastIndex=i),null===r?-1:r.index}]})},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);return isNaN(new Date("".concat(e,"T00:00")).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}},function(e,t,n){"use strict";function c(e){return e.split('"').length-1}var o,i;n(12),n(39),n(48),window,o=function(e){var t,n,o,i,r,a,s,l=[],u=0;for(1<(o=e.replace(/\r\n|\r/g,"\n").split("\n")).length&&""===o[o.length-1]&&o.pop(),t=0,n=o.length;t<n;t+=1){for(o[t]=o[t].split("\t"),i=0,r=o[t].length;i<r;i+=1)l[u]||(l[u]=[]),a&&0===i?(s=l[u].length-1,l[u][s]=l[u][s]+"\n"+o[t][0],a&&1&c(o[t][0])&&(a=!1,l[u][s]=l[u][s].substring(0,l[u][s].length-1).replace(/""/g,'"'))):a=i===r-1&&0===o[t][i].indexOf('"')&&1&c(o[t][i])?(l[u].push(o[t][i].substring(1).replace(/""/g,'"')),!0):(l[u].push(o[t][i].replace(/""/g,'"')),!1);a||(u+=1)}return l},i=function(e){var t,n,o,i,r,a="";for(t=0,n=e.length;t<n;t+=1){for(i=e[t].length,o=0;o<i;o+=1)0<o&&(a+="\t"),"string"==typeof(r=e[t][o])?-1<r.indexOf("\n")?a+='"'+r.replace(/"/g,'""')+'"':a+=r:a+=null==r?"":r;t!==n-1&&(a+="\n")}return a},t.parse=o,t.stringify=i},function(e,t,n){var o=n(21),i=n(27),r=n(60),a=n(150),s=n(191);o({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(r(e))}})},function(e,t,n){"use strict";n(15),n(67),n(10),n(13),n(16),t.__esModule=!0,t.mouseDown=o,t.mouseOver=i,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller;a.get(e.type)({coords:n,selection:o,controller:i,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})};var r=n(33),f=n(25);function o(e){var t=e.isShiftKey,n=e.isLeftClick,o=e.isRightClick,i=e.coords,r=e.selection,a=e.controller,s=r.isSelected()?r.getSelectedRange().current():null,l=r.isSelectedByCorner(),u=r.isSelectedByRowHeader();if(t&&s)0<=i.row&&0<=i.col&&!a.cells?r.setRangeEnd(i):(l||u)&&0<=i.row&&0<=i.col&&!a.cells?r.setRangeEnd(new f.CellCoords(i.row,i.col)):l&&i.row<0&&!a.column?r.setRangeEnd(new f.CellCoords(s.to.row,i.col)):u&&i.col<0&&!a.row?r.setRangeEnd(new f.CellCoords(i.row,s.to.col)):(!l&&!u&&i.col<0||l&&i.col<0)&&!a.row?r.selectRows(s.from.row,i.row):(!l&&!u&&i.row<0||u&&i.row<0)&&!a.column&&r.selectColumns(s.from.col,i.col);else{var c=new f.CellCoords(i.row,i.col);c.row<0&&(c.row=0),c.col<0&&(c.col=0);var h=!r.inInSelection(c),d=n||o&&h;i.row<0&&0<=i.col&&!a.column?d&&r.selectColumns(i.col):i.col<0&&0<=i.row&&!a.row?d&&r.selectRows(i.row):0<=i.col&&0<=i.row&&!a.cells?d&&r.setRangeStart(i):i.col<0&&i.row<0&&r.setRangeStart(i)}}function i(e){var t=e.isLeftClick,n=e.coords,o=e.selection,i=e.controller;if(t){var r=o.isSelectedByRowHeader(),a=o.isSelectedByColumnHeader(),s=o.tableProps.countCols(),l=o.tableProps.countRows();a&&!i.column?o.setRangeEnd(new f.CellCoords(l-1,n.col)):r&&!i.row?o.setRangeEnd(new f.CellCoords(n.row,s-1)):i.cell||o.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){"use strict";n(111),n(138),n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.registerAsRootInstance=function(e){o.set(e,!0)},t.hasValidParameter=function(e){return e===i},t.isRootInstance=function(e){return o.has(e)},t.rootInstanceSymbol=t.holder=void 0;var o=new WeakMap;t.holder=o;var i=Symbol("rootInstance");t.rootInstanceSymbol=i},function(e,t,n){t.f=n(34)},function(e,t,n){var o=n(185),i=n(50),r=n(235),a=n(51).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});i(t,e)||a(t,e,{value:r.f(e)})}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var r=o(n(44)),a=n(28),s=n(4);function i(){}i.prototype={licenseKey:void 0,data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,selectionMode:"multiple",fillHandle:{autoInsertRow:!1},fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!0,autoWrapCol:!0,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",activeHeaderClassName:"ht__active_highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,o,i;for(t=0,n=this.countCols();t<n;t++)if(""!==(o=this.getDataAtCell(e,t))&&null!==o&&(0,a.isDefined)(o))return"object"===(0,r.default)(o)&&(i=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[i.prop],o));return!0},isEmptyCol:function(e){var t,n,o;for(t=0,n=this.countRows();t<n;t++)if(""!==(o=this.getDataAtCell(t,e))&&null!==o&&(0,a.isDefined)(o))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:void 0,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,skipRowOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,multiColumnSorting:void 0,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,manualColumnFreeze:void 0,trimWhitespace:!0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,numericFormat:void 0,language:"en-US",selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:"DD/MM/YYYY",correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,preventWheel:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1,dragToScroll:!0,nestedRows:void 0};var l=i;t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.getTranslatedPhrase=function(e,t,n){var o=(0,s.getLanguageDictionary)(e);if(null===o)return null;var i=o[t];if((0,u.isUndefined)(i))return null;var r=function(t,n){var o=t;return(0,a.arrayEach)((0,l.getPhraseFormatters)(),function(e){o=e(t,n)}),o}(i,n);if(Array.isArray(r))return r[0];return r};var a=n(3),s=n(139),l=n(351),u=n(28)},function(e,t,n){"use strict";var o=n(0);n(19),t.__esModule=!0,t.extendNotExistingKeys=function(n,e){return(0,a.objectEach)(e,function(e,t){(0,r.isUndefined)(n[t])&&(n[t]=e)}),n},t.createCellHeadersRange=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:t,i=n,r=o;if(t<e){var a=[r,i];i=a[0],r=a[1]}return"".concat(i,"-").concat(r)},t.normalizeLanguageCode=h,t.applyLanguageSetting=function(e,t){var n=h(t);(0,u.hasLanguageDictionary)(n)?e.language=n:(e.language=u.DEFAULT_LANGUAGE_CODE,d(t))},t.warnUserAboutLanguageRegistration=d;var i=o(n(69)),r=n(28),a=n(4),s=n(58),l=n(71),u=n(139);function c(){var e=(0,i.default)(['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.']);return c=function(){return e},e}function h(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);return t?"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase()):e}function d(e){(0,r.isDefined)(e)&&(0,s.error)((0,l.toSingleLine)(c(),e))}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0;var i=o(n(241));t.Highlight=i.default;var r=o(n(362));t.Selection=r.default;var a=n(233);t.handleMouseEvent=a.handleMouseEvent;var s=n(141);t.detectSelectionType=s.detectSelectionType,t.normalizeSelectionFactory=s.normalizeSelectionFactory},function(e,t,n){"use strict";var o=n(0);n(111),n(138),n(242),n(19),n(353),n(47),n(31),n(15),n(67),n(243),n(244),n(61),n(10),n(38),n(13),n(89),n(16),t.__esModule=!0,t.default=t.CUSTOM_SELECTION=t.HEADER_TYPE=t.FILL_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;var i=o(n(37)),r=o(n(68)),a=o(n(1)),s=o(n(2)),l=n(355),u=n(3);function c(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(e){(0,r.default)(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}var h="active-header";t.ACTIVE_HEADER_TYPE=h;t.AREA_TYPE="area";t.CELL_TYPE="cell";t.FILL_TYPE="fill";t.HEADER_TYPE="header";var d="custom-selection";t.CUSTOM_SELECTION=d;var f=function(){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,l.createHighlight)("cell",e),this.fill=(0,l.createHighlight)("fill",e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e){var t="current"===e?"cell":e,n=this.options.disableHighlight;return"string"==typeof n&&(n=[n]),!1===n||Array.isArray(n)&&!n.includes(t)}},{key:"useLayerLevel",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this.layerLevel=t,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,l.createHighlight)("area",c({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,i.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)("header",c({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,i.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(h,c({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,i.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,i.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(d,c({},e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,u.arrayEach)(this.areas.values(),function(e){e.clear()}),(0,u.arrayEach)(this.headers.values(),function(e){e.clear()}),(0,u.arrayEach)(this.activeHeaders.values(),function(e){e.clear()})}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat((0,i.default)(this.areas.values()),(0,i.default)(this.headers.values()),(0,i.default)(this.activeHeaders.values()),(0,i.default)(this.customSelections))[Symbol.iterator]()}}]),t}();t.default=f},function(e,t,n){n(236)("iterator")},function(e,t,n){var o=n(21),i=n(27),r=n(63),a=n(91).f,s=n(45),l=i(function(){a(1)});o({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(r(e),t)}})},function(e,t,n){var o=n(21),i=n(45),l=n(184),u=n(63),c=n(91),h=n(105);o({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,o=u(e),i=c.f,r=l(o),a={},s=0;r.length>s;)void 0!==(n=i(o,t=r[s++]))&&h(a,t,n);return a}})},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(67),n(61),n(10),n(13),n(16),t.__esModule=!0,t.default=void 0;var f=o(n(68)),i=o(n(1)),r=o(n(2)),v=n(4),g=n(17),p=n(28),a=function(){function t(e){(0,i.default)(this,t),this.samples=null,this.dataFactory=e,this.customSampleCount=null,this.allowDuplicates=!1}return(0,r.default)(t,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),(0,r.default)(t,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:t.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(n,o,e){var i=this,r=new Map,t="number"==typeof e?{from:e,to:e}:e,a=t.from,s=t.to;return(0,g.rangeEach)(a,s,function(e){var t=i.generateSample(n,o,e);r.set(e,t)}),r}},{key:"generateSample",value:function(s,e,l){var u=this;if("row"!==s&&"col"!==s)throw new Error("Unsupported sample type");var c=new Map,h="row"===s?"col":"row",d=[];return(0,g.rangeEach)(e.from,e.to,function(e){var t,n="row"===s?u.dataFactory(l,e):u.dataFactory(e,l),o=n.value,i=n.bundleCountSeed,r=0<i;t=(0,v.isObject)(o)?Object.keys(o).length:Array.isArray(o)?o.length:(0,p.stringify)(o).length,r&&(t+=i),c.has(t)||c.set(t,{needed:u.getSampleCount(),strings:[]});var a=c.get(t);a.needed&&(-1<d.indexOf(o)&&!u.allowDuplicates&&!r||(a.strings.push((0,f.default)({value:o},h,e)),d.push(o),a.needed-=1))}),c}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(111),n(19),n(47),n(15),n(170),n(40),n(65),n(67),n(79),n(80),n(247),n(243),n(244),n(232),n(61),n(10),n(13),n(89),n(16),n(32),t.__esModule=!0,t.default=void 0;var l=o(n(37)),i=o(n(68)),a=o(n(374)),r=o(n(1)),s=o(n(2)),u=o(n(7)),c=o(n(26)),h=o(n(5)),d=o(n(14)),f=o(n(8)),v=n(6),g=n(28),p=n(4),m=n(3),y=n(17),w=o(n(22)),C=n(20),E=o(n(43)),S=n(140),k=n(376),T=n(171),R=n(377),_=o(n(378)),b=n(379),O=n(90);function M(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(e){(0,i.default)(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}var N="columnSorting";(0,O.registerRootComparator)(N,b.rootComparator),E.default.getSingleton().register("beforeColumnSort"),E.default.getSingleton().register("afterColumnSort");var A=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,u.default)(this,(0,h.default)(n).call(this,e))).columnStatesManager=new k.ColumnStatesManager,t.rowsMapper=new _.default((0,c.default)(t)),t.blockPluginTranslation=!0,t.columnMetaCache=new Map,t.pluginKey=N,t}return(0,f.default)(n,e),(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var i=this;this.enabled||((0,g.isUndefined)(this.hot.getSettings().observeChanges)&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(){return i.sortByPresetSortStates()}),this.addHook("afterUntrimRow",function(){return i.sortByPresetSortStates()}),this.addHook("modifyRow",function(e,t){return i.onModifyRow(e,t)}),this.addHook("unmodifyRow",function(e,t){return i.onUnmodifyRow(e,t)}),this.addHook("afterGetColHeader",function(e,t){return i.onAfterGetColHeader(e,t)}),this.addHook("beforeOnCellMouseDown",function(e,t,n,o){return i.onBeforeOnCellMouseDown(e,t,n,o)}),this.addHook("afterOnCellMouseDown",function(e,t){return i.onAfterOnCellMouseDown(e,t)}),this.addHook("afterCreateRow",function(e,t){return i.onAfterCreateRow(e,t)}),this.addHook("afterRemoveRow",function(e,t){return i.onAfterRemoveRow(e,t)}),this.addHook("afterInit",function(){return i.loadOrSortBySettings()}),this.addHook("afterLoadData",function(e){return i.onAfterLoadData(e)}),this.addHook("afterCreateCol",function(){return i.onAfterCreateCol()}),this.addHook("afterRemoveCol",function(){return i.onAfterRemoveCol()}),this.hot.view&&this.loadOrSortBySettings(),(0,d.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){function e(e,t){var n=(0,T.getHeaderSpanElement)(t);!1!==(0,T.isFirstLevelColumnHeader)(e,t)&&null!==n&&o.updateHeaderClasses(n)}var o=this;this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterRender",function(){o.hot.removeHook("afterGetColHeader",e)}),this.rowsMapper.clearMap(),(0,d.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var o=this,t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),i=this.areValidSortConfigs(n);if(!1!==this.hot.runHooks("beforeColumnSort",t,n,i)){if(i){var r=(0,m.arrayMap)(n,function(e){return function(e){var t=e.column,n=(0,a.default)(e,["column"]);return M({column:o.hot.toPhysicalColumn(t)},n)}(e)});this.columnStatesManager.setSortStates(r),this.sortByPresetSortStates(),this.saveAllSortSettings(),this.hot.render(),this.hot.view.wt.draw(!0)}this.hot.runHooks("afterColumnSort",t,this.getSortConfig(),i)}}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){function t(e){var t=e.column,n=(0,a.default)(e,["column"]);return M({column:o.hot.toVisualColumn(t)},n)}var o=this;if((0,g.isDefined)(e)){var n=this.hot.toPhysicalColumn(e),i=this.columnStatesManager.getColumnSortState(n);return(0,g.isDefined)(i)?t(i):void 0}var r=this.columnStatesManager.getSortStates();return(0,m.arrayMap)(r,function(e){return t(e)})}},{key:"setSortConfig",value:function(e){var o=this,t=this.getNormalizedSortConfigs(e);if(this.areValidSortConfigs(t)){var n=(0,m.arrayMap)(t,function(e){return function(e){var t=e.column,n=(0,a.default)(e,["column"]);return M({column:o.hot.toPhysicalColumn(t)},n)}(e)});this.columnStatesManager.setSortStates(n)}}},{key:"getNormalizedSortConfigs",value:function(e){var t=0<arguments.length&&void 0!==e?e:[];return Array.isArray(t)?t.slice(0,1):[t].slice(0,1)}},{key:"areValidSortConfigs",value:function(e){if(!1===Array.isArray(e))return!1;var t=e.map(function(e){return e.column}),n=this.hot.countCols(),o=t.every(function(e){return e<=n&&0<=e});return(0,T.areValidSortStates)(e)&&o}},{key:"saveAllSortSettings",value:function(){var e=this.columnStatesManager.getAllColumnsProperties();e.initialConfig=this.columnStatesManager.getSortStates(),this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"getAllSavedSortSettings",value:function(){var o=this,e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);var t=e.value;return(0,g.isDefined)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,m.arrayMap)(t.initialConfig,function(e){var t=e.column,n=(0,a.default)(e,["column"]);return M({column:o.hot.toVisualColumn(t)},n)})),t}},{key:"getColumnNextConfig",value:function(e){var t=this.hot.toPhysicalColumn(e);if(this.columnStatesManager.isColumnSorted(t)){var n=this.getSortConfig(e),o=(0,T.getNextSortOrder)(n.sortOrder);return(0,g.isDefined)(o)?(n.sortOrder=o,n):void 0}var i=this.hot.countCols();if(Number.isInteger(e)&&0<=e&&e<i)return{column:e,sortOrder:(0,T.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:"append",o=this.hot.toPhysicalColumn(e),i=this.columnStatesManager.getIndexOfColumnInSortQueue(o),r=this.columnStatesManager.isColumnSorted(o),a=this.getSortConfig(),s=this.getColumnNextConfig(e);if(r){if((0,g.isUndefined)(s))return[].concat((0,l.default)(a.slice(0,i)),(0,l.default)(a.slice(i+1)));if("append"===n)return[].concat((0,l.default)(a.slice(0,i)),(0,l.default)(a.slice(i+1)),[s]);if("replace"===n)return[].concat((0,l.default)(a.slice(0,i)),[s],(0,l.default)(a.slice(i+1)))}return(0,g.isDefined)(s)?a.concat(s):a}},{key:"setMergedPluginSettings",value:function(e){var t=this.hot.toPhysicalColumn(e),n=this.hot.getSettings()[this.pluginKey],o=this.columnStatesManager.getAllColumnsProperties(),i=this.hot.getCellMeta(0,e),r=Object.getPrototypeOf(i),a=Object.hasOwnProperty.call(r,this.pluginKey)?r[this.pluginKey]:{};this.columnMetaCache.set(t,Object.assign(o,n,a))}},{key:"getFirstCellSettings",value:function(e){var t=this.blockPluginTranslation;this.blockPluginTranslation=!0,(0===this.columnMetaCache.size||this.columnMetaCache.size<this.hot.countCols())&&this.rebuildColumnMetaCache();var n=this.hot.getCellMeta(0,e);this.blockPluginTranslation=t;var o=Object.create(n);return o[this.pluginKey]=this.columnMetaCache.get(this.hot.toPhysicalColumn(e)),o}},{key:"rebuildColumnMetaCache",value:function(){var t=this,e=this.hot.countCols();0===e?this.columnMetaCache.clear():(0,y.rangeEach)(e-1,function(e){return t.setMergedPluginSettings(e)})}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(){var n=this;if(this.columnStatesManager.isListOfSortedColumnsEmpty())this.rowsMapper.clearMap();else{var e=[],o=this.columnStatesManager.getSortedColumns(),t=this.hot.countRows();this.blockPluginTranslation=!0;for(var i=function(t){return(0,m.arrayMap)(o,function(e){return n.hot.getDataAtCell(t,n.hot.toVisualColumn(e))})},r=0;r<this.getNumberOfRowsToSort(t);r+=1)e.push([r].concat(i(r)));(0,O.sort)(e,this.pluginKey,(0,m.arrayMap)(o,function(e){return n.columnStatesManager.getSortOrderOfColumn(e)}),(0,m.arrayMap)(o,function(e){return n.getFirstCellSettings(n.hot.toVisualColumn(e))}));for(var a=e.length;a<t;a+=1)e.push([a].concat(i(a)));this.blockPluginTranslation=!1,this.rowsMapper._arrayMap=(0,m.arrayMap)(e,function(e){return e[0]})}}},{key:"loadOrSortBySettings",value:function(){this.columnMetaCache.clear();var e=this.getAllSavedSortSettings();if((0,p.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,p.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,p.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"onModifyRow",value:function(e,t){if(!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e,t){return!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()&&(e=this.rowsMapper.getIndexByValue(e)),e}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,T.getHeaderSpanElement)(t);if(!1!==(0,T.isFirstLevelColumnHeader)(e,t)&&null!==n){var o=this.hot.toPhysicalColumn(e),i=this.getFirstCellSettings(e)[this.pluginKey],r=i.indicator,a=i.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,o,r,a)}}},{key:"updateHeaderClasses",value:function(e){if((0,v.removeClass)(e,(0,R.getClassedToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(0,v.addClass)(e,R.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){(0,d.default)((0,h.default)(n.prototype),"onUpdateSettings",this).call(this),this.columnMetaCache.clear(),(0,g.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){this.rowsMapper.clearMap(),this.columnMetaCache.clear(),!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(e,t)}},{key:"onAfterCreateCol",value:function(){this.columnMetaCache.clear()}},{key:"onAfterRemoveCol",value:function(){this.columnMetaCache.clear()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.realTarget.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){!1!==(0,T.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(0,S.isPressedCtrlKey)()&&(o.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,T.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&((0,S.isPressedCtrlKey)()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){this.rowsMapper.destroy(),this.columnStatesManager.destroy(),(0,d.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}]),n}(w.default);(0,C.registerPlugin)(N,A);var D=A;t.default=D},function(e,t,n){var o=n(21),i=n(373);o({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var o=n(219),i=n(202),r=n(220);e.exports=function(e){return o(e)||i(e)||r()}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return c(e);return c(i.COLUMN_DATA_TYPE)},t.getRootComparator=t.registerRootComparator=void 0;var i=n(380),r=n(381),a=n(382),s=o(n(77)),l=(0,s.default)("sorting.compareFunctionFactory"),u=l.register,c=l.getItem,h=l.hasItem,d=(0,s.default)("sorting.mainSortComparator"),f=d.register,v=d.getItem;t.getRootComparator=v,t.registerRootComparator=f,u(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),u(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),u(i.COLUMN_DATA_TYPE,i.compareFunctionFactory)},function(e,t,n){"use strict";var o=n(0);n(53),n(48),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),c=n(3),h=n(4);var a=function(){function t(e){(0,i.default)(this,t),this.hot=e,this.commands={},this.commonCallback=null}return(0,r.default)(t,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var r=e.split(":"),a=r[0],s=2===r.length?r[1]:null,l=this.commands[a];if(!l)throw new Error("Menu command '".concat(a,"' not exists."));if(s&&l.submenu&&(l=function(n,e){var o;return(0,c.arrayEach)(e,function(e){var t=e.key?e.key.split(":"):null;if(Array.isArray(t)&&t[1]===n)return o=e,!1}),o}(s,l.submenu.items)),!0!==l.disabled&&("function"!=typeof l.disabled||!0!==l.disabled.call(this.hot))&&!(0,h.hasOwnProperty)(l,"submenu")){var u=[];"function"==typeof l.callback&&u.push(l.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),o.unshift(r.join(":")),(0,c.arrayEach)(u,function(e){return e.apply(t.hot,o)})}}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(12),n(55),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(4),s=n(3),l=n(82);var u=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;(0,i.default)(this,n),this.hot=e,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=t}return(0,r.default)(n,[{key:"setPredefinedItems",value:function(e){var o=this,i={};(this.defaultOrderPattern.length=0,a.objectEach)(e,function(e,t){var n="";n=e.name===l.SEPARATOR?(i[l.SEPARATOR]=e,l.SEPARATOR):isNaN(parseInt(t,10))?(e.key=void 0===e.key?t:e.key,(i[t]=e).key):(i[e.key]=e).key,o.defaultOrderPattern.push(n)}),this.predefinedItems=i}},{key:"getItems",value:function(e){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=[],n=e;n&&n.items?n=n.items:Array.isArray(n)||(n=t);(0,a.isObject)(n)?(0,a.objectEach)(n,function(e,t){var n=o["string"==typeof e?e:t];n=n||e,(0,a.isObject)(e)?(0,a.extend)(n,e):"string"==typeof n&&(n={name:n}),void 0===n.key&&(n.key=t),i.push(n)}):(0,s.arrayEach)(n,function(e,t){var n=o[e];!n&&0<=l.ITEMS.indexOf(e)||(n=n||{name:e,key:"".concat(t)},(0,a.isObject)(e)&&(0,a.extend)(n,e),void 0===n.key&&(n.key=t),i.push(n))});return i}(0<arguments.length&&void 0!==e?e:null,this.defaultOrderPattern,this.predefinedItems)}}]),n}();t.default=u},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(17),s=function(){function t(e){(0,i.default)(this,t),this.hot=e,this._element=null,this.state=0}return(0,r.default)(t,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=this.hot.rootDocument.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return 1<=this.state}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),t}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function t(e){(0,i.default)(this,t),this.hot=e,this._element=null,this.state=0}return(0,r.default)(t,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=this.hot.rootDocument.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return 1<=this.state}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),t}();t.default=a},function(e,t,n){"use strict";n(10),n(36),t.__esModule=!0,t.applySpanProperties=function(e,t,n,o){t?t.row===n&&t.col===o?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")}},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=a,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29);function a(e){return""===e.value||null===e.value||void 0===e.value}t.CONDITION_NAME="empty",(0,r.registerCondition)("empty",a,{name:i.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(28),l=n(29);function u(e,t){var n=(0,r.default)(t,1)[0];return(0,s.stringify)(e.value).toLowerCase()===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",u,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=a,t.CONDITION_NAME=void 0;var u=i(n(18)),r=o(n(11)),c=n(29),h=n(258),d=n(259);function a(e,t){var n=(0,u.default)(t,2),o=n[0],i=n[1];if("numeric"===e.meta.type){var r=parseFloat(o,10),a=parseFloat(i,10);o=Math.min(r,a),i=Math.max(r,a)}else if("date"===e.meta.type){var s=(0,c.getCondition)(d.CONDITION_NAME,[i]),l=(0,c.getCondition)(h.CONDITION_NAME,[o]);return s(e)&&l(e)}return e.value>=o&&e.value<=i}t.CONDITION_NAME="between",(0,c.registerCondition)("between",a,{name:r.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=c,t.CONDITION_NAME=void 0;var r=i(n(18)),a=i(n(70)),s=o(n(11)),l=n(29),u="date_after";function c(e,t){var n=(0,r.default)(t,1)[0],o=(0,a.default)(e.value,e.meta.dateFormat),i=(0,a.default)(n,e.meta.dateFormat);return!(!o.isValid()||!i.isValid())&&0<=o.diff(i)}t.CONDITION_NAME=u,(0,l.registerCondition)(u,c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=c,t.CONDITION_NAME=void 0;var r=i(n(18)),a=i(n(70)),s=o(n(11)),l=n(29),u="date_before";function c(e,t){var n=(0,r.default)(t,1)[0],o=(0,a.default)(e.value,e.meta.dateFormat),i=(0,a.default)(n,e.meta.dateFormat);return!(!o.isValid()||!i.isValid())&&o.diff(i)<=0}t.CONDITION_NAME=u,(0,l.registerCondition)(u,c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);n(12),t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(28),l=n(29);function u(e,t){var n=(0,r.default)(t,1)[0];return 0<=(0,s.stringify)(e.value).toLowerCase().indexOf((0,s.stringify)(n))}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",u,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.operationResult=l,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0;var i=o(n(11)),r=n(113),a="disjunction";t.OPERATION_ID=a;var s=i.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some(function(e){return e.func(t)})}t.SHORT_NAME_FOR_COMPONENT=s,(0,r.registerOperation)(a,s,l)},function(e,t,n){"use strict";var o=n(9);n(40),t.__esModule=!0,t.operationResult=l,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0;var i=o(n(11)),r=n(113),a="disjunctionWithExtraCondition";t.OPERATION_ID=a;var s=i.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(function(e){return e.func(t)})&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=s,(0,r.registerOperation)(a,s,l)},function(e,t,n){"use strict";var o=n(0);n(12),n(30),n(55),t.__esModule=!0,t.default=void 0;var i=o(n(69)),r=o(n(1)),a=o(n(2)),s=n(3),l=n(4),u=n(71),c=o(n(59)),h=n(29),d=n(176),f=n(113);function v(){var e=(0,i.default)(["The column of index "," has been already applied with a `","`\n filter operation. Use `removeConditions` to clear the current conditions and then add new ones.\n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`,\n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\n use it consequently for a particular column)."]);return v=function(){return e},e}var g=function(){function e(){(0,r.default)(this,e),this.conditions=this.initConditionsCollection(),this.columnTypes={},this.orderStack=[]}return(0,a.default)(e,[{key:"isEmpty",value:function(){return!this.orderStack.length}},{key:"isMatch",value:function(n,e){var o=this,i=!0;if(void 0===e)(0,l.objectEach)(this.columnTypes,function(e,t){return i=o.isMatchInConditions(o.conditions[e][t],n,e)});else{var t=this.columnTypes[e];i=this.isMatchInConditions(this.getConditions(e),n,t)}return i}},{key:"isMatchInConditions",value:function(e,t,n){var o=2<arguments.length&&void 0!==n?n:d.OPERATION_ID;return!e.length||(0,f.getOperationFunc)(o)(e,t)}},{key:"addCondition",value:function(e,t,n){var o=2<arguments.length&&void 0!==n?n:d.OPERATION_ID,i=(0,s.arrayMap)(t.args,function(e){return"string"==typeof e?e.toLowerCase():e}),r=t.name||t.command.key;this.runLocalHooks("beforeAdd",e),-1===this.orderStack.indexOf(e)&&this.orderStack.push(e);var a=this.columnTypes[e];if(a){if(a!==o)throw Error((0,u.toSingleLine)(v(),e,a))}else{if(!this.conditions[o])throw new Error("Unexpected operation named `".concat(o,"`. Possible ones are `disjunction` and `conjunction`."));this.columnTypes[e]=o}this.getConditions(e).push({name:r,args:i,func:(0,h.getCondition)(r,i)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t=this.columnTypes[e];return t?(this.conditions[t][e]||(this.conditions[t][e]=[]),this.conditions[t][e]):[]}},{key:"exportAllConditions",value:function(){var o=this,i=[];return(0,s.arrayEach)(this.orderStack,function(e){var t=(0,s.arrayMap)(o.getConditions(e),function(e){return{name:e.name,args:e.args}}),n=o.columnTypes[e];i.push({column:e,operation:n,conditions:t})}),i}},{key:"importAllConditions",value:function(e){var n=this;this.clean(),(0,s.arrayEach)(e,function(t){n.orderStack.push(t.column),(0,s.arrayEach)(t.conditions,function(e){return n.addCondition(t.column,e)})})}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),0<=this.orderStack.indexOf(e)&&this.orderStack.splice(this.orderStack.indexOf(e),1),this.clearConditions(e),this.runLocalHooks("afterRemove",e)}},{key:"clearConditions",value:function(e){this.runLocalHooks("beforeClear",e),this.getConditions(e).length=0,delete this.columnTypes[e],this.runLocalHooks("afterClear",e)}},{key:"hasConditions",value:function(e,t){if(!this.columnTypes[e])return!1;var n=this.getConditions(e);return t?0<(0,s.arrayFilter)(n,function(e){return e.name===t}).length:0<n.length}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.columnTypes=Object.create(null),this.orderStack.length=0,this.conditions=this.initConditionsCollection(),this.runLocalHooks("afterClean")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.conditions=null,this.orderStack=null,this.columnTypes=null}},{key:"initConditionsCollection",value:function(){var n=Object.create(null);return(0,l.objectEach)(f.operations,function(e,t){n[t]=Object.create(null)}),n}}]),e}();(0,l.mixin)(g,c.default);var p=g;t.default=p},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(3),s=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,i.default)(this,n),this.conditionCollection=e,this.columnDataFactory=t}return(0,r.default)(n,[{key:"filter",value:function(){var o=this,i=[];return this.conditionCollection.isEmpty()||(0,a.arrayEach)(this.conditionCollection.orderStack,function(e,t){var n=o.columnDataFactory(e);t&&(n=o._getIntersectData(n,i)),i=o.filterByColumn(e,n)}),i}},{key:"filterByColumn",value:function(t,e){var n=this,o=1<arguments.length&&void 0!==e?e:[],i=[];return(0,a.arrayEach)(o,function(e){void 0!==e&&n.conditionCollection.isMatch(e,t)&&i.push(e)}),i}},{key:"_getIntersectData",value:function(n,e){var o=[];return(0,a.arrayEach)(e,function(e){var t=e.meta.visualRow;void 0!==n[t]&&(o[t]=n[t])}),o}}]),n}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var r=o(n(1)),a=o(n(2)),s=n(115),l=n(4),i=function(){function i(e,t){(0,r.default)(this,i);var n=(0,l.isObject)(e),o=(0,l.isObject)(t);this._row=n?e.index:e,this.rowAbsolute=!n||e.isAbsolute,this._column=o?t.index:t,this.columnAbsolute=!o||t.isAbsolute,this.rowOffset=0,this.columnOffset=0,Object.defineProperty(this,"row",{get:function(){return this.rowOffset+this._row},set:function(e){this._row=e},enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{get:function(){return this.columnOffset+this._column},set:function(e){this._column=e},enumerable:!0,configurable:!0})}return(0,a.default)(i,[{key:"translateTo",value:function(e,t){this.row=this.row+e,this.column=this.column+t}},{key:"isEqual",value:function(e){return e.row===this.row&&e.column===this.column}},{key:"toString",value:function(){return(0,s.toLabel)({index:this.row,isAbsolute:this.rowAbsolute},{index:this.column,isAbsolute:this.columnAbsolute})}}]),i}();t.default=i},function(e,t,n){"use strict";var o=n(0);n(19),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(5)),s=o(n(2)),l=o(n(8)),d=n(3),f=n(17),v=n(6),u=function(e){function h(e,t){var n;return(0,i.default)(this,h),(n=(0,r.default)(this,(0,a.default)(h).call(this,e,t))).dataManager=n.plugin.dataManager,n.collapsingUI=n.plugin.collapsingUI,n.rowHeaderWidthCache=null,n.trimRowsPlugin=e.trimRowsPlugin,n}return(0,l.default)(h,e),(0,s.default)(h,null,[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),(0,s.default)(h,[{key:"appendLevelIndicators",value:function(e,t){var n=this.trimRowsPlugin.rowsMapper.getValueByIndex(e),o=this.dataManager.getRowLevel(n),i=this.dataManager.getDataObject(n),r=t.getElementsByTagName("DIV")[0],a=r.querySelector("span.rowHeader"),s=r.querySelectorAll('[class^="ht_nesting"]');if((0,d.arrayEach)(s,function(e){e&&r.removeChild(e)}),(0,v.addClass)(t,h.CSS_CLASSES.indicatorContainer),o){var l=this.hot.rootDocument,u=a.cloneNode(!0);r.innerHTML="",(0,f.rangeEach)(0,o-1,function(){var e=l.createElement("SPAN");(0,v.addClass)(e,h.CSS_CLASSES.emptyIndicator),r.appendChild(e)}),r.appendChild(u)}if(this.dataManager.hasChildren(i)){var c=this.hot.rootDocument.createElement("DIV");(0,v.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(n)?(0,v.addClass)(c,"".concat(h.CSS_CLASSES.button," ").concat(h.CSS_CLASSES.expandButton)):(0,v.addClass)(c,"".concat(h.CSS_CLASSES.button," ").concat(h.CSS_CLASSES.collapseButton)),r.appendChild(c)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t=t||this.dataManager.cache.levelCount,this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}]),h}(o(n(179)).default);t.default=u},function(e,t,n){"use strict";var o=n(9),i=n(0);n(268),t.__esModule=!0,t.default=void 0,n(269),n(270),n(271);var r=n(56),a=n(41),s=n(78),l=n(165),u=i(n(166)),c=i(n(365)),h=o(n(24)),d=i(n(43)),f=i(n(169)),v=o(n(168)),g=o(n(3)),p=o(n(73)),m=o(n(137)),y=o(n(230)),w=o(n(74)),C=o(n(75)),E=o(n(28)),S=o(n(17)),k=o(n(4)),T=o(n(167)),R=o(n(72)),_=o(n(54)),b=o(n(6)),O=o(n(33)),M=o(n(366)),N=n(20),A=i(n(237)),D=n(234),I=n(238),H=o(n(11)),L=n(139);function P(e,t){var n=new u.default(e,t||{},D.rootInstanceSymbol);return n.init(),n}(0,c.default)(P),P.Core=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new u.default(e,t,D.rootInstanceSymbol)},P.DefaultSettings=A.default,P.EventManager=h.default,P._getListenersCounter=h.getListenersCounter,P.packageName="handsontable",P.buildDate="02/08/2019 13:04:58",P.version="7.1.1",P.hooks=d.default.getSingleton(),P.__GhostTable=f.default;var x=[g,p,m,y,w,C,E,S,k,T,R,_,v],F=[b,O];P.helper={},P.dom={},g.arrayEach(x,function(t){g.arrayEach(Object.getOwnPropertyNames(t),function(e){"_"!==e.charAt(0)&&(P.helper[e]=t[e])})}),g.arrayEach(F,function(t){g.arrayEach(Object.getOwnPropertyNames(t),function(e){"_"!==e.charAt(0)&&(P.dom[e]=t[e])})}),P.cellTypes={},g.arrayEach((0,l.getRegisteredCellTypeNames)(),function(e){P.cellTypes[e]=(0,l.getCellType)(e)}),P.cellTypes.registerCellType=l.registerCellType,P.cellTypes.getCellType=l.getCellType,P.editors={},g.arrayEach((0,r.getRegisteredEditorNames)(),function(e){P.editors["".concat(R.toUpperCaseFirst(e),"Editor")]=(0,r.getEditor)(e)}),P.editors.registerEditor=r.registerEditor,P.editors.getEditor=r.getEditor,P.renderers={},g.arrayEach((0,a.getRegisteredRendererNames)(),function(e){var t=(0,a.getRenderer)(e);"base"===e&&(P.renderers.cellDecorator=t),P.renderers["".concat(R.toUpperCaseFirst(e),"Renderer")]=t}),P.renderers.registerRenderer=a.registerRenderer,P.renderers.getRenderer=a.getRenderer,P.validators={},g.arrayEach((0,s.getRegisteredValidatorNames)(),function(e){P.validators["".concat(R.toUpperCaseFirst(e),"Validator")]=(0,s.getValidator)(e)}),P.validators.registerValidator=s.registerValidator,P.validators.getValidator=s.getValidator,P.plugins={},g.arrayEach(Object.getOwnPropertyNames(M),function(e){var t=M[e];"Base"===e?P.plugins["".concat(e,"Plugin")]=t:P.plugins[e]=t}),P.plugins.registerPlugin=N.registerPlugin,(P.languages={}).dictionaryKeys=H,P.languages.getLanguageDictionary=L.getLanguageDictionary,P.languages.getLanguagesDictionaries=L.getLanguagesDictionaries,P.languages.registerLanguageDictionary=L.registerLanguageDictionary,P.languages.getTranslatedPhrase=function(){return I.getTranslatedPhrase.apply(void 0,arguments)};var B=P;t.default=B},function(e,t,n){var o=n(21),i=n(27),r=n(187).f;o({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var o=n(45),a=n(51),s=n(46),l=n(102);e.exports=o?Object.defineProperties:function(e,t){s(e);for(var n,o=l(t),i=o.length,r=0;r<i;)a.f(e,n=o[r++],t[n]);return e}},function(e,t,n){"use strict";function i(){return this}var r=n(190).IteratorPrototype,a=n(101),s=n(95),l=n(125),u=n(103);e.exports=function(e,t,n){var o=t+" Iterator";return e.prototype=a(r,{next:s(1,n)}),l(e,o,!1,!0),u[o]=i,e}},function(e,t,n){var o=n(42);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(193),i={};i[n(34)("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+o(this)+"]"}:i.toString},function(e,t,n){var o=n(27);e.exports=!o(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var v=n(104),g=n(60),p=n(196),m=n(194),y=n(52),w=n(105),C=n(195);e.exports=function(e,t,n){var o,i,r,a,s=g(e),l="function"==typeof this?this:Array,u=arguments.length,c=1<u?t:void 0,h=void 0!==c,d=0,f=C(s);if(h&&(c=v(c,2<u?n:void 0,2)),null==f||l==Array&&m(f))for(i=new l(o=y(s.length));d<o;d++)w(i,d,h?c(s[d],d):s[d]);else for(a=f.call(s),i=new l;!(r=a.next()).done;d++)w(i,d,h?p(a,c,[r.value,d],!0):r.value);return i.length=d,i}},function(e,t,n){var i=n(46),r=n(154),a=n(34)("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||null==(n=i(o)[a])?t:r(n)}},function(e,t,n){var o=n(27),i=n(204);e.exports=function(e){return o(function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e})}},function(n,e){function o(e,t){return n.exports=o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}n.exports=o},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(6),c=o(n(88)),h=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).clone=t.makeClone(c.default.CLONE_LEFT),t}return(0,l.default)(n,e),(0,r.default)(n,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(this.needFullRender&&e.holder.parentNode){var t=this.clone.wtTable.holder.parentNode,n=0,o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||o&&"horizontal"===o)n=this.getScrollPosition(),(0,u.resetCssTransform)(t);else{var i,r,a=e.hider.getBoundingClientRect(),s=Math.ceil(a.left),l=Math.ceil(a.right);r=""===(r=e.hider.style.top)?0:r,n=i=s<0&&0<l-t.offsetWidth?-s:0,i+="px",(0,u.setOverlayPosition)(t,i,r)}this.adjustHeaderBordersPosition(n),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,u.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.defaultColumnWidth,o=e,i=0;o<t;)i+=this.wot.wtTable.getStretchedColumnWidth(o)||n,o+=1;return i}},{key:"adjustElementsSize",value:function(e){var t=0<arguments.length&&void 0!==e&&e;this.updateTrimmingContainer(),(this.needFullRender||t)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),t||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,o=e.rootWindow,i=(0,u.getScrollbarWidth)(n),r=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==o||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=i),s=Math.min(s,t.wtRootElement.scrollHeight),r.height="".concat(s,"px")}else r.height="";this.clone.wtTable.holder.style.height=r.height;var l=(0,u.outerWidth)(this.clone.wtTable.TABLE);r.width="".concat(0===l?l:l+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,u.getScrollbarWidth)(this.wot.rootDocument);this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=0;return t&&o.offsetWidth!==o.clientWidth&&(i=(0,u.getScrollbarWidth)(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wot.getSetting("preventOverflow")||this.trimmingContainer!==this.wot.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return(0,u.getScrollLeft)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,u.removeClass)(t,"emptyRows"):(0,u.addClass)(t,"emptyRows"),o&&!n.length)(0,u.addClass)(t,"innerBorderLeft");else if(!o&&n.length){var i=(0,u.hasClass)(t,"innerBorderLeft");e?(0,u.addClass)(t,"innerBorderLeft"):(0,u.removeClass)(t,"innerBorderLeft"),(!i&&e||i&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),n}(c.default);c.default.registerOverlay(c.default.CLONE_LEFT,h);var d=h;t.default=d},function(e,t,n){"use strict";var o=n(21),i=n(151).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){function o(u){return function(e,t,n){var o,i,r=String(d(e)),a=r.length,s=void 0===n?" ":String(n),l=c(t);return l<=a||""==s?r:(o=l-a,(i=h.call(s,f(o/s.length))).length>o&&(i=i.slice(0,o)),u?r+i:i+r)}}var c=n(52),h=n(212),d=n(49),f=Math.ceil;e.exports={start:o(!1),end:o(!0)}},function(e,t,n){var o=n(210);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o)},function(e,t,n){"use strict";var o=n(87).forEach,i=n(129);e.exports=i("forEach")?function(e,t){return o(this,e,1<arguments.length?t:void 0)}:[].forEach},function(e,t){e.exports=function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(135),c=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,a.default)(this,(0,s.default)(t).call(this,"TH"))).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,l.default)(t,e),(0,r.default)(t,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)},this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,o=e.rowHeadersCount,i=e.rows,r=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=i.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=r.obtainOrderView(l);u.appendView(c).setSize(o).setOffset(this.table.renderedColumnToSource(0)).start();for(var h=0;h<o;h++){u.render();var d=u.getCurrentNode();d.className="",d.removeAttribute("style"),n[h](s,d,h)}u.end()}}}]),t}(o(n(109)).default);t.default=c},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(291)),s=n(223),l=function(){function e(){(0,i.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,r.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function e(){(0,i.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,r.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),t}(o(n(222)).default);t.default=u},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function t(e){(0,i.default)(this,t),this.nodeType=e.toUpperCase()}return(0,r.default)(t,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(6),c=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,null,e))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,o=this.rootNode.firstChild;if(t){for(var i=this.table.columnsToRender+n,r=0,a=t;r<a;r++){for((o=this.rootNode.childNodes[r])||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<i;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>i;)o.removeChild(o.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(t<s)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,u.empty)(o)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t++)for(var n=this.table,o=n.columnHeaderFunctions,i=n.columnsToRender,r=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*r;s<i;s++){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+r];u.className="",u.removeAttribute("style"),o[t](l,u,t)}}}]),t}(o(n(109)).default);t.default=c},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=o(n(109)),c=n(6),h=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,null,e))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,o=0;o<n;o++){var i=this.table.renderedColumnToSource(o),r=this.table.columnUtils.getHeaderWidth(i);this.rootNode.childNodes[o].style.width="".concat(r,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),t}(u.default);t.default=h},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(69)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(8)),c=n(58),h=n(71),d=n(135),f=o(n(109));function v(){var e=(0,i.default)(['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\\x20\n of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']);return v=function(){return e},e}var g=!1,p=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,l.default)(n).call(this,"TR",e))).orderView=new d.OrderView(e,function(e){return t.nodesPool.obtain(e)},t.nodeType),t}return(0,u.default)(n,e),(0,a.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!g&&1e3<e&&(g=!0,(0,c.warn)((0,h.toSingleLine)(v()))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(f.default);t.default=p},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),f=n(6),u=n(135),c=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,a.default)(this,(0,s.default)(t).call(this,"TD"))).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,l.default)(t,e),(0,r.default)(t,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)},this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,o=e.rows,i=e.rowHeaders,r=0;r<t;r++){var a=this.table.renderedRowToSource(r),s=o.getRenderedNode(r);this.sourceRowIndex=a;var l=this.obtainOrderView(s),u=i.obtainOrderView(s);l.prependView(u).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var c=0;c<n;c++){l.render();var h=l.getCurrentNode(),d=this.table.renderedColumnToSource(c);(0,f.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),this.table.cellRenderer(a,d,h)}l.end()}}}]),t}(o(n(109)).default);t.default=c},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function n(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).cellRenderer;(0,i.default)(this,n),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=t}return(0,r.default)(n,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.rowHeaders,o=t.columnHeaders,i=t.colGroup,r=t.rows,a=t.cells;n.setTable(this),o.setTable(this),i.setTable(this),r.setTable(this),a.setTable(this),this.rowHeaders=n,this.columnHeaders=o,this.colGroup=i,this.rows=r,this.cells=a}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var o=t.getRenderedNode(n);if(o.firstChild){var i=this.renderedRowToSource(n),r=this.rowUtils.getHeight(i);o.firstChild.style.height=r?"".concat(r-1,"px"):""}}}}]),n}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(15),n(67),n(10),n(13),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(44)),r=o(n(1)),a=o(n(2)),h=n(6),s=function(){function t(e){(0,r.default)(this,t),this.wot=e,this.headerWidths=new Map}return(0,a.default)(t,[{key:"getWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(0,i.default)(t)&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getWidth(e),n=this.wot.wtViewport.columnsRenderCalculator,o=null==t?this.wot.wtSettings.settings.defaultColumnWidth:t;if(n){var i=n.getStretchedColumnWidth(e,o);i&&(o=i)}return o}},{key:"getHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.wot.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,o=e.cloneSource,i=o?o.wtTable.holder:t.holder,r=i.offsetHeight<i.scrollHeight?(0,h.getScrollbarWidth)():0,a=e.getSetting("rowHeaderWidth");if(n.columnsRenderCalculator.refreshStretching(n.getViewportWidth()-r),null!=(a=e.getSetting("onModifyRowHeaderWidth",a)))for(var s=e.getSetting("rowHeaders").length,l=e.getSetting("defaultColumnWidth"),u=0;u<s;u++){var c=Array.isArray(a)?a[u]:a;c=null==c?l:c,this.headerWidths.set(u,c)}}}]),t}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function t(e){(0,i.default)(this,t),this.wot=e}return(0,r.default)(t,[{key:"getHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(61),n(89);var i={ViewportColumnsCalculator:t.__esModule=!0,ViewportRowsCalculator:!0},r=o(n(205));t.ViewportColumnsCalculator=r.default;var a=o(n(206));t.ViewportRowsCalculator=a.default;var s=n(162);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||(t[e]=s[e]))})},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(6),c=n(3),h=o(n(88)),d=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).clone=t.makeClone(h.default.CLONE_TOP),t}return(0,l.default)(n,e),(0,r.default)(n,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||n&&"vertical"===n)t=this.getScrollPosition(),(0,u.resetCssTransform)(e);else{var o,i,r=this.wot.wtTable,a=r.hider.getBoundingClientRect(),s=Math.ceil(a.top),l=Math.ceil(a.bottom);o=""===(o=r.hider.style.left)?0:o,t=i=s<0&&0<l-e.offsetHeight?-s:0,i+="px",(0,u.setOverlayPosition)(e,o,i)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,u.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.settings.defaultRowHeight,o=e,i=0;o<t;){var r=this.wot.wtTable.getRowHeight(o);i+=void 0===r?n:r,o+=1}return i}},{key:"adjustElementsSize",value:function(e){var t=0<arguments.length&&void 0!==e&&e;this.updateTrimmingContainer(),(this.needFullRender||t)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),t||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,o=e.rootWindow,i=(0,u.getScrollbarWidth)(n),r=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==o||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=i),s=Math.min(s,t.wtRootElement.scrollWidth),r.width="".concat(s,"px")}else r.width="";this.clone.wtTable.holder.style.width=r.width;var l=(0,u.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),r.height="".concat(0===l?l:l+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,u.getScrollbarWidth)(this.wot.rootDocument);this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),r=0;if(t&&o.offsetHeight!==o.clientHeight&&(r=(0,u.getScrollbarWidth)(n.rootDocument)),t){var a=n.getSetting("fixedRowsBottom"),s=n.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(s-a,s),i+=1}else i+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return i+=r,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,u.getScrollTop)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot),n=e.getCorners();t.disappear(),t.appear(n)}}},{key:"redrawAllSelectionsBorders",value:function(){var t=this,e=this.wot.selections;this.redrawSelectionBorders(e.getCell()),(0,c.arrayEach)(e.getAreas(),function(e){t.redrawSelectionBorders(e)}),this.redrawSelectionBorders(e.getFill()),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,u.removeClass)(t,"emptyColumns"):(0,u.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&0<this.wot.getSetting("columnHeaders").length){var n=(0,u.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,u.addClass)(t,"innerBorderTop"):(0,u.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var o=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(o)for(var i=0;i<o.length;i++)o[i].style["border-left-width"]=0}}}]),n}(h.default);h.default.registerOverlay(h.default.CLONE_TOP,d);var f=d;t.default=f},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),h=n(6),u=o(n(88)),c=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).clone=t.makeClone(u.default.CLONE_TOP_LEFT_CORNER),t}return(0,l.default)(n,e),(0,r.default)(n,[{key:"shouldBeRendered",value:function(){var e=this.wot;return!(!e.getSetting("fixedRowsTop")&&!e.getSetting("columnHeaders").length||!e.getSetting("fixedColumnsLeft")&&!e.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===this.wot.rootWindow){var n=this.wot.wtTable.hider.getBoundingClientRect(),o=Math.ceil(n.top),i=Math.ceil(n.left),r=Math.ceil(n.bottom),a=Math.ceil(n.right),s="0",l="0";t&&"vertical"!==t||i<0&&0<a-e.offsetWidth&&(s="".concat(-i,"px")),t&&"horizontal"!==t||o<0&&0<r-e.offsetHeight&&(l="".concat(-o,"px")),(0,h.setOverlayPosition)(e,s,l)}else(0,h.resetCssTransform)(e);var u=(0,h.outerHeight)(this.clone.wtTable.TABLE),c=(0,h.outerWidth)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),e.style.height="".concat(0===u?u:u+4,"px"),e.style.width="".concat(0===c?c:c+4,"px")}}}]),n}(u.default);u.default.registerOverlay(u.default.CLONE_TOP_LEFT_CORNER,c);var d=c;t.default=d},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),h=n(6),u=o(n(88)),c=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).clone=t.makeClone(u.default.CLONE_BOTTOM),t}return(0,l.default)(n,e),(0,r.default)(n,[{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,o=this.clone.wtTable.holder.parentNode,i=(0,h.getScrollbarWidth)(n);t.holder.clientHeight===t.holder.offsetHeight&&(i=0),o.style.top="",o.style.bottom="".concat(i,"px")}},{key:"shouldBeRendered",value:function(){return!!this.wot.getSetting("fixedRowsBottom")}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0;e.style.top="";var n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||n&&"vertical"===n)t=this.getScrollPosition(),(0,h.resetCssTransform)(e),this.repositionOverlay();else{var o,i,r=this.wot,a=r.rootDocument,s=r.wtTable,l=s.hider.getBoundingClientRect(),u=Math.ceil(l.bottom),c=a.body.offsetHeight;o=""===(o=s.hider.style.left)?0:o,t=i=c<u?u-c:0,i+="px",e.style.top="",e.style.left=o,e.style.bottom=i}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,o=n.wtTable,i=n.wtSettings.settings.defaultRowHeight,r=e,a=0;r<t;){var s=o.getRowHeight(r);a+=void 0===s?i:s,r+=1}return a}},{key:"adjustElementsSize",value:function(e){var t=0<arguments.length&&void 0!==e&&e;this.updateTrimmingContainer(),(this.needFullRender||t)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),t||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,o=e.rootWindow,i=(0,h.getScrollbarWidth)(this.wot.rootDocument),r=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==o||"horizontal"===a){var s=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=i),s=Math.min(s,t.wtRootElement.scrollWidth),r.width="".concat(s,"px")}else r.width="";this.clone.wtTable.holder.style.width=r.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),r.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,h.getScrollbarWidth)(this.wot.rootDocument);this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=0;t&&o.offsetHeight!==o.clientHeight&&(i=(0,h.getScrollbarWidth)(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){if(0===this.wot.getSetting("fixedRowsBottom")&&0<this.wot.getSetting("columnHeaders").length){var t=this.wot.wtTable.holder.parentNode,n=(0,h.hasClass)(t,"innerBorderTop");e?(0,h.addClass)(t,"innerBorderTop"):(0,h.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var o=this.clone.wtTable.THEAD.querySelector("th:nth-of-type(2)");o&&(o.style["border-left-width"]=0)}}}]),n}(u.default);u.default.registerOverlay(u.default.CLONE_BOTTOM,c);var d=c;t.default=d},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),c=n(6),u=o(n(88)),h=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).clone=t.makeClone(u.default.CLONE_BOTTOM_LEFT_CORNER),t}return(0,l.default)(n,e),(0,r.default)(n,[{key:"shouldBeRendered",value:function(){var e=this.wot;return!(!e.getSetting("fixedRowsBottom")||!e.getSetting("fixedColumnsLeft")&&!e.getSetting("rowHeaders").length)}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,o=this.clone.wtTable.holder.parentNode,i=(0,c.getScrollbarWidth)(n);t.holder.clientHeight===t.holder.offsetHeight&&(i=0),o.style.top="",o.style.bottom="".concat(i,"px")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),e.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===e.rootWindow){var n,o,i=e.wtTable.hider.getBoundingClientRect(),r=Math.ceil(i.bottom),a=Math.ceil(i.left),s=e.rootDocument.body.offsetHeight;n=a<0?-a:0,o=s<r?r-s:0,o+="px",n+="px",t.style.top="",t.style.left=n,t.style.bottom=o}else(0,c.resetCssTransform)(t),this.repositionOverlay();var l=(0,c.outerHeight)(this.clone.wtTable.TABLE),u=(0,c.outerWidth)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),t.style.height="".concat(l,"px"),t.style.width="".concat(u,"px")}}}]),n}(u.default);u.default.registerOverlay(u.default.CLONE_BOTTOM_LEFT_CORNER,h);var d=h;t.default=d},function(e,t,n){"use strict";var o=n(0);n(19),n(31),n(226),n(38),n(89),t.__esModule=!0,t.default=void 0;var C=o(n(18)),l=o(n(44)),i=o(n(1)),r=o(n(2)),E=n(6),a=o(n(225)),u=o(n(108)),s=o(n(207)),c=function(){function n(e,t){(0,i.default)(this,n),this.settings=e,this.cellRange=t||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,r.default)(n,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new a.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=new s.default(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,o,i){var r=4<arguments.length&&void 0!==i&&i,a=e.wtTable.getCell(new u.default(t,n));if("object"===(0,l.default)(a)){var s=o;r&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,E.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(l,u){return function e(t,n){var o=1<arguments.length&&void 0!==n?n:-1;if(0===u||0===o)return l;var i=0<=o?o:u,r=l,a=0==--i?l:"".concat(l,"-").concat(i);if((0,E.hasClass)(t,a)){var s=1+i;r="".concat(l,"-").concat(s)}else r=e(t,i);return r}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{for(var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),o=this.getCorners(),i=(0,C.default)(o,4),r=i[0],a=i[1],s=i[2],l=i[3],u=0;u<n;u+=1){var c=e.wtTable.columnFilter.renderedToSource(u);if(a<=c&&c<=l){var h=e.wtTable.getColumnHeader(c);if(h){var d=[];this.settings.highlightHeaderClassName&&d.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&d.push(this.settings.highlightColumnClassName),(0,E.addClass)(h,d)}}}for(var f=0;f<t;f+=1){var v=e.wtTable.rowFilter.renderedToSource(f);if(r<=v&&v<=s){var g=e.wtTable.getRowHeader(v);if(g){var p=[];this.settings.highlightHeaderClassName&&p.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&p.push(this.settings.highlightRowClassName),(0,E.addClass)(g,p)}}for(var m=0;m<n;m+=1){var y=e.wtTable.columnFilter.renderedToSource(m);r<=v&&v<=s&&a<=y&&y<=l?this.settings.className&&this.addClassAtCoords(e,v,y,this.settings.className,this.settings.markIntersections):r<=v&&v<=s?this.settings.highlightRowClassName&&this.addClassAtCoords(e,v,y,this.settings.highlightRowClassName):a<=y&&y<=l&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,v,y,this.settings.highlightColumnClassName);var w=e.getSetting("onAfterDrawSelection",v,y,o,this.settings.layerLevel);"string"==typeof w&&this.addClassAtCoords(e,v,y,w)}}e.getSetting("onBeforeDrawBorders",o,this.settings.className),this.settings.border&&this.getBorder(e).appear(o)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach(function(e){return e.destroy()})}}]),n}();t.default=c},function(e,t,n){function o(s){return function(e){for(var t,n=c(e),o=u(n),i=o.length,r=0,a=[];r<i;)t=o[r++],l&&!h.call(n,t)||a.push(s?[t,n[t]]:n[t]);return a}}var l=n(45),u=n(102),c=n(63),h=n(117).f;e.exports={entries:o(!0),values:o(!1)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3),i=n(4),r={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(t){var n=this;(0,o.arrayEach)(this._hooksStorage[t]||[],function(e){n.hot.removeHook(t,e)})},clearHooks:function(){var n=this;(0,i.objectEach)(this._hooksStorage,function(e,t){return n.removeHooksByKey(t)}),this._hooksStorage={}}};(0,i.defineGetter)(r,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=r;t.default=a},function(e,t,n){var o=n(5);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}},function(e,t,n){"use strict";n(32),e.exports=function(){function o(e,t,n){e.addEventListener(t,n,!1)}function e(e,t,n){e&&e.removeEventListener(t,n,!1)}function i(e){var t,n;e?/^[a-zA-Z \.,\\\/\|0-9]$/.test(e)||(e="."):e="",void 0!==c.textContent?c.textContent=s.value+e:c.data=s.value+e,h.style.fontSize=d(s).fontSize,h.style.fontFamily=d(s).fontFamily,h.style.whiteSpace="pre",u.appendChild(h),t=h.clientWidth+2,u.removeChild(h),s.style.height=l.minHeight+"px",l.minWidth>t?s.style.width=l.minWidth+"px":t>l.maxWidth?s.style.width=l.maxWidth+"px":s.style.width=t+"px",n=s.scrollHeight?s.scrollHeight-1:0,l.minHeight>n?s.style.height=l.minHeight+"px":l.maxHeight<n?(s.style.height=l.maxHeight+"px",s.style.overflowY="visible"):s.style.height=n+"px"}function r(){window.setTimeout(i,0)}function a(e,t,n){s=e,function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)l.minHeight=s.clientHeight;else{var t=parseInt(e.minHeight);isNaN(t)||(l.minHeight=t)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)l.maxHeight=s.clientHeight;else{var n=parseInt(e.maxHeight);isNaN(n)||(l.maxHeight=n)}if(e&&e.minWidth)if("inherit"==e.minWidth)l.minWidth=s.clientWidth;else{var o=parseInt(e.minWidth);isNaN(o)||(l.minWidth=o)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)l.maxWidth=s.clientWidth;else{var i=parseInt(e.maxWidth);isNaN(i)||(l.maxWidth=i)}h.firstChild||(h.className="autoResize",h.style.display="inline-block",h.appendChild(c))}(t),"TEXTAREA"==s.nodeName&&(s.style.resize="none",s.style.overflowY="",s.style.height=l.minHeight+"px",s.style.minWidth=l.minWidth+"px",s.style.maxWidth=l.maxWidth+"px",s.style.overflowY="hidden"),n&&(o(s,"change",i),o(s,"cut",r),o(s,"paste",r),o(s,"drop",r),o(s,"keydown",r),o(s,"focus",i),o(s,"compositionstart",r),o(s,"compositionupdate",r),o(s,"compositionend",r)),i()}var s,l={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},u=document.body,c=document.createTextNode(""),h=document.createElement("SPAN");function d(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){a(e,t,n)},unObserve:function(){e(s,"change",i),e(s,"cut",r),e(s,"paste",r),e(s,"drop",r),e(s,"keydown",r),e(s,"focus",i),e(s,"compositionstart",r),e(s,"compositionupdate",r),e(s,"compositionend",r)},resize:i}}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=o(n(107)),c=n(6),h=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,c.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}(u.default);t.default=h},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(70)),d=o(n(313));n(314);var f=n(6),v=n(4),g=o(n(24)),p=n(54),m=n(33),a=function(e){function a(e){var t;return(0,i.default)(this,a),(t=(0,s.default)(this,(0,l.default)(a).call(this,e))).defaultDateFormat="DD/MM/YYYY",t.isCellEdited=!1,t.parentDestroyed=!1,t}return(0,c.default)(a,e),(0,r.default)(a,[{key:"init",value:function(){var e=this;if("function"!=typeof h.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw new Error("You need to include Pikaday to your project.");(0,u.default)((0,l.default)(a.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){(0,u.default)((0,l.default)(a.prototype),"createElements",this).call(this),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,f.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),this.$datePicker=new d.default(this.getDatePickerConfig()),new g.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,m.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,n,o,i,r){(0,u.default)((0,l.default)(a.prototype),"prepare",this).call(this,e,t,n,o,i,r)}},{key:"open",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;(0,u.default)((0,l.default)(a.prototype),"open",this).call(this),this.showDatepicker(t)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(function(){e.instance._refreshBorders()}),(0,u.default)((0,l.default)(a.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(e,t){var n=0<arguments.length&&void 0!==e&&e,o=1<arguments.length&&void 0!==t&&t;if(n){var i=this.originalValue;void 0!==i&&this.setValue(i)}this.hideDatepicker(),(0,u.default)((0,l.default)(a.prototype),"finishEditing",this).call(this,n,o)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),o=this.cellProperties.dateFormat||this.defaultDateFormat,i=this.$datePicker.config(),r=this.instance.view.isMouseDown(),a=!!e&&(0,p.isMetaKey)(e.keyCode);this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,f.outerHeight)(this.TD),"px"),this.datePickerStyle.left="".concat(this.hot.rootWindow.pageXOffset+n.left,"px"),this.$datePicker._onInputFocus=function(){},i.format=o,this.originalValue?(t=this.originalValue,(0,h.default)(t,o,!0).isValid()&&this.$datePicker.setMoment((0,h.default)(t,o),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),a||r||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,i.defaultDate=t,(0,h.default)(t,o,!0).isValid()&&this.$datePicker.setMoment((0,h.default)(t,o),!0),a||r||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var n=this,e=this.TEXTAREA,t={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,v.deepExtend)(t,this.cellProperties.datePickerConfig);var o=t.onSelect,i=t.onClose;return t.field=e,t.trigger=e,t.container=this.datePicker,t.bound=!1,t.format=t.format||this.defaultDateFormat,t.reposition=t.reposition||!1,t.onSelect=function(e){var t=e;isNaN(t.getTime())||(t=(0,h.default)(t).format(n.cellProperties.dateFormat||n.defaultDateFormat)),n.setValue(t),n.hideDatepicker(),o&&o()},t.onClose=function(){n.parentDestroyed||n.finishEditing(!1),i&&i()},t}}]),a}(o(n(110)).default);t.default=a},function(e,t){e.exports=i},function(e,t){},function(e,t,n){"use strict";var o=n(0);n(47),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(14)),c=o(n(8)),a=o(n(227)),h=o(n(43)),d=function(e){function a(){return(0,i.default)(this,a),(0,s.default)(this,(0,l.default)(a).apply(this,arguments))}return(0,c.default)(a,e),(0,r.default)(a,[{key:"prepare",value:function(e,t,n,o,i,r){(0,u.default)((0,l.default)(a.prototype),"prepare",this).call(this,e,t,n,o,i,r),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),a}(a.default);h.default.getSingleton().add("beforeValidate",function(e,t,n){var o=this.getCellMeta(t,this.propToCol(n));o.editor===d&&void 0===o.strict&&(o.filter=!1,o.strict=!0)});var f=d;t.default=f},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(5)),s=o(n(8)),l=function(e){function t(){return(0,i.default)(this,t),(0,r.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(o(n(110)).default);t.default=l},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=n(6),h=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,r.default)(t,[{key:"createElements",value:function(){(0,l.default)((0,s.default)(t.prototype),"createElements",this).call(this),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,(this.textareaStyle.height=0,c.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}(o(n(110)).default);t.default=h},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=void 0;var r=i(n(44)),a=i(n(1)),s=i(n(2)),l=i(n(7)),c=i(n(5)),h=i(n(14)),d=i(n(8)),f=n(6),v=n(33),g=n(54),p=o(n(107)),m=n(4),u=function(e){function u(){return(0,a.default)(this,u),(0,l.default)(this,(0,c.default)(u).apply(this,arguments))}return(0,d.default)(u,e),(0,s.default)(u,[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT"),(0,f.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.hot.rootElement.appendChild(this.select),this.registerHooks()}},{key:"getValue",value:function(){return this.select.value}},{key:"setValue",value:function(e){this.select.value=e}},{key:"open",value:function(){var e=this;this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.addHook("beforeKeyDown",function(){return e.onBeforeKeyDown()})}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",this.clearHooks()}},{key:"focus",value:function(){this.select.focus()}},{key:"registerHooks",value:function(){var e=this;this.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.addHook("afterRowResize",function(){return e.refreshDimensions()})}},{key:"prepare",value:function(e,t,n,o,i,r){var a=this;(0,h.default)((0,c.default)(u.prototype),"prepare",this).call(this,e,t,n,o,i,r);var s,l=this.cellProperties.selectOptions;s="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,f.empty)(this.select),(0,m.objectEach)(s,function(e,t){var n=a.hot.rootDocument.createElement("OPTION");n.value=t,(0,f.fastInnerHTML)(n,e),a.select.appendChild(n)})}},{key:"prepareOptions",value:function(e){var t={};if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t[e[n]]=e[n];else"object"===(0,r.default)(e)&&(t=e);return t}},{key:"refreshValue",value:function(){var e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){if(this.state===p.EditorState.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=this.hot.view.wt.wtOverlays,n=(0,f.offset)(this.TD),o=(0,f.offset)(this.hot.rootElement),i=t.scrollableElement,r=this.checkEditorSection(),a=(0,f.outerWidth)(this.TD)+1,s=(0,f.outerHeight)(this.TD)+1,l=n.top-o.top-1-(i.scrollTop||0),u=n.left-o.left-1-(i.scrollLeft||0);switch(r){case"top":e=(0,f.getCssTransform)(t.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,f.getCssTransform)(t.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,f.getCssTransform)(t.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,f.getCssTransform)(t.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,f.getCssTransform)(t.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.hot.getSelectedLast()[0]&&(l+=1),0===this.hot.getSelectedLast()[1]&&(u+=1);var c=this.select.style;e&&-1!==e?c[e[0]]=e[1]:(0,f.resetCssTransform)(this.select);var h=(0,f.getComputedStyle)(this.TD,this.hot.rootWindow);0<parseInt(h.borderTopWidth,10)&&(s-=1),0<parseInt(h.borderLeftWidth,10)&&(a-=1),c.height="".concat(s,"px"),c.minWidth="".concat(a,"px"),c.top="".concat(l,"px"),c.left="".concat(u,"px"),c.margin="0px"}else this.close()}},{key:"getEditedCell",value:function(){var e,t=this.hot.view.wt.wtOverlays;switch(this.checkEditorSection()){case"top":e=t.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=t.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=t.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.hot.getCell(this.row,this.col),this.select.style.zIndex=""}return e<0?void 0:e}},{key:"onBeforeKeyDown",value:function(){var e=this.select.selectedIndex-1,t=this.select.selectedIndex+1;switch(event.keyCode){case g.KEY_CODES.ARROW_UP:0<=e&&(this.select[e].selected=!0),(0,v.stopImmediatePropagation)(event),event.preventDefault();break;case g.KEY_CODES.ARROW_DOWN:t<=this.select.length-1&&(this.select[t].selected=!0),(0,v.stopImmediatePropagation)(event),event.preventDefault()}}}]),u}(p.default);t.default=u},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.default=void 0;var u=n(6);function o(e,t,n,o,i,r,a){var s=[],l=[];a.className&&(t.className?t.className="".concat(t.className," ").concat(a.className):t.className=a.className),a.readOnly&&s.push(a.readOnlyCellClassName),!1===a.valid&&a.invalidCellClassName?s.push(a.invalidCellClassName):l.push(a.invalidCellClassName),!1===a.wordWrap&&a.noWordWrapClassName&&s.push(a.noWordWrapClassName),!r&&a.placeholder&&s.push(a.placeholderCellClassName),(0,u.removeClass)(t,l),(0,u.addClass)(t,s)}t.default=o},function(e,t,n){"use strict";var o=n(0);n(19),t.__esModule=!0,t.default=void 0;var v=n(6),g=o(n(24)),p=n(25),m=n(41);function i(t,n,o,i,e,r,a){var s=t.rootDocument,l=a.allowHtml?"html":"text",u=s.createElement("DIV");u.className="htAutocompleteArrow",u.appendChild(s.createTextNode(String.fromCharCode(9660)));for(var c=arguments.length,h=new Array(7<c?c-7:0),d=7;d<c;d++)h[d-7]=arguments[d];if((0,m.getRenderer)(l).apply(this,[t,n,o,i,e,r,a].concat(h)),n.firstChild||n.appendChild(s.createTextNode(String.fromCharCode(160))),n.insertBefore(u,n.firstChild),(0,v.addClass)(n,"htAutocomplete"),!t.acArrowListener){var f=new g.default(t);t.acArrowListener=function(e){(0,v.hasClass)(e.target,"htAutocompleteArrow")&&t.view.wt.getSetting("onCellDblClick",null,new p.CellCoords(o,i),n)},f.addEventListener(t.rootElement,"mousedown",t.acArrowListener),t.addHookOnce("afterDestroy",function(){f.destroy()})}}t.default=i},function(e,t,n){"use strict";var o=n(0);n(19),n(31),n(15),n(10),n(36),n(38),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var y=n(6),w=n(72),C=o(n(24)),E=n(54),S=n(75),k=n(33),T=n(41),R=new WeakMap,_=new WeakMap;function b(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}function i(v,e,t,n,o,i,r){for(var a=v.rootDocument,s=arguments.length,l=new Array(7<s?s-7:0),u=7;u<s;u++)l[u-7]=arguments[u];(0,T.getRenderer)("base").apply(this,[v,e,t,n,o,i,r].concat(l)),function(t){var e=_.get(t);if(!e){var n=t.rootElement;(e=new C.default(t)).addEventListener(n,"click",function(e){return function(e,t){if(!b(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10);t.getCellMeta(n,o).readOnly&&e.preventDefault()}(e,t)}),e.addEventListener(n,"mouseup",function(e){return function(e,t){if(!b(e.target))return;setTimeout(t.listen,10)}(e,t)}),e.addEventListener(n,"change",function(e){return function(e,t){if(!b(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),i=t.getCellMeta(n,o);if(!i.readOnly){var r=null;r=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(n,o,r)}}(e,t)}),_.set(t,e)}}(v);var c=function(e){var t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("autocomplete","off"),t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(a),h=r.label,d=!1;if(void 0===r.checkedTemplate&&(r.checkedTemplate=!0),void 0===r.uncheckedTemplate&&(r.uncheckedTemplate=!1),(0,y.empty)(e),i===r.checkedTemplate||(0,w.equalsIgnoreCase)(i,r.checkedTemplate)?c.checked=!0:i===r.uncheckedTemplate||(0,w.equalsIgnoreCase)(i,r.uncheckedTemplate)?c.checked=!1:null===i?(0,y.addClass)(c,"noValue"):(c.style.display="none",(0,y.addClass)(c,"htBadValue"),d=!0),c.setAttribute("data-row",t),c.setAttribute("data-col",n),!d&&h){var f="";if(h.value)f="function"==typeof h.value?h.value.call(this,t,n,o,i):h.value;else if(h.property){var g=v.getDataAtRowProp(t,h.property);f=null!==g?g:""}var p=function(e,t){var n=e.createElement("label");return n.className="htCheckboxRendererLabel",n.appendChild(e.createTextNode(t)),n.cloneNode(!0)}(a,f);"before"===h.position?p.appendChild(c):p.insertBefore(c,p.firstChild),c=p}function m(e){var t=0<arguments.length&&void 0!==e&&e,n=v.getSelectedRangeLast();if(n){for(var o=n.getTopLeftCorner(),i=o.row,r=o.col,a=n.getBottomRightCorner(),s=a.row,l=a.col,u=[],c=i;c<=s;c+=1)for(var h=r;h<=l;h+=1){var d=v.getCellMeta(c,h);if("checkbox"!==d.type)return;if(!0!==d.readOnly){void 0===d.checkedTemplate&&(d.checkedTemplate=!0),void 0===d.uncheckedTemplate&&(d.uncheckedTemplate=!1);var f=v.getDataAtCell(c,h);!1===t?[d.checkedTemplate,d.checkedTemplate.toString()].includes(f)?u.push([c,h,d.uncheckedTemplate]):[d.uncheckedTemplate,d.uncheckedTemplate.toString(),null,void 0].includes(f)&&u.push([c,h,d.checkedTemplate]):u.push([c,h,d.uncheckedTemplate])}}0<u.length&&v.setDataAtCell(u)}}e.appendChild(c),d&&e.appendChild(a.createTextNode("#bad-value#")),R.has(v)||(R.set(v,!0),v.addHook("beforeKeyDown",function(e){var t="SPACE|ENTER",n="DELETE|BACKSPACE",o=(0,S.partial)(E.isKey,e.keyCode);if(!v.getSettings().enterBeginsEditing&&o("ENTER"))return;o("".concat(t,"|").concat(n))&&!(0,k.isImmediatePropagationStopped)(e)&&function(e){var t=v.getSelectedRangeLast();if(!t)return;for(var n=t.getTopLeftCorner(),o=t.getBottomRightCorner(),i=n.row;i<=o.row;i++)for(var r=n.col;r<=o.col;r++){var a=v.getCellMeta(i,r);if("checkbox"!==a.type)return;var s=v.getCell(i,r);if(null==s)e(i,r,a);else{var l=s.querySelectorAll("input[type=checkbox]");0<l.length&&!a.readOnly&&e(l)}}}(function(){(0,k.stopImmediatePropagation)(e),e.preventDefault()});o(t)&&m();o(n)&&m(!0)}))}t.default=i},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.default=void 0;var u=n(6),c=n(41);function o(e,t,n,o,i,r){for(var a=arguments.length,s=new Array(6<a?a-6:0),l=6;l<a;l++)s[l-6]=arguments[l];(0,c.getRenderer)("base").apply(this,[e,t,n,o,i,r].concat(s)),(0,u.fastInnerHTML)(t,null==r?"":r)}t.default=o},function(e,t,n){"use strict";var o=n(0);n(12),n(53),n(39),n(48),t.__esModule=!0,t.default=void 0;var g=o(n(324)),p=n(41),m=n(17);function i(e,t,n,o,i,r,a){var s=r;if((0,m.isNumeric)(s)){var l=a.numericFormat,u=l&&l.culture||"-",c=l&&l.pattern,h=a.className||"",d=h.length?h.split(" "):[];if(void 0!==u&&!g.default.languages()[u]){var f=u.replace("-",""),v=g.default.allLanguages?g.default.allLanguages[u]:g.default[f];v&&g.default.registerLanguage(v)}g.default.setLanguage(u),s=(0,g.default)(s).format(c||"0"),d.indexOf("htLeft")<0&&d.indexOf("htCenter")<0&&d.indexOf("htRight")<0&&d.indexOf("htJustify")<0&&d.push("htRight"),d.indexOf("htNumeric")<0&&d.push("htNumeric"),a.className=d.join(" ")}(0,p.getRenderer)("text")(e,t,n,o,i,s,a)}t.default=i},function(e,t){e.exports=r},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.default=void 0;var f=n(6),v=n(41),g=n(17);function o(e,t,n,o,i,r,a){for(var s=arguments.length,l=new Array(7<s?s-7:0),u=7;u<s;u++)l[u-7]=arguments[u];(0,v.getRenderer)("text").apply(this,[e,t,n,o,i,r,a].concat(l));var c=a.hashLength||t.innerHTML.length,h=a.hashSymbol||"*",d="";(0,g.rangeEach)(c-1,function(){d+=h}),(0,f.fastInnerHTML)(t,d)}t.default=o},function(e,t,n){"use strict";n(19),n(39),t.__esModule=!0,t.default=void 0;var d=n(6),f=n(28),v=n(41);function o(e,t,n,o,i,r,a){for(var s=arguments.length,l=new Array(7<s?s-7:0),u=7;u<s;u++)l[u-7]=arguments[u];(0,v.getRenderer)("base").apply(this,[e,t,n,o,i,r,a].concat(l));var c=r;if(!c&&a.placeholder&&(c=a.placeholder),c=(0,f.stringify)(c),e.getSettings().trimWhitespace||(c=c.replace(/ /g,String.fromCharCode(160))),a.rendererTemplate){(0,d.empty)(t);var h=e.rootDocument.createElement("TEMPLATE");h.setAttribute("bind","{{}}"),h.innerHTML=a.rendererTemplate,HTMLTemplateElement.decorate(h),h.model=e.getSourceDataAtRow(n),t.appendChild(h)}else(0,d.fastInnerText)(t,c)}t.default=o},function(e,t,n){"use strict";function o(e,i){var r=e;return function(e){for(var t=!1,n=0,o=e.length;n<o;n++)if(r===e[n]){t=!0;break}i(t)}}t.__esModule=!0,t.default=function(e,t){var n=e;null==n&&(n="");if(this.allowEmpty&&""===n)return void t(!0);this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}},function(e,t,n){"use strict";var o=n(0);n(229),t.__esModule=!0,t.default=function(e,t){var n=(0,h.getEditorInstance)("date",this.instance),o=e,i=!0;null==o&&(o="");var r=(0,c.default)(o,this.dateFormat||n.defaultDateFormat,!0).isValid(),a=(0,c.default)(new Date(o)).isValid()||r;this.allowEmpty&&""===o&&(r=a=!0);a||(i=!1);!a&&r&&(i=!0);if(a&&!r)if(!0===this.correctFormat){var s=d(o,this.dateFormat),l=this.instance.runHooks("unmodifyRow",this.row),u=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(l,u,s,"dateValidator"),i=!0}else i=!1;t(i)},t.correctFormat=d;var c=o(n(70)),r=n(230),h=n(56);function d(e,t){var n=(0,c.default)((0,r.getNormalizedDate)(e)),o=(0,c.default)(e,t),i=-1<e.search(/[A-z]/g);return(n.isValid()&&n.format("x")===o.format("x")||!o.isValid()||i?n:o).format(t)}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=e;null==n&&(n="");this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,o.isNumeric)(e))};var o=n(17)},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=function(e,t){var n=this.timeFormat||"h:mm:ss a",o=!0,i=e;null===i&&(i="");i=/^\d{3,}$/.test(i)?parseInt(i,10):i;var r=/^\d{1,2}$/.test(i);r&&(i+=":00");var a=(0,d.default)(i,f,!0).isValid()?(0,d.default)(i):(0,d.default)(i,n),s=a.isValid(),l=(0,d.default)(i,n,!0).isValid()&&!r;this.allowEmpty&&""===i&&(l=s=!0);s||(o=!1);!s&&l&&(o=!0);if(s&&!l)if(!0===this.correctFormat){var u=a.format(n),c=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(c,h,u,"timeValidator"),o=!0}else o=!1;t(o)};var d=o(n(70)),f=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r=n(78),a="autocomplete",s={editor:(0,o.getEditor)(a),renderer:(0,i.getRenderer)(a),validator:(0,r.getValidator)(a)};t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r={editor:(0,o.getEditor)("checkbox"),renderer:(0,i.getRenderer)("checkbox")};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r=n(78),a={editor:(0,o.getEditor)("date"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("date")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r=n(78),a={editor:(0,o.getEditor)("dropdown"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r={editor:(0,o.getEditor)("handsontable"),renderer:(0,i.getRenderer)("autocomplete")};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r=n(78),a="numeric",s={editor:(0,o.getEditor)(a),renderer:(0,i.getRenderer)(a),validator:(0,r.getValidator)(a),dataType:"number"};t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r={editor:(0,o.getEditor)("password"),renderer:(0,i.getRenderer)("password"),copyable:!1};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r={editor:(0,o.getEditor)("text"),renderer:(0,i.getRenderer)("text")};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(56),i=n(41),r=n(78),a={editor:(0,o.getEditor)("text"),renderer:(0,i.getRenderer)("text"),validator:(0,r.getValidator)("time")};t.default=a},function(e,t,n){var o=n(42),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(35),i=n(343),r=!o.setImmediate||!o.clearImmediate;n(21)({global:!0,bind:!0,enumerable:!0,forced:r},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){function o(e){if(k.hasOwnProperty(e)){var t=k[e];delete k[e],t()}}function i(e){return function(){o(e)}}function r(e){o(e.data)}function a(e){c.postMessage(e+"",p.protocol+"//"+p.host)}var s,l,u,c=n(35),h=n(27),d=n(76),f=n(104),v=n(189),g=n(144),p=c.location,m=c.setImmediate,y=c.clearImmediate,w=c.process,C=c.MessageChannel,E=c.Dispatch,S=0,k={},T="onreadystatechange";m&&y||(m=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return k[++S]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},s(S),S},y=function(e){delete k[e]},"process"==d(w)?s=function(e){w.nextTick(i(e))}:E&&E.now?s=function(e){E.now(i(e))}:C?(u=(l=new C).port2,l.port1.onmessage=r,s=f(u.postMessage,u,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||h(a)?s=T in g("script")?function(e){v.appendChild(g("script"))[T]=function(){v.removeChild(this),o(e)}}:function(e){setTimeout(i(e),0)}:(s=a,c.addEventListener("message",r,!1))),e.exports={set:m,clear:y}},function(e,t,n){"use strict";var o=n(0);n(47),n(12),n(15),n(40),n(65),n(30),n(67),n(10),n(13),n(48),n(16),n(32),t.__esModule=!0,t.default=void 0;var s=o(n(44)),i=o(n(1)),r=o(n(2)),a=o(n(231)),l=n(137),g=n(167),v=n(4),c=n(3),u=o(n(345)),h=n(17),d=(0,l.cellMethodLookupFactory)("copyable",!1),f=function(){function f(e,t,n){var o=this;(0,i.default)(this,f),this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource&&this.dataSource[0]?(0,v.duckSchema)(this.dataSource[0]):{},this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap(),this.interval=u.default.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}return(0,r.default)(f,null,[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),(0,r.default)(f,[{key:"createMap",value:function(){var e,t=this.getSchema();if(void 0===t)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new Map;var n=this.instance.getSettings().columns;if(n){var o=this.instance.getSettings().maxCols,i=Math.min(o,n.length),r=0,a=!1,s=(0,v.deepObjectSize)(t);for("function"==typeof n&&(i=0<s?s:this.instance.countSourceCols(),a=!0),e=0;e<i;e++){var l=a?n(e):n[e];if((0,v.isObject)(l)){if(void 0!==l.data){var u=a?r:e;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}r+=1}}}else this.recursiveDuckColumns(t)}},{key:"recursiveDuckColumns",value:function(e,t,n){var o,i=this,r=t,a=n;return void 0===r&&(r=0,a=""),"object"!==(0,s.default)(e)||Array.isArray(e)||(0,v.objectEach)(e,function(e,t){null===e?(o=a+t,i.colToPropCache.push(o),i.propToColCache.set(o,r),r+=1):r=i.recursiveDuckColumns(e,r,"".concat(t,"."))}),r}},{key:"colToProp",value:function(e){var t=this.instance.toPhysicalColumn(e);return!isNaN(t)&&this.colToPropCache&&void 0!==this.colToPropCache[t]?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),t=this.instance.toVisualColumn(t)}},{key:"getSchema",value:function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createRow",value:function(e,t,n){var o=this,i=1<arguments.length&&void 0!==t?t:1,r=2<arguments.length?n:void 0,a=0,s=e;if(("number"!=typeof s||s>=this.instance.countSourceRows())&&(s=this.instance.countSourceRows()),!1===this.instance.runHooks("beforeCreateRow",s,i,r))return 0;for(var l=this.instance.getSettings().maxRows,u=this.instance.countCols(),c=function(){var e=null;"array"===o.instance.dataType?o.instance.getSettings().dataSchema?e=(0,v.deepClone)(o.getSchema()):(e=[],(0,h.rangeEach)(u-1,function(){return e.push(null)})):"function"===o.instance.dataType?e=o.instance.getSettings().dataSchema(s):(e={},(0,v.deepExtend)(e,o.getSchema())),s===o.instance.countSourceRows()?o.dataSource.push(e):o.spliceData(s,0,e),a+=1};a<i&&this.instance.countSourceRows()<l;)c();return this.instance.runHooks("afterCreateRow",s,a,r),this.instance.forceFullRender=!0,a}},{key:"createCol",value:function(e,t,n){var o=1<arguments.length&&void 0!==t?t:1,i=2<arguments.length?n:void 0;if(!this.instance.isColumnModificationAllowed())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.");var r,a=this.instance.countSourceRows(),s=this.dataSource,l=this.instance.countCols(),u="number"!=typeof e||l<=e?l:e,c=0;if(!1===this.instance.runHooks("beforeCreateCol",u,o,i))return 0;r=u;for(var h=this.instance.getSettings().maxCols;c<o&&this.instance.countCols()<h;){var d=(0,g.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts);if("number"!=typeof u||u>=this.instance.countCols()){if(0<a)for(var f=0;f<a;f++)void 0===s[f]&&(s[f]=[]),s[f].push(null);else s.push([null]);this.priv.columnSettings.push(d)}else{for(var v=0;v<a;v++)s[v].splice(r,0,null);this.priv.columnSettings.splice(r,0,d)}c+=1,r+=1}return this.instance.runHooks("afterCreateCol",u,c,i),this.instance.forceFullRender=!0,c}},{key:"removeRow",value:function(e,t,n){var o=1<arguments.length&&void 0!==t?t:1,i=2<arguments.length?n:void 0,r="number"!=typeof e?-o:e,a=this.instance.runHooks("modifyRemovedAmount",o,r),s=this.instance.countSourceRows();r=(s+r)%s;var l=this.visualRowsToPhysical(r,a);if(!1!==this.instance.runHooks("beforeRemoveRow",r,a,l,i)){var u=this.dataSource,c=this.filterData(r,a);c&&(u.length=0,Array.prototype.push.apply(u,c)),this.instance.runHooks("afterRemoveRow",r,a,l,i),this.instance.forceFullRender=!0}}},{key:"removeCol",value:function(e,t,n){var o=1<arguments.length&&void 0!==t?t:1,i=2<arguments.length?n:void 0;if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-o:e;r=(this.instance.countCols()+r)%this.instance.countCols();var a=this.visualColumnsToPhysical(r,o),s=a.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",r,o,a,i)){for(var l=!0,u=s.length,c=this.dataSource,h=0;h<u;h++)l&&a[0]!==a[h]-h&&(l=!1);if(l)for(var d=0,f=this.instance.countSourceRows();d<f;d++)c[d].splice(a[0],o);else{for(var v=0,g=this.instance.countSourceRows();v<g;v++)for(var p=0;p<u;p++)c[v].splice(s[p],1);for(var m=0;m<u;m++)this.priv.columnSettings.splice(a[m],1)}this.instance.runHooks("afterRemoveCol",r,o,a,i),this.instance.forceFullRender=!0}}},{key:"spliceCol",value:function(e,t,n){for(var o=this.instance.getDataAtCol(e),i=o.slice(t,t+n),r=o.slice(t+n),a=arguments.length,s=new Array(3<a?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,c.extendArray)(s,r);for(var u=0;u<n;)s.push(null),u+=1;return(0,c.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),i}},{key:"spliceRow",value:function(e,t,n){for(var o=this.instance.getSourceDataAtRow(e),i=o.slice(t,t+n),r=o.slice(t+n),a=arguments.length,s=new Array(3<a?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,c.extendArray)(s,r);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),i}},{key:"spliceData",value:function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)}},{key:"filterData",value:function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1===n.indexOf(t)})}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),o=this.dataSource[n],i=this.instance.runHooks("modifyRowData",n),r=null;if((o=isNaN(i)?i:o)&&o.hasOwnProperty&&(0,v.hasOwnProperty)(o,t))r=o[t];else if("string"==typeof t&&-1<t.indexOf(".")){var a=t.split("."),s=o;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;r=s}else"function"==typeof t&&(r=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var c=(0,v.createObjectPropListener)(r);this.instance.runHooks("modifyData",n,this.propToCol(t),c,"get"),c.isTouched()&&(r=c.value)}return r}},{key:"getCopyable",value:function(e,t){return d.call(this.instance,e,this.propToCol(t))?this.get(e,t):""}},{key:"set",value:function(e,t,n,o){var i=this.instance.runHooks("modifyRow",e,o||"datamapGet"),r=n,a=this.dataSource[i],s=this.instance.runHooks("modifyRowData",i);if(a=isNaN(s)?s:a,this.instance.hasHook("modifyData")){var l=(0,v.createObjectPropListener)(r);this.instance.runHooks("modifyData",i,this.propToCol(t),l,"set"),l.isTouched()&&(r=l.value)}if(a&&a.hasOwnProperty&&(0,v.hasOwnProperty)(a,t))a[t]=r;else if("string"==typeof t&&-1<t.indexOf(".")){var u,c=t.split("."),h=a,d=0;for(d=0,u=c.length-1;d<u;d++)void 0===h[c[d]]&&(h[c[d]]={}),h=h[c[d]];h[c[d]]=r}else"function"==typeof t?t(this.dataSource.slice(i,i+1)[0],r):a[t]=r}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,o=this.instance.countSourceRows(),i=[],r=(o+e)%o,a=t;r<o&&a;)n=this.instance.toPhysicalRow(r),i.push(n),a-=1,r+=1;return i}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),o=[],i=(n+e)%n,r=t;i<n&&r;){var a=this.instance.toPhysicalColumn(i);o.push(a),r-=1,i+=1}return o}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"clearLengthCache",value:function(){this.cachedLength=null}},{key:"getLength",value:function(){var e,t=this,n=this.instance.getSettings().maxRows;e=n<0||0===n?0:n||1/0;var o=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var i=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(i=!0),this.latestSourceRowsCount=o,null===this.cachedLength||i?((0,h.rangeEach)(o-1,function(e){null===t.instance.toPhysicalRow(e)&&(o-=1)}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,e)}},{key:"getAll",value:function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,f.DESTINATION_RENDERER):[]}},{key:"getRange",value:function(e,t,n){var o,i,r,a=[],s=this.instance.getSettings().maxRows,l=this.instance.getSettings().maxCols;if(0===s||0===l)return[];var u=n===f.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(s-1,0),Math.max(e.row,t.row)),h=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=c;o++){r=[];var d=this.instance.toPhysicalRow(o);for(i=Math.min(e.col,t.col);i<=h&&null!==d;i++)r.push(u.call(this,o,this.colToProp(i)));null!==d&&a.push(r)}return a}},{key:"getText",value:function(e,t){return a.default.stringify(this.getRange(e,t,f.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(e,t){return a.default.stringify(this.getRange(e,t,f.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"onSkipLengthCache",value:function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)}},{key:"destroy",value:function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}]),f}();t.default=f},function(e,t,n){"use strict";var o=n(0);n(39),t.__esModule=!0,t.parseDelay=l,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(74),s=function(){function o(e,t){var n=this;(0,i.default)(this,o),this.timer=null,this.func=e,this.delay=l(t),this.stopped=!0,this._then=null,this._callback=function(){return n.__callback()}}return(0,r.default)(o,null,[{key:"create",value:function(e,t){return new o(e,t)}}]),(0,r.default)(o,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,a.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,a.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,a.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),o}();function l(e){var t=e;return"string"==typeof t&&/fps$/.test(t)&&(t=1e3/parseInt(t.replace("fps","")||0,10)),t}t.default=s},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var r=o(n(1)),a=o(n(2)),s=n(25),l=n(54),u=n(33),c=n(56),h=o(n(24)),d=n(107),f=function(){function i(e,t,n){var o=this;(0,r.default)(this,i),this.instance=e,this.priv=t,this.selection=n,this.eventManager=new h.default(e),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.instance.addHook("afterDocumentKeyDown",function(e){return o.onAfterDocumentKeyDown(e)}),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"keydown",function(e){o.destroyed||o.instance.runHooks("afterDocumentKeyDown",e)}),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",function(e){!o.destroyed&&o.activeEditor&&!o.activeEditor.isOpened()&&o.instance.isListening()&&o.openEditor("",e)}),this.instance.view.wt.update("onCellDblClick",function(e,t,n){return o.onCellDblClick(e,t,n)})}return(0,a.default)(i,[{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var t=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,function(e){e&&t.prepareEditor()});else{var e=this.instance.selection.selectedRange.current().highlight,n=e.row,o=e.col,i=this.instance.colToProp(o),r=this.instance.getCell(n,o),a=this.instance.getSourceDataAtCell(this.instance.runHooks("modifyRow",n),o),s=this.instance.getCellMeta(n,o),l=this.instance.getCellEditor(s);l?(this.activeEditor=(0,c.getEditorInstance)(l,this.instance),this.activeEditor.prepare(n,o,i,r,a,s)):this.activeEditor=void 0}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){this.activeEditor&&(this.activeEditor.cellProperties.readOnly?t&&t.keyCode===l.KEY_CODES.ENTER&&this.moveSelectionAfterEnter():this.activeEditor.beginEditing(e,t))}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){return this.closeEditor(!0,e)}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.priv.settings.enterMoves?this.priv.settings.enterMoves(event):this.priv.settings.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"moveSelectionUp",value:function(e){e?this.selection.transformEnd(-1,0):this.selection.transformStart(-1,0)}},{key:"moveSelectionDown",value:function(e){e?this.selection.transformEnd(1,0):this.selection.transformStart(1,0)}},{key:"moveSelectionRight",value:function(e){e?this.selection.transformEnd(0,1):this.selection.transformStart(0,1)}},{key:"moveSelectionLeft",value:function(e){e?this.selection.transformEnd(0,-1):this.selection.transformStart(0,-1)}},{key:"onAfterDocumentKeyDown",value:function(e){if(this.instance.isListening()&&(this.instance.runHooks("beforeKeyDown",e),!this.destroyed&&229!==e.keyCode&&!(0,u.isImmediatePropagationStopped)(e)&&(this.priv.lastKeyCode=e.keyCode,this.selection.isSelected()))){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(!this.activeEditor||this.activeEditor.isWaiting()||(0,l.isMetaKey)(e.keyCode)||(0,l.isCtrlMetaKey)(e.keyCode)||t||this.isEditorOpened()){var n,o=e.shiftKey,i=o?this.selection.setRangeEnd:this.selection.setRangeStart;switch(e.keyCode){case l.KEY_CODES.A:!this.isEditorOpened()&&t&&(this.instance.selectAll(),e.preventDefault(),(0,u.stopPropagation)(e));break;case l.KEY_CODES.ARROW_UP:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionUp(o),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.ARROW_DOWN:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionDown(o),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.ARROW_RIGHT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionRight(o),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.ARROW_LEFT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionLeft(o),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.TAB:n="function"==typeof this.priv.settings.tabMoves?this.priv.settings.tabMoves(e):this.priv.settings.tabMoves,o?this.selection.transformStart(-n.row,-n.col):this.selection.transformStart(n.row,n.col,!0),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.BACKSPACE:case l.KEY_CODES.DELETE:this.instance.emptySelectedCells(),this.prepareEditor(),e.preventDefault();break;case l.KEY_CODES.F2:this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e),e.preventDefault();break;case l.KEY_CODES.ENTER:this.isEditorOpened()?(this.activeEditor&&this.activeEditor.state!==d.EditorState.WAITING&&this.closeEditorAndSaveChanges(t),this.moveSelectionAfterEnter(o)):this.instance.getSettings().enterBeginsEditing?(this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e)):this.moveSelectionAfterEnter(o),e.preventDefault(),(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ESCAPE:this.isEditorOpened()&&(this.closeEditorAndRestoreOriginalValue(t),this.activeEditor.focus()),e.preventDefault();break;case l.KEY_CODES.HOME:e.ctrlKey||e.metaKey?i.call(this.selection,new s.CellCoords(0,this.selection.selectedRange.current().from.col)):i.call(this.selection,new s.CellCoords(this.selection.selectedRange.current().from.row,0)),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.END:e.ctrlKey||e.metaKey?i.call(this.selection,new s.CellCoords(this.instance.countRows()-1,this.selection.selectedRange.current().from.col)):i.call(this.selection,new s.CellCoords(this.selection.selectedRange.current().from.row,this.instance.countCols()-1)),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.PAGE_UP:this.selection.transformStart(-this.instance.countVisibleRows(),0),e.preventDefault(),(0,u.stopPropagation)(e);break;case l.KEY_CODES.PAGE_DOWN:this.selection.transformStart(this.instance.countVisibleRows(),0),e.preventDefault(),(0,u.stopPropagation)(e)}}else this.openEditor("",e)}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&(this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e))}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),i}(),v=new WeakMap;f.getInstance=function(e,t,n,o){var i=v.get(e);return i||(i=new f(e,t,n,o),v.set(e,i)),i};var i=f;t.default=i},function(e,t,n){"use strict";var o=n(21),i=n(87).findIndex,r=n(100),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),o({target:"Array",proto:!0,forced:s},{findIndex:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),r(a)},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var a=o(n(18)),i=o(n(1)),r=o(n(2)),d=n(6),s=o(n(24)),f=n(33),l=o(n(25)),u=n(233),v=new WeakMap,c=function(){function t(e){(0,i.default)(this,t),this.instance=e,this.eventManager=new s.default(e),this.settings=e.getSettings(),this.THEAD=void 0,this.TBODY=void 0,this.wt=void 0,this.activeWt=void 0,v.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,r.default)(t,[{key:"render",value:function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1}},{key:"getCellAtCoords",value:function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,o,i){return this.wt.scrollViewport(e,t,n,o,i)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=v.get(this),t=this.instance,n=t.rootElement,o=t.rootDocument,i=n.getAttribute("style");i&&n.setAttribute("data-originalstyle",i),(0,d.addClass)(n,"handsontable"),e.table=o.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=o.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=o.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var s=this,l=v.get(this),e=this.instance,u=e.rootElement,c=e.rootDocument,h=c.documentElement;this.eventManager.addEventListener(u,"mousedown",function(e){if(l.selectionMouseDown=!0,!s.isTextSelectionAllowed(e.target)){var t=s.instance.rootWindow;(0,d.clearTextSelection)(t),e.preventDefault(),t.focus()}}),this.eventManager.addEventListener(u,"mouseup",function(){l.selectionMouseDown=!1}),this.eventManager.addEventListener(u,"mousemove",function(e){l.selectionMouseDown&&!s.isTextSelectionAllowed(e.target)&&(s.settings.fragmentSelection&&(0,d.clearTextSelection)(s.instance.rootWindow),e.preventDefault())}),this.eventManager.addEventListener(h,"keyup",function(e){s.instance.selection.isInProgress()&&!e.shiftKey&&s.instance.selection.finish()}),this.eventManager.addEventListener(h,"mouseup",function(e){s.instance.selection.isInProgress()&&(0,f.isLeftClick)(e)&&s.instance.selection.finish(),l.mouseDown=!1,!(0,d.isOutsideInput)(c.activeElement)&&(s.instance.selection.isSelected()||(0,f.isRightClick)(e))||s.instance.unlisten()}),this.eventManager.addEventListener(h,"contextmenu",function(e){s.instance.selection.isInProgress()&&(0,f.isRightClick)(e)&&(s.instance.selection.finish(),l.mouseDown=!1)}),this.eventManager.addEventListener(h,"touchend",function(){s.instance.selection.isInProgress()&&s.instance.selection.finish(),l.mouseDown=!1}),this.eventManager.addEventListener(h,"mousedown",function(e){var t=e.target,n=e.x||e.clientX,o=e.y||e.clientY,i=e.target;if(!l.mouseDown&&u&&s.instance.view){var r=s.instance.view.wt.wtTable.holder;if(i===r){var a=(0,d.getScrollbarWidth)(c);if(c.elementFromPoint(n+a,o)!==r||c.elementFromPoint(n,o+a)!==r)return}else for(;i!==h;){if(null===i){if(e.isTargetWebComponent)break;return}if(i===u)return;i=i.parentNode}("function"==typeof s.settings.outsideClickDeselects?s.settings.outsideClickDeselects(t):s.settings.outsideClickDeselects)?s.instance.deselectCell():s.instance.destroyEditor(!1,!1)}}),this.eventManager.addEventListener(l.table,"selectstart",function(e){s.settings.fragmentSelection||(0,d.isInput)(e.target)||e.preventDefault()})}},{key:"initializeWalkontable",value:function(){var a=this,r=v.get(this),e={debug:function(){return a.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:r.table,preventOverflow:function(){return a.settings.preventOverflow},preventWheel:function(){return a.settings.preventWheel},stretchH:function(){return a.settings.stretchH},data:this.instance.getDataAtCell,totalRows:function(){return a.instance.countRows()},totalColumns:function(){return a.instance.countCols()},fixedColumnsLeft:function(){return a.settings.fixedColumnsLeft},fixedRowsTop:function(){return a.settings.fixedRowsTop},fixedRowsBottom:function(){return a.settings.fixedRowsBottom},minSpareRows:function(){return a.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var e=[];return a.instance.hasRowHeaders()&&e.push(function(e,t){return a.appendRowHeader(e,t)}),a.instance.runHooks("afterGetRowHeaderRenderers",e),e},columnHeaders:function(){var e=[];return a.instance.hasColHeaders()&&e.push(function(e,t){a.appendColHeader(e,t)}),a.instance.runHooks("afterGetColumnHeaderRenderers",e),e},columnWidth:this.instance.getColWidth,rowHeight:this.instance.getRowHeight,cellRenderer:function(e,t,n){var o=a.instance.getCellMeta(e,t),i=a.instance.colToProp(t),r=a.instance.getDataAtRowProp(e,i);a.instance.hasHook("beforeValueRender")&&(r=a.instance.runHooks("beforeValueRender",r,o)),a.instance.runHooks("beforeRenderer",n,e,t,i,r,o),a.instance.getCellRenderer(o)(a.instance,n,e,t,i,r,o),a.instance.runHooks("afterRenderer",n,e,t,i,r,o)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return a.settings.fragmentSelection},onWindowResize:function(){a.instance&&!a.instance.isDestroyed&&a.instance.refreshDimensions()},onCellMouseDown:function(e,t,n,o){var i={row:!1,column:!1,cell:!1};a.instance.listen(),a.activeWt=o,r.mouseDown=!0,a.instance.runHooks("beforeOnCellMouseDown",e,t,n,i),(0,f.isImmediatePropagationStopped)(e)||((0,u.handleMouseEvent)(e,{coords:t,selection:a.instance.selection,controller:i}),a.instance.runHooks("afterOnCellMouseDown",e,t,n),a.activeWt=a.wt)},onCellContextMenu:function(e,t,n,o){a.activeWt=o,r.mouseDown=!1,a.instance.selection.isInProgress()&&a.instance.selection.finish(),a.instance.runHooks("beforeOnCellContextMenu",e,t,n),(0,f.isImmediatePropagationStopped)(e)||(a.instance.runHooks("afterOnCellContextMenu",e,t,n),a.activeWt=a.wt)},onCellMouseOut:function(e,t,n,o){a.activeWt=o,a.instance.runHooks("beforeOnCellMouseOut",e,t,n),(0,f.isImmediatePropagationStopped)(e)||(a.instance.runHooks("afterOnCellMouseOut",e,t,n),a.activeWt=a.wt)},onCellMouseOver:function(e,t,n,o){var i={row:!1,column:!1,cell:!1};a.activeWt=o,a.instance.runHooks("beforeOnCellMouseOver",e,t,n,i),(0,f.isImmediatePropagationStopped)(e)||(r.mouseDown&&(0,u.handleMouseEvent)(e,{coords:t,selection:a.instance.selection,controller:i}),a.instance.runHooks("afterOnCellMouseOver",e,t,n),a.activeWt=a.wt)},onCellMouseUp:function(e,t,n,o){a.activeWt=o,a.instance.runHooks("beforeOnCellMouseUp",e,t,n),a.instance.runHooks("afterOnCellMouseUp",e,t,n),a.activeWt=a.wt},onCellCornerMouseDown:function(e){e.preventDefault(),a.instance.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:function(e){e.preventDefault(),a.instance.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:function(e,t){return a.beforeRender(e,t)},onDraw:function(e){return a.onDraw(e)},onScrollVertically:function(){return a.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return a.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return a.instance.runHooks("beforeRemoveCellClassNames")},onAfterDrawSelection:function(e,t,n,o){return a.instance.runHooks("afterDrawSelection",e,t,n,o)},onBeforeDrawBorders:function(e,t){return a.instance.runHooks("beforeDrawBorders",e,t)},onBeforeTouchScroll:function(){return a.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return a.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(e,t){return a.instance.runHooks("beforeStretchingColumnWidth",e,t)},onModifyRowHeaderWidth:function(e){return a.instance.runHooks("modifyRowHeaderWidth",e)},onModifyGetCellCoords:function(e,t,n){return a.instance.runHooks("modifyGetCellCoords",e,t,n)},viewportRowCalculatorOverride:function(e){var t=a.settings.viewportRowRenderingOffset;if("auto"===t&&a.settings.fixedRowsTop&&(t=10),0<t||"auto"===t){var n=a.instance.countRows();if("number"==typeof t)e.startRow=Math.max(e.startRow-t,0),e.endRow=Math.min(e.endRow+t,n-1);else if("auto"===t){var o=e.startRow+e.endRow-e.startRow,i=Math.ceil(o/n*12);e.startRow=Math.max(e.startRow-i,0),e.endRow=Math.min(e.endRow+i,n-1)}}a.instance.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:function(e){var t=a.settings.viewportColumnRenderingOffset;if("auto"===t&&a.settings.fixedColumnsLeft&&(t=10),0<t||"auto"===t){var n=a.instance.countCols();if("number"==typeof t&&(e.startColumn=Math.max(e.startColumn-t,0),e.endColumn=Math.min(e.endColumn+t,n-1)),"auto"===t){var o=e.startColumn+e.endColumn-e.startColumn,i=Math.ceil(o/n*12);e.startRow=Math.max(e.startColumn-i,0),e.endColumn=Math.min(e.endColumn+i,n-1)}}a.instance.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:function(){return a.settings.rowHeaderWidth},columnHeaderHeight:function(){var e=a.instance.runHooks("modifyColumnHeaderHeight");return a.settings.columnHeaderHeight||e}};this.instance.runHooks("beforeInitWalkontable",e),this.wt=new l.default(e),this.activeWt=this.wt;var t=this.wt.wtTable.spreader,n=this.instance.rootElement.getBoundingClientRect(),o=n.width,i=n.height;this.setLastSize(o,i),this.eventManager.addEventListener(t,"mousedown",function(e){e.target===t&&3===e.which&&(0,f.stopPropagation)(e)}),this.eventManager.addEventListener(t,"contextmenu",function(e){e.target===t&&3===e.which&&(0,f.stopPropagation)(e)}),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",function(){a.settings.observeDOMVisibility&&a.wt.drawInterrupted&&(a.instance.forceFullRender=!0,a.render())})}},{key:"isTextSelectionAllowed",value:function(e){if((0,d.isInput)(e))return!0;var t=(0,d.isChildOf)(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return v.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e=this.instance.getSelectedLast()||[],t=(0,a.default)(e,4),n=t[0],o=t[1],i=t[2],r=t[3];return void 0!==n&&n===i&&o===r}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)}},{key:"onDraw",value:function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,d.hasClass)(n,"relative"))return(0,d.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=this.instance,i=o.rootDocument,r=o.getRowHeader,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;(0,d.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,d.empty)(t),this.appendColHeader(e,t))}else{var o=this.instance.rootDocument,i=o.createElement("div"),r=o.createElement("span");i.className="relative",r.className="colHeader",this.updateCellHeader(r,e,this.instance.getColHeader),i.appendChild(r),t.appendChild(i)}this.instance.runHooks("afterGetColHeader",e,t)}},{key:"updateCellHeader",value:function(e,t,n){var o=t,i=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,d.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,d.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),-1<o?(0,d.fastInnerHTML)(e,n(t)):((0,d.fastInnerText)(e,String.fromCharCode(160)),(0,d.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this.wt.wtViewport.getWorkspaceWidth()-e;return 0<t?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this.wt.wtViewport.getWorkspaceHeight()-e;return 0<t?t:0}},{key:"setLastSize",value:function(e,t){var n=v.get(this),o=[e,t];n.lastWidth=o[0],n.lastHeight=o[1]}},{key:"getLastSize",value:function(){var e=v.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"mainViewIsActive",value:function(){return this.wt===this.activeWt}},{key:"destroy",value:function(){this.wt.destroy(),this.eventManager.destroy()}}]),t}();t.default=c},function(e,t,n){"use strict";var o=n(0);n(40),n(61),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(4),s=n(3),c=n(17),l=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];(0,i.default)(this,n),this.hot=e,this.data=t,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,r.default)(n,[{key:"getData",value:function(e){var t=0<arguments.length&&void 0!==e&&e,n=this.data;return t&&(n=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),n}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(o){var i=this,r=[];return(0,s.arrayEach)(this.data,function(e){var t,n=i.colToProp(o);t="string"==typeof n?(0,a.getProperty)(e,n):"function"==typeof n?n(e):e[n],r.push(t)}),r}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,o=this.hot.runHooks("modifyRowData",e),i=isNaN(o)?o:this.data[e];if(i){var r=this.colToProp(t);n="string"==typeof r?(0,a.getProperty)(i,r):"function"==typeof r?r(this.data.slice(e,e+1)[0]):i[r]}return n}},{key:"getByRange",value:function(e,t,n){var i=this,r=2<arguments.length&&void 0!==n&&n,o=Math.min(e.row,t.row),a=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col),u=[];return(0,c.rangeEach)(o,s,function(e){var n,o=i.getAtRow(e);"array"===i.dataType?n=o.slice(a,l+1):"object"===i.dataType&&(n=r?[]:{},(0,c.rangeEach)(a,l,function(e){var t=i.colToProp(e);r?n.push(o[t]):n[t]=o[t]})),u.push(n)}),u}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),n}();t.default=l},function(e,t,n){"use strict";var o=n(0),i=n(9);t.__esModule=!0,t.default=void 0;var r,a=o(n(68)),s=i(n(11)),l=(r={languageCode:"en-US"},(0,a.default)(r,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(r,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(r,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(r,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(r,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(r,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(r,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(r,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(r,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(r,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(r,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(r,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(r,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(r,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(r,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(r,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(r,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(r,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(r,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(r,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(r,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(r,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(r,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(r,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(r,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(r,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(r,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(r,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(r,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(r,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(r,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(r,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(r,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(r,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(r,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(r,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(r,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(r,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(r,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),r);t.default=l},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.registerPhraseFormatter=t.register=u,t.getPhraseFormatters=t.getAll=function(){return l()};var i=o(n(77)),r=o(n(352)),a=(0,i.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",r.default)},function(e,t,n){"use strict";n(79),n(80),t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},function(e,t,n){var o=n(21),i=n(354),r=n(100);o({target:"Array",proto:!0},{fill:i}),r("fill")},function(e,t,n){"use strict";var u=n(60),c=n(123),h=n(52);e.exports=function(e,t,n){for(var o=u(this),i=h(o.length),r=arguments.length,a=c(1<r?t:void 0,i),s=2<r?n:void 0,l=void 0===s?i:c(s,i);a<l;)o[a++]=e;return o}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return f(e)(t)};var i=o(n(77)),r=o(n(356)),a=o(n(357)),s=o(n(358)),l=o(n(359)),u=o(n(360)),c=o(n(361)),h=(0,i.default)("highlight/types"),d=h.register,f=h.getItem;d("active-header",r.default),d("area",a.default),d("cell",s.default),d("custom-selection",l.default),d("fill",u.default),d("header",c.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(25);function i(e){var t=e.activeHeaderClassName;return new o.Selection({highlightHeaderClassName:t})}t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(25);function i(e){var t=e.layerLevel,n=e.areaCornerVisible;return new o.Selection({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}})}t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(25);function i(e){var t=e.cellCornerVisible;return new o.Selection({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}})}t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(25);function i(e){var t=e.border,n=e.cellRange;return new o.Selection(t,n)}t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(25);function i(){return new o.Selection({className:"fill",border:{width:1,color:"#ff0000"}})}t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(25);function o(e){var t=e.headerClassName,n=e.rowClassName,o=e.columnClassName;return new i.Selection({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:o})}t.default=o},function(e,t,n){"use strict";var o=n(9),i=n(0);n(19),n(57),n(31),n(15),n(79),n(80),n(10),n(81),n(38),n(13),n(16),t.__esModule=!0,t.default=void 0;var h=i(n(18)),r=i(n(69)),a=i(n(1)),s=i(n(2)),l=o(n(241)),u=i(n(363)),d=n(25),c=n(140),f=n(4),v=n(28),g=n(3),p=i(n(59)),m=i(n(364)),y=n(141),w=n(71);function C(){var e=(0,r.default)(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, columnEnd/columnPropEnd]]) \n or as an array of CellRange objects."]);return C=function(){return e},e}var E=function(){function n(e,t){var o=this;(0,a.default)(this,n),this.settings=e,this.tableProps=t,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new u.default,this.highlight=new l.default({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,disableHighlight:this.settings.disableVisualSelection,cellCornerVisible:function(){return o.isCellCornerVisible.apply(o,arguments)},areaCornerVisible:function(){return o.isAreaCornerVisible.apply(o,arguments)}}),this.transformation=new m.default(this.selectedRange,{countRows:function(){return o.tableProps.countRows()},countCols:function(){return o.tableProps.countCols()},fixedRowsBottom:function(){return e.fixedRowsBottom},minSpareRows:function(){return e.minSpareRows},minSpareCols:function(){return e.minSpareCols},autoWrapRow:function(){return e.autoWrapRow},autoWrapCol:function(){return e.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["beforeModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["afterModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["beforeModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["afterModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["insertRowRequire"].concat(t))}),this.transformation.addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["insertColRequire"].concat(t))})}return(0,s.default)(n,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t,n){var o=2<arguments.length&&void 0!==n&&n,i="multiple"===this.settings.selectionMode,r=(0,v.isUndefined)(t)?(0,c.isPressedCtrlKey)():t,a=e.row<0,s=e.col<0,l=a&&s;a&&(e.row=0),s&&(e.col=0),this.selectedByCorner=l,this.runLocalHooks("beforeSetRangeStart".concat(o?"Only":""),e),(!i||i&&!r&&(0,v.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!l&&s&&this.selectedByRowHeader.add(this.getLayerLevel()),!l&&a&&this.selectedByColumnHeader.add(this.getLayerLevel()),o||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new d.CellCoords(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(l.CELL_TYPE)&&this.highlight.getCell().add(this.selectedRange.current().highlight);var n=this.getLayerLevel();n<this.highlight.layerLevel&&((0,g.arrayEach)(this.highlight.getAreas(),function(e){e.clear()}),(0,g.arrayEach)(this.highlight.getHeaders(),function(e){e.clear()}),(0,g.arrayEach)(this.highlight.getActiveHeaders(),function(e){e.clear()})),this.highlight.useLayerLevel(n);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),r=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),r.clear(),this.highlight.isEnabledFor(l.AREA_TYPE)&&(this.isMultiple()||1<=n)&&(o.add(t.from).add(t.to),1===n&&(this.highlight.useLayerLevel(n-1).createOrGetArea().add(this.selectedRange.previous().from),this.highlight.useLayerLevel(n))),this.highlight.isEnabledFor(l.HEADER_TYPE)&&("single"===this.settings.selectionMode?i.add(t.highlight):i.add(t.from).add(t.to)),this.isSelectedByRowHeader())this.tableProps.countCols()===t.getWidth()&&r.add(new d.CellCoords(t.from.row,-1)).add(new d.CellCoords(t.to.row,-1));if(this.isSelectedByColumnHeader())this.tableProps.countRows()===t.getHeight()&&r.add(new d.CellCoords(-1,t.from.col)).add(new d.CellCoords(-1,t.to.col));this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,f.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t,n){this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.getLayerLevel();return-1===t?0<this.selectedByRowHeader.size:this.selectedByRowHeader.has(t)}},{key:"isSelectedByColumnHeader",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.getLayerLevel();return-1===t?0<this.selectedByColumnHeader.size:this.selectedByColumnHeader.has(t)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){this.clear(),this.setRangeStart(new d.CellCoords(-1,-1)),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new d.CellCoords(this.tableProps.countRows()-1,this.tableProps.countCols()-1))}},{key:"selectCells",value:function(e){var s=this,t=(0,y.detectSelectionType)(e);if(t===y.SELECTION_TYPE_EMPTY)return!1;if(t===y.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,w.toSingleLine)(C()));var l=(0,y.normalizeSelectionFactory)(t,{propToCol:function(e){return s.tableProps.propToCol(e)},keepDirection:!0}),u=this.tableProps.countRows(),c=this.tableProps.countCols(),n=!e.some(function(e){var t=l(e),n=(0,h.default)(t,4),o=n[0],i=n[1],r=n[2],a=n[3];return!((0,y.isValidCoord)(o,u)&&(0,y.isValidCoord)(i,c)&&(0,y.isValidCoord)(r,u)&&(0,y.isValidCoord)(a,c))});return n&&(this.clear(),(0,g.arrayEach)(e,function(e){var t=l(e),n=(0,h.default)(t,4),o=n[0],i=n[1],r=n[2],a=n[3];s.setRangeStartOnly(new d.CellCoords(o,i),!1),s.setRangeEnd(new d.CellCoords(r,a)),s.finish()})),n}},{key:"selectColumns",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:e,o="string"==typeof e?this.tableProps.propToCol(e):e,i="string"==typeof n?this.tableProps.propToCol(n):n,r=this.tableProps.countCols(),a=(0,y.isValidCoord)(o,r)&&(0,y.isValidCoord)(i,r);return a&&(this.setRangeStartOnly(new d.CellCoords(-1,o)),this.setRangeEnd(new d.CellCoords(this.tableProps.countRows()-1,i)),this.finish()),a}},{key:"selectRows",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:e,o=this.tableProps.countRows(),i=(0,y.isValidCoord)(e,o)&&(0,y.isValidCoord)(n,o);return i&&(this.setRangeStartOnly(new d.CellCoords(e,-1)),this.setRangeEnd(new d.CellCoords(n,this.tableProps.countCols()-1)),this.finish()),i}}]),n}();(0,f.mixin)(E,p.default);var S=E;t.default=S},function(e,t,n){"use strict";var o=n(0);n(111),n(138),n(242),n(31),n(15),n(10),n(38),n(13),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(25),s=function(){function e(){(0,i.default)(this,e),this.ranges=[]}return(0,r.default)(e,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(new a.CellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(new a.CellRange(e)),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(t){return this.ranges.some(function(e){return e.includes(t)})}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(e){var t,n=0<arguments.length&&void 0!==e?e:0,o=this.size()+n-1;return 0<=o&&(t=this.ranges[o]),t}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}]),e}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),g=n(25),a=n(4),s=o(n(59)),l=function(){function n(e,t){(0,i.default)(this,n),this.range=e,this.options=t}return(0,r.default)(n,[{key:"transformStart",value:function(e,t,n){var o=new g.CellCoords(e,t);this.runLocalHooks("beforeTransformStart",o);var i=this.options.countRows(),r=this.options.countCols(),a=this.options.fixedRowsBottom(),s=this.options.minSpareRows(),l=this.options.minSpareCols(),u=this.options.autoWrapRow(),c=this.options.autoWrapCol(),h=this.range.current().highlight;h.row+e>i-1?n&&0<s&&!(a&&h.row>=i-a-1)?(this.runLocalHooks("insertRowRequire",i),i=this.options.countRows()):c&&(o.row=1-i,o.col=h.col+o.col===r-1?1-r:1):c&&h.row+o.row<0&&0<=h.col+o.col&&(o.row=i-1,o.col=h.col+o.col===0?r-1:-1),h.col+o.col>r-1?n&&0<l?(this.runLocalHooks("insertColRequire",r),r=this.options.countCols()):u&&(o.row=h.row+o.row===i-1?1-i:1,o.col=1-r):u&&h.col+o.col<0&&0<=h.row+o.row&&(o.row=h.row+o.row===0?i-1:-1,o.col=r-1);var d=new g.CellCoords(h.row+o.row,h.col+o.col),f=0,v=0;return d.row<0?(f=-1,d.row=0):0<d.row&&d.row>=i&&(f=1,d.row=i-1),d.col<0?(v=-1,d.col=0):0<d.col&&d.col>=r&&(v=1,d.col=r-1),this.runLocalHooks("afterTransformStart",d,f,v),d}},{key:"transformEnd",value:function(e,t){var n=new g.CellCoords(e,t);this.runLocalHooks("beforeTransformEnd",n);var o=this.options.countRows(),i=this.options.countCols(),r=this.range.current(),a=new g.CellCoords(r.to.row+n.row,r.to.col+n.col),s=0,l=0;return a.row<0?(s=-1,a.row=0):0<a.row&&a.row>=o&&(s=1,a.row=o-1),a.col<0?(l=-1,a.col=0):0<a.col&&a.col>=i&&(l=1,a.col=i-1),this.runLocalHooks("afterTransformEnd",a,s,l),a}}]),n}();(0,a.mixin)(l,s.default);var u=l;t.default=u},function(e,t,n){"use strict";n(19),t.__esModule=!0,t.default=function(u){var e="undefined"!=typeof window&&window.jQuery;if(!e)return;e.fn.handsontable=function(e){var t,n=this.first(),o=n.data("handsontable");if("string"!=typeof e){var i=e||{};return o?o.updateSettings(i):(o=new u.Core(n[0],i),n.data("handsontable",o),o.init()),n}if(o){if(void 0===o[e])throw new Error("Handsontable do not provide action: ".concat(e));for(var r,a=arguments.length,s=new Array(1<a?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];t=(r=o[e]).call.apply(r,[o].concat(s)),"destroy"===e&&n.removeData()}return t}}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0;var i=o(n(367));t.PersistentState=i.default;var r=o(n(369));t.AutoColumnSize=r.default;var a=o(n(370));t.AutoFill=a.default;var s=o(n(372));t.AutoRowSize=s.default;var l=o(n(246));t.ColumnSorting=l.default;var u=o(n(386));t.Comments=u.default;var c=o(n(390));t.ContextMenu=c.default;var h=o(n(405));t.CopyPaste=h.default;var d=o(n(413));t.CustomBorders=d.default;var f=o(n(420));t.DragToScroll=f.default;var v=o(n(421));t.ManualColumnFreeze=v.default;var g=o(n(425));t.ManualColumnMove=g.default;var p=o(n(430));t.ManualColumnResize=p.default;var m=o(n(431));t.ManualRowMove=m.default;var y=o(n(436));t.ManualRowResize=y.default;var w=o(n(437));t.MergeCells=w.default;var C=o(n(443));t.MultipleSelectionHandles=C.default;var E=o(n(444));t.ObserveChanges=E.default;var S=o(n(448));t.Search=S.default;var k=o(n(449));t.TouchScroll=k.default;var T=o(n(450));t.UndoRedo=T.default;var R=o(n(22));t.Base=R.default;var _=o(n(451));t.BindRowsWithHeaders=_.default;var b=o(n(456));t.CollapsibleColumns=b.default;var O=o(n(457));t.ColumnSummary=O.default;var M=o(n(461));t.DropdownMenu=M.default;var N=o(n(463));t.ExportFile=N.default;var A=o(n(468));t.MultiColumnSorting=A.default;var D=o(n(473));t.Filters=D.default;var I=o(n(506));t.Formulas=I.default;var H=o(n(519));t.GanttChart=H.default;var L=o(n(523));t.HeaderTooltips=L.default;var P=o(n(524));t.NestedHeaders=P.default;var x=o(n(527));t.NestedRows=x.default;var F=o(n(532));t.HiddenColumns=F.default;var B=o(n(536));t.HiddenRows=B.default;var W=o(n(540));t.TrimRows=W.default},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(22)),h=n(20),d=o(n(368)),f=o(n(43));f.default.getSingleton().register("persistentStateSave"),f.default.getSingleton().register("persistentStateLoad"),f.default.getSingleton().register("persistentStateReset");var v=function(e){function o(e){var t;return(0,i.default)(this,o),(t=(0,a.default)(this,(0,s.default)(o).call(this,e))).storage=void 0,t}return(0,u.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.storage||(this.storage=new d.default(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",function(e,t){return n.saveValue(e,t)}),this.addHook("persistentStateLoad",function(e,t){return n.loadValue(e,t)}),this.addHook("persistentStateReset",function(){return n.resetValue()}),(0,l.default)((0,s.default)(o.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,(0,l.default)((0,s.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,l.default)((0,s.default)(o.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(e,t){t.value=this.storage.loadValue(e)}},{key:"saveValue",value:function(e,t){this.storage.saveValue(e,t)}},{key:"resetValue",value:function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}},{key:"destroy",value:function(){(0,l.default)((0,s.default)(o.prototype),"destroy",this).call(this)}}]),o}(c.default);(0,h.registerPlugin)("persistentState",v);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(0);n(19),n(12),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(3),s=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;(0,i.default)(this,n),this.rootWindow=t,this.prefix=e,this.savedKeys=[],this.loadSavedKeys()}return(0,r.default)(n,[{key:"saveValue",value:function(e,t){this.rootWindow.localStorage.setItem("".concat(this.prefix,"_").concat(e),JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n=void 0===e?t:e,o=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===o?void 0:JSON.parse(o)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var n=this;(0,a.arrayEach)(this.savedKeys,function(e,t){n.rootWindow.localStorage.removeItem("".concat(n.prefix,"_").concat(n.savedKeys[t]))}),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=this.rootWindow.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys")),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}},{key:"saveSavedKeys",value:function(){this.rootWindow.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}]),n}();t.default=s},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var u=o(n(18)),i=o(n(1)),r=o(n(7)),a=o(n(26)),l=o(n(5)),c=o(n(14)),h=o(n(2)),d=o(n(8)),s=o(n(22)),f=n(3),v=n(74),g=o(n(169)),p=n(4),m=n(17),y=n(20),w=o(n(245)),C=n(72),E=n(25),S=new WeakMap,k=function(e){function s(e){var c;return(0,i.default)(this,s),c=(0,r.default)(this,(0,l.default)(s).call(this,e)),S.set((0,a.default)(c),{cachedColumnHeaders:[]}),c.widths=[],c.ghostTable=new g.default(c.hot),c.samplesGenerator=new w.default(function(e,t){var n=c.hot.getCellMeta(e,t),o="";n.spanned||(o=c.hot.getDataAtCell(e,t));var i=0;if(n.label){var r=n.label,a=r.value,s=r.property,l="";if(a)l="function"==typeof a?a(e,t,c.hot.colToProp(t),o):a;else if(s){var u=c.hot.getDataAtRowProp(e,s);l=null!==u?u:""}i=l.length}return{value:o,bundleCountSeed:i}}),c.firstCalculation=!0,c.inProgress=!1,c.addHook("beforeColumnResize",function(e,t,n){return c.onBeforeColumnResize(e,t,n)}),c}return(0,d.default)(s,e),(0,h.default)(s,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),(0,h.default)(s,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){var e=this.hot.getSettings().autoColumnSize;e&&null!==e.useHeaders&&void 0!==e.useHeaders&&this.ghostTable.setSetting("useHeaders",e.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",function(){return n.onAfterLoadData()}),this.addHook("beforeChange",function(e){return n.onBeforeChange(e)}),this.addHook("beforeRender",function(e){return n.onBeforeRender(e)}),this.addHook("modifyColWidth",function(e,t){return n.getColumnWidth(t,e)}),this.addHook("afterInit",function(){return n.onAfterInit()}),(0,c.default)((0,l.default)(s.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),(0,c.default)((0,l.default)(s.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,c.default)((0,l.default)(s.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(e,t,n){var i=this,o=0<arguments.length&&void 0!==e?e:{from:0,to:this.hot.countCols()-1},r=1<arguments.length&&void 0!==t?t:{from:0,to:this.hot.countRows()-1},a=2<arguments.length&&void 0!==n&&n,s="number"==typeof o?{from:o,to:o}:o,l="number"==typeof r?{from:r,to:r}:r;(0,m.rangeEach)(s.from,s.to,function(e){if(a||void 0===i.widths[e]&&!i.hot._getColWidthFromSettings(e)){var t=i.samplesGenerator.generateColumnSamples(e,l);(0,f.arrayEach)(t,function(e){var t=(0,u.default)(e,2),n=t[0],o=t[1];return i.ghostTable.addColumn(n,o)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,t){i.widths[e]=t}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:{from:0,to:this.hot.countRows()-1},o=0,i=this.hot.countCols()-1,r=null;this.inProgress=!0;var a=this.getSyncCalculationLimit();this.firstCalculation&&0<=a&&(this.calculateColumnsWidth({from:0,to:a},n),this.firstCalculation=!1,o=a+1),o<i?function e(){if(!t.hot)return(0,v.cancelAnimationFrame)(r),void(t.inProgress=!1);t.calculateColumnsWidth({from:o,to:Math.min(o+s.CALCULATION_STEP,i)},n),(o=o+s.CALCULATION_STEP+1)<i?r=(0,v.requestAnimationFrame)(e):((0,v.cancelAnimationFrame)(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,p.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,p.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&this.hot.view.wt.wtTable.isVisible()&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=s.SYNC_CALCULATION_LIMIT,t=this.hot.countCols()-1;return(0,p.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,C.isPercentValue)(e)?e=(0,m.valueAccordingPercent)(t,e):e>>=0),Math.min(e,t)}},{key:"getColumnWidth",value:function(e,t,n){var o=!(2<arguments.length&&void 0!==n)||n,i=1<arguments.length&&void 0!==t?t:void 0;return void 0===i&&(i=this.widths[e],o&&"number"==typeof i&&(i=Math.max(i,E.ViewportColumnsCalculator.DEFAULT_WIDTH))),i}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),i=S.get(this).cachedColumnHeaders;return(0,f.arrayReduce)(e,function(e,t,n){var o=i.length;return(o-1<n||i[n]!==t)&&e.push(n),o-1<n?i.push(t):i[n]=t,e},[])}},{key:"clearCache",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:[];n.length?(0,f.arrayEach)(n,function(e){t.widths[e]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.countRows(),n=this.getFirstVisibleColumn(),o=this.getLastVisibleColumn();null!==n&&null!==o&&t&&(this.calculateColumnsWidth({from:n,to:o},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var n=this,t=(0,f.arrayMap)(e,function(e){var t=(0,u.default)(e,2)[1];return n.hot.propToCol(t)});this.clearCache(t)}},{key:"onBeforeColumnResize",value:function(e,t,n){var o=t;return n&&(this.calculateColumnsWidth(e,void 0,!0),o=this.getColumnWidth(e,void 0,!1)),o}},{key:"onAfterInit",value:function(){S.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,c.default)((0,l.default)(s.prototype),"destroy",this).call(this)}}]),s}(s.default);(0,y.registerPlugin)("autoColumnSize",k);var T=k;t.default=T},function(e,t,n){"use strict";var o=n(0);n(19),n(31),n(12),n(38),n(32),t.__esModule=!0,t.default=void 0;var i=o(n(37)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(26)),u=o(n(5)),c=o(n(14)),h=o(n(8)),d=o(n(22)),f=o(n(43)),v=n(6),g=n(3),p=n(17),m=o(n(24)),y=n(20),w=n(25),C=n(371);f.default.getSingleton().register("modifyAutofillRange"),f.default.getSingleton().register("beforeAutofill");var E=function(e){function o(e){var t;return(0,r.default)(this,o),(t=(0,s.default)(this,(0,u.default)(o).call(this,e))).eventManager=new m.default((0,l.default)(t)),t.addingStarted=!1,t.mouseDownOnCellCorner=!1,t.mouseDragOutside=!1,t.handleDraggedCells=0,t.directions=[],t.autoInsertRow=!1,t}return(0,h.default)(o,e),(0,a.default)(o,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(e){return n.onAfterCellCornerMouseDown(e)}),this.addHook("afterOnCellCornerDblClick",function(e){return n.onCellCornerDblClick(e)}),this.addHook("beforeOnCellMouseOver",function(e,t){return n.onBeforeCellMouseOver(t)}),(0,c.default)((0,u.default)(o.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,c.default)((0,u.default)(o.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),(0,c.default)((0,u.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"getCopyableRanges",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,i=t.col,r=n.row,a=n.col,s=[];return s.push({startRow:o,startCol:i,endRow:r,endCol:a}),s=this.hot.runHooks("modifyCopyableRange",s)}},{key:"getSelectionData",value:function(){var o=this,e=this.getCopyableRanges(),t=[],i=[],r=[];return(0,g.arrayEach)(e,function(e){(0,p.rangeEach)(e.startRow,e.endRow,function(e){-1===t.indexOf(e)&&t.push(e)}),(0,p.rangeEach)(e.startCol,e.endCol,function(e){-1===i.indexOf(e)&&i.push(e)})}),(0,g.arrayEach)(t,function(t){var n=[];(0,g.arrayEach)(i,function(e){n.push(o.hot.getCopyableData(t,e))}),r.push(n)}),r}},{key:"fillIn",value:function(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;var e=this.hot.selection.highlight.getFill().getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells();e=this.hot.runHooks("modifyAutofillRange",e,t);var n=(0,C.getDragDirectionAndRange)(t,e),o=n.directionOfDrag,i=n.startOfDragCoords,r=n.endOfDragCoords;if(i&&-1<i.row&&-1<i.col){var a=this.getSelectionData();this.hot.runHooks("beforeAutofill",i,r,a);var s=(0,C.getDeltas)(i,r,a,o),l=a;if(-1<["up","left"].indexOf(o)){l=[];var u=null,c=null;if("up"===o){c=(u=r.row-i.row+1)%a.length;for(var h=0;h<u;h++)l.push(a[(h+(a.length-c))%a.length])}else{c=(u=r.col-i.col+1)%a[0].length;for(var d=0;d<a.length;d++){l.push([]);for(var f=0;f<u;f++)l[d].push(a[d][(f+(a[d].length-c))%a[d].length])}}}this.hot.populateFromArray(i.row,i.col,l,r.row,r.col,"".concat(this.pluginName,".fill"),null,o,s),this.setSelection(e)}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t,n=this.hot.getSelectedRangeLast().getTopLeftCorner(),o=this.hot.getSelectedRangeLast().getBottomRightCorner();if(this.directions.includes(C.DIRECTIONS.vertical)&&(o.row<e.row||n.row>e.row))t=new w.CellCoords(e.row,o.col);else{if(!this.directions.includes(C.DIRECTIONS.horizontal))return;t=new w.CellCoords(o.row,e.col)}return this.reduceSelectionAreaIfNeeded(t)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.selection.highlight.getFill().cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.selection.highlight.createOrGetArea().getCorners():this.hot.selection.highlight.getCell().getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),o=this.hot.countRows(),i=e[2]+1;i<o;i++){for(var r=e[1];r<=e[3];r++){if(n[i][r])return-1}var a=n[i][e[1]-1],s=n[i][e[3]+1];(a||s)&&(t=i)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(new w.CellCoords(e[0],e[1])).add(new w.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,(0,i.default)(e).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=this.hot.rootDocument.documentElement,n=(0,v.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,v.outerHeight)(this.hot.table),o=(0,v.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,v.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=o}},{key:"registerEvents",value:function(){var t=this,e=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(e,"mouseup",function(){return t.onMouseUp()}),this.eventManager.addEventListener(e,"mousemove",function(e){return t.onMouseMove(e)})}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(1<this.handleDraggedCells&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&0<this.handleDraggedCells&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=(0,C.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){(0,c.default)((0,u.default)(o.prototype),"destroy",this).call(this)}}]),o}(d.default);(0,y.registerPlugin)("autofill",E);var S=E;t.default=S},function(e,t,n){"use strict";n(12),n(61),t.__esModule=!0,t.getDeltas=function(e,t,n,o){var i=n.length,r=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(o)){for(var u=[],c=0;c<l;c++){var h=parseInt(n[0][c],10),d=parseInt(n[i-1][c],10),f=("down"===o?d-h:h-d)/(i-1)||0;u.push(f)}a.push(u)}if(-1!==["right","left"].indexOf(o))for(var v=0;v<s;v++){var g=parseInt(n[v][0],10),p=parseInt(n[v][r-1],10),m=("right"===o?p-g:g-p)/(r-1)||0;a.push([m])}return a},t.getDragDirectionAndRange=function(e,t){var n,o,i;t[0]===e[0]&&t[1]<e[1]?(i="left",n=new r.CellCoords(t[0],t[1]),o=new r.CellCoords(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",n=new r.CellCoords(t[0],e[3]+1),o=new r.CellCoords(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",n=new r.CellCoords(t[0],t[1]),o=new r.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=new r.CellCoords(e[2]+1,t[1]),o=new r.CellCoords(t[2],t[3]));return{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:o}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(a),t.autoInsertRow=!0):(0,o.isObject)(e)?((0,i.isDefined)(e.autoInsertRow)?e.direction===a.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,i.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(a)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t},t.DIRECTIONS=void 0;var o=n(4),i=n(28),r=n(25),a={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=a},function(e,t,n){"use strict";var o=n(0);n(32),t.__esModule=!0,t.default=void 0;var c=o(n(18)),i=o(n(1)),r=o(n(7)),a=o(n(5)),l=o(n(14)),u=o(n(2)),h=o(n(8)),s=o(n(22)),d=n(3),f=n(74),v=n(6),g=o(n(169)),p=n(4),m=n(17),y=n(20),w=o(n(245)),C=n(72),E=function(e){function s(e){var o;return(0,i.default)(this,s),(o=(0,r.default)(this,(0,a.default)(s).call(this,e))).heights=[],o.ghostTable=new g.default(o.hot),o.samplesGenerator=new w.default(function(e,t){var n;return 0<=e?n=o.hot.getDataAtCell(e,t):-1===e&&(n=o.hot.getColHeader(t)),{value:n}}),o.firstCalculation=!0,o.inProgress=!1,o.addHook("beforeRowResize",function(e,t,n){return o.onBeforeRowResize(e,t,n)}),o}return(0,h.default)(s,e),(0,u.default)(s,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),(0,u.default)(s,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,p.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return n.onAfterLoadData()}),this.addHook("beforeChange",function(e){return n.onBeforeChange(e)}),this.addHook("beforeColumnMove",function(){return n.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return n.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return n.clearCache()}),this.addHook("beforeRender",function(e){return n.onBeforeRender(e)}),this.addHook("beforeRowMove",function(e,t){return n.onBeforeRowMove(e,t)}),this.addHook("modifyRowHeight",function(e,t){return n.getRowHeight(t,e)}),this.addHook("modifyColumnHeaderHeight",function(){return n.getColumnHeaderHeight()}),(0,l.default)((0,a.default)(s.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){(0,l.default)((0,a.default)(s.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(e,t,n){var i=this,o=0<arguments.length&&void 0!==e?e:{from:0,to:this.hot.countRows()-1},r=1<arguments.length&&void 0!==t?t:{from:0,to:this.hot.countCols()-1},a=2<arguments.length&&void 0!==n&&n,s="number"==typeof o?{from:o,to:o}:o,l="number"==typeof r?{from:r,to:r}:r;if(null!==this.hot.getColHeader(0)){var u=this.samplesGenerator.generateRowSamples(-1,l);this.ghostTable.addColumnHeadersRow(u.get(-1))}(0,m.rangeEach)(s.from,s.to,function(e){if(a||void 0===i.heights[e]){var t=i.samplesGenerator.generateRowSamples(e,l);(0,d.arrayEach)(t,function(e){var t=(0,c.default)(e,2),n=t[0],o=t[1];return i.ghostTable.addRow(n,o)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,t){i.heights[e]=t}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:{from:0,to:this.hot.countCols()-1},o=0,i=this.hot.countRows()-1,r=null;this.inProgress=!0;var a=this.getSyncCalculationLimit();this.firstCalculation&&0<=a&&(this.calculateRowsHeight({from:0,to:a},n),this.firstCalculation=!1,o=a+1),o<i?function e(){if(!t.hot)return(0,f.cancelAnimationFrame)(r),void(t.inProgress=!1);t.calculateRowsHeight({from:o,to:Math.min(o+s.CALCULATION_STEP,i)},n),(o=o+s.CALCULATION_STEP+1)<i?r=(0,f.requestAnimationFrame)(e):((0,f.cancelAnimationFrame)(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize(!0),t.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&t.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,p.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,p.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,v.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=s.SYNC_CALCULATION_LIMIT,t=this.hot.countRows()-1;return(0,p.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,C.isPercentValue)(e)?e=(0,m.valueAccordingPercent)(t,e):e>>=0),Math.min(e,t)}},{key:"getRowHeight",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:void 0,o=n;return void 0!==this.heights[e]&&this.heights[e]>(n||0)&&(o=this.heights[e]),o}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,o=n.from,i=n.to;(0,m.rangeEach)(Math.min(o,i),Math.max(o,i),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,d.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),o=this.getLastVisibleRow();if(null!==n&&null!==o){if(this.calculateRowsHeight({from:n,to:o},void 0,e),t){var i=this.hot.countRows()-1;this.calculateRowsHeight({from:i-t,to:i})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var o=t;return n&&(this.calculateRowsHeight(e,void 0,!0),o=this.getRowHeight(e)),o}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:1<e.length&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,l.default)((0,a.default)(s.prototype),"destroy",this).call(this)}}]),s}(s.default);(0,y.registerPlugin)("autoRowSize",E);var S=E;t.default=S},function(e,t,n){"use strict";var d=n(45),o=n(27),f=n(102),v=n(148),g=n(117),p=n(60),m=n(118),i=Object.assign;e.exports=!i||o(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=i({},e)[n]||f(i({},t)).join("")!=o})?function(e,t){for(var n=p(e),o=arguments.length,i=1,r=v.f,a=g.f;i<o;)for(var s,l=m(arguments[i++]),u=r?f(l).concat(r(l)):f(l),c=u.length,h=0;h<c;)s=u[h++],d&&!a.call(l,s)||(n[s]=l[s]);return n}:i},function(e,t,n){var a=n(375);e.exports=function(e,t){if(null==e)return{};var n,o,i=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||(i[n]=e[n]);return i}},function(e,t,n){"use strict";var o=n(0);n(136),n(31),n(12),n(38),t.__esModule=!0,t.ColumnStatesManager=void 0;var i=o(n(1)),r=o(n(2)),a=n(4),s=n(3),l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],u=function(){function e(){(0,i.default)(this,e),this.sortedColumnsStates=[],this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0}return(0,r.default)(e,[{key:"updateAllColumnsProperties",value:function(e){var n=this;(0,a.isObject)(e)&&(0,a.objectEach)(e,function(e,t){l.includes(t)&&(n[t]=e)})}},{key:"getAllColumnsProperties",value:function(){var e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}},{key:"getFirstSortedColumn",value:function(){var e;return 0<this.getNumberOfSortedColumns()&&(e=this.sortedColumnsStates[0].column),e}},{key:"getSortOrderOfColumn",value:function(n){var e,t=this.sortedColumnsStates.find(function(e){var t=e.column;return n===t});return(0,a.isObject)(t)&&(e=t.sortOrder),e}},{key:"getSortedColumns",value:function(){return(0,s.arrayMap)(this.sortedColumnsStates,function(e){return e.column})}},{key:"getIndexOfColumnInSortQueue",value:function(e){return this.getSortedColumns().indexOf(e)}},{key:"getNumberOfSortedColumns",value:function(){return this.sortedColumnsStates.length}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return this.getSortedColumns().includes(e)}},{key:"getSortStates",value:function(){return(0,a.deepClone)(this.sortedColumnsStates)}},{key:"getColumnSortState",value:function(e){if(this.isColumnSorted(e))return(0,a.deepClone)(this.sortedColumnsStates[this.getIndexOfColumnInSortQueue(e)])}},{key:"setSortStates",value:function(e){this.sortedColumnsStates=e}},{key:"destroy",value:function(){this.sortedColumnsStates.length=0,this.sortedColumnsStates=null}}]),e}();t.ColumnStatesManager=u},function(e,t,n){"use strict";n(19),n(57),n(15),n(67),n(10),n(13),n(16),t.__esModule=!0,t.getClassesToAdd=function(e,t,n,o){var i=[s];o&&i.push(l);if(!1===n)i.push(a);else if(e.isColumnSorted(t)){var r=e.getSortOrderOfColumn(t);i.push(u.get(r))}return i},t.getClassedToRemove=function(){return Array.from(u.values()).concat(l,a,s)};var o=n(171),a="indicatorDisabled",s="columnSorting",l="sortAction",u=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(4),l=n(17),u=function(){function e(){(0,i.default)(this,e)}return(0,r.default)(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;(this._arrayMap.length=0,l.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}}]),e}();(0,s.mixin)(u,a.default);var c=u;t.default=c},function(e,t,n){"use strict";var o=n(0);n(40),t.__esModule=!0,t.rootComparator=function(c,h){return function(e,t){var n,o,i,r,a,s,l=(0,d.default)(e).slice(1),u=(0,d.default)(t).slice(1);return o=c[n=0],i=h[n],r=l[n],a=u[n],((s=i.columnSorting).compareFunctionFactory?s.compareFunctionFactory:(0,f.getCompareFunctionFactory)(i.type))(o,i,s)(r,a)}};var d=o(n(248)),f=n(90)},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(o,e,i){return function(e,t){var n=i.sortEmptyCells;return"string"==typeof e&&(e=e.toLowerCase()),"string"==typeof t&&(t=t.toLowerCase()),e===t?a.DO_NOT_SWAP:(0,r.isEmpty)(e)?(0,r.isEmpty)(t)?a.DO_NOT_SWAP:n&&"asc"===o?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:(0,r.isEmpty)(t)?n&&"asc"===o?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:isNaN(e)&&!isNaN(t)?"asc"===o?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:!isNaN(e)&&isNaN(t)?"asc"===o?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:(isNaN(e)||isNaN(t)||(e=parseFloat(e),t=parseFloat(t)),e<t?"asc"===o?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:t<e?"asc"===o?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP)}},t.COLUMN_DATA_TYPE=void 0;var r=n(28),a=n(90);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(r,e,a){return function(e,t){var n=parseFloat(e),o=parseFloat(t),i=a.sortEmptyCells;if(n===o||isNaN(n)&&isNaN(o))return l.DO_NOT_SWAP;if(i){if((0,s.isEmpty)(e))return"asc"===r?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,s.isEmpty)(t))return"asc"===r?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND}return isNaN(n)?l.FIRST_AFTER_SECOND:isNaN(o)?l.FIRST_BEFORE_SECOND:n<o?"asc"===r?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:o<n?"asc"===r?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP}},t.COLUMN_DATA_TYPE=void 0;var s=n(28),l=n(90);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.compareFunctionFactory=function(a,s,l){return function(e,t){var n=l.sortEmptyCells;if(e===t)return h.DO_NOT_SWAP;if((0,c.isEmpty)(e))return(0,c.isEmpty)(t)?h.DO_NOT_SWAP:n&&"asc"===a?h.FIRST_BEFORE_SECOND:h.FIRST_AFTER_SECOND;if((0,c.isEmpty)(t))return n&&"asc"===a?h.FIRST_AFTER_SECOND:h.FIRST_BEFORE_SECOND;var o=s.dateFormat,i=(0,u.default)(e,o),r=(0,u.default)(t,o);return i.isValid()?r.isValid()?r.isAfter(i)?"asc"===a?h.FIRST_BEFORE_SECOND:h.FIRST_AFTER_SECOND:r.isBefore(i)?"asc"===a?h.FIRST_AFTER_SECOND:h.FIRST_BEFORE_SECOND:h.DO_NOT_SWAP:h.FIRST_BEFORE_SECOND:h.FIRST_AFTER_SECOND}},t.COLUMN_DATA_TYPE=void 0;var u=o(n(70)),c=n(28),h=n(90);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";var o=n(0);n(65),t.__esModule=!0,t.sort=function(e,t){for(var n=(0,s.getRootComparator)(t),o=arguments.length,i=new Array(2<o?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];(0,a.default)(e,n.apply(void 0,i))},t.FIRST_AFTER_SECOND=t.FIRST_BEFORE_SECOND=t.DO_NOT_SWAP=void 0;var a=o(n(384)),s=n(249);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";var o=n(0);n(10),n(36),t.__esModule=!0,t.default=function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a;var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:t.length;if(Math.abs(i-o)<=1)return[];var r=Math.ceil((o+i)/2);e(t,n,o,r);e(t,n,r,i);return s(t,n,o,r,i)};var f=o(n(385)),a=function(e,t){var n=e.toString(),o=t.toString();return n===o?0:n<o?-1:1};function s(e,t,n,o,i){for(var r=new f.default,a=new f.default,s=o-n,l=i-o,u=Math.max(s,l),c=i-n,h=0;h<u;h+=1)h<s&&r.push(e[n+h]),h<l&&a.push(e[o+h]);for(var d=0;d<c;)r.first&&a.first?0<t(r.first.data,a.first.data)?e[n+d]=a.shift().data:e[n+d]=r.shift().data:r.first?e[n+d]=r.shift().data:e[n+d]=a.shift().data,d+=1;return e}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=t.NodeStructure=void 0;function i(e){(0,a.default)(this,i),this.data=e,this.next=null,this.prev=null}var r=o(n(2)),a=o(n(1));t.NodeStructure=i;var s=function(){function e(){(0,a.default)(this,e),this.first=null,this.last=null}return(0,r.default)(e,[{key:"push",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;((this.last=t).prev=n).next=t}}},{key:"unshift",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;((this.first=t).next=n).prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t,n,o=this.first;o;){if(o.data===e)return t=o.next,n=o.prev,t&&(t.prev=n),n&&(n.next=t),o===this.first&&(this.first=t),o===this.last&&(this.last=n),!0;o=o.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if((e=e.next)===(t=t.next))return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){if(this.first){!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;var e=this.first;this.first=this.last,this.last=e}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e,t=this.first.next,n=this.first;t;)e=t.next,n=(t.next=n).prev=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}}}]),e}();t.default=s},function(e,t,n){"use strict";var o=n(9),i=n(0);n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var a=i(n(68)),r=i(n(1)),s=i(n(2)),l=i(n(7)),u=i(n(26)),c=i(n(5)),h=i(n(14)),d=i(n(8)),y=n(6),f=n(4),v=i(n(24)),g=n(25),p=n(20),m=i(n(22)),w=i(n(387)),C=n(62),E=i(n(388)),S=o(n(11));n(389);var k=new WeakMap,T="comment",R="value",_="readOnly",b=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,l.default)(this,(0,c.default)(n).call(this,e))).editor=null,t.displaySwitch=null,t.eventManager=null,t.range={},t.mouseDown=!1,t.contextMenuEvent=!1,t.timer=null,k.set((0,u.default)(t),{tempEditorDimensions:{},cellBelowCursor:null}),t}return(0,d.default)(n,e),(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var a=this;this.enabled||(this.editor||(this.editor=new w.default(this.hot.rootDocument)),this.eventManager||(this.eventManager=new v.default(this)),this.displaySwitch||(this.displaySwitch=new E.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",function(e){return a.addToContextMenu(e)}),this.addHook("afterRenderer",function(e,t,n,o,i,r){return a.onAfterRenderer(e,r)}),this.addHook("afterScrollHorizontally",function(){return a.hide()}),this.addHook("afterScrollVertically",function(){return a.hide()}),this.addHook("afterBeginEditing",function(){return a.onAfterBeginEditing()}),this.displaySwitch.addLocalHook("hide",function(){return a.hide()}),this.displaySwitch.addLocalHook("show",function(e,t){return a.showAtCell(e,t)}),this.registerListeners(),(0,h.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,h.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,h.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var t=this,e=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseover",function(e){return t.onMouseOver(e)}),this.eventManager.addEventListener(e,"mousedown",function(e){return t.onMouseDown(e)}),this.eventManager.addEventListener(e,"mouseup",function(){return t.onMouseUp()}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(){return t.onEditorBlur()}),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(e){return t.onEditorMouseDown(e)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(e){return t.onEditorMouseUp(e)})}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,y.closest)(e.target,"TD","TBODY");return!!(t&&(0,y.hasClass)(t,"htCommentCell")&&(0,y.closest)(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!=e?n=e:null!=t&&(n=t);var o=this.range.from.row,i=this.range.from.col;this.updateCommentMeta(o,i,(0,a.default)({},R,n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new g.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,T,void 0),t&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t,n){var o=!(2<arguments.length&&void 0!==n)||n;this.setRange({from:new g.CellCoords(e,t)}),this.removeComment(o)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,R)}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,R)}},{key:"show",value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e[T]?e[T][R]:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new g.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(e){if(0<arguments.length&&void 0!==e&&e||this.range.from&&this.editor.isVisible()){var t=this.hot.rootWindow,n=this.hot.view.wt,o=n.wtTable,i=n.wtOverlays,r=n.wtViewport,a=i.scrollableElement,s=o.getCell(this.range.from),l=this.range.from.row,u=this.range.from.col,c=(0,y.offset)(s),h=o.getStretchedColumnWidth(u),d=c.top<0?0:c.top,f=c.left;r.hasVerticalScroll()&&a!==t&&(d-=i.topOverlay.getScrollPosition()),r.hasHorizontalScroll()&&a!==t&&(f-=i.leftOverlay.getScrollPosition());var v=f+h,g=d,p=this.getCommentMeta(l,u,"style"),m=this.getCommentMeta(l,u,_);p?this.editor.setSize(p.width,p.height):this.editor.resetSize(),this.editor.setReadOnlyState(m),this.editor.setPosition(v,g)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,R)&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var o,i=this.hot.getCellMeta(e,t)[T];i?(o=(0,f.deepClone)(i),(0,f.deepExtend)(o,n)):o=n,this.hot.setCellMeta(e,t,T,o)}},{key:"getCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o[T])return o[T][n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,y.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),t&&(!this.range.from||!n||this.range.from.row===n.row&&this.range.from.col===n.col)||this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=k.get(this),n=this.hot.rootDocument;if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,y.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var o=this.hot.view.wt.wtTable.getCoords(e.target),i={from:new g.CellCoords(o.row,o.col)};this.displaySwitch.show(i)}else(0,y.isChildOf)(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t[T]&&t[T][R]&&(0,y.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){k.get(this).tempEditorDimensions={width:(0,y.outerWidth)(e.target),height:(0,y.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=k.get(this),n=(0,y.outerWidth)(e.target),o=(0,y.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&o===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,a.default)({},"style",{width:n,height:o}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++)this.removeCommentAtCell(o,i,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++){var r=!!this.getCommentMeta(o,i,_);this.updateCommentMeta(o,i,(0,a.default)({},_,!r))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(S.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(S.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelectedLast()&&!this.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(S.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return t.hot.selection.isSelectedByCorner()}},{key:"commentsReadOnly",name:function(){var o=this,e=this.getTranslatedPhrase(S.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,C.checkSelectionConsistency)(this.getSelectedRangeLast(),function(e,t){var n=o.getCellMeta(e,t)[T];if(n=n&&n[_])return!0})&&(e=(0,C.markLabelAsSelected)(e)),e},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return t.hot.selection.isSelectedByCorner()||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,f.isObject)(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),(0,h.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}]),n}(m.default);(0,p.registerPlugin)("comments",b);var O=b;t.default=O},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(6),s=function(){function n(e){(0,i.default)(this,n),this.container=null,this.rootDocument=e,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return(0,r.default)(n,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),(0,r.default)(n,[{key:"setPosition",value:function(e,t){this.editorStyle.left="".concat(e,"px"),this.editorStyle.top="".concat(t,"px")}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px")}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(e){var t=(0<arguments.length&&void 0!==e?e:"")||"";this.getInputElement().value=t}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return this.rootDocument.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var e=this.rootDocument.createElement("div"),t=this.rootDocument.createElement("textarea");return this.container=this.rootDocument.querySelector(".".concat(n.CLASS_EDITOR_CONTAINER)),this.container||(this.container=this.rootDocument.createElement("div"),(0,a.addClass)(this.container,n.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container)),(0,a.addClass)(e,n.CLASS_EDITOR),(0,a.addClass)(t,n.CLASS_INPUT),e.appendChild(t),this.container.appendChild(e),e}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(n.CLASS_INPUT))}},{key:"destroy",value:function(){var e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}]),n}();t.default=s},function(e,t,n){"use strict";var o=n(0);n(32),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(75),s=n(4),l=o(n(59)),u=function(){function t(e){(0,i.default)(this,t),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(e)}return(0,r.default)(t,[{key:"hide",value:function(){var e=this;this.wasLastActionShow=!1,this.hidingTimer=setTimeout(function(){!1===e.wasLastActionShow&&e.runLocalHooks("hide")},250)}},{key:"show",value:function(e){this.wasLastActionShow=!0,this.showDebounced(e)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}},{key:"updateDelay",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:250;this.showDebounced=(0,a.debounce)(function(e){t.wasLastActionShow&&t.runLocalHooks("show",e.from.row,e.from.col)},n)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),t}();(0,s.mixin)(u,l.default);var c=u;t.default=c},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(19),t.__esModule=!0,t.default=void 0;var i=o(n(1)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(2)),h=o(n(8)),r=o(n(22)),d=o(n(43)),f=n(3),v=o(n(250)),g=o(n(24)),p=o(n(251)),m=o(n(173)),y=n(20),w=n(33),C=n(6),E=n(82);n(404),d.default.getSingleton().register("afterContextMenuDefaultOptions"),d.default.getSingleton().register("beforeContextMenuShow"),d.default.getSingleton().register("afterContextMenuShow"),d.default.getSingleton().register("afterContextMenuHide"),d.default.getSingleton().register("afterContextMenuExecute");var S=function(e){function r(e){var t;return(0,i.default)(this,r),(t=(0,a.default)(this,(0,l.default)(r).call(this,e))).eventManager=new g.default((0,s.default)(t)),t.commandExecutor=new v.default(t.hot),t.itemsFactory=null,t.menu=null,t}return(0,h.default)(r,e),(0,c.default)(r,null,[{key:"DEFAULT_ITEMS",get:function(){return[E.ROW_ABOVE,E.ROW_BELOW,E.SEPARATOR,E.COLUMN_LEFT,E.COLUMN_RIGHT,E.SEPARATOR,E.REMOVE_ROW,E.REMOVE_COLUMN,E.SEPARATOR,E.UNDO,E.REDO,E.SEPARATOR,E.READ_ONLY,E.SEPARATOR,E.ALIGNMENT]}}]),(0,c.default)(r,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var i=this;if(!this.enabled){var e=this.hot.getSettings().contextMenu;"function"==typeof e.callback&&this.commandExecutor.setCommonCallback(e.callback),this.menu=new m.default(this.hot,{className:"htContextMenu",keepInViewport:!0}),this.menu.addLocalHook("beforeOpen",function(){return i.onMenuBeforeOpen()}),this.menu.addLocalHook("afterOpen",function(){return i.onMenuAfterOpen()}),this.menu.addLocalHook("afterClose",function(){return i.onMenuAfterClose()}),this.menu.addLocalHook("executeCommand",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.executeCommand).call.apply(e,[i].concat(n))}),this.addHook("afterOnCellContextMenu",function(e){return i.onAfterOnCellContextMenu(e)}),(0,u.default)((0,l.default)(r.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,l.default)(r.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),(0,u.default)((0,l.default)(r.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){this.menu&&(this.prepareMenuItems(),this.menu.open(),this.menu.isOpened()&&(this.menu.setPosition({top:parseInt((0,w.pageY)(e),10)-(0,C.getWindowScrollTop)(this.hot.rootWindow),left:parseInt((0,w.pageX)(e),10)-(0,C.getWindowScrollLeft)(this.hot.rootWindow)}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv))}},{key:"close",value:function(){this.menu&&(this.menu.close(),this.itemsFactory=null)}},{key:"executeCommand",value:function(e){var t;null===this.itemsFactory&&this.prepareMenuItems();for(var n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=this.commandExecutor).execute.apply(t,[e].concat(o))}},{key:"prepareMenuItems",value:function(){var t=this;this.itemsFactory=new p.default(this.hot,r.DEFAULT_ITEMS);var e=this.hot.getSettings().contextMenu,n={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",n),this.itemsFactory.setPredefinedItems(n.items);var o=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,f.arrayEach)(o,function(e){return t.commandExecutor.registerCommand(e.key,e)})}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders;var i,r=e.realTarget;this.close(),(0,C.hasClass)(r,"handsontableInput")||(e.preventDefault(),(0,w.stopPropagation)(e),(n||o||"TD"===(i=r).nodeName||"TD"===i.parentNode.nodeName||(0,C.hasClass)(r,"current")&&(0,C.hasClass)(r,"wtBorder"))&&this.open(e))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,u.default)((0,l.default)(r.prototype),"destroy",this).call(this)}}]),r}(r.default);S.SEPARATOR={name:E.SEPARATOR},(0,y.registerPlugin)("contextMenu",S);var k=S;t.default=k},function(e,t,n){"use strict";var o=n(9);n(12),t.__esModule=!0,t.default=function(){return{key:s,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(s,":left"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htLeft"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className}),n="horizontal";this.runHooks("beforeCellAlignment",t,e,n,"htLeft"),(0,r.align)(e,n,"htLeft",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{key:"".concat(s,":center"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htCenter"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className}),n="horizontal";this.runHooks("beforeCellAlignment",t,e,n,"htCenter"),(0,r.align)(e,n,"htCenter",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{key:"".concat(s,":right"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htRight"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className}),n="horizontal";this.runHooks("beforeCellAlignment",t,e,n,"htRight"),(0,r.align)(e,n,"htRight",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{key:"".concat(s,":justify"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htJustify"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className}),n="horizontal";this.runHooks("beforeCellAlignment",t,e,n,"htJustify"),(0,r.align)(e,n,"htJustify",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{name:i.KEY},{key:"".concat(s,":top"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htTop"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className});this.runHooks("beforeCellAlignment",t,e,"vertical","htTop"),(0,r.align)(e,"vertical","htTop",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{key:"".concat(s,":middle"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htMiddle"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className});this.runHooks("beforeCellAlignment",t,e,"vertical","htMiddle"),(0,r.align)(e,"vertical","htMiddle",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1},{key:"".concat(s,":bottom"),name:function(){var o=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){var n=o.getCellMeta(e,t).className;if(n&&-1!==n.indexOf("htBottom"))return!0})&&(e=(0,r.markLabelAsSelected)(e)),e},callback:function(){var i=this,e=this.getSelectedRange(),t=(0,r.getAlignmentClasses)(e,function(e,t){return i.getCellMeta(e,t).className});this.runHooks("beforeCellAlignment",t,e,"vertical","htBottom"),(0,r.align)(e,"vertical","htBottom",function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),this.render()},disabled:!1}]}}},t.KEY=void 0;var r=n(62),i=n(172),a=o(n(11)),s="alignment";t.KEY=s},function(e,t,n){"use strict";var o=n(9),i=n(0);n(53),t.__esModule=!0,t.default=function(){return{key:l,name:function(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,a.getValidSelection)(this);if(!e)return!0;var t=(0,r.default)(e[0],3),n=t[0],o=t[1],i=[n,0,t[2],this.countCols()-1].join(",")===e.join(",");return o<0||this.countCols()>=this.getSettings().maxCols||i}}},t.KEY=void 0;var r=i(n(18)),a=n(62),s=o(n(11)),l="clear_column";t.KEY=l},function(e,t,n){"use strict";var o=n(9),i=n(0);n(53),t.__esModule=!0,t.default=function(){return{key:l,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,s.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=(0,a.default)(e[0],3),n=t[0],o=t[1],i=[n,0,t[2],this.countCols()-1].join(",")===e.join(","),r=1===this.countCols();return o<0||this.countCols()>=this.getSettings().maxCols||!r&&i},hidden:function(){return!this.getSettings().allowInsertColumn}}},t.KEY=void 0;var a=i(n(18)),s=n(62),r=o(n(11)),l="col_left";t.KEY=l},function(e,t,n){"use strict";var o=n(9),i=n(0);n(53),t.__esModule=!0,t.default=function(){return{key:l,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,s.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=(0,a.default)(e[0],3),n=t[0],o=t[1],i=[n,0,t[2],this.countCols()-1].join(",")===e.join(","),r=1===this.countCols();return o<0||this.countCols()>=this.getSettings().maxCols||!r&&i},hidden:function(){return!this.getSettings().allowInsertColumn}}},t.KEY=void 0;var a=i(n(18)),s=n(62),r=o(n(11)),l="col_right";t.KEY=l},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(){return{key:s,name:function(){var n=this,e=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(e,t){return n.getCellMeta(e,t).readOnly})&&(e=(0,i.markLabelAsSelected)(e)),e},callback:function(){var n=this,e=this.getSelectedRange(),o=(0,i.checkSelectionConsistency)(e,function(e,t){return n.getCellMeta(e,t).readOnly});(0,r.arrayEach)(e,function(e){e.forAll(function(e,t){n.setCellMeta(e,t,"readOnly",!o)})}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())}}},t.KEY=void 0;var i=n(62),r=n(3),a=o(n(11)),s="make_read_only";t.KEY=s},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(){return{key:r,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}},t.KEY=void 0;var i=o(n(11)),r="redo";t.KEY=r},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(){return{key:u,name:function(){var e=this.getSelected(),t=0;if(e)if(1<e.length)t=1;else{var n=(0,r.default)(e[0],4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback:function(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){var e=(0,a.getValidSelection)(this),t=this.countCols();return!e||(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner()||!this.isColumnModificationAllowed()||!t)},hidden:function(){return!this.getSettings().allowRemoveColumn}}},t.KEY=void 0;var r=i(n(18)),a=n(62),s=n(141),l=o(n(11)),u="remove_col";t.KEY=u},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(){return{key:u,name:function(){var e=this.getSelected(),t=0;if(e)if(1<e.length)t=1;else{var n=(0,r.default)(e[0],3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback:function(){this.alter("remove_row",(0,s.transformSelectionToRowDistance)(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){var e=(0,a.getValidSelection)(this),t=this.countRows();return!e||(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner()||!t)},hidden:function(){return!this.getSettings().allowRemoveRow}}},t.KEY=void 0;var r=i(n(18)),a=n(62),s=n(141),l=o(n(11)),u="remove_row";t.KEY=u},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(){return{key:a,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,i.getValidSelection)(this)||(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}},t.KEY=void 0;var i=n(62),r=o(n(11)),a="row_above";t.KEY=a},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(){return{key:a,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,i.getValidSelection)(this)||(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}},t.KEY=void 0;var i=n(62),r=o(n(11)),a="row_below";t.KEY=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}},t.KEY=void 0;var o=n(11),i="no_items";t.KEY=i},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(){return{key:r,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}},t.KEY=void 0;var i=o(n(11)),r="undo";t.KEY=r},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var h=o(n(1)),i=o(n(2)),d=n(6),f=n(33),r=function(){function c(e,t){(0,h.default)(this,c);var n,o,i,r,a,s,l=(0,d.getWindowScrollTop)(t),u=(0,d.getWindowScrollLeft)(t);this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(n=parseInt(e.top,10),i=parseInt(e.left,10),a=e.height||0,s=e.width||0,o=n,r=i,n+=l,i+=u):"event"===this.type&&(n=parseInt((0,f.pageY)(e),10),i=parseInt((0,f.pageX)(e),10),a=e.target.clientHeight,s=e.target.clientWidth,o=n-l,r=i-u),this.top=n,this.topRelative=o,this.left=i,this.leftRelative=r,this.scrollTop=l,this.scrollLeft=u,this.cellHeight=a,this.cellWidth=s}return(0,i.default)(c,[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=n}},{key:"fitsOnRight",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=n}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),c}();t.default=r},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(53),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var u=o(n(18)),i=o(n(44)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(26)),c=o(n(5)),h=o(n(14)),d=o(n(8)),f=o(n(22)),v=o(n(43)),g=o(n(231)),p=n(3),m=n(17),y=n(6),w=n(20),C=o(n(406)),E=o(n(407)),S=o(n(408)),k=n(410),T=n(168);n(412),v.default.getSingleton().register("afterCopyLimit"),v.default.getSingleton().register("modifyCopyableRange"),v.default.getSingleton().register("beforeCut"),v.default.getSingleton().register("afterCut"),v.default.getSingleton().register("beforePaste"),v.default.getSingleton().register("afterPaste"),v.default.getSingleton().register("beforeCopy"),v.default.getSingleton().register("afterCopy");var R=new WeakMap,_=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join(""),b=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,c.default)(n).call(this,e))).columnsLimit=1e3,t.copyableRanges=[],t.pasteMode="overwrite",t.rowsLimit=1e3,R.set((0,l.default)(t),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),t}return(0,d.default)(n,e),(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var t=this;if(!this.enabled){var e=this.hot.getSettings();R.get(this).isFragmentSelectionEnabled=e.fragmentSelection,"object"===(0,i.default)(e.copyPaste)&&(this.pasteMode=e.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=e.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=e.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",function(e){return t.onAfterContextMenuDefaultOptions(e)}),this.addHook("afterOnCellMouseUp",function(){return t.onAfterOnCellMouseUp()}),this.addHook("afterSelectionEnd",function(){return t.onAfterSelectionEnd()}),this.addHook("beforeKeyDown",function(){return t.onBeforeKeyDown()}),this.focusableElement=(0,k.createElement)(this.hot.rootDocument),this.focusableElement.addLocalHook("copy",function(e){return t.onCopy(e)}).addLocalHook("cut",function(e){return t.onCut(e)}).addLocalHook("paste",function(e){return t.onPaste(e)}),(0,h.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),(0,h.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,k.destroyElement)(this.focusableElement),(0,h.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){R.get(this).isTriggeredByCopy=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"cut",value:function(){R.get(this).isTriggeredByCut=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){var o=this,i=[],t=[],r=[];return(0,p.arrayEach)(e,function(e){(0,m.rangeEach)(e.startRow,e.endRow,function(e){-1===t.indexOf(e)&&t.push(e)}),(0,m.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,p.arrayEach)(t,function(t){var n=[];(0,p.arrayEach)(r,function(e){n.push(o.hot.getCopyableData(t,e))}),i.push(n)}),g.default.stringify(i)}},{key:"getRangedData",value:function(e){var o=this,i=[],t=[],r=[];return(0,p.arrayEach)(e,function(e){(0,m.rangeEach)(e.startRow,e.endRow,function(e){-1===t.indexOf(e)&&t.push(e)}),(0,m.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,p.arrayEach)(t,function(t){var n=[];(0,p.arrayEach)(r,function(e){n.push(o.hot.getCopyableData(t,e))}),i.push(n)}),i}},{key:"paste",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:"",o=1<arguments.length&&void 0!==t?t:n;if(n||o){var i=new S.default;n&&i.clipboardData.setData("text/plain",n),o&&i.clipboardData.setData("text/html",o),this.getOrCreateFocusableElement(),this.onPaste(i)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,i=t.col,r=n.row,a=n.col,s=Math.min(r,o+this.rowsLimit-1),l=Math.min(a,i+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:o,startCol:i,endRow:s,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),r===s&&a===l||this.hot.runHooks("afterCopyLimit",r-o+1,a-i+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var e=this.hot.getActiveEditor(),t=e?e.TEXTAREA:void 0;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e=this.hot.getActiveEditor();return e&&e.isOpened()}},{key:"populateValues",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:this.hot.getSelectedLast();if(e.length){for(var o=e.length-1,i=e[0].length-1,r=Math.min(n[0],n[2]),a=Math.max(n[0],n[2],o+r),s=Math.min(n[1],n[3]),l=Math.max(n[1],n[3],i+s),u=[],c=r,h=0;c<=a;c+=1){for(var d=[],f=s,v=0;f<=l;f+=1)d.push(e[h][v]),v=v===i?0:v+=1;u.push(d),h=h===o?0:h+=1}return this.hot.populateFromArray(r,s,u,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,s,a,l]}}},{key:"onCopy",value:function(e){var t=R.get(this);if((this.hot.isListening()||t.isTriggeredByCopy)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCopy=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",n,this.copyableRanges)){var o=g.default.stringify(n);if(e&&e.clipboardData){var i=(0,T._dataToHTML)(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",[_,i].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",o);this.hot.runHooks("afterCopy",n,this.copyableRanges)}e.preventDefault()}}},{key:"onCut",value:function(e){var t=R.get(this);if((this.hot.isListening()||t.isTriggeredByCut)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCut=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",n,this.copyableRanges)){var o=g.default.stringify(n);if(e&&e.clipboardData){var i=(0,T._dataToHTML)(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",[_,i].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",o);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",n,this.copyableRanges)}e.preventDefault()}}},{key:"onPaste",value:function(e){if(this.hot.isListening()&&!this.isEditorOpened()){var t;if(e&&e.preventDefault&&e.preventDefault(),e&&void 0!==e.clipboardData){var n=e.clipboardData.getData("text/html");if(n&&/(<table)|(<TABLE)/g.test(n))t=(0,T.htmlToGridSettings)(n,this.hot.rootDocument).data;else t=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(t=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof t&&(t=g.default.parse(t)),(!t||0!==t.length)&&!1!==this.hot.runHooks("beforePaste",t,this.copyableRanges)){var o=this.populateValues(t),i=(0,u.default)(o,4),r=i[0],a=i[1],s=i[2],l=i[3];this.hot.selectCell(r,a,Math.min(this.hot.countRows()-1,s),Math.min(this.hot.countCols()-1,l)),this.hot.runHooks("afterPaste",t,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,C.default)(this),(0,E.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){this.hot.isListening()&&!this.isEditorOpened()&&(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){var e=R.get(this).isFragmentSelectionEnabled;this.isEditorOpened()||(this.getOrCreateFocusableElement(),e&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&(0,y.getSelectionText)()||(this.setCopyableText(),this.focusableElement.focus()))}},{key:"onBeforeKeyDown",value:function(){if(this.hot.isListening()&&!this.isEditorOpened()){var e=this.hot.rootDocument.activeElement,t=this.hot.getActiveEditor();!t||e!==this.focusableElement.getFocusableElement()&&e!==t.select||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}}},{key:"destroy",value:function(){this.focusableElement&&((0,k.destroyElement)(this.focusableElement),this.focusableElement=null),(0,h.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}]),n}(f.default);(0,w.registerPlugin)("CopyPaste",b);var O=b;t.default=O},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copy()},disabled:function(){var e=this.getSelected();return!e||1<e.length},hidden:!1}};var i=o(n(11))},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){var e=this.getSelected();return!e||1<e.length},hidden:!1}};var i=o(n(11))},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(409));t.default=function e(){(0,i.default)(this,e),this.clipboardData=new r.default}},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function e(){(0,i.default)(this,e),this.data={}}return(0,r.default)(e,[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}]),e}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(411),n(16),t.__esModule=!0,t.createElement=function(e){var t=new h(e);return d+=1,t},t.deactivateElement=f,t.destroyElement=function(e){if(!(e instanceof h))return;0<d&&(d-=1);if(f(e),d<=0){d=0;var t=p.get(e.rootDocument);t&&t.parentNode&&(t.parentNode.removeChild(t),p.delete(e.rootDocument)),e.mainElement=null}};var i=o(n(1)),r=o(n(2)),a=o(n(24)),s=o(n(59)),l=n(4),u=n(73),c=n(6),h=function(){function t(e){(0,i.default)(this,t),this.rootDocument=e,this.mainElement=null,this.eventManager=new a.default(this),this.listenersCount=new WeakSet}return(0,r.default)(t,[{key:"useSecondaryElement",value:function(){var e=function(e){var t=p.get(e);if(t)return t.parentElement||this.rootDocument.body.appendChild(t),t;var n=e.createElement("textarea");return p.set(e,n),n.id="HandsontableCopyPaste",n.className="copyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",e.body.appendChild(n),n}(this.rootDocument);this.listenersCount.has(e)||(this.listenersCount.add(e),g(this.eventManager,e,this)),this.mainElement=e}},{key:"setFocusableElement",value:function(e){this.listenersCount.has(e)||(this.listenersCount.add(e),g(this.eventManager,e,this)),this.mainElement=e}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ",(0,u.isMobileBrowser)()||(0,c.selectElementIfAllowed)(this.mainElement)}}]),t}();(0,l.mixin)(h,s.default);var d=0;function f(e){e.eventManager.clear()}var v=function(t,n){return function(e){return n.runLocalHooks(t,e)}};function g(e,t,n){e.addEventListener(t,"copy",v("copy",n)),e.addEventListener(t,"cut",v("cut",n)),e.addEventListener(t,"paste",v("paste",n))}var p=new WeakMap},function(e,t,n){"use strict";n(127)("WeakSet",function(t){return function(e){return t(this,arguments.length?e:void 0)}},n(198),!1,!0)},function(e,t,n){},function(e,t,n){"use strict";var o=n(9),i=n(0);n(12),n(30),n(247),n(61),n(226),t.__esModule=!0,t.default=void 0;var f=i(n(18)),r=i(n(1)),a=i(n(2)),s=i(n(7)),l=i(n(5)),u=i(n(14)),c=i(n(8)),h=i(n(22)),d=n(20),v=n(4),g=n(17),p=n(3),m=n(25),y=o(n(11)),w=n(414),C=n(94),E=n(240),S=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,l.default)(n).call(this,e))).savedBorders=[],t}return(0,c.default)(n,e),(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var t=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(e){return t.onAfterContextMenuDefaultOptions(e)}),this.addHook("init",function(){return t.onAfterInit()}),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,u){var c=this,h=u?Object.keys(u):["top","right","bottom","left"],t=(0,E.detectSelectionType)(e),d=(0,E.normalizeSelectionFactory)(t);(0,p.arrayEach)(e,function(e){for(var t=d(e),n=(0,f.default)(t,4),o=n[0],i=n[1],r=n[2],a=n[3],s=function(n){for(var e=function(t){(0,p.arrayEach)(h,function(e){c.prepareBorderFromCustomAdded(n,t,u,e)})},t=i;t<=a;t+=1)e(t)},l=o;l<=r;l+=1)s(l)}),this.hot.view.render()}},{key:"getBorders",value:function(e){var u=this;if(!Array.isArray(e))return this.savedBorders;var t=(0,E.detectSelectionType)(e),c=(0,E.normalizeSelectionFactory)(t),h=[];return(0,p.arrayEach)(e,function(e){for(var t=c(e),n=(0,f.default)(t,4),o=n[0],i=n[1],r=n[2],a=n[3],s=function(n){for(var e=function(t){(0,p.arrayEach)(u.savedBorders,function(e){e.row===n&&e.col===t&&h.push(e)})},t=i;t<=a;t+=1)e(t)},l=o;l<=r;l+=1)s(l)}),h}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,p.arrayEach)(this.savedBorders,function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange(),t.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);var n={row:e.row,col:e.col},o=new m.CellRange(n,n,n);this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,cellRange:o})}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,o){var i=(0,C.createEmptyBorders)(e,t);n&&(i=(0,C.extendDefaultBorder)(i,n),(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(e){if(i.id===e.settings.id)return Object.assign(e.settings,n),i=e.settings,!1})),this.hot.setCellMeta(e,t,"borders",i),this.insertBorderIntoSettings(i,o)}},{key:"prepareBorderFromCustomAddedRange",value:function(i){var r=this,a=i.range;(0,g.rangeEach)(a.from.row,a.to.row,function(o){(0,g.rangeEach)(a.from.col,a.to.col,function(e){var t=(0,C.createEmptyBorders)(o,e),n=0;o===a.from.row&&(0,v.hasOwnProperty)(i,"top")&&(n+=1,t.top=i.top),o===a.to.row&&(0,v.hasOwnProperty)(i,"bottom")&&(n+=1,t.bottom=i.bottom),e===a.from.col&&(0,v.hasOwnProperty)(i,"left")&&(n+=1,t.left=i.left),e===a.to.col&&(0,v.hasOwnProperty)(i,"right")&&(n+=1,t.right=i.right),0<n&&(r.hot.setCellMeta(o,e,"borders",t),r.insertBorderIntoSettings(t))})})}},{key:"removeAllBorders",value:function(e,t){var n=(0,C.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,o){var i=this.hot.getCellMeta(e,t).borders;(i&&void 0!==i.border||(i=(0,C.createEmptyBorders)(e,t)),o)?(i[n]=(0,C.createSingleEmptyBorder)(),4===this.countHide(i)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(i,n,o)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",i))):(i[n]=(0,C.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(i,n,o)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",i))}},{key:"prepareBorder",value:function(e,t,i){var r=this;(0,p.arrayEach)(e,function(e){var n=e.start,o=e.end;if(n.row===o.row&&n.col===o.col)"noBorders"===t?r.removeAllBorders(n.row,n.col):r.setBorder(n.row,n.col,t,i);else switch(t){case"noBorders":(0,g.rangeEach)(n.col,o.col,function(t){(0,g.rangeEach)(n.row,o.row,function(e){r.removeAllBorders(e,t)})});break;case"top":(0,g.rangeEach)(n.col,o.col,function(e){r.setBorder(n.row,e,t,i)});break;case"right":(0,g.rangeEach)(n.row,o.row,function(e){r.setBorder(e,o.col,t,i)});break;case"bottom":(0,g.rangeEach)(n.col,o.col,function(e){r.setBorder(o.row,e,t,i)});break;case"left":(0,g.rangeEach)(n.row,o.row,function(e){r.setBorder(e,n.col,t,i)})}})}},{key:"createCustomBorders",value:function(e){var t=this;(0,p.arrayEach)(e,function(e){e.range?t.prepareBorderFromCustomAddedRange(e):t.prepareBorderFromCustomAdded(e.row,e.col,e)})}},{key:"countHide",value:function(e){var t=Object.values(e);return(0,p.arrayReduce)(t,function(e,t){var n=e;return t.hide&&(n+=1),n},0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,p.arrayMap)(this.hot.selection.highlight.customSelections,function(e){return e.settings.id}).indexOf(e);-1<t&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var n=this;(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(e,t){if(null===e.cellRange)return n.hot.selection.highlight.customSelections[t].destroy(),n.hot.selection.highlight.customSelections.splice(t,1),!1})}},{key:"hideBorders",value:function(){var t=this;(0,p.arrayEach)(this.savedBorders,function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange()})}},{key:"spliceBorder",value:function(e){var t=(0,p.arrayMap)(this.savedBorders,function(e){return e.id}).indexOf(e);-1<t&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(n){var o=this,i=!1;return 4===this.countHide(n)?(this.spliceBorder(n.id),i=!0):(0,p.arrayEach)(this.savedBorders,function(e,t){if(n.id===e.id)return o.savedBorders[t]=n,!(i=!0)}),i}},{key:"checkCustomSelectionsFromContextMenu",value:function(t,n,o){var i=!1;return(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(e){if(t.id===e.settings.id)return(0,v.objectEach)(e.instanceBorders,function(e){e.toggleHiddenClass(n,o)}),!(i=!0)}),i}},{key:"checkCustomSelections",value:function(t,n,o){var e=this.countHide(t),i=!1;return 4===e?(this.removeAllBorders(t.row,t.col),i=!0):(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(e){if(t.id===e.settings.id)return e.cellRange=n,o&&(0,v.objectEach)(e.instanceBorders,function(e){e.changeBorderStyle(o,t)}),!(i=!0)}),i}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;Array.isArray(e)?(e.length||(this.savedBorders=e),this.createCustomBorders(e)):void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(y.CONTEXTMENU_ITEMS_BORDERS)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(0,w.top)(this),(0,w.right)(this),(0,w.bottom)(this),(0,w.left)(this),(0,w.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){(0,u.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}]),n}(h.default);(0,d.registerPlugin)("customBorders",S);var k=S;t.default=k},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0;var i=o(n(415));t.bottom=i.default;var r=o(n(416));t.left=r.default;var a=o(n(417));t.noBorders=a.default;var s=o(n(418));t.right=s.default;var l=o(n(419));t.top=l.default},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(o){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,r.checkSelectionBorders)(this,"bottom")&&(e=(0,r.markSelected)(e)),e},callback:function(e,t){var n=(0,r.checkSelectionBorders)(this,"bottom");o.prepareBorder(t,"bottom",n)}}};var i=o(n(11)),r=n(94)},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(o){return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,r.checkSelectionBorders)(this,"left")&&(e=(0,r.markSelected)(e)),e},callback:function(e,t){var n=(0,r.checkSelectionBorders)(this,"left");o.prepareBorder(t,"left",n)}}};var i=o(n(11)),r=n(94)},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(n){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(e,t){n.prepareBorder(t,"noBorders")},disabled:function(){return!(0,r.checkSelectionBorders)(this)}}};var i=o(n(11)),r=n(94)},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(o){return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,r.checkSelectionBorders)(this,"right")&&(e=(0,r.markSelected)(e)),e},callback:function(e,t){var n=(0,r.checkSelectionBorders)(this,"right");o.prepareBorder(t,"right",n)}}};var i=o(n(11)),r=n(94)},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.default=function(o){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,r.checkSelectionBorders)(this,"top")&&(e=(0,r.markSelected)(e)),e},callback:function(e,t){var n=(0,r.checkSelectionBorders)(this,"top");o.prepareBorder(t,"top",n)}}};var i=o(n(11)),r=n(94)},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),d=o(n(24)),f=n(20),v=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,l.default)(n).call(this,e))).eventManager=new d.default((0,s.default)(t)),t.boundaries=null,t.callback=null,t.listening=!1,t}return(0,c.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",function(){return e.setupListening()}),this.addHook("afterOnCellCornerMouseDown",function(){return e.setupListening()}),this.registerEvents(),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(e){this.boundaries=e}},{key:"setCallback",value:function(e){this.callback=e}},{key:"check",value:function(e,t){var n=0,o=0;t<this.boundaries.top?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)}},{key:"registerEvents",value:function(){var t=this,e=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",function(){return t.onMouseUp()}),this.eventManager.addEventListener(e,"mousemove",function(e){return t.onMouseMove(e)})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(){var n=this.hot.view.wt.wtTable.holder;n!==this.hot.rootWindow&&(this.setBoundaries(n.getBoundingClientRect()),this.setCallback(function(e,t){e<0?n.scrollLeft-=50:0<e&&(n.scrollLeft+=50),t<0?n.scrollTop-=20:0<t&&(n.scrollTop+=20)}),this.listening=!0)}},{key:"onMouseMove",value:function(e){this.listening&&this.check(e.clientX,e.clientY)}},{key:"onMouseUp",value:function(){this.listening=!1}},{key:"destroy",value:function(){(0,u.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}]),n}(h.default);(0,f.registerPlugin)("dragToScroll",v);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),d=n(20),f=n(3),v=o(n(422)),g=o(n(423));n(424);var p=new WeakMap,m=function(e){function o(e){var t;return(0,i.default)(this,o),t=(0,a.default)(this,(0,l.default)(o).call(this,e)),p.set((0,s.default)(t),{moveByFreeze:!1,afterFirstUse:!1}),t.frozenColumnsBasePositions=[],t.manualColumnMovePlugin=void 0,t}return(0,c.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(e){return n.addContextMenuEntry(e)}),this.addHook("afterInit",function(){return n.onAfterInit()}),this.addHook("beforeColumnMove",function(e,t){return n.onBeforeColumnMove(e,t)}),(0,u.default)((0,l.default)(o.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=p.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,(0,u.default)((0,l.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,l.default)(o.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=p.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft===this.hot.countCols()||e<=n.fixedColumnsLeft-1||(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft),n.fixedColumnsLeft+=1)}},{key:"unfreezeColumn",value:function(e){var t=p.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),!(n.fixedColumnsLeft<=0||e>n.fixedColumnsLeft-1)){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft-=1,this.getMovePlugin().moveColumn(e,o+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t,n=this.getMovePlugin(),o=this.hot.getSettings().fixedColumnsLeft,i=n.columnsMapper.getValueByIndex(o);if(null===this.frozenColumnsBasePositions[e]||void 0===this.frozenColumnsBasePositions[e])for(t=n.columnsMapper.getValueByIndex(e);null!==i&&i<=t;)o+=1,i=n.columnsMapper.getValueByIndex(o);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;null!==i&&i<=t;)o+=1,i=n.columnsMapper.getValueByIndex(o);o=i}return o-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,v.default)(this),(0,g.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=p.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,i=t<o;if(i||(0,f.arrayEach)(e,function(e){if(e<o)return!(i=!0)}),i)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){(0,u.default)((0,l.default)(o.prototype),"destroy",this).call(this)}}]),o}(h.default);(0,d.registerPlugin)("manualColumnFreeze",m);var y=m;t.default=y},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(o){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(e,t){var n=(0,r.default)(t,1)[0].start.col;o.freezeColumn(n),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:1<e.length?t=!0:(e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}};var r=i(n(18)),a=o(n(11))},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(o){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(e,t){var n=(0,r.default)(t,1)[0].start.col;o.unfreezeColumn(n),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:1<e.length?t=!0:(e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}};var r=i(n(18)),a=o(n(11))},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var a=o(n(37)),i=o(n(1)),r=o(n(2)),s=o(n(7)),l=o(n(26)),u=o(n(5)),c=o(n(14)),h=o(n(8)),d=o(n(22)),f=o(n(43)),v=n(3),S=n(6),g=n(17),p=o(n(24)),m=n(20),y=o(n(426)),w=o(n(427)),C=o(n(428));n(429),f.default.getSingleton().register("beforeColumnMove"),f.default.getSingleton().register("afterColumnMove"),f.default.getSingleton().register("unmodifyCol");var k=new WeakMap,E="ht__manualColumnMove",T="show-ui",R="on-moving--columns",_="after-selection--columns",b=function(e){function n(e){var t;return(0,i.default)(this,n),t=(0,s.default)(this,(0,u.default)(n).call(this,e)),k.set((0,l.default)(t),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),t.removedColumns=[],t.columnsMapper=new y.default((0,l.default)(t)),t.eventManager=new p.default((0,l.default)(t)),t.backlight=new w.default(e),t.guideline=new C.default(e),t}return(0,h.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var i=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(e,t,n,o){return i.onBeforeOnCellMouseDown(e,t,n,o)}),this.addHook("beforeOnCellMouseOver",function(e,t,n,o){return i.onBeforeOnCellMouseOver(e,t,n,o)}),this.addHook("afterScrollVertically",function(){return i.onAfterScrollVertically()}),this.addHook("modifyCol",function(e,t){return i.onModifyCol(e,t)}),this.addHook("beforeRemoveCol",function(e,t){return i.onBeforeRemoveCol(e,t)}),this.addHook("afterRemoveCol",function(){return i.onAfterRemoveCol()}),this.addHook("afterCreateCol",function(e,t){return i.onAfterCreateCol(e,t)}),this.addHook("afterLoadData",function(){return i.onAfterLoadData()}),this.addHook("unmodifyCol",function(e){return i.onUnmodifyCol(e)}),this.registerEvents(),(0,S.addClass)(this.hot.rootElement,E),(0,c.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),(0,c.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,S.removeClass)(this.hot.rootElement,E),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,c.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,o){var i=this,t=(0,a.default)(e),n=k.get(this),r=this.hot.runHooks("beforeColumnMove",t,o);n.disallowMoving=!r,!1!==r&&((0,v.arrayEach)(e,function(e,t,n){n[t]=i.columnsMapper.getValueByIndex(e)}),(0,v.arrayEach)(e,function(e,t){var n=i.columnsMapper.getIndexByValue(e);n!==o&&i.columnsMapper.moveColumn(n,o+t)}),this.columnsMapper.clearNull(),this.hot.runHooks("afterColumnMove",t,o))}},{key:"changeSelection",value:function(e,t){this.hot.selectColumns(e,t)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,o=e;o<t;o++){n+=o<0?this.hot.view.wt.wtViewport.getRowHeaderWidth()||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,g.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=k.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,i=this.hot.view.wt.wtOverlays.scrollableElement,r="number"==typeof i.scrollX?i.scrollX:i.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),s=e.target.eventPageX-(e.rootElementOffset-(void 0===i.scrollX?r:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,h=this.backlight.getSize().width,d=0;if(e.rootElementOffset+o.holder.offsetWidth+r<e.target.eventPageX&&e.coordsColumn<e.countCols&&(e.coordsColumn+=1),e.hasRowHeaders&&(d=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(a+=r),a+=d,e.coordsColumn<0)0<e.fixedColumns?e.target.col=0:e.target.col=0<t?t-1:t;else if(e.target.TD.offsetWidth/2+a<=s){var f=e.coordsColumn>=e.countCols?e.countCols-1:e.coordsColumn;e.target.col=f+1,a+=e.target.TD.offsetWidth,e.target.col>n&&n<e.countCols&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.coordsColumn,e.target.col<=t&&e.target.col>=e.fixedColumns&&0<t&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&0<t&&this.hot.scrollViewportTo(void 0,t-1);var v=s,g=a;l<=s+h+c?v=l-h-c:s+c<u+d&&(v=u+d+Math.abs(c)),l-1<=a?g=l-1:0===g?g=1:void 0!==i.scrollX&&e.coordsColumn<e.fixedColumns&&(g-=e.rootElementOffset<=i.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,v),this.guideline.setPosition(null,g)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(t<e){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(e<t){var o=e-1,i=[];(0,v.arrayEach)(this.columnsMapper._arrayMap,function(e,t){o<e&&i.push(t)}),this.columnsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var t=this,e=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(e,"mousemove",function(e){return t.onMouseMove(e)}),this.eventManager.addEventListener(e,"mouseup",function(){return t.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=k.get(this),l=(0,S.hasClass)(e.realTarget,"sortAction");if(!a||!r||s.pressed||0!==e.button||l)return s.pressed=!1,void(s.columnsToMove.length=0,S.removeClass)(this.hot.rootElement,[R,T]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var h=a.from,d=a.to,f=Math.min(h.col,d.col),v=Math.max(h.col,d.col);if(t.row<0&&t.col>=f&&t.col<=v){o.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.coordsColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(f,v),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumns=this.hot.getSettings().fixedColumnsLeft,s.rootElementOffset=(0,S.offset)(this.hot.rootElement).left;var g=s.hasRowHeaders?-1:0,p=i.holder.scrollTop+i.getColumnHeaderHeight(0)+1,m=t.col<s.fixedColumns,y=this.hot.view.wt.wtOverlays.scrollableElement,w=y.scrollX?y.scrollX-s.rootElementOffset:0,C=e.layerX-(m?w:0),E=Math.abs(this.getColumnsWidth(f,t.col)+C);this.backlight.setPosition(p,this.getColumnsWidth(g,f)+E),this.backlight.setSize(this.getColumnsWidth(f,v+1),i.hider.offsetHeight-p),this.backlight.setOffset(null,-1*E),(0,S.addClass)(this.hot.rootElement,R)}else(0,S.removeClass)(this.hot.rootElement,_),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=k.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRangeLast(),r=k.get(this);i&&r.pressed&&(-1<r.columnsToMove.indexOf(t.col)?(0,S.removeClass)(this.hot.rootElement,T):(0,S.addClass)(this.hot.rootElement,T),o.row=!0,o.column=!0,o.cell=!0,r.coordsColumn=t.col,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=k.get(this);if(e.coordsColumn=void 0,e.pressed=!1,(e.backlightWidth=0,S.removeClass)(this.hot.rootElement,[R,T,_]),this.hot.selection.isSelectedByColumnHeader()&&(0,S.addClass)(this.hot.rootElement,_),!(e.columnsToMove.length<1||void 0===e.target.col||-1<e.columnsToMove.indexOf(e.target.col))){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){var t=this.columnsMapper.getIndexByValue(e.columnsToMove[0]),n=this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]);this.changeSelection(t,n)}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;this.backlight.setPosition(t),this.backlight.setSize(null,e.hider.offsetHeight-t)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.columnsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,c.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}]),n}(d.default);(0,m.registerPlugin)("ManualColumnMove",b);var O=b;t.default=O},function(e,t,n){"use strict";var o=n(0);n(30),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(3),l=n(4),u=n(17),c=function(){function t(e){(0,i.default)(this,t),this.manualColumnMove=e}return(0,r.default)(t,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;(this._arrayMap.length=0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,s.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),t}();(0,l.mixin)(c,a.default);var h=c;t.default=h},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(252)),h=n(6),d=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,r.default)(t,[{key:"build",value:function(){(0,l.default)((0,s.default)(t.prototype),"build",this).call(this),(0,h.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}(c.default);t.default=d},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(252)),h=n(6),d=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,r.default)(t,[{key:"build",value:function(){(0,l.default)((0,s.default)(t.prototype),"build",this).call(this),(0,h.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}(c.default);t.default=d},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(32),t.__esModule=!0,t.default=void 0;var r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(26)),u=o(n(5)),c=o(n(14)),h=o(n(8)),i=o(n(22)),v=n(6),d=o(n(24)),f=n(33),g=n(3),p=n(17),m=n(20),y=function(e){function i(e){var t;(0,r.default)(this,i);var n=(t=(0,s.default)(this,(0,u.default)(i).call(this,e))).hot.rootDocument;return t.currentTH=null,t.currentCol=null,t.selectedCols=[],t.currentWidth=null,t.newSize=null,t.startY=null,t.startWidth=null,t.startOffset=null,t.handle=n.createElement("DIV"),t.guide=n.createElement("DIV"),t.eventManager=new d.default((0,l.default)(t)),t.pressed=null,t.dblclick=0,t.autoresizeTimeout=null,t.manualColumnWidths=[],(0,v.addClass)(t.handle,"manualColumnResizer"),(0,v.addClass)(t.guide,"manualColumnResizerGuide"),t}return(0,h.default)(i,e),(0,a.default)(i,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var o=this;if(!this.enabled){this.manualColumnWidths=[];var e=this.hot.getSettings().manualColumnResize,t=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(e,t){return o.onModifyColWidth(e,t)}),this.addHook("beforeStretchingColumnWidth",function(e,t){return o.onBeforeStretchingColumnWidth(e,t)}),this.addHook("beforeColumnResize",function(e,t,n){return o.onBeforeColumnResize(e,t,n)}),void 0!==t?this.manualColumnWidths=t:Array.isArray(e)?this.manualColumnWidths=e:this.manualColumnWidths=[],this.bindEvents(),(0,c.default)((0,u.default)(i.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){(0,c.default)((0,u.default)(i.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(this.currentTH),o=n.col,i=(0,v.outerHeight)(this.currentTH);if(0<=o){var r=this.currentTH.getBoundingClientRect(),a=o<this.hot.getSettings().fixedColumnsLeft?this.hot.view.wt.wtOverlays.topLeftCornerOverlay:this.hot.view.wt.wtOverlays.topOverlay,s=a.getRelativeCellPosition(this.currentTH,n.row,n.col);if(!s){var l=a.clone.wtTable.THEAD.lastChild.children[+!!this.hot.getSettings().rowHeaders+o];s=a.getRelativeCellPosition(l,n.row,n.col)}if(this.currentCol=o,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByColumnHeader()){var u=this.hot.getSelectedRangeLast(),c=u.from,h=u.to,d=c.col,f=h.col;f<=d&&(d=h.col,f=c.col),this.currentCol>=d&&this.currentCol<=f?(0,p.rangeEach)(d,f,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=s.left-6,this.startWidth=parseInt(r.width,10),this.handle.style.top="".concat(s.top,"px"),this.handle.style.left="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(i,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,v.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,v.addClass)(this.handle,"active"),(0,v.addClass)(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.guide.style.left=this.handle.style.left,this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,v.removeClass)(this.handle,"active"),(0,v.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e===this.hot.rootElement)return!1;var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){function o(){i.hot.forceFullRender=!0,i.hot.view.render(),i.hot.view.wt.wtOverlays.adjustElementsSize(!0)}function t(e,t){var n=i.hot.runHooks("beforeColumnResize",e,i.newSize,!0);void 0!==n&&(i.newSize=n),"all"===i.hot.getSettings().stretchH?i.clearManualSize(e):i.setManualSize(e,i.newSize),t&&o(),i.saveManualColumnWidths(),i.hot.runHooks("afterColumnResize",e,i.newSize,!0)}var i=this;2<=this.dblclick&&(1<this.selectedCols.length?((0,g.arrayEach)(this.selectedCols,function(e){t(e)}),o()):(0,g.arrayEach)(this.selectedCols,function(e){t(e,!0)}));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,v.hasClass)(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=(0,f.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,f.pageX)(e)-this.startX),(0,g.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){function n(){o.hot.forceFullRender=!0,o.hot.view.render(),o.hot.view.wt.wtOverlays.adjustElementsSize(!0)}function t(e,t){o.hot.runHooks("beforeColumnResize",e,o.newSize,!1),t&&n(),o.saveManualColumnWidths(),o.hot.runHooks("afterColumnResize",e,o.newSize)}var o=this;if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)1<this.selectedCols.length?((0,g.arrayEach)(this.selectedCols,function(e){t(e)}),n()):(0,g.arrayEach)(this.selectedCols,function(e){t(e,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var t=this,e=this.hot,n=e.rootWindow,o=e.rootElement;this.eventManager.addEventListener(o,"mouseover",function(e){return t.onMouseOver(e)}),this.eventManager.addEventListener(o,"mousedown",function(e){return t.onMouseDown(e)}),this.eventManager.addEventListener(n,"mousemove",function(e){return t.onMouseMove(e)}),this.eventManager.addEventListener(n,"mouseup",function(){return t.onMouseUp()})}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),o=this.hot.runHooks("modifyCol",e);return this.manualColumnWidths[o]=n}},{key:"clearManualSize",value:function(e){var t=this.hot.runHooks("modifyCol",e);this.manualColumnWidths[t]=void 0}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var o=this.hot.runHooks("modifyCol",t),i=this.manualColumnWidths[o];this.hot.getSettings().manualColumnResize&&i&&(n=i)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),i}(i.default);(0,m.registerPlugin)("manualColumnResize",y);var w=y;t.default=w},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var a=o(n(37)),i=o(n(1)),r=o(n(2)),s=o(n(7)),l=o(n(26)),u=o(n(5)),c=o(n(14)),h=o(n(8)),d=o(n(22)),f=o(n(43)),v=n(3),y=n(6),g=n(17),p=o(n(24)),m=n(20),w=o(n(432)),C=o(n(433)),E=o(n(434));n(435),f.default.getSingleton().register("beforeRowMove"),f.default.getSingleton().register("afterRowMove"),f.default.getSingleton().register("unmodifyRow");var S=new WeakMap,k="ht__manualRowMove",T="show-ui",R="on-moving--rows",_="after-selection--rows",b=function(e){function n(e){var t;return(0,i.default)(this,n),t=(0,s.default)(this,(0,u.default)(n).call(this,e)),S.set((0,l.default)(t),{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),t.removedRows=[],t.rowsMapper=new w.default((0,l.default)(t)),t.eventManager=new p.default((0,l.default)(t)),t.backlight=new C.default(e),t.guideline=new E.default(e),t}return(0,h.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var i=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(e,t,n,o){return i.onBeforeOnCellMouseDown(e,t,n,o)}),this.addHook("beforeOnCellMouseOver",function(e,t,n,o){return i.onBeforeOnCellMouseOver(e,t,n,o)}),this.addHook("afterScrollHorizontally",function(){return i.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(e,t){return i.onModifyRow(e,t)}),this.addHook("beforeRemoveRow",function(e,t){return i.onBeforeRemoveRow(e,t)}),this.addHook("afterRemoveRow",function(){return i.onAfterRemoveRow()}),this.addHook("afterCreateRow",function(e,t){return i.onAfterCreateRow(e,t)}),this.addHook("afterLoadData",function(){return i.onAfterLoadData()}),this.addHook("beforeColumnSort",function(e,t){return i.onBeforeColumnSort(e,t)}),this.addHook("unmodifyRow",function(e){return i.onUnmodifyRow(e)}),this.registerEvents(),(0,y.addClass)(this.hot.rootElement,k),(0,c.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),(0,c.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,y.removeClass)(this.hot.rootElement,k),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,c.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,o){var i=this,t=(0,a.default)(e),n=S.get(this),r=this.hot.runHooks("beforeRowMove",t,o);n.disallowMoving=!1===r,n.disallowMoving||((0,v.arrayEach)(e,function(e,t,n){n[t]=i.rowsMapper.getValueByIndex(e)}),(0,v.arrayEach)(e,function(e,t){var n=i.rowsMapper.getIndexByValue(e);n!==o&&i.rowsMapper.moveRow(n,o+t)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",t,o)}},{key:"changeSelection",value:function(e,t){this.hot.selectRows(e,t)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,o=e;o<t;o++){n+=this.hot.view.wt.wtTable.getRowHeight(o)||23}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,o=e.to,i=Math.min(n.row,o.row),r=Math.max(n.row,o.row);return(0,g.rangeEach)(i,r,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=S.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),i=this.hot.getSettings().fixedRowsTop,r=this.hot.countRows();t.row<i&&0<n&&this.hot.scrollViewportTo(n-1),t.row>=o&&o<r&&this.hot.scrollViewportTo(o+1,void 0,!0);var a=this.hot.view.wt.wtTable,s=e.target.TD,l=(0,y.offset)(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+a.holder.scrollTop,h=a.hider.offsetHeight,d=a.TBODY.offsetTop,f=this.backlight.getOffset().top,v=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(u+=a.holder.scrollTop),t.row<0?e.target.row=0<n?n-1:n:s.offsetHeight/2+u<=c?(e.target.row=t.row+1,u+=0===t.row?s.offsetHeight-1:s.offsetHeight):e.target.row=t.row;var g=c,p=u;h<=c+v+f?g=h-v-f:c+f<d&&(g=d+Math.abs(f)),h-1<=u&&(p=h-1);var m=0;this.hot.view.wt.wtOverlays.topOverlay&&(m=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=i&&p-a.holder.scrollTop<m&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(g),this.guideline.setPosition(p)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(t<e){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(e<t){var o=e-1,i=[];(0,v.arrayEach)(this.rowsMapper._arrayMap,function(e,t){o<e&&i.push(t)}),this.rowsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var t=this,e=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(e,"mousemove",function(e){return t.onMouseMove(e)}),this.eventManager.addEventListener(e,"mouseup",function(){return t.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){S.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt,r=i.wtTable,a=i.wtViewport,s=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast(),u=S.get(this);if(!l||!s||u.pressed||0!==e.button)return u.pressed=!1,void(u.rowsToMove.length=0,y.removeClass)(this.hot.rootElement,[R,T]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),h=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&h&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var d=l.from,f=l.to,v=Math.min(d.row,f.row),g=Math.max(d.row,f.row);if(t.col<0&&t.row>=v&&t.row<=g){o.row=!0,u.pressed=!0,u.target.eventPageY=e.pageY,u.target.coords=t,u.target.TD=n,u.rowsToMove=this.prepareRowsToMoving();var p=r.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,p),this.backlight.setSize(r.hider.offsetWidth-p,this.getRowsHeight(v,g+1)),this.backlight.setOffset(-1*(this.getRowsHeight(v,t.row)+e.layerY),null),(0,y.addClass)(this.hot.rootElement,R),this.refreshPositions()}else(0,y.removeClass)(this.hot.rootElement,_),u.pressed=!1,u.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=S.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRangeLast(),r=S.get(this);i&&r.pressed&&(-1<r.rowsToMove.indexOf(t.row)?(0,y.removeClass)(this.hot.rootElement,T):(0,y.addClass)(this.hot.rootElement,T),o.row=!0,o.column=!0,o.cell=!0,r.target.coords=t,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=S.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,(e.backlightHeight=0,y.removeClass)(this.hot.rootElement,[R,T,_]),this.hot.selection.isSelectedByRowHeader()&&(0,y.addClass)(this.hot.rootElement,_),!(n<1||void 0===t||-1<e.rowsToMove.indexOf(t)||e.rowsToMove[n-1]===t-1)){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){var o=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),i=this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]);this.changeSelection(o,i)}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;this.backlight.setPosition(null,t),this.backlight.setSize(e.hider.offsetWidth-t)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.rowsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),this.rowsMapper.destroy(),(0,c.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}]),n}(d.default);(0,m.registerPlugin)("ManualRowMove",b);var O=b;t.default=O},function(e,t,n){"use strict";var o=n(0);n(30),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(3),l=n(4),u=n(17),c=function(){function t(e){(0,i.default)(this,t),this.manualRowMove=e}return(0,r.default)(t,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;(this._arrayMap.length=0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,s.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),t}();(0,l.mixin)(c,a.default);var h=c;t.default=h},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(253)),h=n(6),d=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,r.default)(t,[{key:"build",value:function(){(0,l.default)((0,s.default)(t.prototype),"build",this).call(this),(0,h.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}(c.default);t.default=d},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(253)),h=n(6),d=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,r.default)(t,[{key:"build",value:function(){(0,l.default)((0,s.default)(t.prototype),"build",this).call(this),(0,h.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}(c.default);t.default=d},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(32),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),p=n(6),d=o(n(24)),f=n(33),v=n(3),m=n(17),g=n(20),y=function(e){function o(e){var t;(0,i.default)(this,o);var n=(t=(0,a.default)(this,(0,l.default)(o).call(this,e))).hot.rootDocument;return t.currentTH=null,t.currentRow=null,t.selectedRows=[],t.currentHeight=null,t.newSize=null,t.startY=null,t.startHeight=null,t.startOffset=null,t.handle=n.createElement("DIV"),t.guide=n.createElement("DIV"),t.eventManager=new d.default((0,s.default)(t)),t.pressed=null,t.dblclick=0,t.autoresizeTimeout=null,t.manualRowHeights=[],(0,p.addClass)(t.handle,"manualRowResizer"),(0,p.addClass)(t.guide,"manualRowResizerGuide"),t}return(0,c.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){this.manualRowHeights=[];var e=this.hot.getSettings().manualRowResize,t=this.loadManualRowHeights();void 0!==t?this.manualRowHeights=t:Array.isArray(e)?this.manualRowHeights=e:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(e,t){return n.onModifyRowHeight(e,t)}),this.bindEvents(),(0,u.default)((0,l.default)(o.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){(0,u.default)((0,l.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.getCoords(this.currentTH),o=n.row,i=(0,p.outerWidth)(this.currentTH);if(0<=o){var r=this.currentTH.getBoundingClientRect(),a=o<this.hot.getSettings().fixedRowsTop,s=o>=this.hot.countRows()-this.hot.getSettings().fixedRowsBottom,l=this.hot.view.wt.wtOverlays.leftOverlay;a?l=this.hot.view.wt.wtOverlays.topLeftCornerOverlay:s&&(l=this.hot.view.wt.wtOverlays.bottomLeftCornerOverlay);var u=l.getRelativeCellPosition(this.currentTH,n.row,n.col);if(!u){var c=l.clone.wtTable.TBODY.children[+!!this.hot.getSettings().colHeaders+o].firstChild;u=l.getRelativeCellPosition(c,n.row,n.col)}if(this.currentRow=o,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByRowHeader()){var h=this.hot.getSelectedRangeLast(),d=h.from,f=h.to,v=d.row,g=f.row;g<=v&&(v=f.row,g=d.row),this.currentRow>=v&&this.currentRow<=g?(0,m.rangeEach)(v,g,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=u.top-6,this.startHeight=parseInt(r.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style.left="".concat(u.left,"px"),this.handle.style.width="".concat(i,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,p.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,p.addClass)(this.handle,"active"),(0,p.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left="".concat(t,"px"),this.guide.style.width="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,p.removeClass)(this.handle,"active"),(0,p.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){if(e===this.hot.rootElement)return!1;var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){function o(){i.hot.forceFullRender=!0,i.hot.view.render(),i.hot.view.wt.wtOverlays.adjustElementsSize(!0)}function t(e,t){var n=i.hot.runHooks("beforeRowResize",e,i.newSize,!0);void 0!==n&&(i.newSize=n),i.setManualSize(e,i.newSize),t&&o(),i.hot.runHooks("afterRowResize",e,i.newSize,!0)}var i=this;2<=this.dblclick&&(1<this.selectedRows.length?((0,v.arrayEach)(this.selectedRows,function(e){t(e)}),o()):(0,v.arrayEach)(this.selectedRows,function(e){t(e,!0)}));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,p.hasClass)(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=(0,f.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,f.pageY)(e)-this.startY),(0,v.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){function n(){o.hot.forceFullRender=!0,o.hot.view.render(),o.hot.view.wt.wtOverlays.adjustElementsSize(!0)}function t(e,t){o.hot.runHooks("beforeRowResize",e,o.newSize),t&&n(),o.saveManualRowHeights(),o.hot.runHooks("afterRowResize",e,o.newSize,!1)}var o=this;if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)1<this.selectedRows.length?((0,v.arrayEach)(this.selectedRows,function(e){t(e)}),n()):(0,v.arrayEach)(this.selectedRows,function(e){t(e,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var t=this,e=this.hot,n=e.rootElement,o=e.rootWindow;this.eventManager.addEventListener(n,"mouseover",function(e){return t.onMouseOver(e)}),this.eventManager.addEventListener(n,"mousedown",function(e){return t.onMouseDown(e)}),this.eventManager.addEventListener(o,"mousemove",function(e){return t.onMouseMove(e)}),this.eventManager.addEventListener(o,"mouseup",function(){return t.onMouseUp()})}},{key:"setManualSize",value:function(e,t){var n=this.hot.runHooks("modifyRow",e);return this.manualRowHeights[n]=t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null,i=this.hot.runHooks("modifyRow",t),r=this.manualRowHeights[i];if(void 0!==r&&(r===o||(e||0)<r))return r}return e}}]),o}(h.default);(0,g.registerPlugin)("manualRowResize",y);var w=y;t.default=w},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(31),n(15),n(30),n(10),n(38),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var s=o(n(18)),l=o(n(37)),i=o(n(1)),r=o(n(2)),a=o(n(7)),u=o(n(26)),c=o(n(5)),h=o(n(14)),d=o(n(8)),f=o(n(22)),v=o(n(43)),g=n(20),p=n(33),m=n(25),y=o(n(438)),w=o(n(174)),C=o(n(439)),E=o(n(440)),S=o(n(441)),k=n(3),T=n(4),R=n(58),_=n(17),b=n(254);n(442),v.default.getSingleton().register("beforeMergeCells"),v.default.getSingleton().register("afterMergeCells"),v.default.getSingleton().register("beforeUnmergeCells"),v.default.getSingleton().register("afterUnmergeCells");var O=new WeakMap,M=function(e){function n(e){var t;return(0,i.default)(this,n),t=(0,a.default)(this,(0,c.default)(n).call(this,e)),O.set((0,u.default)(t),{lastDesiredCoords:null}),t.mergedCellsCollection=null,t.autofillCalculations=null,t.selectionCalculations=null,t}return(0,d.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new y.default(this),this.autofillCalculations=new C.default(this),this.selectionCalculations=new E.default(this),this.addHook("afterInit",function(){return e.onAfterInit.apply(e,arguments)}),this.addHook("beforeKeyDown",function(){return e.onBeforeKeyDown.apply(e,arguments)}),this.addHook("modifyTransformStart",function(){return e.onModifyTransformStart.apply(e,arguments)}),this.addHook("afterModifyTransformStart",function(){return e.onAfterModifyTransformStart.apply(e,arguments)}),this.addHook("modifyTransformEnd",function(){return e.onModifyTransformEnd.apply(e,arguments)}),this.addHook("modifyGetCellCoords",function(){return e.onModifyGetCellCoords.apply(e,arguments)}),this.addHook("beforeSetRangeEnd",function(){return e.onBeforeSetRangeEnd.apply(e,arguments)}),this.addHook("afterIsMultipleSelection",function(){return e.onAfterIsMultipleSelection.apply(e,arguments)}),this.addHook("afterRenderer",function(){return e.onAfterRenderer.apply(e,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return e.addMergeActionsToContextMenu.apply(e,arguments)}),this.addHook("afterGetCellMeta",function(){return e.onAfterGetCellMeta.apply(e,arguments)}),this.addHook("afterViewportRowCalculatorOverride",function(){return e.onAfterViewportRowCalculatorOverride.apply(e,arguments)}),this.addHook("afterViewportColumnCalculatorOverride",function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)}),this.addHook("modifyAutofillRange",function(){return e.onModifyAutofillRange.apply(e,arguments)}),this.addHook("afterCreateCol",function(){return e.onAfterCreateCol.apply(e,arguments)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol.apply(e,arguments)}),this.addHook("afterCreateRow",function(){return e.onAfterCreateRow.apply(e,arguments)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow.apply(e,arguments)}),this.addHook("afterChange",function(){return e.onAfterChange.apply(e,arguments)}),this.addHook("beforeDrawBorders",function(){return e.onBeforeDrawAreaBorders.apply(e,arguments)}),this.addHook("afterDrawSelection",function(){return e.onAfterDrawSelection.apply(e,arguments)}),this.addHook("beforeRemoveCellClassNames",function(){return e.onBeforeRemoveCellClassNames.apply(e,arguments)}),(0,h.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.hot.render(),(0,h.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().mergeCells;this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(e),(0,h.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(w.default.containsNegativeValues(e)?((0,R.warn)(w.default.NEGATIVE_VALUES_WARNING(e)),t=!1):w.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,R.warn)(w.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):w.default.isSingleCell(e)?((0,R.warn)(w.default.IS_SINGLE_CELL(e)),t=!1):w.default.containsZeroSpan(e)&&((0,R.warn)(w.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var i=this;if(Array.isArray(e)){var t,r=[];(0,k.arrayEach)(e,function(e){if(i.validateSetting(e)){var t=new m.CellCoords(e.row,e.col),n=new m.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),o=new m.CellRange(t,t,n);r.push(i.mergeRange(o,!0,!0))}}),r=r.filter(function(e){return!0!==e});var n=this.getBulkCollectionData(r);(t=this.hot).populateFromArray.apply(t,(0,l.default)(n))}}},{key:"getBulkCollectionData",value:function(e){var t,r=this.getBulkCollectionDataRange(e),a=(t=this.hot).getData.apply(t,(0,l.default)(r)).splice(0);return(0,k.arrayEach)(e,function(e){var t=(0,s.default)(e,3),o=t[0],i=t[1],n=t[2];(0,k.arrayEach)(n,function(e,n){(0,k.arrayEach)(e,function(e,t){a[o-r[0]+n][i-r[1]+t]=e})})}),[r[0],r[1],a]}},{key:"getBulkCollectionDataRange",value:function(e){var t=[0,0],n=[0,0],o=null,i=null,r=null;return(0,k.arrayEach)(e,function(e){o=e[0],i=e[1],r=e[2],t[0]=Math.min(o,t[0]),t[1]=Math.min(i,t[1]),n[0]=Math.max(o+r.length-1,n[0]),n[1]=Math.max(i+r[0].length-1,n[1])}),[].concat(t,n)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e,t){return!!(1<arguments.length&&void 0!==t&&t)||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.hot.getSelectedRangeLast();if(t){t.setDirection("NW-SE");var n=t.from,o=t.to;this.unmergeRange(t,!0),this.mergeRange(t),this.hot.selectCell(n.row,n.col,o.row,o.col,!1)}}},{key:"unmergeSelection",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.hot.getSelectedRangeLast();if(t){var n=t.from,o=t.to;this.unmergeRange(t,!0),this.hot.selectCell(n.row,n.col,o.row,o.col,!1)}}},{key:"mergeRange",value:function(e,t,n){var o=this,i=1<arguments.length&&void 0!==t&&t,r=2<arguments.length&&void 0!==n&&n,a=e.getTopLeftCorner(),s=e.getBottomRightCorner(),l={row:a.row,col:a.col,rowspan:s.row-a.row+1,colspan:s.col-a.col+1},u=[],c=null;return!!this.canMergeRange(l,i)&&(this.hot.runHooks("beforeMergeCells",e,i),(0,_.rangeEach)(0,l.rowspan-1,function(n){(0,_.rangeEach)(0,l.colspan-1,function(e){var t=null;u[n]||(u[n]=[]),0===n&&0===e?t=o.hot.getDataAtCell(l.row,l.col):o.hot.setCellMeta(l.row+n,l.col+e,"hidden",!0),u[n][e]=t})}),this.hot.setCellMeta(l.row,l.col,"spanned",!0),!this.mergedCellsCollection.add(l)||(r?c=[l.row,l.col,u]:this.hot.populateFromArray(l.row,l.col,u,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,l,i),c))}},{key:"unmergeRange",value:function(e,t){var o=this,n=1<arguments.length&&void 0!==t&&t,i=this.mergedCellsCollection.getWithinRange(e);i&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,k.arrayEach)(i,function(n){o.mergedCellsCollection.remove(n.row,n.col),(0,_.rangeEach)(0,n.rowspan-1,function(t){(0,_.rangeEach)(0,n.colspan-1,function(e){o.hot.removeCellMeta(n.row+t,n.col+e,"hidden")})}),o.hot.removeCellMeta(n.row,n.col,"spanned")}),this.hot.render(),this.hot.runHooks("afterUnmergeCells",e,n))}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,o){var i=new m.CellCoords(e,t),r=new m.CellCoords(n,o);this.mergeRange(new m.CellRange(i,i,r))}},{key:"unmerge",value:function(e,t,n,o){var i=new m.CellCoords(e,t),r=new m.CellCoords(n,o);this.unmergeRange(new m.CellRange(i,i,r))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"onBeforeKeyDown",value:function(e){!e.ctrlKey&&!e.metaKey||e.altKey||77!==e.keyCode||(this.toggleMerge(this.hot.getSelectedRangeLast()),this.hot.render(),(0,p.stopImmediatePropagation)(e))}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),o=0;o<t.length;o+=1)if(n.highlight.row===t[o].row&&n.highlight.col===t[o].col&&n.to.row===t[o].row+t[o].rowspan-1&&n.to.col===t[o].col+t[o].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=O.get(this),o=this.hot.getSelectedRangeLast(),i={row:e.row,col:e.col},r=new m.CellCoords(o.highlight.row,o.highlight.col),a=this.mergedCellsCollection.get(r.row,r.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=new m.CellCoords(null,null)),a){var s=new m.CellCoords(a.row,a.col),l=new m.CellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);new m.CellRange(s,s,l).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=new m.CellCoords(null,null)),i.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-r.row:i.row,i.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-r.col:i.col,0<e.row?i.row=a.row+a.rowspan-1-r.row+e.row:e.row<0&&(i.row=r.row-a.row+e.row),0<e.col?i.col=a.col+a.colspan-1-r.col+e.col:e.col<0&&(i.col=r.col-a.col+e.col)}t=new m.CellCoords(o.highlight.row+i.row,o.highlight.col+i.col);var u=this.mergedCellsCollection.get(t.row,t.col);u&&(n.lastDesiredCoords=t,i={row:u.row-r.row,col:u.col-r.col}),0!==i.row&&(e.row=i.row),0!==i.col&&(e.col=i.col)}},{key:"onModifyTransformEnd",value:function(e){for(var t=this,n=this.hot.getSelectedRangeLast(),o=(0,T.clone)(e),i=this.selectionCalculations.getUpdatedSelectionRange(n,e),r=(0,T.clone)(o),a=this.mergedCellsCollection.getWithinRange(i,!0);r=(0,T.clone)(o),this.selectionCalculations.getUpdatedSelectionRange(n,o),(0,k.arrayEach)(a,function(e){t.selectionCalculations.snapDelta(o,n,e)}),o.row!==r.row||o.col!==r.col;);e.row=o.row,e.col=o.col}},{key:"onModifyGetCellCoords",value:function(e,t){var n=this.mergedCellsCollection.get(e,t);return n?[n.row,n.col,n.row+n.rowspan-1,n.col+n.colspan-1]:void 0}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,S.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var o=this.mergedCellsCollection.get(t,n);(0,b.applySpanProperties)(e,o,t,n)}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=new m.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!this.hot.selection.isSelectedByColumnHeader()&&!this.hot.selection.isSelectedByRowHeader())do{n=!1;for(var o=0;o<this.mergedCellsCollection.mergedCells.length;o+=1){var i=this.mergedCellsCollection.mergedCells[o].getRange();t.expandByRange(i)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var o=this.mergedCellsCollection.get(e,t);o&&(o.row!==e||o.col!==t?n.copyable=!1:(n.rowspan=o.rowspan,n.colspan=o.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(n){var o,i=this,e=this.hot.countCols();(0,_.rangeEach)(0,e-1,function(e){if((o=i.mergedCellsCollection.get(n.startRow,e))&&o.row<n.startRow)return n.startRow=o.row,i.onAfterViewportRowCalculatorOverride.call(i,n);if(o=i.mergedCellsCollection.get(n.endRow,e)){var t=o.row+o.rowspan-1;if(t>n.endRow)return n.endRow=t,i.onAfterViewportRowCalculatorOverride.call(i,n)}return!0})}},{key:"onAfterViewportColumnCalculatorOverride",value:function(n){var o,i=this,e=this.hot.countRows();(0,_.rangeEach)(0,e-1,function(e){if((o=i.mergedCellsCollection.get(e,n.startColumn))&&o.col<n.startColumn)return n.startColumn=o.col,i.onAfterViewportColumnCalculatorOverride.call(i,n);if(o=i.mergedCellsCollection.get(e,n.endColumn)){var t=o.col+o.colspan-1;if(t>n.endColumn)return n.endColumn=t,i.onAfterViewportColumnCalculatorOverride.call(i,n)}return!0})}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),o=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,o,n))return o=t;var i=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return i?o=this.autofillCalculations.snapDragArea(t,o,n,i):o}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(t,e){if(e&&"area"===e){var n=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(n);(0,k.arrayEach)(o,function(e){n.getBottomRightCorner().row===e.getLastRow()&&n.getBottomRightCorner().col===e.getLastColumn()&&(t[2]=e.row,t[3]=e.col)})}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var o=this.mergedCellsCollection.get(e.row,e.col);if(o){var i=0<t,r=t<0,a=n<0,s=0<n,l=o.row+o.rowspan-1==this.hot.countRows()-1,u=0===o.row,c=o.col+o.colspan-1==this.hot.countCols()-1,h=0===o.col;(i&&l||r&&u||s&&c||a&&h)&&(e.row=o.row,e.col=o.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,o){return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,o)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}]),n}(f.default);(0,g.registerPlugin)("mergeCells",M);var N=M;t.default=N},function(e,t,n){"use strict";var o=n(0);n(12),n(30),t.__esModule=!0,t.default=void 0;var i=o(n(69)),a=o(n(37)),r=o(n(1)),s=o(n(2)),c=o(n(174)),l=n(25),h=n(17),d=n(58),f=n(3),v=n(254),g=n(71);function p(){var e=(0,i.default)(["The merged cell declared at [",", ","], overlaps with the other declared merged \n cell. The overlapping merged cell was not added to the table, please fix your setup."]);return p=function(){return e},e}var u=function(){function u(e){(0,r.default)(this,u),this.plugin=e,this.mergedCells=[],this.hot=e.hot}return(0,s.default)(u,[{key:"get",value:function(t,n){var e=this.mergedCells,o=!1;return(0,f.arrayEach)(e,function(e){return!(e.row<=t&&e.row+e.rowspan-1>=t&&e.col<=n&&e.col+e.colspan-1>=n)||(o=e,!1)}),o}},{key:"getByRange",value:function(t){var e=this.mergedCells,n=!1;return(0,f.arrayEach)(e,function(e){return!(e.row<=t.from.row&&e.row+e.rowspan-1>=t.to.row&&e.col<=t.from.col&&e.col+e.colspan-1>=t.to.col)||(n=e)}),n}},{key:"getWithinRange",value:function(e,t){var i=1<arguments.length&&void 0!==t&&t,n=this.mergedCells,r=[],a=e;if(!a.includesRange){var o=new l.CellCoords(a.from.row,a.from.col),s=new l.CellCoords(a.to.row,a.to.col);a=new l.CellRange(o,o,s)}return(0,f.arrayEach)(n,function(e){var t=new l.CellCoords(e.row,e.col),n=new l.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),o=new l.CellRange(t,t,n);i?a.overlaps(o)&&r.push(e):a.includesRange(o)&&r.push(e)}),!!r.length&&r}},{key:"add",value:function(e){var t=this.mergedCells,n=e.row,o=e.col,i=e.rowspan,r=e.colspan,a=new c.default(n,o,i,r),s=this.get(n,o),l=this.isOverlapping(a);return s||l?((0,d.warn)(u.IS_OVERLAPPING_WARNING(a)),!1):(this.hot&&a.normalize(this.hot),t.push(a),a)}},{key:"remove",value:function(e,t){var n=this.mergedCells,o=this.get(e,t),i=o?this.mergedCells.indexOf(o):null;return!(!o||!1===i)&&(n.splice(i,1),o)}},{key:"clear",value:function(){var i=this,e=this.mergedCells,n=[],r=[];(0,f.arrayEach)(e,function(e){var t=i.hot.getCell(e.row,e.col);t&&n.push([t,i.get(e.row,e.col),e.row,e.col])}),(this.mergedCells.length=0,f.arrayEach)(n,function(o,e){(0,h.rangeEach)(0,o.rowspan-1,function(n){(0,h.rangeEach)(0,o.colspan-1,function(e){if(0!==e||0!==n){var t=i.hot.getCell(o.row+n,o.col+e);t&&r.push([t,null,null,null])}})}),n[e][1]=null}),(0,f.arrayEach)(n,function(e){v.applySpanProperties.apply(void 0,(0,a.default)(e))}),(0,f.arrayEach)(r,function(e){v.applySpanProperties.apply(void 0,(0,a.default)(e))})}},{key:"isOverlapping",value:function(e){var t=new l.CellRange(null,new l.CellCoords(e.row,e.col),new l.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),n=!1;return(0,f.arrayEach)(this.mergedCells,function(e){return!new l.CellRange(null,new l.CellCoords(e.row,e.col),new l.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(t)||!(n=!0)}),n}},{key:"isMergedParent",value:function(t,n){var e=this.mergedCells,o=!1;return(0,f.arrayEach)(e,function(e){return e.row!==t||e.col!==n||!(o=!0)}),o}},{key:"shiftCollections",value:function(e,t,n){var o=this,i=[0,0];switch(e){case"right":i[0]+=n;break;case"left":i[0]-=n;break;case"down":i[1]+=n;break;case"up":i[1]-=n}(0,f.arrayEach)(this.mergedCells,function(e){e.shift(i,t)}),(0,h.rangeEachReverse)(this.mergedCells.length-1,0,function(e){var t=o.mergedCells[e];t&&t.removed&&o.mergedCells.splice(o.mergedCells.indexOf(t),1)})}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,g.toSingleLine)(p(),e.row,e.col)}}]),u}();t.default=u},function(e,t,n){"use strict";var o=n(0);n(12),n(40),t.__esModule=!0,t.default=void 0;var y=o(n(18)),i=o(n(1)),r=o(n(2)),a=n(4),d=n(25),w=n(3),s=function(){function t(e){(0,i.default)(this,t),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return(0,r.default)(t,[{key:"correctSelectionAreaSize",value:function(e){if(e[0]===e[2]&&e[1]===e[3]){var t=this.mergedCellsCollection.get(e[0],e[1]);t&&(e[2]=e[0]+t.rowspan-1,e[3]=e[1]+t.colspan-1)}}},{key:"getDirection",value:function(e,t){return t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left"}},{key:"snapDragArea",value:function(e,t,n,o){var i=t.slice(0),r=this.getAutofillSize(e,t,n),a=(0,y.default)(e,4),s=a[0],l=a[1],u=a[2],c=a[3],h=-1<["up","down"].indexOf(n)?u-s+1:c-l+1,d=r-Math.floor(r/h)*h,f=this.getFarthestCollection(e,t,n,o);if(f)if("down"===n){var v=f.row+f.rowspan-s-d;i[2]+v>=this.plugin.hot.countRows()?i[2]-=d:i[2]+=d?v:0}else if("right"===n){var g=f.col+f.colspan-l-d;i[3]+g>=this.plugin.hot.countCols()?i[3]-=d:i[3]+=d?g:0}else if("up"===n){var p=u-d-f.row+1;i[0]+p<0?i[0]+=d:i[0]-=d?p:0}else if("left"===n){var m=c-d-f.col+1;i[1]+m<0?i[1]+=d:i[1]-=d?m:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:o,fillSize:r,dragArea:i,cycleLength:h}),i}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,a.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var o=(0,y.default)(e,4),i=o[0],r=o[1],a=o[2],s=o[3],l=(0,y.default)(t,4),u=l[0],c=l[1],h=l[2],d=l[3];switch(n){case"up":return i-u;case"down":return h-a;case"left":return r-c;case"right":return d-s;default:return null}}},{key:"getDragArea",value:function(e,t,n){var o=(0,y.default)(e,4),i=o[0],r=o[1],a=o[2],s=o[3],l=(0,y.default)(t,4),u=l[0],c=l[1],h=l[2],d=l[3];switch(n){case"up":return[u,c,i-1,s];case"down":return[a+1,r,h,s];case"left":return[u,c,a,r-1];case"right":return[i,s+1,h,d];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,o){var i=(0,y.default)(e,4),r=i[0],a=i[1],s=i[2],l=i[3],u=-1<["up","down"].indexOf(n),c=u?s:l,h=u?r:a,d=this.getAutofillSize(e,t,n),f=u?s-r+1:l-a+1,v=d-Math.floor(d/f)*f,g=null,p=null,m=null;switch(n){case"up":g="includesVertically",m=c-v+1;break;case"left":g="includesHorizontally",m=c-v+1;break;case"down":g="includesVertically",m=h+v-1;break;case"right":g="includesHorizontally",m=h+v-1}return(0,w.arrayEach)(o,function(e){e[g](m)&&e.isFarther(p,n)&&(p=e)}),p}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var n=this.getRangeFromChanges(e),t=this.currentFillData.foundMergedCells,o=this.currentFillData.dragDirection,i=function(e,t){switch(o){case"up":return e.row-t>=n.from.row;case"down":return e.row+e.rowspan-1+t<=n.to.row;case"left":return e.col-t>=n.from.column;case"right":return e.col+e.colspan-1+t<=n.to.column;default:return null}},r=0,a=null,s=1;do{for(var l=0;l<t.length;l+=1){if(i(a=t[l],r=s*this.currentFillData.cycleLength))switch(o){case"up":this.plugin.mergedCellsCollection.add({row:a.row-r,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+r,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"left":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col-r,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+r,colspan:a.colspan})}l===t.length-1&&(s+=1)}}while(i(a,r));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var o=this,i={min:null,max:null},r={min:null,max:null};return(0,w.arrayEach)(e,function(e){var t=e[0],n=o.plugin.hot.propToCol(e[1]);(null===i.min||t<i.min)&&(i.min=t),(null===i.max||t>i.max)&&(i.max=t),(null===r.min||n<r.min)&&(r.min=n),(null===r.max||n>r.max)&&(r.max=n)}),{from:{row:i.min,column:r.min},to:{row:i.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var o=this.getDragArea(e,t,n),i=(0,y.default)(o,4),r=i[0],a=i[1],s=i[2],l=i[3],u=new d.CellCoords(r,a),c=new d.CellCoords(s,l),h=new d.CellRange(u,u,c);return!!this.mergedCellsCollection.getWithinRange(h,!0)}}]),t}();t.default=s},function(e,t,n){"use strict";var o=n(0);n(19),n(31),n(38),t.__esModule=!0,t.default=void 0;var c=o(n(18)),i=o(n(1)),r=o(n(2)),l=n(25),a=function(){function t(e){(0,i.default)(this,t),this.plugin=e,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return(0,r.default)(t,[{key:"snapDelta",value:function(e,t,n){var o=t.to,i=o.row+e.row,r=o.col+e.col;e.row?this.jumpOverMergedCell(e,n,i):e.col&&this.jumpOverMergedCell(e,n,r)}},{key:"jumpOverMergedCell",value:function(e,t,n){var o=e.row||e.col,i=null,r=null,a=null;e.row?(i=t.includesVertically(n),r=t.row,a=t.getLastRow()):e.col&&(i=t.includesHorizontally(n),r=t.col,a=t.getLastColumn()),0!==o&&(0<o?i&&n!==r&&(o+=a-n+1):i&&n!==a&&(o-=n-r+1),e.row?e.row=o:e.col&&(e.col=o))}},{key:"getUpdatedSelectionRange",value:function(e,t){return new l.CellRange(e.highlight,e.from,new l.CellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,o){var i=(0,c.default)(n,4),r=i[0],a=i[1],s=i[2],l=i[3];if(void 0!==o&&r<=e&&e<=s&&a<=t&&t<=l){if(!this.plugin.mergedCellsCollection.isMergedParent(e,t))return;var u=this.plugin.mergedCellsCollection.get(e,t);if(!u)return;if(u.row+u.rowspan-1<=s&&u.col+u.colspan-1<=l)return"".concat(this.fullySelectedMergedCellClassName,"-").concat(o);if(this.plugin.selectionCalculations.isMergeCellFullySelected(u,this.plugin.hot.getSelectedRange()))return"".concat(this.fullySelectedMergedCellClassName,"-multiple")}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var o=0;o<e.rowspan;o+=1)for(var i=0;i<e.colspan;i+=1)n.push(new l.CellCoords(e.row+o,e.col+i));for(var r=0;r<n.length;r+=1){for(var a=[],s=0;s<t.length;s+=1)a[s]=t[s].includes(n[r]);if(!a.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove",value:function(){for(var e=[],t=0;t<=7;t+=1)e.push("".concat(this.fullySelectedMergedCellClassName,"-").concat(t));return e.push("".concat(this.fullySelectedMergedCellClassName,"-multiple")),e}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0),i=n(9);t.__esModule=!0,t.default=function(n){return{key:"mergeCells",name:function(){var e=this.getSelectedLast();if(e){var t=n.mergedCellsCollection.get(e[0],e[1]);if(t.row===e[0]&&t.col===e[1]&&t.row+t.rowspan-1===e[2]&&t.col+t.colspan-1===e[3])return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){n.toggleMergeOnSelection()},disabled:function(){var e=this.getSelectedLast();return!e||(a.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner())},hidden:!1}};var r=i(n(11)),a=o(n(174))},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(12),n(40),n(30),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),g=n(6),c=n(73),h=o(n(22)),d=o(n(24)),f=n(20),v=n(25),p=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).dragged=[],t.eventManager=null,t.lastSetCell=null,t}return(0,u.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return(0,c.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new d.default(this)),this.registerListeners(),(0,l.default)((0,s.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var f=this,v=this,e=this.hot.rootElement;function t(e){if(1===v.dragged.length)return v.dragged.splice(0,v.dragged.length),!0;var t=v.dragged.indexOf(e);if(-1===t)return!1;0===t?v.dragged=v.dragged.slice(0,1):1===t&&(v.dragged=v.dragged.slice(-1))}this.eventManager.addEventListener(e,"touchstart",function(e){var t;return(0,g.hasClass)(e.target,"topLeftSelectionHandle-HitArea")?(t=v.hot.getSelectedRangeLast(),v.dragged.push("topLeft"),v.touchStartRange={width:t.getWidth(),height:t.getHeight(),direction:t.getDirection()},e.preventDefault(),!1):(0,g.hasClass)(e.target,"bottomRightSelectionHandle-HitArea")?(t=v.hot.getSelectedRangeLast(),v.dragged.push("bottomRight"),v.touchStartRange={width:t.getWidth(),height:t.getHeight(),direction:t.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(e,"touchend",function(e){return(0,g.hasClass)(e.target,"topLeftSelectionHandle-HitArea")?(t.call(v,"topLeft"),v.touchStartRange=void 0,e.preventDefault(),!1):(0,g.hasClass)(e.target,"bottomRightSelectionHandle-HitArea")?(t.call(v,"bottomRight"),v.touchStartRange=void 0,e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(e,"touchmove",function(e){var t,n,o,i,r,a,s=f.hot,l=s.rootWindow,u=s.rootDocument,c=(0,g.getWindowScrollTop)(l),h=(0,g.getWindowScrollLeft)(l);if(0!==v.dragged.length){var d=u.elementFromPoint(e.touches[0].screenX-h,e.touches[0].screenY-c);d&&d!==v.lastSetCell&&("TD"!==d.nodeName&&"TH"!==d.nodeName||(-1===(t=v.hot.getCoords(d)).col&&(t.col=0),o=(n=v.hot.getSelectedRangeLast()).getWidth(),i=n.getHeight(),r=n.getDirection(),1===o&&1===i&&v.hot.selection.setRangeEnd(t),null!==(a=v.getCurrentRangeCoords(n,t,v.touchStartRange.direction,r,v.dragged[0])).start&&v.hot.selection.setRangeStart(a.start),v.hot.selection.setRangeEnd(a.end),v.lastSetCell=d),e.preventDefault())}})}},{key:"getCurrentRangeCoords",value:function(e,t,n,o,i){var r=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"===i?{start:new v.CellCoords(t.row,e.highlight.col),end:new v.CellCoords(s.row,t.col)}:{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,r.col)};break;case"SE-NW":"bottomRight"===i&&(u={start:new v.CellCoords(a.row,t.col),end:new v.CellCoords(t.row,r.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"===i?u={start:t,end:s}:u.end=t;break;case"NW-SE":"topLeft"===i?u={start:t,end:a}:u.end=t;break;case"SE-NW":"topLeft"===i?u={start:t,end:r}:u.end=t;break;case"SW-NE":"topLeft"===i?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"===i?{start:new v.CellCoords(t.row,r.col),end:new v.CellCoords(s.row,t.col)}:{start:new v.CellCoords(r.row,t.col),end:new v.CellCoords(t.row,a.col)};break;case"SW-NE":u="topLeft"===i?{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,a.col)}:{start:new v.CellCoords(t.row,r.col),end:new v.CellCoords(r.row,t.col)};break;case"SE-NW":"bottomRight"===i?u={start:new v.CellCoords(t.row,l.col),end:new v.CellCoords(r.row,t.col)}:"topLeft"===i&&(u={start:s,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"===i&&(u.end=t);break;case"SE-NW":"topLeft"===i?u.end=t:u={start:t,end:r}}}return u}},{key:"isDragged",value:function(){return 0<this.dragged.length}}]),n}(h.default);(0,f.registerPlugin)("multipleSelectionHandles",p);var m=p;t.default=m},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(22)),h=o(n(445)),d=n(3),f=n(20),v=function(e){function o(e){var t;return(0,i.default)(this,o),(t=(0,a.default)(this,(0,s.default)(o).call(this,e))).observer=null,t}return(0,u.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.observer||(this.observer=new h.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(e){return n.onDataChange(e)}),this.addHook("afterCreateRow",function(){return n.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return n.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return n.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return n.onAfterTableAlter()}),this.addHook("afterChange",function(e,t){return n.onAfterTableAlter(t)}),this.addHook("afterLoadData",function(e){return n.onAfterLoadData(e)}),(0,l.default)((0,s.default)(o.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),(0,l.default)((0,s.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n="".concat(this.pluginName,".change"),o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[[e.row,e.col,null,e.value]],n)}};(0,d.arrayEach)(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),(0,l.default)((0,s.default)(o.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),o}(c.default),g=v;t.default=g,(0,f.registerPlugin)("observeChanges",v)},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(446)),s=o(n(59)),l=n(4),u=n(447),c=function(){function t(e){(0,i.default)(this,t),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(e)}return(0,r.default)(t,[{key:"setObservedData",value:function(e){var t=this;this.observer&&a.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=a.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,u.cleanPatches)(e))}},{key:"destroy",value:function(){a.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),t}();(0,l.mixin)(c,s.default);var h=c;t.default=h},function(e,t,n){"use strict";var o=n(0);n(12),n(53),n(40),n(30),n(55),n(61),n(39),n(48),n(32);var i,k=o(n(44)),s=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},T=Error;!function(l){var h=function(e){if(p(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t};var f={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return r(n,[o]),r(n,[{op:"remove",path:this.from}]),r(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return r(n,[o]),r(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,t){return function e(t,n){switch((0,k.default)(t)){case"undefined":case"boolean":case"string":case"number":return t===n;case"object":if(null===t)return null===n;if(p(t)){if(!p(n)||t.length!==n.length)return!1;for(var o=0,i=t.length;o<i;o++)if(!e(t[o],n[o]))return!1;return!0}var r=h(n).length;if(h(t).length!==r)return!1;for(o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0;default:return!1}}(e[t],this.value)},_get:function(e,t){this.value=e[t]}},v={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:f.move,copy:f.copy,test:f.test,_get:f._get},g={add:function(e){for(var t in g.remove.call(this,e),this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&f.remove.call(this,e,t);return!0},replace:function(e){return r(e,[{op:"remove",path:this.path}]),r(e,[{op:"add",path:this.path,value:this.value}]),!0},move:f.move,copy:f.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}};function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}var p,u=[],c=function(e){this.observers=[],this.obj=e},m=function(e,t){this.callback=e,this.observer=t};function y(e){return"object"===(0,k.default)(e)?JSON.parse(JSON.stringify(e)):e}function w(e){for(var t,n=0,o=u.length;n<o;n++)if(u[n].obj===e.object){t=u[n];break}C(t.value,e.object,e.patches,""),e.patches.length&&r(t.value,e.patches);var i=e.patches;return 0<i.length&&(e.patches=[],e.callback&&e.callback(i)),i}function C(e,t,n,o){for(var i=h(t),r=h(e),a=!1,s=r.length-1;0<=s;s--){var l=e[c=r[s]];if(t.hasOwnProperty(c)){var u=t[c];"object"==(0,k.default)(l)&&null!=l&&"object"==(0,k.default)(u)&&null!=u?C(l,u,n,o+"/"+d(c)):l!=u&&(!0,n.push({op:"replace",path:o+"/"+d(c),value:y(u)}))}else n.push({op:"remove",path:o+"/"+d(c)}),a=!0}if(a||i.length!=r.length)for(s=0;s<i.length;s++){var c=i[s];e.hasOwnProperty(c)||n.push({op:"add",path:o+"/"+d(c),value:y(t[c])})}}function E(e){for(var t,n=0,o=e.length;n<o;){if(!(48<=(t=e.charCodeAt(n))&&t<=57))return!1;n++}return!0}function r(e,t,n){for(var o,i,r=!1,a=0,s=t.length;a<s;){o=t[a],a++;for(var l=(o.path||"").split("/"),u=e,c=1,h=l.length,d=void 0;;){if(i=l[c],n&&void 0===d&&(void 0===u[i]?d=l.slice(0,c).join("/"):c==h-1&&(d=o.path),void 0!==d&&this.validator(o,a-1,e,d)),c++,void 0===i&&h<=c){r=g[o.op].call(o,u,i,e);break}if(p(u)){if("-"===i)i=u.length;else{if(n&&!E(i))throw new S("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a-1,o.path,o);i=parseInt(i,10)}if(h<=c){if(n&&"add"===o.op&&i>u.length)throw new S("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a-1,o.path,o);r=v[o.op].call(o,u,i,e);break}}else if(i&&-1!=i.indexOf("~")&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),h<=c){r=f[o.op].call(o,u,i,e);break}u=u[i]}}return r}l.unobserve=function(e,t){t.unobserve()},l.observe=function(e,t){var n,o=function(e){for(var t=0,n=u.length;t<n;t++)if(u[t].obj===e)return u[t]}(e);if(o?n=function(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].callback===t)return e.observers[n].observer}(o,t):(o=new c(e),u.push(o)),n)return n;if(n={},o.value=y(e),t){n.callback=t,n.next=null;var i=this.intervals||[100,1e3,1e4,6e4];if(void 0===i.push)throw new T("jsonpatch.intervals must be an array");var r=0,a=function(){w(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(function(){a(),r=0,n.next=setTimeout(l,i[r++])},0)},l=function e(){a(),r==i.length&&(r=i.length-1),n.next=setTimeout(e,i[r++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",s),window.addEventListener("mouseup",s),window.addEventListener("keydown",s)):(document.documentElement.attachEvent("onmousedown",s),document.documentElement.attachEvent("onmouseup",s),document.documentElement.attachEvent("onkeydown",s))),n.next=setTimeout(l,i[r++])}return n.patches=[],n.object=e,n.unobserve=function(){w(n),clearTimeout(n.next),function(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].observer===t)return e.observers.splice(n,1)}(o,n),0===o.observers.length&&u.splice(u.indexOf(o),1),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",s),window.removeEventListener("mouseup",s),window.removeEventListener("keydown",s)):(document.documentElement.detachEvent("onmousedown",s),document.documentElement.detachEvent("onmouseup",s),document.documentElement.detachEvent("onkeydown",s)))},o.observers.push(new m(t,n)),n},l.generate=w,p=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},l.apply=r,l.compare=function(e,t){var n=[];return C(e,t,n,""),n};var a,S=(s(e,a=T),e);function e(e,t,n,o,i){a.call(this,e),this.message=e,this.name=t,this.index=n,this.operation=o,this.tree=i}l.JsonPatchError=S,l.Error=S,l.validator=function(e,t,n,o){if("object"!==(0,k.default)(e)||null===e||p(e))throw new S("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!f[e.op])throw new S("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new S("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new S("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new S("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return!0;if("array"==typeof t||"object"==(0,k.default)(t))for(var n in t)if(e(t[n]))return!0;return!1}(e.value))throw new S("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var i=e.path.split("/").length,r=o.split("/").length;if(i!==r+1&&i!==r)throw new S("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==o)throw new S("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a={op:"_get",path:e.from,value:void 0},s=l.validate([a],n);if(s&&"OPERATION_PATH_UNRESOLVABLE"===s.name)throw new S("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}},l.validate=function(e,t){try{if(!p(e))throw new S("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),r.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof S)return e;throw e}}}(i=i||{}),t.apply=i.apply,t.observe=i.observe,t.unobserve=i.unobserve,t.generate=i.generate,t.compare=i.compare,t.validate=i.validate,t.validator=i.validator,t.JsonPatchError=i.JsonPatchError,t.Error=i.Error},function(e,t,n){"use strict";var o=n(0);n(12),n(134),t.__esModule=!0,t.cleanPatches=function(e){var t=[],n=(0,i.arrayFilter)(e,function(e){return!/[/]length/gi.test(e.path)&&!!a(e.path)});return n=(0,i.arrayMap)(n,function(e){var t=a(e.path);return e.row=t.row,e.col=t.col,e}),n=(0,i.arrayFilter)(n,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,n},t.parsePath=a;var r=o(n(18)),i=n(3);function a(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=(0,r.default)(t,3),o=n[1],i=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(i)?parseInt(i,10):i}}},function(e,t,n){"use strict";var o=n(0);n(31),n(12),n(53),n(30),n(10),n(36),n(38),n(229),n(48),t.__esModule=!0,t.default=void 0;function i(e,t,n,o,i){e.getCellMeta(t,n).isSearchResult=i}function r(e,t){return!((0,m.isUndefined)(e)||null===e||!e.toLowerCase||0===e.length)&&(!(0,m.isUndefined)(t)&&null!==t&&-1!==t.toString().toLowerCase().indexOf(e.toLowerCase()))}var u=o(n(37)),a=o(n(1)),s=o(n(2)),l=o(n(7)),c=o(n(5)),h=o(n(14)),d=o(n(8)),f=o(n(22)),v=n(20),g=n(4),p=n(17),m=n(28),y=function(e){function n(e){var t;return(0,a.default)(this,n),(t=(0,l.default)(this,(0,c.default)(n).call(this,e))).callback=i,t.queryMethod=r,t.searchResultClass="htSearchResult",t}return(0,d.default)(n,e),(0,s.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().search;this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){return e.onBeforeRenderer.apply(e,arguments)}),(0,h.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){function e(){return t.onBeforeRenderer.apply(t,arguments)}var t=this;this.hot.addHook("beforeRenderer",e),this.hot.addHookOnce("afterRender",function(){t.hot.removeHook("beforeRenderer",e)}),(0,h.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,h.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(s,e,t){var l=this,u=1<arguments.length&&void 0!==e?e:this.getCallback(),c=2<arguments.length&&void 0!==t?t:this.getQueryMethod(),n=this.hot.countRows(),o=this.hot.countCols(),h=[],d=this.hot;return(0,p.rangeEach)(0,n-1,function(a){(0,p.rangeEach)(0,o-1,function(e){var t=l.hot.getDataAtCell(a,e),n=l.hot.getCellMeta(a,e),o=n.search.callback||u,i=(n.search.queryMethod||c)(s,t);if(i){var r={row:a,col:e,data:t};h.push(r)}o&&o(d,a,e,t,i)})}),h}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){(0,g.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,o,i,r){var a,s=r.className||[],l=[];"string"==typeof s?l=s.split(" "):(a=l).push.apply(a,(0,u.default)(s));this.isEnabled()&&r.isSearchResult?l.includes(this.searchResultClass)||l.push("".concat(this.searchResultClass)):l.includes(this.searchResultClass)&&l.splice(l.indexOf(this.searchResultClass),1),r.className=l.join(" ")}},{key:"destroy",value:function(){(0,h.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}]),n}(f.default);(0,v.registerPlugin)("search",y);var w=y;t.default=w},function(e,t,n){"use strict";var o=n(0);n(32),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=n(6),h=n(3),d=o(n(22)),f=n(20),v=n(74),g=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).scrollbars=[],t.clones=[],t.lockedCollection=!1,t.freezeOverlays=!1,t}return(0,u.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return(0,v.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),(0,l.default)((0,s.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,(0,l.default)((0,s.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,l.default)((0,s.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,i=e.topLeftCornerOverlay,r=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),i&&this.scrollbars.push(i),r&&r.clone&&this.scrollbars.push(r),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&this.clones.push(i.clone.wtTable.holder.parentNode),r&&r.clone&&this.clones.push(r.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,h.arrayEach)(this.clones,function(e){(0,c.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,h.arrayEach)(this.clones,function(e){(0,c.removeClass)(e,"hide-tween"),(0,c.addClass)(e,"show-tween")}),setTimeout(function(){(0,h.arrayEach)(e.clones,function(e){(0,c.removeClass)(e,"show-tween")})},400),(0,h.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),n}(d.default);(0,f.registerPlugin)("touchScroll",g);var p=g;t.default=p},function(e,t,n){"use strict";var o=n(0);n(47),n(136),n(31),n(12),n(40),n(65),n(30),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),v=o(n(18)),u=o(n(43)),c=n(3),g=n(17),p=n(4),h=n(33),d=n(62);function m(d){var f=this;this.instance=d,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,d.addHook("afterChange",function(e,t){var n=e&&e.length;if(n&&!["UndoRedo.undo","UndoRedo.redo","MergeCells"].includes(t)&&e.find(function(e){var t=(0,v.default)(e,4);return t[2]!==t[3]})){var o=1<n?this.getSelected():[[e[0][0],e[0][1]]];f.done(new m.ChangeAction(e,o))}}),d.addHook("afterCreateRow",function(e,t,n){if("UndoRedo.undo"!==n&&"UndoRedo.undo"!==n&&"auto"!==n){var o=new m.CreateRowAction(e,t);f.done(o)}}),d.addHook("beforeRemoveRow",function(e,t,n,o){if("UndoRedo.undo"!==o&&"UndoRedo.redo"!==o&&"auto"!==o){var i=f.instance.getSourceDataArray(),r=(i.length+e)%i.length,a=d.toPhysicalRow(r),s=(0,p.deepClone)(i.slice(a,a+t));f.done(new m.RemoveRowAction(r,s))}}),d.addHook("afterCreateCol",function(e,t,n){"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&"auto"!==n&&f.done(new m.CreateColumnAction(e,t))}),d.addHook("beforeRemoveCol",function(e,o,t,n){if("UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&"auto"!==n){var i=f.instance.getSourceDataArray(),r=(f.instance.countCols()+e)%f.instance.countCols(),a=[],s=[],l=[];(0,g.rangeEach)(i.length-1,function(e){var t=[],n=i[e];(0,g.rangeEach)(r,o-1+r,function(e){t.push(n[d.runHooks("modifyCol",e)])}),a.push(t)}),(0,g.rangeEach)(o-1,function(e){l.push(d.runHooks("modifyCol",r+e))}),Array.isArray(d.getSettings().colHeaders)&&(0,g.rangeEach)(o-1,function(e){s.push(d.getSettings().colHeaders[d.runHooks("modifyCol",r+e)]||null)});var u=f.instance.getPlugin("manualColumnMove"),c=u.isEnabled()?u.columnsMapper.__arrayMap:[],h=new m.RemoveColumnAction(r,l,a,s,c);f.done(h)}}),d.addHook("beforeCellAlignment",function(e,t,n,o){var i=new m.CellAlignmentAction(e,t,n,o);f.done(i)}),d.addHook("beforeFilter",function(e){f.done(new m.FiltersAction(e))}),d.addHook("beforeRowMove",function(e,t){!1!==e&&f.done(new m.RowMoveAction(e,t))}),d.addHook("beforeMergeCells",function(e,t){t||f.done(new m.MergeCellsAction(d,e))}),d.addHook("afterUnmergeCells",function(e,t){t||f.done(new m.UnmergeCellsAction(d,e))})}function f(){var e=this;void 0===e.getSettings().undo||e.getSettings().undo?e.undoRedo||(e.undoRedo=new m(e),function(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}(e),e.addHook("beforeKeyDown",y),e.addHook("afterChange",w)):e.undoRedo&&(delete e.undoRedo,function(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}(e),e.removeHook("beforeKeyDown",y),e.removeHook("afterChange",w))}function y(e){if(!(0,h.isImmediatePropagationStopped)(e)){var t=this.getActiveEditor();if(!t||!t.isOpened()){var n=e.altKey,o=e.ctrlKey,i=e.keyCode,r=e.metaKey,a=e.shiftKey;if((o||r)&&!n)89===i||a&&90===i?(this.undoRedo.redo(),(0,h.stopImmediatePropagation)(e)):90===i&&(this.undoRedo.undo(),(0,h.stopImmediatePropagation)(e))}}}function w(e,t){if("loadData"===t)return this.undoRedo.clear()}m.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},m.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,p.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,function(){o.ignoreNewActions=!1,o.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},m.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,p.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,function(){o.ignoreNewActions=!1,o.doneActions.push(e)}),n.runHooks("afterRedo",t)}},m.prototype.isUndoAvailable=function(){return 0<this.doneActions.length},m.prototype.isRedoAvailable=function(){return 0<this.undoneActions.length},m.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},(m.Action=function(){}).prototype.undo=function(){},m.Action.prototype.redo=function(){},m.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},(0,p.inherit)(m.ChangeAction,m.Action),m.ChangeAction.prototype.undo=function(e,t){for(var n=(0,p.deepClone)(this.changes),o=e.countEmptyRows(!0),i=e.countEmptyCols(!0),r=0,a=n.length;r<a;r++)n[r].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var s=0,l=n.length;s<l;s++){var u=(0,v.default)(n[s],2),c=u[0],h=u[1];e.getSettings().minSpareRows&&c+1+e.getSettings().minSpareRows===e.countRows()&&o===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(c+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&h+1+e.getSettings().minSpareCols===e.countCols()&&i===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(h+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())}e.selectCells(this.selected,!1,!1)},m.ChangeAction.prototype.redo=function(e,t){for(var n=(0,p.deepClone)(this.changes),o=0,i=n.length;o<i;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)},m.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,p.inherit)(m.CreateRowAction,m.Action),m.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&this.index-o<n&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},m.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},m.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,p.inherit)(m.RemoveRowAction,m.Action),m.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},m.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},m.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,p.inherit)(m.CreateColumnAction,m.Action),m.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},m.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},m.RemoveColumnAction=function(e,t,n,o,i){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=i.slice(0),this.actionType="remove_col"},(0,p.inherit)(m.RemoveColumnAction,m.Action),m.RemoveColumnAction.prototype.undo=function(n,e){function t(e,t,n){return n[i.indexes.indexOf(r[t])]}var o,i=this,r=this.indexes.slice(0).sort(),a=[];(0,g.rangeEach)(this.data.length-1,function(e){a[e]=(0,c.arrayMap)(i.data[e],t)});var s;s=(0,c.arrayMap)(this.headers,t);var l=[];n.runHooks("beforeCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,g.rangeEach)(this.data.length-1,function(t){o=n.getSourceDataAtRow(t),(0,g.rangeEach)(r.length-1,function(e){o.splice(r[e],0,a[t][e]),l.push([t,r[e],null,a[t][e]])})}),n.getPlugin("formulas")&&n.getPlugin("formulas").onAfterSetDataAtCell(l),void 0!==this.headers&&(0,g.rangeEach)(s.length-1,function(e){n.getSettings().colHeaders.splice(r[e],0,s[e])}),n.getPlugin("manualColumnMove")&&(n.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),n.addHookOnce("afterRender",e),n.runHooks("afterCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),n.getPlugin("formulas")&&n.getPlugin("formulas").recalculateFull(),n.render()},m.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},(m.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o}).prototype.undo=function(r,e){var a=this;(0,c.arrayEach)(this.range,function(e){for(var t=e.from,n=e.to,o=t.row;o<=n.row;o+=1)for(var i=t.col;i<=n.col;i+=1)r.setCellMeta(o,i,"className",a.stateBefore[o][i]||" htLeft")}),r.addHookOnce("afterRender",e),r.render()},m.CellAlignmentAction.prototype.redo=function(i,e){(0,d.align)(this.range,this.type,this.alignment,function(e,t){return i.getCellMeta(e,t)},function(e,t,n,o){return i.setCellMeta(e,t,n,o)}),i.addHookOnce("afterRender",e),i.render()},m.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,p.inherit)(m.FiltersAction,m.Action),m.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},m.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()},m.MergeCellsAction=function(e){function o(e,t){var n;return(0,i.default)(this,o),(n=(0,a.default)(this,(0,s.default)(o).call(this))).cellRange=t,n.rangeData=e.getData(t.from.row,t.from.col,t.to.row,t.to.col),n}return(0,l.default)(o,e),(0,r.default)(o,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.populateFromArray(this.cellRange.from.row,this.cellRange.from.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange)}}]),o}(m.Action),m.UnmergeCellsAction=function(e){function o(e,t){var n;return(0,i.default)(this,o),(n=(0,a.default)(this,(0,s.default)(o).call(this))).cellRange=t,n}return(0,l.default)(o,e),(0,r.default)(o,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),o}(m.Action),m.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,p.inherit)(m.RowMoveAction,m.Action),m.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.rows[0]<this.target?-1*this.rows.length:0,i=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],r=[],a=this.rows.length+o,s=o;s<a;s+=1)r.push(this.target+s);n.moveRows(r.slice(),i),e.render(),e.selectCell(this.rows[0],0,this.rows[this.rows.length-1],e.countCols()-1,!1,!1)},m.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selectCell(o,0,o+this.rows.length-1,e.countCols()-1,!1,!1)};var C=u.default.getSingleton();C.add("afterInit",f),C.add("afterUpdateSettings",f),C.register("beforeUndo"),C.register("afterUndo"),C.register("beforeRedo"),C.register("afterRedo");var E=m;t.default=E},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(22)),h=n(17),d=n(20),f=o(n(452)),v=function(e){function o(e){var t;return(0,i.default)(this,o),(t=(0,a.default)(this,(0,s.default)(o).call(this,e))).bindStrategy=new f.default,t.removedRows=[],t}return(0,u.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().bindRowsWithHeaders}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){var e=this.hot.getSettings().bindRowsWithHeaders;"string"!=typeof e&&(e=f.default.DEFAULT_STRATEGY),this.bindStrategy.setStrategy(e),this.bindStrategy.createMap(this.hot.countSourceRows()),this.addHook("modifyRowHeader",function(e){return n.onModifyRowHeader(e)}),this.addHook("afterCreateRow",function(e,t){return n.onAfterCreateRow(e,t)}),this.addHook("beforeRemoveRow",function(e,t){return n.onBeforeRemoveRow(e,t)}),this.addHook("afterRemoveRow",function(){return n.onAfterRemoveRow()}),this.addHook("afterLoadData",function(e){return n.onAfterLoadData(e)}),(0,l.default)((0,s.default)(o.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){(0,l.default)((0,s.default)(o.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.removedRows.length=0,this.bindStrategy.clearMap(),(0,l.default)((0,s.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(e){return this.bindStrategy.translate(this.hot.runHooks("modifyRow",e))}},{key:"onAfterCreateRow",value:function(e,t){this.bindStrategy.createRow(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,h.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e))})}},{key:"onAfterRemoveRow",value:function(){this.bindStrategy.removeRow(this.removedRows)}},{key:"onAfterLoadData",value:function(e){e||this.bindStrategy.createMap(this.hot.countSourceRows())}},{key:"destroy",value:function(){this.bindStrategy.destroy(),(0,l.default)((0,s.default)(o.prototype),"destroy",this).call(this)}}]),o}(c.default);(0,d.registerPlugin)("bindRowsWithHeaders",v);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=n(17),l=n(72),u=o(n(453)),c=function(){function e(){(0,r.default)(this,e),this.strategy=null}return(0,a.default)(e,null,[{key:"DEFAULT_STRATEGY",get:function(){return"loose"}}]),(0,a.default)(e,[{key:"setStrategy",value:function(e){var t=u[(0,l.toUpperCaseFirst)(e)];if(!t)throw new Error('Bind strategy "'.concat(e,'" does not exist.'));this.strategy=new t}},{key:"createMap",value:function(e){var t=this.strategy,n=void 0===e?t._arrayMap.length:e;(t._arrayMap.length=0,s.rangeEach)(n-1,function(e){t._arrayMap.push(e)})}},{key:"createRow",value:function(){var e;(e=this.strategy).createRow.apply(e,arguments)}},{key:"removeRow",value:function(){var e;(e=this.strategy).removeRow.apply(e,arguments)}},{key:"translate",value:function(){var e;return(e=this.strategy).getValueByIndex.apply(e,arguments)}},{key:"clearMap",value:function(){this.strategy.clearMap()}},{key:"destroy",value:function(){this.strategy&&this.strategy.destroy(),this.strategy=null}}]),e}();t.default=c},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0;var i=o(n(454));t.Loose=i.default;var r=o(n(455));t.Strict=r.default},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(4),l=function(){function e(){(0,i.default)(this,e)}return(0,r.default)(e,[{key:"createRow",value:function(e,t){this.shiftItems(e,t)}},{key:"removeRow",value:function(e,t){this.unshiftItems(e,t)}},{key:"destroy",value:function(){this._arrayMap=null}}],[{key:"STRATEGY_NAME",get:function(){return"loose"}}]),e}();(0,s.mixin)(l,a.default);var u=l;t.default=u},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(4),l=function(){function e(){(0,i.default)(this,e)}return(0,r.default)(e,[{key:"createRow",value:function(e,t){this.insertItems(e,t)}},{key:"removeRow",value:function(e,t){this.removeItems(e,t)}},{key:"destroy",value:function(){this._arrayMap=null}}],[{key:"STRATEGY_NAME",get:function(){return"strict"}}]),e}();(0,s.mixin)(l,a.default);var u=l;t.default=u},function(e,t,n){"use strict";var o=n(0);n(12),n(30),n(61),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=n(4),h=n(3),d=n(17),f=n(58),v=n(6),g=o(n(24)),p=n(20),m=n(33),y=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).settings=null,t.buttonEnabledList={},t.hiddenColumnsPlugin=null,t.nestedHeadersPlugin=null,t.collapsedSections={},t.columnHeaderLevelCount=null,t.eventManager=null,t}return(0,u.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().collapsibleColumns}},{key:"enablePlugin",value:function(){var o=this;this.enabled||(this.settings=this.hot.getSettings().collapsibleColumns,"boolean"!=typeof this.settings&&this.parseSettings(),this.hiddenColumnsPlugin=this.hot.getPlugin("hiddenColumns"),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.checkDependencies(),this.addHook("afterRender",function(){return o.onAfterRender()}),this.addHook("afterInit",function(){return o.onAfterInit()}),this.addHook("afterGetColHeader",function(e,t){return o.onAfterGetColHeader(e,t)}),this.addHook("beforeOnCellMouseDown",function(e,t,n){return o.onBeforeOnCellMouseDown(e,t,n)}),this.eventManager=new g.default(this.hot),(0,l.default)((0,s.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.settings=null,this.buttonEnabledList={},this.hiddenColumnsPlugin=null,this.collapsedSections={},this.clearButtons(),(0,l.default)((0,s.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"clearButtons",value:function(){if(this.hot.view){var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,r=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,a=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,d.rangeEach)(0,e-1,function(e){var n=t.childNodes[e],o=r.childNodes[e],i=a?a.childNodes[e]:null;(0,d.rangeEach)(0,n.childNodes.length-1,function(e){var t=n.childNodes[e].querySelector(".collapsibleIndicator");s(t),o&&o.childNodes[e]&&(t=o.childNodes[e].querySelector(".collapsibleIndicator"),s(t)),a&&i&&i.childNodes[e]&&(t=i.childNodes[e].querySelector(".collapsibleIndicator"),s(t))})},!0)}}},{key:"parseSettings",value:function(){var t=this;(0,c.objectEach)(this.settings,function(e){t.buttonEnabledList[e.row]||(t.buttonEnabledList[e.row]={}),t.buttonEnabledList[e.row][e.col]=e.collapsible})}},{key:"meetsDependencies",value:function(){var e=this.hot.getSettings();return e.nestedHeaders&&e.hiddenColumns}},{key:"checkDependencies",value:function(){var e=this.hot.getSettings();this.meetsDependencies()||(e.nestedHeaders||(0,f.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),e.hiddenColumns||(0,f.warn)("You need to configure the Hidden Columns plugin in order to use collapsible headers."))}},{key:"generateIndicator",value:function(e,t){var n=t.parentNode,o=n.parentNode,i=-1*o.childNodes.length+Array.prototype.indexOf.call(o.childNodes,n);if(0<Object.keys(this.buttonEnabledList).length&&(!this.buttonEnabledList[i]||!this.buttonEnabledList[i][e]))return null;var r=this.hot.rootDocument.createElement("DIV");return(0,v.addClass)(r,"collapsibleIndicator"),this.collapsedSections[i]&&!0===this.collapsedSections[i][e]?((0,v.addClass)(r,"collapsed"),(0,v.fastInnerText)(r,"+")):((0,v.addClass)(r,"expanded"),(0,v.fastInnerText)(r,"-")),r}},{key:"markSectionAs",value:function(e,t,n,o){switch(this.collapsedSections[t]||(this.collapsedSections[t]={}),e){case"collapsed":this.collapsedSections[t][n]=!0;break;case"expanded":this.collapsedSections[t][n]=void 0}if(o)for(var i=this.nestedHeadersPlugin.colspanArray,r=this.nestedHeadersPlugin.rowCoordsToLevel(t),a=this.nestedHeadersPlugin.getChildHeaders(t,n),s=i[r+1],l=1;l<a.length;l++)s&&1<s[a[l]].colspan&&this.markSectionAs(e,t+1,a[l],!0)}},{key:"expandSection",value:function(e){this.markSectionAs("expanded",e.row,e.col,!0),this.toggleCollapsibleSection(e,"expand")}},{key:"collapseSection",value:function(e){this.markSectionAs("collapsed",e.row,e.col,!0),this.toggleCollapsibleSection(e,"collapse")}},{key:"toggleAllCollapsibleSections",value:function(r){var a=this,e=this.nestedHeadersPlugin.colspanArray;!0===this.settings?(0,h.arrayEach)(e,function(e,i){(0,h.arrayEach)(e,function(e,t){if(1<e.colspan){var n=a.nestedHeadersPlugin.levelToRowCoords(parseInt(i,10)),o=parseInt(t,10);a.markSectionAs("collapse"===r?"collapsed":"expanded",n,o,!0),a.toggleCollapsibleSection({row:n,col:o},r)}})}):(0,c.objectEach)(this.buttonEnabledList,function(e,i){(0,c.objectEach)(e,function(e,t){var n=parseInt(i,10),o=parseInt(t,10);a.markSectionAs("collapse"===r?"collapsed":"expanded",n,o,!0),a.toggleCollapsibleSection({row:n,col:o},r)})})}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(n,o){var i=this;n.row&&(n.row=parseInt(n.row,10)),n.col&&(n.col=parseInt(n.col,10));for(var r=this.hiddenColumnsPlugin.hiddenColumns,e=this.nestedHeadersPlugin.colspanArray,t=this.nestedHeadersPlugin.rowCoordsToLevel(n.row),a=e[t][n.col].colspan,s=this.nestedHeadersPlugin.getChildHeaders(n.row,n.col),l=t+1,u=e[l],c=u&&u[s[0]].colspan||1;c===a&&l<this.columnHeaderLevelCount;)c=(u=e[l+=1])&&u[s[0]].colspan||1;(0,d.rangeEach)(c,a-1,function(e){var t=n.col+e;switch(o){case"collapse":i.hiddenColumnsPlugin.isHidden(t)||r.push(t);break;case"expand":i.hiddenColumnsPlugin.isHidden(t)&&r.splice(r.indexOf(t),1)}}),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0)}},{key:"onAfterGetColHeader",value:function(e,t){if(t.hasAttribute("colspan")&&1<t.getAttribute("colspan")&&e>=this.hot.getSettings().fixedColumnsLeft){var n=this.generateIndicator(e,t);null!==n&&t.querySelector("div:first-child").appendChild(n)}}},{key:"onBeforeOnCellMouseDown",value:function(e,t){if((0,v.hasClass)(e.target,"collapsibleIndicator"))return(0,v.hasClass)(e.target,"expanded")?(this.collapsedSections[t.row]||(this.collapsedSections[t.row]=[]),this.markSectionAs("collapsed",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"collapse")):(0,v.hasClass)(e.target,"collapsed")&&(this.markSectionAs("expanded",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"expand")),(0,m.stopImmediatePropagation)(e),!1}},{key:"onAfterInit",value:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length}},{key:"onAfterRender",value:function(){this.nestedHeadersPlugin.enabled&&this.hiddenColumnsPlugin.enabled||this.disablePlugin()}},{key:"destroy",value:function(){this.settings=null,this.buttonEnabledList=null,this.hiddenColumnsPlugin=null,this.nestedHeadersPlugin=null,this.collapsedSections=null,this.columnHeaderLevelCount=null,(0,l.default)((0,s.default)(n.prototype),"destroy",this).call(this)}}]),n}(o(n(22)).default);(0,p.registerPlugin)("collapsibleColumns",y);var w=y;t.default=w},function(e,t,n){"use strict";var o=n(0);n(19),n(12),n(39),n(48),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(22)),h=n(4),d=n(20),f=o(n(458)),v=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).endpoints=null,t}return(0,u.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var i=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.endpoints=new f.default(this,this.settings),this.addHook("afterInit",function(){return i.onAfterInit.apply(i,arguments)}),this.addHook("afterChange",function(){return i.onAfterChange.apply(i,arguments)}),this.addHook("beforeCreateRow",function(e,t,n){return i.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,n)}),this.addHook("beforeCreateCol",function(e,t,n){return i.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,n)}),this.addHook("beforeRemoveRow",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.endpoints).resetSetupBeforeStructureAlteration.apply(e,["remove_row"].concat(n))}),this.addHook("beforeRemoveCol",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.endpoints).resetSetupBeforeStructureAlteration.apply(e,["remove_col"].concat(n))}),this.addHook("beforeRowMove",function(){return i.onBeforeRowMove.apply(i,arguments)}),this.addHook("afterCreateRow",function(e,t,n){return i.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,n)}),this.addHook("afterCreateCol",function(e,t,n){return i.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,n)}),this.addHook("afterRemoveRow",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.endpoints).resetSetupAfterStructureAlteration.apply(e,["remove_row"].concat(n))}),this.addHook("afterRemoveCol",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.endpoints).resetSetupAfterStructureAlteration.apply(e,["remove_col"].concat(n))}),this.addHook("afterRowMove",function(){return i.onAfterRowMove.apply(i,arguments)}),(0,l.default)((0,s.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.endpoints=null,this.settings=null,this.currentEndpoint=null}},{key:"calculate",value:function(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}},{key:"calculateSum",value:function(t){var n=this,o=0;return(0,h.objectEach)(t.ranges,function(e){o+=n.getPartialSum(e,t.sourceColumn)}),o}},{key:"getPartialSum",value:function(e,t){var n=0,o=e[1]||e[0],i=null,r=0;do{i=this.getCellValue(o,t)||0;var a=("".concat(i).split(".")[1]||[]).length||1;r<a&&(r=a),n+=i||0,o-=1}while(o>=e[0]);return Math.round(n*Math.pow(10,r))/Math.pow(10,r)}},{key:"calculateMinMax",value:function(n,o){var i=this,r=null;return(0,h.objectEach)(n.ranges,function(e){var t=i.getPartialMinMax(e,n.sourceColumn,o);if(null===r&&null!==t&&(r=t),null!==t)switch(o){case"min":r=Math.min(r,t);break;case"max":r=Math.max(r,t)}}),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var o,i=null,r=e[1]||e[0];do{if(o=this.getCellValue(r,t)||null,null===i)i=o;else if(null!==o)switch(n){case"min":i=Math.min(i,o);break;case"max":i=Math.max(i,o)}r-=1}while(r>=e[0]);return i}},{key:"countEmpty",value:function(e,t){for(var n=0,o=e[1]||e[0];this.getCellValue(o,t)||(n+=1),(o-=1)>=e[0];);return n}},{key:"countEntries",value:function(o){var i=this,r=0,e=o.ranges;return(0,h.objectEach)(e,function(e){var t=void 0===e[1]?1:e[1]-e[0]+1,n=i.countEmpty(e,o.sourceColumn);r+=t,r-=n}),r}},{key:"calculateAverage",value:function(e){return this.calculateSum(e)/this.countEntries(e)}},{key:"getCellValue",value:function(e,t){var n=this.endpoints.getVisualRowIndex(e),o=this.endpoints.getVisualColumnIndex(t),i=this.hot.getSourceDataAtCell(e,t);if(-1<(this.hot.getCellMeta(n,o).className||"").indexOf("columnSummaryResult"))return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof i&&(i=i.replace(/,/,".")),i=parseFloat(i)),isNaN(i)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error("ColumnSummary plugin: cell at (".concat(e,", ").concat(t,") is not in a numeric format. Cannot do the calculation."));return i}},{key:"onAfterInit",value:function(){this.endpoints.endpoints=this.endpoints.parseSettings(),this.endpoints.refreshAllEndpoints(!0)}},{key:"onAfterChange",value:function(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}},{key:"onBeforeRowMove",value:function(e){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName)}},{key:"onAfterRowMove",value:function(e,t){this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}}]),n}(c.default);(0,d.registerPlugin)("columnSummary",v);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(0);n(12),n(459),t.__esModule=!0,t.default=void 0;var c=o(n(18)),i=o(n(1)),r=o(n(2)),f=n(3),a=n(58),s=n(92),l=function(){function n(e,t){(0,i.default)(this,n),this.plugin=e,this.hot=this.plugin.hot,this.endpoints=[],this.settings=t,this.settingsType="array",this.currentEndpoint=null,this.cellsToSetCache=[],this.recordTranslator=(0,s.getTranslator)(this.hot)}return(0,r.default)(n,[{key:"getEndpoint",value:function(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}},{key:"getAllEndpoints",value:function(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}},{key:"fillMissingEndpointData",value:function(e){return this.parseSettings(e.call(this))}},{key:"parseSettings",value:function(e){var n=this,o=[],t=e;if(t||"function"!=typeof this.settings)return t=t||this.settings,(0,f.arrayEach)(t,function(e){var t={};n.assignSetting(e,t,"ranges",[[0,n.hot.countRows()-1]]),n.assignSetting(e,t,"reversedRowCoords",!1),n.assignSetting(e,t,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),n.assignSetting(e,t,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),n.assignSetting(e,t,"sourceColumn",e.destinationColumn),n.assignSetting(e,t,"type","sum"),n.assignSetting(e,t,"forceNumeric",!1),n.assignSetting(e,t,"suppressDataTypeErrors",!0),n.assignSetting(e,t,"suppressDataTypeErrors",!0),n.assignSetting(e,t,"customFunction",null),n.assignSetting(e,t,"readOnly",!0),n.assignSetting(e,t,"roundFloat",!1),o.push(t)}),o;this.settingsType="function"}},{key:"assignSetting",value:function(e,t,n,o){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(o instanceof Error)throw o;t[n]=o}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=o}},{key:"resetSetupBeforeStructureAlteration",value:function(t,n,o){if("function"===this.settingsType){var i=-1<t.indexOf("row")?"row":"col",e=this.getAllEndpoints();(0,f.arrayEach)(e,function(e){"row"==i&&e.destinationRow>=n&&("insert_row"===t?e.alterRowOffset=o:"remove_row"===t&&(e.alterRowOffset=-1*o)),"col"==i&&e.destinationColumn>=n&&("insert_col"===t?e.alterColumnOffset=o:"remove_col"===t&&(e.alterColumnOffset=-1*o))}),this.resetAllEndpoints(e,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,o,i,r){var a=this,s=!(5<arguments.length&&void 0!==r)||r;if("function"!==this.settingsType){var l=-1<e.indexOf("row")?"row":"col",u=-1<e.indexOf("remove")?-1:1,c=this.getAllEndpoints(),h=0===e.indexOf("move_row"),d=t;(0,f.arrayEach)(c,function(e){"row"==l&&e.destinationRow>=d&&(e.alterRowOffset=u*n),"col"==l&&e.destinationColumn>=d&&(e.alterColumnOffset=u*n)}),this.resetAllEndpoints(c,!h),h?(0,f.arrayEach)(c,function(e){a.extendEndpointRanges(e,d,o[0],o.length),a.recreatePhysicalRanges(e),a.clearOffsetInformation(e)}):(0,f.arrayEach)(c,function(e){a.shiftEndpointCoordinates(e,d)}),s&&this.refreshAllEndpoints()}else{this.hot.addHookOnce("beforeRender",function e(){return a.hot.removeHook("beforeRender",e),a.refreshAllEndpoints()})}}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,o){(0,f.arrayEach)(e.ranges,function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=o:n<e[0]&&(e[0]-=o):n>=e[0]&&n<=e[1]&&(e[1]-=o,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}},{key:"recreatePhysicalRanges",value:function(e){var o=this,t=e.ranges,i=[],r=[];(0,f.arrayEach)(t,function(e){var t=[];if(e[1])for(var n=e[0];n<=e[1];n++)t.push(o.recordTranslator.toPhysicalRow(n));else t.push(o.recordTranslator.toPhysicalRow(e[0]));r.push(t)}),(0,f.arrayEach)(r,function(n){var o=[];(0,f.arrayEach)(n,function(e,t){0===t?o.push(e):n[t]!==n[t-1]+1&&(o.push(n[t-1]),i.push(o),(o=[]).push(e)),t===n.length-1&&(o.push(e),i.push(o))})}),e.ranges=i}},{key:"shiftEndpointCoordinates",value:function(o,i){o.alterRowOffset&&0!==o.alterRowOffset?(o.destinationRow+=o.alterRowOffset||0,(0,f.arrayEach)(o.ranges,function(n){(0,f.arrayEach)(n,function(e,t){i<=e&&(n[t]+=o.alterRowOffset||0)})})):o.alterColumnOffset&&0!==o.alterColumnOffset&&(o.destinationColumn+=o.alterColumnOffset||0,o.sourceColumn+=o.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(e,t){var n=this,o=!(1<arguments.length&&void 0!==t)||t,i=e;this.cellsToSetCache=[],i=i||this.getAllEndpoints(),(0,f.arrayEach)(i,function(e){n.resetEndpointValue(e,o)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshAllEndpoints",value:function(){var t=this;this.cellsToSetCache=[],(0,f.arrayEach)(this.getAllEndpoints(),function(e){t.currentEndpoint=e,t.plugin.calculate(e),t.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var i=this,r=[];this.cellsToSetCache=[],(0,f.arrayEach)(e,function(e,n,o){"".concat(e[2]||"")!=="".concat(e[3])&&(0,f.arrayEach)(i.getAllEndpoints(),function(e,t){i.hot.propToCol(o[n][1])===e.sourceColumn&&-1===r.indexOf(t)&&r.push(t)})}),(0,f.arrayEach)(r,function(e){i.refreshEndpoint(i.getEndpoint(e))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshEndpoint",value:function(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}},{key:"resetEndpointValue",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t,o=e.alterRowOffset||0,i=e.alterColumnOffset||0,r=this.recordTranslator.toVisual(e.destinationRow,e.destinationColumn),a=(0,c.default)(r,2),s=a[0],l=a[1],u=this.hot.getCellMeta(s,l);u.readOnly=!1,u.className="",this.cellsToSetCache.push([this.recordTranslator.toVisualRow(e.destinationRow+(n?o:0)),this.recordTranslator.toVisualColumn(e.destinationColumn+(n?i:0)),""])}},{key:"setEndpointValue",value:function(e,t,n){var o=2<arguments.length&&void 0!==n&&n,i=-1*e.alterRowOffset||0,r=-1*e.alterColumnOffset||0,a=this.getVisualRowIndex(e.destinationRow),s=this.hot.getCellMeta(this.getVisualRowIndex(e.destinationRow+i),e.destinationColumn+r);a>this.hot.countRows()||e.destinationColumn>this.hot.countCols()?this.throwOutOfBoundsWarning():("init"!==t&&s.readOnly===e.readOnly||(s.readOnly=e.readOnly,s.className="columnSummaryResult"),e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),o?this.hot.setDataAtCell(a,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([a,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0)}},{key:"getVisualRowIndex",value:function(e){return this.hot.runHooks("unmodifyRow",e,"columnSummary")}},{key:"getVisualColumnIndex",value:function(e){return this.hot.runHooks("unmodifyCol",e,"columnSummary")}},{key:"throwOutOfBoundsWarning",value:function(){(0,a.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),n}();t.default=l},function(e,t,n){"use strict";var o=n(21),f=n(86),v=n(460),g=n(212),i=n(27),r=1..toFixed,p=Math.floor,m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)};o({target:"Number",proto:!0,forced:r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(function(){r.call({})})},{toFixed:function(e){function t(e,t){for(var n=-1,o=t;++n<6;)o+=e*c[n],c[n]=o%1e7,o=p(o/1e7)}function n(e){for(var t=6,n=0;0<=--t;)n+=c[t],c[t]=p(n/e),n=n%e*1e7}function o(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+g.call("0",7-n.length)+n}return t}var i,r,a,s,l=v(this),u=f(e),c=[0,0,0,0,0,0],h="",d="0";if(u<0||20<u)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||1e21<=l)return String(l);if(l<0&&(h="-",l=-l),1e-21<l)if(r=(i=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}(l*m(2,69,1))-69)<0?l*m(2,-i,1):l/m(2,i,1),r*=4503599627370496,0<(i=52-i)){for(t(0,r),a=u;7<=a;)t(1e7,0),a-=7;for(t(m(10,a,1),0),a=i-1;23<=a;)n(1<<23),a-=23;n(1<<a),t(1,1),n(2),d=o()}else t(0,r),t(1<<-i,0),d=o()+g.call("0",u);return d=0<u?h+((s=d.length)<=u?"0."+g.call("0",u-s)+d:d.slice(0,s-u)+"."+d.slice(s-u)):h+d}})},function(e,t,n){var o=n(76);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var o=n(0);n(19),n(12),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(26)),s=o(n(5)),l=o(n(14)),u=o(n(2)),c=o(n(8)),h=o(n(22)),d=n(3),f=o(n(250)),v=o(n(24)),g=n(6),p=o(n(251)),m=o(n(173)),y=n(20),w=o(n(43)),C=n(33),E=n(82);n(462),w.default.getSingleton().register("afterDropdownMenuDefaultOptions"),w.default.getSingleton().register("beforeDropdownMenuShow"),w.default.getSingleton().register("afterDropdownMenuShow"),w.default.getSingleton().register("afterDropdownMenuHide"),w.default.getSingleton().register("afterDropdownMenuExecute");var S="changeType",k=function(e){function o(e){var n;return(0,i.default)(this,o),(n=(0,r.default)(this,(0,s.default)(o).call(this,e))).eventManager=new v.default((0,a.default)(n)),n.commandExecutor=new f.default(n.hot),n.itemsFactory=null,n.menu=null,n.hot.addHook("afterGetColHeader",function(e,t){return n.onAfterGetColHeader(e,t)}),n}return(0,c.default)(o,e),(0,u.default)(o,null,[{key:"DEFAULT_ITEMS",get:function(){return[E.COLUMN_LEFT,E.COLUMN_RIGHT,E.SEPARATOR,E.REMOVE_COLUMN,E.SEPARATOR,E.CLEAR_COLUMN,E.SEPARATOR,E.READ_ONLY,E.SEPARATOR,E.ALIGNMENT]}}]),(0,u.default)(o,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var i=this;if(!this.enabled){this.itemsFactory=new p.default(this.hot,o.DEFAULT_ITEMS);var t=this.hot.getSettings().dropdownMenu,n={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),(0,l.default)((0,s.default)(o.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady(function(){i.hot.runHooks("afterDropdownMenuDefaultOptions",n),i.itemsFactory.setPredefinedItems(n.items);var e=i.itemsFactory.getItems(t);i.menu&&i.menu.destroy(),i.menu=new m.default(i.hot,{className:"htDropdownMenu",keepInViewport:!0}),i.hot.runHooks("beforeDropdownMenuSetItems",e),i.menu.setMenuItems(e),i.menu.addLocalHook("beforeOpen",function(){return i.onMenuBeforeOpen()}),i.menu.addLocalHook("afterOpen",function(){return i.onMenuAfterOpen()}),i.menu.addLocalHook("afterClose",function(){return i.onMenuAfterClose()}),i.menu.addLocalHook("executeCommand",function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.executeCommand).call.apply(e,[i].concat(n))}),(0,d.arrayEach)(e,function(e){return i.commandExecutor.registerCommand(e.key,e)})})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,l.default)((0,s.default)(o.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,l.default)((0,s.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var t=this;this.eventManager.addEventListener(this.hot.rootElement,"click",function(e){return t.onTableClick(e)})}},{key:"open",value:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=this.commandExecutor).execute.apply(t,[e].concat(o))}},{key:"setListening",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.menu.isOpened()&&(t?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if((0,C.stopPropagation)(e),(0,g.hasClass)(e.target,S)&&!this.menu.isOpened()){var t=e.target.getBoundingClientRect();this.open({left:t.left,top:t.top+e.target.offsetHeight+3,width:t.width,height:t.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var o=n.parentNode.childNodes,i=Array.prototype.indexOf.call(o,n);if(!(e<0||i!==o.length-1)){var r=t.querySelector(".".concat(S));if(!this.enabled||!r)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className=S,a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else r&&r.parentNode.removeChild(r)}}}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeDropdownMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterDropdownMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,l.default)((0,s.default)(o.prototype),"destroy",this).call(this)}}]),o}(h.default);k.SEPARATOR={name:E.SEPARATOR},(0,y.registerPlugin)("dropdownMenu",k);var T=k;t.default=T},function(e,t,n){},function(e,t,n){"use strict";var o=n(9),i=n(0);n(19),n(32),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=i(n(7)),l=i(n(5)),u=i(n(8)),c=i(n(22)),h=n(20),d=i(n(464)),f=o(n(465)),v=function(e){function t(){return(0,r.default)(this,t),(0,s.default)(this,(0,l.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this._createTypeFormatter(e,n).export()}},{key:"exportAsBlob",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this._createBlob(this._createTypeFormatter(e,n))}},{key:"downloadFile",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{},o=this.hot,i=o.rootDocument,r=o.rootWindow,a=this._createTypeFormatter(e,n),s=this._createBlob(a),l=r.URL||r.webkitURL,u=i.createElement("a"),c="".concat(a.options.filename,".").concat(a.options.fileExtension);if(void 0!==u.download){var h=l.createObjectURL(s);u.style.display="none",u.setAttribute("href",h),u.setAttribute("download",c),i.body.appendChild(u),u.dispatchEvent(new MouseEvent("click")),i.body.removeChild(u),setTimeout(function(){l.revokeObjectURL(h)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(s,c)}},{key:"_createTypeFormatter",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};if(!f.EXPORT_TYPES[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return(0,f.default)(e,new d.default(this.hot),n)}},{key:"_createBlob",value:function(e){var t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:"".concat(e.options.mimeType,";charset=").concat(e.options.encoding)})),t}}]),t}(c.default);(0,h.registerPlugin)("exportFile",v);var g=v;t.default=g},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var h=o(n(18)),i=o(n(1)),r=o(n(2)),l=n(17),a=function(){function t(e){(0,i.default)(this,t),this.hot=e,this.options={}}return(0,r.default)(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"getData",value:function(){var o=this,e=this._getDataRange(),t=e.startRow,i=e.startCol,n=e.endRow,r=e.endCol,a=this.options,s=[];return(0,l.rangeEach)(t,n,function(t){var n=[];!a.exportHiddenRows&&o._isHiddenRow(t)||((0,l.rangeEach)(i,r,function(e){!a.exportHiddenColumns&&o._isHiddenColumn(e)||n.push(o.hot.getDataAtCell(t,e))}),s.push(n))}),s}},{key:"getRowHeaders",value:function(){var t=this,n=[];if(this.options.rowHeaders){var e=this._getDataRange(),o=e.startRow,i=e.endRow,r=this.hot.getRowHeader();(0,l.rangeEach)(o,i,function(e){!t.options.exportHiddenRows&&t._isHiddenRow(e)||n.push(r[e])})}return n}},{key:"getColumnHeaders",value:function(){var t=this,n=[];if(this.options.columnHeaders){var e=this._getDataRange(),o=e.startCol,i=e.endCol,r=this.hot.getColHeader();(0,l.rangeEach)(o,i,function(e){!t.options.exportHiddenColumns&&t._isHiddenColumn(e)||n.push(r[e])})}return n}},{key:"_getDataRange",value:function(){var e=this.hot.countCols()-1,t=this.hot.countRows()-1,n=(0,h.default)(this.options.range,4),o=n[0],i=void 0===o?0:o,r=n[1],a=void 0===r?0:r,s=n[2],l=void 0===s?t:s,u=n[3],c=void 0===u?e:u;return{startRow:i=Math.max(i,0),startCol:a=Math.max(a,0),endRow:l=Math.min(l,t),endCol:c=Math.min(c,e)}}},{key:"_isHiddenRow",value:function(e){return this.hot.hasHook("hiddenRow")&&this.hot.runHooks("hiddenRow",e)}},{key:"_isHiddenColumn",value:function(e){return this.hot.hasHook("hiddenColumn")&&this.hot.runHooks("hiddenColumn",e)}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=function(e,t,n){return"function"!=typeof a[e]?null:new a[e](t,n)},t.EXPORT_TYPES=t.TYPE_PDF=t.TYPE_EXCEL=t.TYPE_CSV=void 0;var i=o(n(68)),r=o(n(466));t.TYPE_CSV="csv";t.TYPE_EXCEL="excel";t.TYPE_PDF="pdf";var a=(0,i.default)({},"csv",r.default);t.EXPORT_TYPES=a},function(e,t,n){"use strict";var o=n(0);n(12),n(53),n(170),n(133),n(36),n(39),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(3),c=n(28),h=o(n(467)),d=String.fromCharCode(13),f=String.fromCharCode(34),v=String.fromCharCode(10),g=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"export",value:function(){var n=this,o=this.options,e=this.dataProvider.getData(),t=this.dataProvider.getColumnHeaders(),i=0<t.length,r=this.dataProvider.getRowHeaders(),a=0<r.length,s=o.bom?String.fromCharCode(65279):"";return i&&(t=(0,u.arrayMap)(t,function(e){return n._escapeCell(e,!0)}),a&&(s+=o.columnDelimiter),s+=t.join(o.columnDelimiter),s+=o.rowDelimiter),(0,u.arrayEach)(e,function(e,t){0<t&&(s+=o.rowDelimiter),a&&(s+=n._escapeCell(r[t])+o.columnDelimiter),s+=e.map(function(e){return n._escapeCell(e)}).join(o.columnDelimiter)}),s}},{key:"_escapeCell",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,o=(0,c.stringify)(e);return""!==o&&(n||0<=o.indexOf(d)||0<=o.indexOf(f)||0<=o.indexOf(v)||0<=o.indexOf(this.options.columnDelimiter))&&(o=o.replace(new RegExp('"',"g"),'""'),o='"'.concat(o,'"')),o}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),t}(h.default);t.default=g},function(e,t,n){"use strict";var o=n(0);n(211),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=n(4),s=n(72),l=function(){function o(e,t){(0,i.default)(this,o),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}return(0,r.default)(o,null,[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}}]),(0,r.default)(o,[{key:"_mergeOptions",value:function(e){var t=(0,a.clone)(this.constructor.DEFAULT_OPTIONS),n=new Date;return t=(0,a.extend)((0,a.clone)(o.DEFAULT_OPTIONS),t),(t=(0,a.extend)(t,e)).filename=(0,s.substitute)(t.filename,{YYYY:n.getFullYear(),MM:"".concat(n.getMonth()+1).padStart(2,"0"),DD:"".concat(n.getDate()).padStart(2,"0")}),t}}]),o}();t.default=l},function(e,t,n){"use strict";var o=n(0);n(19),n(65),t.__esModule=!0,t.default=void 0;var i=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(14)),c=o(n(8)),r=o(n(246)),h=n(90),d=n(171),f=n(20),v=n(140),g=n(6),p=n(469),m=n(470),y=n(471);n(472);var w="multiColumnSorting",C="columnSorting";(0,h.registerRootComparator)(w,p.rootComparator);var E=function(e){function r(e){var t;return(0,i.default)(this,r),(t=(0,s.default)(this,(0,l.default)(r).call(this,e))).pluginKey=w,t}return(0,c.default)(r,e),(0,a.default)(r,[{key:"isEnabled",value:function(){return(0,u.default)((0,l.default)(r.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){return!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[C]&&(0,m.warnAboutPluginsConflict)(),(0,u.default)((0,l.default)(r.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){return(0,u.default)((0,l.default)(r.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){return(0,u.default)((0,l.default)(r.prototype),"sort",this).call(this,e)}},{key:"clearSort",value:function(){return(0,u.default)((0,l.default)(r.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return(0,u.default)((0,l.default)(r.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(e){return(0,u.default)((0,l.default)(r.prototype),"getSortConfig",this).call(this,e)}},{key:"setSortConfig",value:function(e){return(0,u.default)((0,l.default)(r.prototype),"setSortConfig",this).call(this,e)}},{key:"getNormalizedSortConfigs",value:function(e){var t=0<arguments.length&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}},{key:"updateHeaderClasses",value:function(e){for(var t,n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=(0,u.default)((0,l.default)(r.prototype),"updateHeaderClasses",this)).call.apply(t,[this,e].concat(o)),(0,g.removeClass)(e,(0,y.getClassedToRemove)(e)),!1!==this.enabled&&(0,g.addClass)(e,y.getClassesToAdd.apply(void 0,o))}},{key:"onUpdateSettings",value:function(e){return this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[C]&&(0,m.warnAboutPluginsConflict)(),(0,u.default)((0,l.default)(r.prototype),"onUpdateSettings",this).call(this,e)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,d.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&((0,v.isPressedCtrlKey)()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}]),r}(r.default);(0,f.registerPlugin)(w,E);var S=E;t.default=S},function(e,t,n){"use strict";var o=n(0);n(40),t.__esModule=!0,t.rootComparator=function(h,d){return function(e,t){var u=(0,i.default)(e).slice(1),c=(0,i.default)(t).slice(1);return function e(t){var n=h[t],o=d[t],i=u[t],r=c[t],a=o.multiColumnSorting,s=(a.compareFunctionFactory?a.compareFunctionFactory:(0,f.getCompareFunctionFactory)(o.type))(n,o,a)(i,r);if(s===f.DO_NOT_SWAP){var l=t+1;if(void 0!==d[l])return e(l)}return s}(0)}};var i=o(n(248)),f=n(90)},function(e,t,n){"use strict";t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,o.warn)("Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously.")};var o=n(58)},function(e,t,n){"use strict";n(47),n(133),n(36),n(48),t.__esModule=!0,t.getClassesToAdd=function(e,t,n){var o=[];if(!1===n)return o;e.isColumnSorted(t)&&1<e.getNumberOfSortedColumns()&&o.push("".concat(i,"-").concat(e.getIndexOfColumnInSortQueue(t)+1));return o},t.getClassedToRemove=function(e){var t=e.className.split(" "),n=new RegExp("^".concat(i,"-[0-9]{1,2}$"));return t.filter(function(e){return n.test(e)})};var i="sort"},function(e,t,n){},function(e,t,n){"use strict";var o=n(9),i=n(0);n(19),n(47),n(31),n(12),n(15),n(30),n(55),n(67),n(10),n(38),n(13),n(89),n(16),t.__esModule=!0,t.default=void 0;var r=i(n(69)),a=i(n(18)),s=i(n(1)),l=i(n(2)),u=i(n(7)),c=i(n(26)),h=i(n(5)),d=i(n(14)),f=i(n(8)),v=i(n(22)),g=n(3),p=n(71),m=n(58),y=n(17),w=i(n(24)),C=n(6),E=n(20),S=n(82),k=o(n(11)),T=i(n(474)),R=i(n(495)),_=i(n(497)),b=i(n(503)),O=i(n(263)),M=i(n(264)),N=i(n(504)),A=n(112),D=n(175);function I(){var e=(0,r.default)(["The filter conditions have been applied properly, but couldn’t be displayed visually.\n The overall amount of conditions exceed the capability of the dropdown menu.\n For more details see the documentation."]);return I=function(){return e},e}n(505);var H=function(e){function i(e){var n;return(0,s.default)(this,i),(n=(0,u.default)(this,(0,h.default)(i).call(this,e))).eventManager=new w.default((0,c.default)(n)),n.trimRowsPlugin=null,n.dropdownMenuPlugin=null,n.conditionCollection=null,n.conditionUpdateObserver=null,n.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),n.lastSelectedColumn=null,n.hiddenRowsCache=new Map,n.hot.addHook("afterGetColHeader",function(e,t){return n.onAfterGetColHeader(e,t)}),n}return(0,f.default)(i,e),(0,l.default)(i,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){this.trimRowsPlugin=this.hot.getPlugin("trimRows"),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var e=function(t){return t.addLocalHook("accept",function(){return n.onActionBarSubmit("accept")}),t.addLocalHook("cancel",function(){return n.onActionBarSubmit("cancel")}),t.addLocalHook("change",function(e){return n.onComponentChange(t,e)}),t};if(!this.components.get("filter_by_condition")){var t=new T.default(this.hot,{id:"filter_by_condition",name:function(){return"".concat(n.hot.getTranslatedPhrase(k.FILTERS_DIVS_FILTER_BY_CONDITION),":")},addSeparator:!1});t.addLocalHook("afterClose",function(){return n.onSelectUIClosed()}),this.components.set("filter_by_condition",e(t))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new R.default(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){var o=new T.default(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0});o.addLocalHook("afterClose",function(){return n.onSelectUIClosed()}),this.components.set("filter_by_condition2",e(o))}this.components.get("filter_by_value")||this.components.set("filter_by_value",e(new _.default(this.hot,{id:"filter_by_value",name:function(){return"".concat(n.hot.getTranslatedPhrase(k.FILTERS_DIVS_FILTER_BY_VALUE),":")}}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",e(new b.default(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new O.default),this.conditionUpdateObserver||(this.conditionUpdateObserver=new N.default(this.conditionCollection,function(e){return n.getDataMapAtColumn(e)}),this.conditionUpdateObserver.addLocalHook("update",function(e){return n.updateComponents(e)})),this.components.forEach(function(e){e.show()}),this.registerEvents(),this.addHook("beforeDropdownMenuSetItems",function(e){return n.onBeforeDropdownMenuSetItems(e)}),this.addHook("afterDropdownMenuDefaultOptions",function(e){return n.onAfterDropdownMenuDefaultOptions(e)}),this.addHook("afterDropdownMenuShow",function(){return n.onAfterDropdownMenuShow()}),this.addHook("afterDropdownMenuHide",function(){return n.onAfterDropdownMenuHide()}),this.addHook("afterChange",function(e){return n.onAfterChange(e)}),this.hot.getSettings().trimRows=!0,this.trimRowsPlugin.enablePlugin(),this.hot.getSettings().dropdownMenu&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),(0,d.default)((0,h.default)(i.prototype),"enablePlugin",this).call(this)}}},{key:"registerEvents",value:function(){var t=this;this.eventManager.addEventListener(this.hot.rootElement,"click",function(e){return t.onTableClick(e)})}},{key:"disablePlugin",value:function(){this.enabled&&(this.dropdownMenuPlugin.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach(function(e){e.hide()}),this.conditionCollection.clean(),this.trimRowsPlugin.untrimAll()),(0,d.default)((0,h.default)(i.prototype),"disablePlugin",this).call(this)}},{key:"addCondition",value:function(e,t,n,o){var i=3<arguments.length&&void 0!==o?o:D.OPERATION_AND,r=this.t.toPhysicalColumn(e);this.conditionCollection.addCondition(r,{command:{key:t},args:n},i)}},{key:"removeConditions",value:function(e){var t=this.t.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.t.toPhysicalColumn(e);this.conditionCollection.clearConditions(t)}}},{key:"filter",value:function(){var e=this._createDataFilter(),t=!this.conditionCollection.isEmpty(),n=[],o=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",o))if(t){var i=[];n=(this.trimRowsPlugin.trimmedRows.length=0,g.arrayMap)(e.filter(),function(e){return e.meta.visualRow});var r=(0,A.createArrayAssertion)(n);(0,y.rangeEach)(this.hot.countSourceRows()-1,function(e){r(e)||i.push(e)}),this.trimRowsPlugin.trimRows(i),n.length||this.hot.deselectCell()}else this.trimRowsPlugin.untrimAll();this.hot.view.wt.wtOverlays.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection(),this.hot.runHooks("afterFilter",o)}},{key:"getSelectedColumn",value:function(){return this.lastSelectedColumn}},{key:"clearColumnSelection",value:function(){var e=this.hot.getSelectedLast()||[],t=(0,a.default)(e,2),n=t[0],o=t[1];void 0!==n&&void 0!==o&&this.hot.selectCell(n,o)}},{key:"getDataMapAtColumn",value:function(e){var c=this,h=this.t.toVisualColumn(e),d=[];return(0,g.arrayEach)(this.hot.getSourceDataAtCol(h),function(e,t){var n=c.hot.getCellMeta(t,h),o=n.row,i=n.col,r=n.visualCol,a=n.visualRow,s=n.type,l=n.instance,u=n.dateFormat;d.push({meta:{row:o,col:i,visualCol:r,visualRow:a,type:s,instance:l,dateFormat:u},value:(0,A.toEmptyString)(e)})}),d}},{key:"onAfterChange",value:function(e){var o=this;e&&(0,g.arrayEach)(e,function(e){var t=(0,a.default)(e,2)[1],n=o.hot.propToCol(t);o.conditionCollection.hasConditions(n)&&o.updateValueComponentCondition(n)})}},{key:"updateValueComponentCondition",value:function(e){var t=this.hot.getDataAtCol(e),n=(0,A.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,n)}},{key:"restoreComponents",value:function(e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex;e.forEach(function(e){!1===e.isHidden()&&e.restoreState(n)})}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents([this.components.get("filter_by_condition"),this.components.get("filter_operators"),this.components.get("filter_by_condition2"),this.components.get("filter_by_value")])}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(e){var t=(0,g.arrayMap)(e,function(e){return e.key});this.components.forEach(function(e){e[-1===t.indexOf(e.getMenuItemDescriptor().key)?"hide":"show"]()}),this.initHiddenRowsCache()}},{key:"onAfterDropdownMenuDefaultOptions",value:function(t){t.items.push({name:S.SEPARATOR}),this.components.forEach(function(e){t.items.push(e.getMenuItemDescriptor())})}},{key:"getOperationBasedOnArguments",value:function(e,t,n,o){var i=e;return i===D.OPERATION_OR&&t.command.key!==D.CONDITION_NONE&&n.command.key!==D.CONDITION_NONE&&o.command.key!==D.CONDITION_NONE?i=D.OPERATION_OR_THEN_VARIABLE:o.command.key!==D.CONDITION_NONE&&(t.command.key!==D.CONDITION_NONE&&n.command.key!==D.CONDITION_NONE||(i=D.OPERATION_AND)),i}},{key:"onActionBarSubmit",value:function(e){if("accept"===e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex,o=this.components.get("filter_by_condition").getState(),i=this.components.get("filter_by_condition2").getState(),r=this.components.get("filter_by_value").getState(),a=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),o,i,r);this.conditionUpdateObserver.groupChanges(),this.conditionCollection.clearConditions(n),o.command.key===D.CONDITION_NONE&&i.command.key===D.CONDITION_NONE&&r.command.key===D.CONDITION_NONE?this.conditionCollection.removeConditions(n):(o.command.key!==D.CONDITION_NONE&&(this.conditionCollection.addCondition(n,o,a),i.command.key!==D.CONDITION_NONE&&this.conditionCollection.addCondition(n,i,a)),r.command.key!==D.CONDITION_NONE&&this.conditionCollection.addCondition(n,r,a)),this.conditionUpdateObserver.flush(),this.components.get("filter_operators").saveState(n),this.components.get("filter_by_value").saveState(n),this.saveHiddenRowsCache(n),this.trimRowsPlugin.trimmedRows.length=0,this.filter()}this.dropdownMenuPlugin.close()}},{key:"onComponentChange",value:function(e,t){e===this.components.get("filter_by_condition")&&(t.showOperators?this.showComponents(this.components.get("filter_by_condition2"),this.components.get("filter_operators")):this.hideComponents(this.components.get("filter_by_condition2"),this.components.get("filter_operators"))),e.constructor!==T.default||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin.setListening()}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.t.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?(0,C.addClass)(t,"htFiltersActive"):(0,C.removeClass)(t,"htFiltersActive")}},{key:"onTableClick",value:function(e){var t=(0,C.closest)(e.target,"TH");if(t){var n=this.hot.getCoords(t).col,o=this.t.toPhysicalColumn(n);this.lastSelectedColumn={visualIndex:n,physicalIndex:o}}}},{key:"destroy",value:function(){this.enabled&&(this.components.forEach(function(e){e.destroy()}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hiddenRowsCache.clear(),this.trimRowsPlugin.disablePlugin()),(0,d.default)((0,h.default)(i.prototype),"destroy",this).call(this)}},{key:"_createDataFilter",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:this.conditionCollection;return new M.default(n,function(e){return t.getDataMapAtColumn(e)})}},{key:"updateComponents",value:function(e){if(this.dropdownMenuPlugin.enabled){var t=e.editedConditionStack.conditions,n=e.editedConditionStack.column,o=t.filter(function(e){return e.name===D.CONDITION_BY_VALUE}),i=t.filter(function(e){return e.name!==D.CONDITION_BY_VALUE}),r=this.conditionCollection.columnTypes[n];2===o.length||3===i.length?(0,m.warn)((0,p.toSingleLine)(I())):(0<i.length&&this.showComponentForParticularColumn(this.components.get("filter_operators"),n),this.components.get("filter_by_condition").updateState(i[0],n),this.components.get("filter_by_condition2").updateState(i[1],n),this.components.get("filter_by_value").updateState(e),this.components.get("filter_operators").updateState(r,n))}}},{key:"showComponentForParticularColumn",value:function(e,t){if(this.hiddenRowsCache.has(t)){var n=this.getIndexesOfComponents(e);this.removeIndexesFromHiddenRowsCache(t,n)}else this.hiddenRowsCache.set(t,[])}},{key:"removeIndexesFromHiddenRowsCache",value:function(e,t){var n=this.hiddenRowsCache.get(e);(0,g.arrayEach)(t,function(e){n.includes(e)&&n.splice(n.indexOf(e),1)})}},{key:"getIndexesOfComponents",value:function(){for(var e=this.dropdownMenuPlugin.menu,o=[],t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,g.arrayEach)(n,function(n){(0,g.arrayEach)(e.menuItems,function(e,t){e.key===n.getMenuItemDescriptor().key&&o.push(t)})}),o}},{key:"changeComponentsVisibility",value:function(e){for(var t=!(0<arguments.length&&void 0!==e)||e,n=this.dropdownMenuPlugin.menu.hotMenu,o=n.getPlugin("hiddenRows"),i=arguments.length,r=new Array(1<i?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];var s=this.getIndexesOfComponents.apply(this,r);t?o.showRows(s):o.hideRows(s),n.render()}},{key:"initHiddenRowsCache",value:function(){var t=this;this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",function(){var e=t.lastSelectedColumn.physicalIndex;t.hiddenRowsCache.has(e)||t.hiddenRowsCache.set(e,t.getIndexesOfComponents(t.components.get("filter_operators"),t.components.get("filter_by_condition2"))),t.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:{rows:t.hiddenRowsCache.get(e)}})})}},{key:"saveHiddenRowsCache",value:function(e){this.hiddenRowsCache.set(e,this.dropdownMenuPlugin.menu.hotMenu.getPlugin("hiddenRows").hiddenRows)}},{key:"hideComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!1].concat(t))}},{key:"showComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!0].concat(t))}}]),i}(v.default);(0,E.registerPlugin)("filters",H);var L=H;t.default=L},function(e,t,n){"use strict";var o=n(9),i=n(0);n(47),n(55),n(142),n(32),t.__esModule=!0,t.default=void 0;var a=i(n(37)),s=i(n(1)),l=i(n(2)),u=i(n(7)),c=i(n(5)),h=i(n(14)),d=i(n(8)),f=n(6),v=n(33),g=n(3),p=n(54),m=n(4),y=o(n(11)),r=i(n(143)),w=o(n(175)),C=i(n(177)),E=i(n(494)),S=n(29),k=function(e){function r(e,t){var n;return(0,s.default)(this,r),(n=(0,u.default)(this,(0,c.default)(r).call(this,e))).id=t.id,n.name=t.name,n.addSeparator=t.addSeparator,n.elements.push(new E.default(n.hot)),n.elements.push(new C.default(n.hot,{placeholder:y.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),n.elements.push(new C.default(n.hot,{placeholder:y.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),n.registerHooks(),n}return(0,d.default)(r,e),(0,l.default)(r,[{key:"registerHooks",value:function(){var t=this;this.getSelectElement().addLocalHook("select",function(e){return t.onConditionSelect(e)}),this.getSelectElement().addLocalHook("afterClose",function(){return t.onSelectUIClosed()}),(0,g.arrayEach)(this.getInputElements(),function(e){e.addLocalHook("keydown",function(e){return t.onInputKeyDown(e)})})}},{key:"setState",value:function(e){var o=this;if(this.reset(),e){var i=(0,m.clone)(e.command);i.name.startsWith(y.FILTERS_CONDITIONS_NAMESPACE)&&(i.name=this.hot.getTranslatedPhrase(i.name)),this.getSelectElement().setValue(i),(0,g.arrayEach)(e.args,function(e,t){if(t>i.inputsCount-1)return!1;var n=o.getInputElement(t);n.setValue(e),n[i.inputsCount>t?"show":"hide"](),t||setTimeout(function(){return n.focus()},10)})}}},{key:"getState",value:function(){var n=this.getSelectElement().getValue()||(0,S.getConditionDescriptor)(w.CONDITION_NONE),o=[];return(0,g.arrayEach)(this.getInputElements(),function(e,t){n.inputsCount>t&&o.push(e.getValue())}),{command:n,args:o}}},{key:"updateState",value:function(e,t){var n=e?(0,S.getConditionDescriptor)(e.name):(0,S.getConditionDescriptor)(w.CONDITION_NONE);this.setCachedState(t,{command:n,args:e?e.args:[]}),e||(0,g.arrayEach)(this.getInputElements(),function(e){return e.setValue(null)})}},{key:"getSelectElement",value:function(){return this.elements.filter(function(e){return e instanceof E.default})[0]}},{key:"getInputElement",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this.getInputElements()[t]}},{key:"getInputElements",value:function(){return this.elements.filter(function(e){return e instanceof C.default})}},{key:"getMenuItemDescriptor",value:function(){var s=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return s.isHidden()},renderer:function(e,t,n,o,i,r){(0,f.addClass)(t.parentNode,"htFiltersMenuCondition"),s.addSeparator&&(0,f.addClass)(t.parentNode,"border");var a=s.hot.rootDocument.createElement("div");return(0,f.addClass)(a,"htFiltersMenuLabel"),a.textContent=r,t.appendChild(a),t.parentNode.hasAttribute("ghost-table")||(0,g.arrayEach)(s.elements,function(e){return t.appendChild(e.element)}),t}}}},{key:"reset",value:function(){var e,t=this.hot.getPlugin("filters").getSelectedColumn(),n=t&&t.visualIndex,o=(e=this.hot).getDataType.apply(e,(0,a.default)(this.hot.getSelectedLast()||[0,n])),i=(0,w.default)(o);(0,g.arrayEach)(this.getInputElements(),function(e){return e.hide()}),this.getSelectElement().setItems(i),(0,h.default)((0,c.default)(r.prototype),"reset",this).call(this),this.getSelectElement().setValue(i[0])}},{key:"onConditionSelect",value:function(n){(0,g.arrayEach)(this.getInputElements(),function(e,t){e[n.inputsCount>t?"show":"hide"](),t||setTimeout(function(){return e.focus()},10)}),this.runLocalHooks("change",n)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){(0,p.isKey)(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),(0,v.stopImmediatePropagation)(e)):(0,p.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,v.stopImmediatePropagation)(e))}}]),r}(r.default);t.default=k},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;function i(e,t){return e[u]["state_"+t]}function r(e,t,n){e[u]["state_"+t]=n}var a,s=o(n(68)),l=n(4),u="_states",c=(a={},(0,s.default)(a,u,{}),(0,s.default)(a,"getCachedState",function(e){return i(this,e)}),(0,s.default)(a,"setCachedState",function(e,t){r(this,e,t)}),(0,s.default)(a,"saveState",function(e){r(this,e,this.getState())}),(0,s.default)(a,"restoreState",function(e){this.setState(i(this,e))}),(0,s.default)(a,"hasSavedState",function(e){return void 0!==i(this,e)}),(0,s.default)(a,"clearState",function(e){r(this,e)}),(0,s.default)(a,"clearStates",function(){this[u]={}}),a);(0,l.defineGetter)(c,"MIXIN_NAME","stateSaver",{writable:!1,enumerable:!1});var h=c;t.default=h},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=a,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29);function a(){return!0}t.CONDITION_NAME="none",(0,r.registerCondition)("none",a,{name:i.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=s,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29),a=n(255);function s(e,t){return!(0,r.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_empty",(0,r.registerCondition)("not_empty",s,{name:i.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=s,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29),a=n(256);function s(e,t){return!(0,r.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="neq",(0,r.registerCondition)("neq",s,{name:i.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(29);function l(e,t){var n=(0,r.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}t.CONDITION_NAME="gt",(0,s.registerCondition)("gt",l,{name:a.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(29);function l(e,t){var n=(0,r.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}t.CONDITION_NAME="gte",(0,s.registerCondition)("gte",l,{name:a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(29);function l(e,t){var n=(0,r.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}t.CONDITION_NAME="lt",(0,s.registerCondition)("lt",l,{name:a.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(29);function l(e,t){var n=(0,r.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<=n}t.CONDITION_NAME="lte",(0,s.registerCondition)("lte",l,{name:a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29),a=n(257),s="not_between";function l(e,t){return!(0,r.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME=s,(0,r.registerCondition)(s,l,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);n(142),t.__esModule=!0,t.condition=c,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(28),l=n(29),u="begins_with";function c(e,t){var n=(0,r.default)(t,1)[0];return(0,s.stringify)(e.value).toLowerCase().startsWith((0,s.stringify)(n))}t.CONDITION_NAME=u,(0,l.registerCondition)(u,c,{name:a.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);n(486),t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(18)),a=o(n(11)),s=n(28),l=n(29);function u(e,t){var n=(0,r.default)(t,1)[0];return(0,s.stringify)(e.value).toLowerCase().endsWith((0,s.stringify)(n))}t.CONDITION_NAME="ends_with",(0,l.registerCondition)("ends_with",u,{name:a.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(21),s=n(52),l=n(163),u=n(49),i=n(164),c="".endsWith,h=Math.min;o({target:"String",proto:!0,forced:!i("endsWith")},{endsWith:function(e,t){var n=String(u(this));l(e);var o=1<arguments.length?t:void 0,i=s(n.length),r=void 0===o?i:h(s(o),i),a=String(e);return c?c.call(n,a,r):n.slice(r-a.length,r)===a}})},function(e,t,n){"use strict";var o=n(9);t.__esModule=!0,t.condition=l,t.CONDITION_NAME=void 0;var i=o(n(11)),r=n(29),a=n(260),s="not_contains";function l(e,t){return!(0,r.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME=s,(0,r.registerCondition)(s,l,{name:i.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(70)),a=o(n(11)),s=n(29),l="date_tomorrow";function u(e){var t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(-1,"days").startOf("day"),"d")}t.CONDITION_NAME=l,(0,s.registerCondition)(l,u,{name:a.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(70)),a=o(n(11)),s=n(29),l="date_today";function u(e){var t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().startOf("day"),"d")}t.CONDITION_NAME=l,(0,s.registerCondition)(l,u,{name:a.FILTERS_CONDITIONS_TODAY,inputsCount:0})},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var r=i(n(70)),a=o(n(11)),s=n(29),l="date_yesterday";function u(e){var t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(1,"days").startOf("day"),"d")}t.CONDITION_NAME=l,(0,s.registerCondition)(l,u,{name:a.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.condition=s,t.CONDITION_NAME=void 0;var i=o(n(18)),r=n(29),a=n(112);function s(e,t){return(0,(0,i.default)(t,1)[0])(e.value)}t.CONDITION_NAME="by_value",(0,r.registerCondition)("by_value",s,{name:"By value",inputsCount:0,inputValuesDecorator:function(e){var t=(0,i.default)(e,1)[0];return[(0,a.createArrayAssertion)(t)]},showOperators:!1})},function(e,t,n){"use strict";t.__esModule=!0,t.condition=i,t.CONDITION_NAME=void 0;var o=n(29);function i(){return!0}t.CONDITION_NAME="true",(0,o.registerCondition)("true",i,{name:"True"})},function(e,t,n){"use strict";t.__esModule=!0,t.condition=i,t.CONDITION_NAME=void 0;var o=n(29);function i(){return!1}t.CONDITION_NAME="false",(0,o.registerCondition)("false",i,{name:"False"})},function(e,t,n){"use strict";var o=n(9),i=n(0);n(15),n(55),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(7)),s=i(n(26)),l=i(n(5)),u=i(n(14)),c=i(n(2)),h=i(n(8)),d=i(n(173)),f=n(4),v=n(3),g=o(n(11)),p=n(82),m=i(n(114)),y=new WeakMap,w=function(e){function i(e,t){var n;return(0,r.default)(this,i),n=(0,a.default)(this,(0,l.default)(i).call(this,e,(0,f.extend)(i.DEFAULTS,t))),y.set((0,s.default)(n),{}),n.menu=null,n.items=[],n.registerHooks(),n}return(0,h.default)(i,e),(0,c.default)(i,null,[{key:"DEFAULTS",get:function(){return(0,f.clone)({className:"htUISelect",wrapIt:!1})}}]),(0,c.default)(i,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",function(){return e.onClick()})}},{key:"setItems",value:function(e){this.items=this.translateNames(e),this.menu&&this.menu.setMenuItems(this.items)}},{key:"translateNames",value:function(e){var t=this;return(0,v.arrayEach)(e,function(e){e.name=t.translateIfPossible(e.name)}),e}},{key:"build",value:function(){var t=this;(0,u.default)((0,l.default)(i.prototype),"build",this).call(this),this.menu=new d.default(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0}),this.menu.setMenuItems(this.items);var e=new m.default(this.hot,{className:"htUISelectCaption"}),n=new m.default(this.hot,{className:"htUISelectDropdown"}),o=y.get(this);o.caption=e,o.captionElement=e.element,o.dropdown=n,(0,v.arrayEach)([e,n],function(e){return t._element.appendChild(e.element)}),this.menu.addLocalHook("select",function(e){return t.onMenuSelect(e)}),this.menu.addLocalHook("afterClose",function(){return t.onMenuClosed()}),this.update()}},{key:"update",value:function(){var e;this.isBuilt()&&(e=this.options.value?this.options.value.name:this.menu.hot.getTranslatedPhrase(g.FILTERS_CONDITIONS_NONE),y.get(this).captionElement.textContent=e,(0,u.default)((0,l.default)(i.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:e.left-5,top:e.top,width:e.width,height:e.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}},{key:"onMenuSelect",value:function(e){e.name!==p.SEPARATOR&&(this.options.value=e,this.closeOptions(),this.update(),this.runLocalHooks("select",this.options.value))}},{key:"onMenuClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onClick",value:function(){this.openOptions()}},{key:"destroy",value:function(){this.menu&&(this.menu.destroy(),this.menu=null);var e=y.get(this),t=e.caption,n=e.dropdown;t&&t.destroy(),n&&n.destroy(),(0,u.default)((0,l.default)(i.prototype),"destroy",this).call(this)}}]),i}(m.default);t.default=w},function(e,t,n){"use strict";var o=n(0);n(136),n(55),t.__esModule=!0,t.default=void 0;var i=o(n(69)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(8)),c=n(6),h=n(3),d=n(71),f=o(n(143)),v=n(113),g=n(176),p=n(261),m=n(262),y=o(n(496));function w(){var e=(0,i.default)(["Radio button with index "," doesn't exist."]);return w=function(){return e},e}var C=function(e){function o(e,t){var n;return(0,r.default)(this,o),(n=(0,s.default)(this,(0,l.default)(o).call(this,e))).id=t.id,n.name=t.name,n.buildOperatorsElement(),n}return(0,u.default)(o,e),(0,a.default)(o,[{key:"getMenuItemDescriptor",value:function(){var n=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return n.isHidden()},renderer:function(e,t){return(0,c.addClass)(t.parentNode,"htFiltersMenuOperators"),t.parentNode.hasAttribute("ghost-table")||(0,h.arrayEach)(n.elements,function(e){return t.appendChild(e.element)}),t}}}},{key:"buildOperatorsElement",value:function(){var n=this,o=[g.OPERATION_ID,p.OPERATION_ID];(0,h.arrayEach)(o,function(e){var t=new y.default(n.hot,{name:"operator",label:{htmlFor:e,textContent:(0,v.getOperationName)(e)},value:e,checked:e===o[0],id:e});t.addLocalHook("change",function(e){return n.onRadioInputChange(e)}),n.elements.push(t)})}},{key:"setChecked",value:function(n){if(this.elements.length<n)throw Error((0,d.toSingleLine)(w(),n));(0,h.arrayEach)(this.elements,function(e,t){e.setChecked(t===n)})}},{key:"getActiveOperationId",value:function(){var e=this.elements.find(function(e){return e instanceof y.default&&e.isChecked()});return e?e.getValue():g.OPERATION_ID}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(t){this.reset(),t&&this.getActiveOperationId()!==t&&(0,h.arrayEach)(this.elements,function(e){e.setChecked(e.getValue()===t)})}},{key:"updateState",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:g.OPERATION_ID,o=1<arguments.length?t:void 0,i=n;i===m.OPERATION_ID&&(i=p.OPERATION_ID),this.setCachedState(o,i)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(e){this.setState(e.realTarget.value)}}]),o}(f.default);t.default=C},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(26)),s=o(n(5)),l=o(n(14)),u=o(n(2)),c=o(n(8)),h=n(4),d=o(n(114)),f=new WeakMap,v=function(e){function o(e,t){var n;return(0,i.default)(this,o),n=(0,r.default)(this,(0,s.default)(o).call(this,e,(0,h.extend)(o.DEFAULTS,t))),f.set((0,a.default)(n),{}),n}return(0,c.default)(o,e),(0,u.default)(o,null,[{key:"DEFAULTS",get:function(){return(0,h.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),(0,u.default)(o,[{key:"build",value:function(){(0,l.default)((0,s.default)(o.prototype),"build",this).call(this);var e=f.get(this);e.input=this._element.firstChild;var t=this.hot.rootDocument.createElement("label");t.textContent=this.translateIfPossible(this.options.label.textContent),t.htmlFor=this.translateIfPossible(this.options.label.htmlFor),e.label=t,this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=f.get(this);e.input.checked=this.options.checked,e.label.textContent=this.translateIfPossible(this.options.label.textContent)}}},{key:"isChecked",value:function(){return this.options.checked}},{key:"setChecked",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.options.checked=t,this.update()}},{key:"focus",value:function(){this.isBuilt()&&f.get(this).input.focus()}}]),o}(d.default);t.default=v},function(e,t,n){"use strict";var o=n(9),i=n(0);n(47),n(55),t.__esModule=!0,t.default=void 0;var f=i(n(18)),r=i(n(1)),a=i(n(2)),s=i(n(7)),l=i(n(5)),u=i(n(14)),c=i(n(8)),h=n(6),d=n(33),v=n(3),g=n(54),p=o(n(11)),m=n(112),y=i(n(143)),w=i(n(498)),C=n(175),E=n(29),S=function(e){function o(e,t){var n;return(0,r.default)(this,o),(n=(0,s.default)(this,(0,l.default)(o).call(this,e))).id=t.id,n.name=t.name,n.elements.push(new w.default(n.hot)),n.registerHooks(),n}return(0,c.default)(o,e),(0,a.default)(o,[{key:"registerHooks",value:function(){var t=this;this.getMultipleSelectElement().addLocalHook("keydown",function(e){return t.onInputKeyDown(e)})}},{key:"setState",value:function(e){if(this.reset(),e&&e.command.key===C.CONDITION_BY_VALUE){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0])}}},{key:"getState",value:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?C.CONDITION_NONE:C.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}},{key:"updateState",value:function(e){function t(e,t,n,o,i){var r=(0,v.arrayFilter)(t,function(e){return e.name===C.CONDITION_BY_VALUE}),a=(0,f.default)(r,1)[0],s={},l=d.hot.getTranslatedPhrase(p.FILTERS_VALUES_BLANK_CELLS);if(a){var u=(0,v.arrayMap)(o(e,i),function(e){return e.value});u=(0,m.unifyColumnValues)(u),n&&(a.args[0]=n);var c=[],h=(0,m.intersectValues)(u,a.args[0],l,function(e){e.checked&&c.push(e.value)});s.args=[c],s.command=(0,E.getConditionDescriptor)(C.CONDITION_BY_VALUE),s.itemsSnapshot=h}else s.args=[],s.command=(0,E.getConditionDescriptor)(C.CONDITION_NONE);d.setCachedState(e,s)}var d=this;t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}},{key:"getMultipleSelectElement",value:function(){return this.elements.filter(function(e){return e instanceof w.default})[0]}},{key:"getMenuItemDescriptor",value:function(){var s=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return s.isHidden()},renderer:function(e,t,n,o,i,r){(0,h.addClass)(t.parentNode,"htFiltersMenuValue");var a=s.hot.rootDocument.createElement("div");return(0,h.addClass)(a,"htFiltersMenuLabel"),a.textContent=r,t.appendChild(a),t.parentNode.hasAttribute("ghost-table")||(0,v.arrayEach)(s.elements,function(e){return t.appendChild(e.element)}),t}}}},{key:"reset",value:function(){var e=this.hot.getTranslatedPhrase(p.FILTERS_VALUES_BLANK_CELLS),t=(0,m.unifyColumnValues)(this._getColumnVisibleValues()),n=(0,m.intersectValues)(t,t,e);this.getMultipleSelectElement().setItems(n),(0,u.default)((0,l.default)(o.prototype),"reset",this).call(this),this.getMultipleSelectElement().setValue(t)}},{key:"onInputKeyDown",value:function(e){(0,g.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,d.stopImmediatePropagation)(e))}},{key:"_getColumnVisibleValues",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=e&&e.visualIndex;return(0,v.arrayMap)(this.hot.getDataAtCol(t),function(e){return(0,m.toEmptyString)(e)})}}]),o}(y.default);t.default=S},function(e,t,n){"use strict";var o=n(9),i=n(0);n(12),n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var a=i(n(37)),s=i(n(1)),l=i(n(7)),u=i(n(26)),c=i(n(5)),h=i(n(14)),d=i(n(2)),f=i(n(8)),v=n(6),g=n(4),p=n(3),m=n(54),y=n(75),w=o(n(11)),C=n(33),E=i(n(114)),S=i(n(177)),k=i(n(499)),T=n(112),R=new WeakMap,r=function(e){function r(e,t){var n;return(0,s.default)(this,r),n=(0,l.default)(this,(0,c.default)(r).call(this,e,(0,g.extend)(r.DEFAULTS,t))),R.set((0,u.default)(n),{}),n.searchInput=new S.default(n.hot,{placeholder:w.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"}),n.selectAllUI=new k.default(n.hot,{textContent:w.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"}),n.clearAllUI=new k.default(n.hot,{textContent:w.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"}),n.items=[],n.itemsBox=null,n.registerHooks(),n}return(0,f.default)(r,e),(0,d.default)(r,null,[{key:"DEFAULTS",get:function(){return(0,g.clone)({className:"htUIMultipleSelect",value:[]})}}]),(0,d.default)(r,[{key:"registerHooks",value:function(){var t=this;this.searchInput.addLocalHook("keydown",function(e){return t.onInputKeyDown(e)}),this.searchInput.addLocalHook("input",function(e){return t.onInput(e)}),this.selectAllUI.addLocalHook("click",function(e){return t.onSelectAllClick(e)}),this.clearAllUI.addLocalHook("click",function(e){return t.onClearAllClick(e)})}},{key:"setItems",value:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"getItems",value:function(){return(0,a.default)(this.items)}},{key:"getValue",value:function(){return function(e){var t=[];return(0,p.arrayEach)(e,function(e){e.checked&&t.push(e.value)}),t}(this.items)}},{key:"isSelectedAllValues",value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var t=this;(0,h.default)((0,c.default)(r.prototype),"build",this).call(this);var n=this.hot.rootDocument,e=n.createElement("div"),o=new E.default(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(e);function i(e){t._element&&(t.itemsBox&&t.itemsBox.destroy(),(0,v.addClass)(e,"htUIMultipleSelectHot"),t.itemsBox=new t.hot.constructor(e,{data:t.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(e,t,n,o,i,r){e.title=r.instance.getDataAtRowProp(t,r.label.property)},autoWrapCol:!0,height:110,colWidths:function(){return t.itemsBox.container.scrollWidth-(0,v.getScrollbarWidth)(n)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},beforeKeyDown:function(e){return t.onItemsBoxBeforeKeyDown(e)}}),t.itemsBox.init())}i(e),setTimeout(function(){return i(e)},100)}},{key:"reset",value:function(){this.searchInput.reset(),this.selectAllUI.reset(),this.clearAllUI.reset()}},{key:"update",value:function(){this.isBuilt()&&(this.itemsBox.loadData(function(e,t){var n=(0,T.createArrayAssertion)(t);return(0,p.arrayMap)(e,function(e){return e.checked=n(e.value),e})}(this.items,this.options.value)),(0,h.default)((0,c.default)(r.prototype),"update",this).call(this))}},{key:"destroy",value:function(){this.itemsBox&&this.itemsBox.destroy(),this.searchInput.destroy(),this.clearAllUI.destroy(),this.selectAllUI.destroy(),this.searchInput=null,this.clearAllUI=null,this.selectAllUI=null,this.itemsBox=null,this.items=null,(0,h.default)((0,c.default)(r.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(e){var t,n=e.target.value.toLowerCase();t=""===n?(0,a.default)(this.items):(0,p.arrayFilter)(this.items,function(e){return 0<="".concat(e.value).toLowerCase().indexOf(n)}),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this),(0,y.partial)(m.isKey,e.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&((0,C.stopImmediatePropagation)(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onItemsBoxBeforeKeyDown",value:function(e){var t=(0,y.partial)(m.isKey,e.keyCode);t("ESCAPE")&&this.runLocalHooks("keydown",e,this),t("ARROW_UP|ARROW_DOWN|ARROW_LEFT|ARROW_RIGHT|TAB|SPACE|ENTER")||((0,C.stopImmediatePropagation)(e),this.itemsBox.unlisten(),this.itemsBox.deselectCell(),this.searchInput.focus())}},{key:"onSelectAllClick",value:function(e){e.preventDefault(),(0,p.arrayEach)(this.itemsBox.getSourceData(),function(e){e.checked=!0}),this.itemsBox.render()}},{key:"onClearAllClick",value:function(e){e.preventDefault(),(0,p.arrayEach)(this.itemsBox.getSourceData(),function(e){e.checked=!1}),this.itemsBox.render()}}]),r}(E.default);t.default=r},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(13),n(500),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(7)),a=o(n(26)),s=o(n(5)),l=o(n(14)),u=o(n(2)),c=o(n(8)),h=n(4),d=o(n(114)),f=new WeakMap,v=function(e){function o(e,t){var n;return(0,i.default)(this,o),n=(0,r.default)(this,(0,s.default)(o).call(this,e,(0,h.extend)(o.DEFAULTS,t))),f.set((0,a.default)(n),{}),n}return(0,c.default)(o,e),(0,u.default)(o,null,[{key:"DEFAULTS",get:function(){return(0,h.clone)({href:"#",tagName:"a"})}}]),(0,u.default)(o,[{key:"build",value:function(){(0,l.default)((0,s.default)(o.prototype),"build",this).call(this),f.get(this).link=this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(f.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}]),o}(d.default);t.default=v},function(e,t,n){"use strict";var o=n(21),i=n(501);o({target:"String",proto:!0,forced:n(502)("link")},{link:function(e){return i(this,"a","href",e)}})},function(e,t,n){var a=n(49),s=/"/g;e.exports=function(e,t,n,o){var i=String(a(e)),r="<"+t;return""!==n&&(r+=" "+n+'="'+String(o).replace(s,""")+'"'),r+">"+i+"</"+t+">"}},function(e,t,n){var o=n(27);e.exports=function(t){return o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})}},function(e,t,n){"use strict";var o=n(9),i=n(0);n(55),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(7)),s=i(n(5)),l=i(n(2)),u=i(n(8)),c=n(6),h=n(3),d=o(n(11)),f=i(n(143)),v=i(n(177)),g=function(e){function o(e,t){var n;return(0,r.default)(this,o),(n=(0,a.default)(this,(0,s.default)(o).call(this,e))).id=t.id,n.name=t.name,n.elements.push(new v.default(n.hot,{type:"button",value:d.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:o.BUTTON_OK})),n.elements.push(new v.default(n.hot,{type:"button",value:d.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:o.BUTTON_CANCEL})),n.registerHooks(),n}return(0,u.default)(o,e),(0,l.default)(o,null,[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),(0,l.default)(o,[{key:"registerHooks",value:function(){var n=this;(0,h.arrayEach)(this.elements,function(e){e.addLocalHook("click",function(e,t){return n.onButtonClick(e,t)})})}},{key:"getMenuItemDescriptor",value:function(){var n=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return n.isHidden()},renderer:function(e,t){return(0,c.addClass)(t.parentNode,"htFiltersMenuActionBar"),t.parentNode.hasAttribute("ghost-table")||(0,h.arrayEach)(n.elements,function(e){return t.appendChild(e.element)}),t}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}},{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(e,t){t.options.identifier===o.BUTTON_OK?this.accept():this.cancel()}}]),o}(f.default);t.default=g},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(12),n(40),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),u=n(3),a=n(4),c=n(75),s=o(n(59)),h=o(n(263)),d=o(n(264)),f=n(112),l=function(){function o(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,i.default)(this,o),this.conditionCollection=e,this.columnDataFactory=n,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",function(e){return t._onConditionBeforeModify(e)}),this.conditionCollection.addLocalHook("afterAdd",function(e){return t.updateStatesAtColumn(e)}),this.conditionCollection.addLocalHook("afterClear",function(e){return t.updateStatesAtColumn(e)}),this.conditionCollection.addLocalHook("beforeClean",function(){return t._onConditionBeforeClean()}),this.conditionCollection.addLocalHook("afterClean",function(){return t._onConditionAfterClean()})}return(0,r.default)(o,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var t=this;this.grouping=!1,(0,u.arrayEach)(this.changes,function(e){t.updateStatesAtColumn(e)}),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.orderStack.indexOf(e)}},{key:"updateStatesAtColumn",value:function(e,t){var l=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var n=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.orderStack.indexOf(e);-1===o&&(o=this.latestEditedColumnPosition);var i=n.slice(0,o),r=n.slice(o);r.length&&r[0].column===e&&r.shift();var a=(0,c.curry)(function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],o=new h.default,i=[].concat(e,n);o.importAllConditions(i);var r,a=l.columnDataFactory(t);r=o.isEmpty()?a:new d.default(o,function(e){return l.columnDataFactory(e)}).filter(),r=(0,u.arrayMap)(r,function(e){return e.meta.visualRow});var s=(0,f.createArrayAssertion)(r);return(0,u.arrayFilter)(a,function(e){return s(e.meta.visualRow)})})(i),s=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:s},dependentConditionStacks:r,filteredRowsFactory:a,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=[].concat(this.conditionCollection.orderStack)}},{key:"_onConditionAfterClean",value:function(){var t=this;(0,u.arrayEach)(this.latestOrderStack,function(e){t.updateStatesAtColumn(e)})}},{key:"destroy",value:function(){var n=this;this.clearLocalHooks(),(0,a.objectEach)(this,function(e,t){n[t]=null})}}]),o}();(0,a.mixin)(l,s.default);var v=l;t.default=v},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var c=o(n(18)),i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),h=o(n(8)),d=o(n(22)),f=n(3),v=n(4),g=o(n(24)),p=n(20),m=n(83),y=o(n(507)),w=o(n(516)),C=o(n(517)),E=function(e){function o(e){var t;return(0,i.default)(this,o),(t=(0,a.default)(this,(0,l.default)(o).call(this,e))).eventManager=new g.default((0,s.default)(t)),t.dataProvider=new w.default(t.hot),t.sheet=new y.default(t.hot,t.dataProvider),t.undoRedoSnapshot=new C.default(t.sheet),t._skipRendering=!1,t}return(0,h.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().formulas}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){var e=this.hot.getSettings().formulas;(0,v.isObject)(e)&&(0,v.isObject)(e.variables)&&(0,v.objectEach)(e.variables,function(e,t){return n.setVariable(t,e)}),this.addHook("afterColumnSort",function(){return n.onAfterColumnSort.apply(n,arguments)}),this.addHook("afterCreateCol",function(){return n.onAfterCreateCol.apply(n,arguments)}),this.addHook("afterCreateRow",function(){return n.onAfterCreateRow.apply(n,arguments)}),this.addHook("afterLoadData",function(){return n.onAfterLoadData()}),this.addHook("afterRemoveCol",function(){return n.onAfterRemoveCol.apply(n,arguments)}),this.addHook("afterRemoveRow",function(){return n.onAfterRemoveRow.apply(n,arguments)}),this.addHook("afterSetDataAtCell",function(){return n.onAfterSetDataAtCell.apply(n,arguments)}),this.addHook("afterSetDataAtRowProp",function(){return n.onAfterSetDataAtCell.apply(n,arguments)}),this.addHook("beforeColumnSort",function(){return n.onBeforeColumnSort.apply(n,arguments)}),this.addHook("beforeCreateCol",function(){return n.onBeforeCreateCol.apply(n,arguments)}),this.addHook("beforeCreateRow",function(){return n.onBeforeCreateRow.apply(n,arguments)}),this.addHook("beforeRemoveCol",function(){return n.onBeforeRemoveCol.apply(n,arguments)}),this.addHook("beforeRemoveRow",function(){return n.onBeforeRemoveRow.apply(n,arguments)}),this.addHook("beforeValidate",function(){return n.onBeforeValidate.apply(n,arguments)}),this.addHook("beforeValueRender",function(){return n.onBeforeValueRender.apply(n,arguments)}),this.addHook("modifyData",function(){return n.onModifyData.apply(n,arguments)}),this.sheet.addLocalHook("afterRecalculate",function(){return n.onSheetAfterRecalculate.apply(n,arguments)}),(0,u.default)((0,l.default)(o.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){(0,u.default)((0,l.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"getCellValue",value:function(e,t){var n=this.sheet.getCellAt(e,t);return n?n.getError()||n.getValue():void 0}},{key:"hasComputedCellValue",value:function(e,t){return null!==this.sheet.getCellAt(e,t)}},{key:"recalculate",value:function(){this.sheet.recalculate()}},{key:"recalculateFull",value:function(){this.sheet.recalculateFull()}},{key:"recalculateOptimized",value:function(){this.sheet.recalculateOptimized()}},{key:"setVariable",value:function(e,t){this.sheet.setVariable(e,t)}},{key:"getVariable",value:function(e){return this.sheet.getVariable(e)}},{key:"onSheetAfterRecalculate",value:function(e){if(this._skipRendering)this._skipRendering=!1;else{var o=this.hot;(0,f.arrayEach)(e,function(e){var t=e.row,n=e.column;o.validateCell(o.getDataAtCell(t,n),o.getCellMeta(t,n),function(){})}),o.render()}}},{key:"onModifyData",value:function(e,t,n,o){"get"===o&&this.hasComputedCellValue(e,t)?n.value=this.getCellValue(e,t):"set"===o&&(0,m.isFormulaExpression)(n.value)&&(n.value=(0,m.toUpperCaseFormula)(n.value))}},{key:"onBeforeValueRender",value:function(e){var t=e;return(0,m.isFormulaExpressionEscaped)(t)&&(t=(0,m.unescapeFormulaExpression)(t)),t}},{key:"onBeforeValidate",value:function(e,t,n){var o=this.hot.propToCol(n),i=e;return this.hasComputedCellValue(t,o)&&(i=this.getCellValue(t,o)),i}},{key:"onAfterSetDataAtCell",value:function(e,t){var u=this;"loadData"!==t&&(this.dataProvider.clearChanges(),(0,f.arrayEach)(e,function(e){var t=(0,c.default)(e,4),n=t[0],o=t[1],i=t[2],r=t[3],a=u.hot.propToCol(o),s=u.t.toPhysicalRow(n),l=r;(0,m.isFormulaExpression)(l)&&(l=(0,m.toUpperCaseFormula)(l)),u.dataProvider.collectChanges(s,a,l),i!==l&&u.sheet.applyChanges(s,a,l)}),this.recalculate())}},{key:"onBeforeCreateRow",value:function(e,t,n){"UndoRedo.undo"===n&&this.undoRedoSnapshot.restore()}},{key:"onAfterCreateRow",value:function(e,t,n){this.sheet.alterManager.triggerAlter("insert_row",e,t,"UndoRedo.undo"!==n)}},{key:"onBeforeRemoveRow",value:function(e,t){this.undoRedoSnapshot.save("row",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.sheet.alterManager.triggerAlter("remove_row",e,t)}},{key:"onBeforeCreateCol",value:function(e,t,n){"UndoRedo.undo"===n&&this.undoRedoSnapshot.restore()}},{key:"onAfterCreateCol",value:function(e,t,n){this.sheet.alterManager.triggerAlter("insert_column",e,t,"UndoRedo.undo"!==n)}},{key:"onBeforeRemoveCol",value:function(e,t){this.undoRedoSnapshot.save("column",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.sheet.alterManager.triggerAlter("remove_column",e,t)}},{key:"onBeforeColumnSort",value:function(e,t){this.sheet.alterManager.prepareAlter("column_sorting",e,t)}},{key:"onAfterColumnSort",value:function(e,t){this.sheet.alterManager.triggerAlter("column_sorting",e,t)}},{key:"onAfterLoadData",value:function(){this._skipRendering=!0,this.recalculateFull()}},{key:"destroy",value:function(){this.dataProvider.destroy(),this.dataProvider=null,this.sheet.destroy(),this.sheet=null,(0,u.default)((0,l.default)(o.prototype),"destroy",this).call(this)}}]),o}(d.default);(0,p.registerPlugin)("formulas",E);var S=E;t.default=S},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(37)),r=o(n(1)),a=o(n(2)),v=n(115),s=n(3),l=o(n(59)),u=n(92),c=n(4),h=o(n(84)),g=o(n(508)),p=n(83),d=o(n(509)),f=o(n(510)),m=function(){function o(e,t){var n=this;(0,r.default)(this,o),this.hot=e,this.t=(0,u.getTranslator)(this.hot),this.dataProvider=t,this.matrix=new d.default(this.t),this.alterManager=new f.default(this),this._processingCell=null,this._state=3,this.alterManager.addLocalHook("afterAlter",function(){return n._onAfterAlter.apply(n,arguments)})}return(0,a.default)(o,[{key:"recalculate",value:function(){switch(this._state){case 3:this.recalculateFull();break;case 2:this.recalculateOptimized()}}},{key:"recalculateOptimized",value:function(){var n=this,e=this.matrix.getOutOfDateCells();(0,s.arrayEach)(e,function(e){var t=n.dataProvider.getSourceDataAtCell(e.row,e.column);(0,p.isFormulaExpression)(t)&&n.parseExpression(e,t.substr(1))}),this._state=1,this.runLocalHooks("afterRecalculate",e,"optimized")}},{key:"recalculateFull",value:function(){var o=this,e=this.dataProvider.getSourceDataByRange();this.matrix.reset(),(0,s.arrayEach)(e,function(e,n){(0,s.arrayEach)(e,function(e,t){(0,p.isFormulaExpression)(e)&&o.parseExpression(new h.default(n,t),e.substr(1))})}),this._state=1,this.runLocalHooks("afterRecalculate",e,"full")}},{key:"setVariable",value:function(e,t){this.parser.setVariable(e,t)}},{key:"getVariable",value:function(e){return this.parser.getVariable(e)}},{key:"applyChanges",value:function(e,t,n){this.matrix.remove({row:e,column:t}),(0,p.isFormulaExpression)(n)&&this.parseExpression(new h.default(e,t),n.substr(1));var o=this.getCellDependencies.apply(this,(0,i.default)(this.t.toVisual(e,t)));(0,s.arrayEach)(o,function(e){e.setState(h.default.STATE_OUT_OFF_DATE)}),this._state=2}},{key:"parseExpression",value:function(e,t){}},{key:"getCellAt",value:function(e,t){return this.matrix.getCellAt(e,t)}},{key:"getCellDependencies",value:function(e,t){return this.matrix.getDependencies({row:e,column:t})}},{key:"_onCallCellValue",value:function(e,t){var n=e.row,o=e.column,i=new g.default(n,o);if(!this.dataProvider.isInDataRange(i.row,i.column))throw Error(v.ERROR_REF);this.matrix.registerCellRef(i),this._processingCell.addPrecedent(i);var r=this.dataProvider.getRawDataAtCell(n.index,o.index);if((0,v.error)(r)){var a=this.matrix.getCellAt(n.index,o.index);if(a&&a.hasError())throw Error(r)}if((0,p.isFormulaExpression)(r)){var s=this.parser.parse(r.substr(1)),l=s.error,u=s.result;if(l)throw Error(l);t(u)}else t(r)}},{key:"_onCallRangeValue",value:function(e,t,n){var h=this,d=e.row,f=e.column,o=t.row,i=t.column,r=this.dataProvider.getRawDataByRange(d.index,f.index,o.index,i.index);n((0,s.arrayMap)(r,function(e,t){return function(e,c){return(0,s.arrayMap)(e,function(e,t){var n=d.index+c,o=f.index+t,i=new g.default(n,o);if(!h.dataProvider.isInDataRange(i.row,i.column))throw Error(v.ERROR_REF);h.matrix.registerCellRef(i),h._processingCell.addPrecedent(i);var r=e;if((0,v.error)(r)){var a=h.matrix.getCellAt(i.row,i.column);if(a&&a.hasError())throw Error(r)}if((0,p.isFormulaExpression)(r)){var s=h.parser.parse(r.substr(1)),l=s.error,u=s.result;if(l)throw Error(l);r=u}return r})}(e,t)}))}},{key:"_onAfterAlter",value:function(){this.recalculateOptimized()}},{key:"destroy",value:function(){this.hot=null,this.t=null,this.dataProvider.destroy(),this.dataProvider=null,this.alterManager.destroy(),this.alterManager=null,this.parser=null,this.matrix.reset(),this.matrix=null}}]),o}();(0,c.mixin)(m,l.default);var y=m;t.default=y},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(8)),u=n(115),c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"toString",value:function(){return(0,u.toLabel)({index:this.row,isAbsolute:!1},{index:this.column,isAbsolute:!1})}}]),t}(o(n(265)).default);t.default=c},function(e,t,n){"use strict";var o=n(0);n(19),n(12),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),s=n(3),a=o(n(84)),l=function(){function t(e){(0,i.default)(this,t),this.t=e,this.data=[],this.cellReferences=[]}return(0,r.default)(t,[{key:"getCellAt",value:function(t,n){var o=null;return(0,s.arrayEach)(this.data,function(e){if(e.row===t&&e.column===n)return o=e,!1}),o}},{key:"getOutOfDateCells",value:function(){return(0,s.arrayFilter)(this.data,function(e){return e.isState(a.default.STATE_OUT_OFF_DATE)})}},{key:"add",value:function(t){(0,s.arrayFilter)(this.data,function(e){return e.isEqual(t)}).length||this.data.push(t)}},{key:"remove",value:function(t){var o=Array.isArray(t);this.data=(0,s.arrayFilter)(this.data,function(e){return!function(t,e){var n=!1;return o?(0,s.arrayEach)(e,function(e){if(t.isEqual(e))return!(n=!0)}):n=t.isEqual(e),n}(e,t)})}},{key:"getDependencies",value:function(e){function o(n){return(0,s.arrayReduce)(i.data,function(e,t){return t.hasPrecedent(n)&&-1===e.indexOf(t)&&e.push(t),e},[])}var i=this;return function t(e){var n=o(e);return n.length&&(0,s.arrayEach)(n,function(e){e.hasPrecedents()&&(n=n.concat(t(i.t.toVisual(e))))}),n}(e)}},{key:"registerCellRef",value:function(t){(0,s.arrayFilter)(this.cellReferences,function(e){return e.isEqual(t)}).length||this.cellReferences.push(t)}},{key:"removeCellRefsAtRange",value:function(e,t){var n=e.row,o=e.column,i=t.row,r=t.column,a=[];return this.cellReferences=(0,s.arrayFilter)(this.cellReferences,function(e){return!function(e){return void 0===n||e.row>=n&&e.row<=i}(e)||!function(e){return void 0===o||e.column>=o&&e.column<=r}(e)||(a.push(e),!1)}),a}},{key:"reset",value:function(){this.data.length=0,this.cellReferences.length=0}}]),t}();t.default=l},function(e,t,n){"use strict";var o=n(9),i=n(0);n(19),n(15),n(67),n(10),n(13),n(16),t.__esModule=!0,t.registerOperation=y,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=n(4),l=i(n(59)),u=o(n(511)),c=o(n(512)),h=o(n(513)),d=o(n(514)),f=o(n(515)),v=new Map;y(u.OPERATION_NAME,u),y(c.OPERATION_NAME,c),y(h.OPERATION_NAME,h),y(d.OPERATION_NAME,d),y(f.OPERATION_NAME,f);var g=function(){function t(e){(0,r.default)(this,t),this.sheet=e,this.hot=e.hot,this.dataProvider=e.dataProvider,this.matrix=e.matrix}return(0,a.default)(t,[{key:"prepareAlter",value:function(e){if(!v.has(e))throw Error('Alter operation "'.concat(e,'" not exist.'));for(var t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];v.get(e).prepare.apply(this,n)}},{key:"triggerAlter",value:function(e){if(!v.has(e))throw Error('Alter operation "'.concat(e,'" not exist.'));for(var t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];v.get(e).operate.apply(this,n),this.runLocalHooks.apply(this,["afterAlter"].concat(n))}},{key:"destroy",value:function(){this.sheet=null,this.hot=null,this.dataProvider=null,this.matrix=null}}]),t}();(0,s.mixin)(g,l.default);var p=g;t.default=p;var m=function(){};function y(e,t){v.has(e)||v.set(e,{prepare:t.prepare||m,operate:t.operate||m})}},function(e,t,n){"use strict";var o=n(0);n(15),n(10),n(36),n(13),n(23),n(16),t.__esModule=!0,t.prepare=function(){var e=this.matrix,t=this.dataProvider;s=new WeakMap,(0,i.arrayEach)(e.data,function(e){s.set(e,t.t.toVisualRow(e.row))})},t.operate=function(){var e=this.matrix,a=this.dataProvider;(e.cellReferences.length=0,i.arrayEach)(e.data,function(e){e.setState(u.default.STATE_OUT_OFF_DATE),e.clearPrecedents();var t=e.row,n=e.column,o=a.getSourceDataAtCell(t,n);if((0,l.isFormulaExpression)(o)){var i=s.get(e),r=new c.default(o);r.translate({row:a.t.toVisualRow(t)-i}),a.updateSourceData(t,n,r.toString())}}),s=null},t.OPERATION_NAME=void 0;var s,i=n(3),l=n(83),u=o(n(84)),c=o(n(116));t.OPERATION_NAME="column_sorting"},function(e,t,n){"use strict";var o=n(0);n(10),n(36),t.__esModule=!0,t.operate=function(l,u){var c=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],e=this.matrix,h=this.dataProvider,d=[0,u];(0,i.arrayEach)(e.cellReferences,function(e){e.column>=l&&e.translateTo.apply(e,d)}),(0,i.arrayEach)(e.data,function(e){var t=e.row,n=e.column;if(e.column>=l&&(e.translateTo.apply(e,d),e.setState(v.default.STATE_OUT_OFF_DATE)),c){var o=e.row,i=e.column,r=h.getSourceDataAtCell(o,i);if((0,f.isFormulaExpression)(r)){var a=(0,f.cellCoordFactory)("column",l),s=new g.default(r);s.useCustomModifier(p),s.translate({column:u},a({row:t,column:n})),h.updateSourceData(o,i,s.toString())}}})},t.OPERATION_NAME=void 0;var i=n(3),f=n(83),v=o(n(84)),g=o(n(116));function p(e,t,n,o){var i=e.start,r=e.end,a=n,s=n;return i[t].index<o&&(a=0),r[t].index<o&&(s=0),[a,s,!1]}t.OPERATION_NAME="insert_column"},function(e,t,n){"use strict";var o=n(0);n(10),n(36),t.__esModule=!0,t.operate=function(l,u){var c=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],e=this.matrix,h=this.dataProvider,d=[u,0];(0,i.arrayEach)(e.cellReferences,function(e){e.row>=l&&e.translateTo.apply(e,d)}),(0,i.arrayEach)(e.data,function(e){var t=e.row,n=e.column;if(e.row>=l&&(e.translateTo.apply(e,d),e.setState(v.default.STATE_OUT_OFF_DATE)),c){var o=e.row,i=e.column,r=h.getSourceDataAtCell(o,i);if((0,f.isFormulaExpression)(r)){var a=(0,f.cellCoordFactory)("row",l),s=new g.default(r);s.useCustomModifier(p),s.translate({row:u},a({row:t,column:n})),h.updateSourceData(o,i,s.toString())}}})},t.OPERATION_NAME=void 0;var i=n(3),f=n(83),v=o(n(84)),g=o(n(116));function p(e,t,n,o){var i=e.start,r=e.end,a=n,s=n;return i[t].index<o&&(a=0),r[t].index<o&&(s=0),[a,s,!1]}t.OPERATION_NAME="insert_row"},function(e,t,n){"use strict";var o=n(0);n(10),n(36),t.__esModule=!0,t.operate=function(l,e){var u=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],c=-e,t=this.matrix,h=this.dataProvider,n=this.sheet,d=[0,c],o=Math.abs(c)-1,i=t.removeCellRefsAtRange({column:l},{column:l+o}),r=[];(0,a.arrayEach)(t.data,function(t){(0,a.arrayEach)(i,function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(v.default.STATE_OUT_OFF_DATE),(0,a.arrayEach)(n.getCellDependencies(t.row,t.column),function(e){e.setState(v.default.STATE_OUT_OFF_DATE)}))}),t.column>=l&&t.column<=l+o&&r.push(t)}),t.remove(r),(0,a.arrayEach)(t.cellReferences,function(e){e.column>=l&&e.translateTo.apply(e,d)}),(0,a.arrayEach)(t.data,function(e){var t=e.row,n=e.column;if(e.column>=l&&(e.translateTo.apply(e,d),e.setState(v.default.STATE_OUT_OFF_DATE)),u){var o=e.row,i=e.column,r=h.getSourceDataAtCell(o,i);if((0,f.isFormulaExpression)(r)){var a=(0,f.cellCoordFactory)("column",l),s=new g.default(r);s.useCustomModifier(p),s.translate({column:c},a({row:t,column:n})),h.updateSourceData(o,i,s.toString())}}})},t.OPERATION_NAME=void 0;var a=n(3),f=n(83),v=o(n(84)),g=o(n(116));function p(e,t,n,o){var i=e.start,r=e.end,a=e.type,s=i[t].index,l=r[t].index,u=Math.abs(n)-1,c=n,h=n,d=!1;return o<=s&&l<=o+u&&(d=!0),d||"cell"!==a||s<=o&&(h=c=0),d||"range"!==a||(s<=o&&(c=0),l<o?h=0:l<=o+u&&(h-=Math.min(l-(o+u),0))),s+c<0&&(c-=s+c),[c,h,d]}t.OPERATION_NAME="remove_column"},function(e,t,n){"use strict";var o=n(0);n(10),n(36),t.__esModule=!0,t.operate=function(l,e){var u=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],c=-e,t=this.matrix,h=this.dataProvider,n=this.sheet,d=[c,0],o=Math.abs(c)-1,i=t.removeCellRefsAtRange({row:l},{row:l+o}),r=[];(0,a.arrayEach)(t.data,function(t){(0,a.arrayEach)(i,function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(v.default.STATE_OUT_OFF_DATE),(0,a.arrayEach)(n.getCellDependencies(t.row,t.column),function(e){e.setState(v.default.STATE_OUT_OFF_DATE)}))}),t.row>=l&&t.row<=l+o&&r.push(t)}),t.remove(r),(0,a.arrayEach)(t.cellReferences,function(e){e.row>=l&&e.translateTo.apply(e,d)}),(0,a.arrayEach)(t.data,function(e){var t=e.row,n=e.column;if(e.row>=l&&(e.translateTo.apply(e,d),e.setState(v.default.STATE_OUT_OFF_DATE)),u){var o=e.row,i=e.column,r=h.getSourceDataAtCell(o,i);if((0,f.isFormulaExpression)(r)){var a=(0,f.cellCoordFactory)("row",l),s=new g.default(r);s.useCustomModifier(p),s.translate({row:c},a({row:t,column:n})),h.updateSourceData(o,i,s.toString())}}})},t.OPERATION_NAME=void 0;var a=n(3),f=n(83),v=o(n(84)),g=o(n(116));function p(e,t,n,o){var i=e.start,r=e.end,a=e.type,s=i[t].index,l=r[t].index,u=Math.abs(n)-1,c=n,h=n,d=!1;return o<=s&&l<=o+u&&(d=!0),d||"cell"!==a||s<=o&&(h=c=0),d||"range"!==a||(s<=o&&(c=0),l<o?h=0:l<=o+u&&(h-=Math.min(l-(o+u),0))),s+c<0&&(c-=s+c),[c,h,d]}t.OPERATION_NAME="remove_row"},function(e,t,n){"use strict";var o=n(0);n(19),t.__esModule=!0,t.default=void 0;var u=o(n(18)),l=o(n(37)),i=o(n(1)),r=o(n(2)),c=n(3),h=n(17),d=n(4),a=n(92),s=function(){function t(e){(0,i.default)(this,t),this.hot=e,this.changes={},this.t=(0,a.getTranslator)(this.hot)}return(0,r.default)(t,[{key:"collectChanges",value:function(e,t,n){this.changes[this._coordId(e,t)]=n}},{key:"clearChanges",value:function(){this.changes={}}},{key:"isInDataRange",value:function(e,t){return 0<=e&&e<this.hot.countRows()&&0<=t&&t<this.hot.countCols()}},{key:"getDataAtCell",value:function(e,t){var n=this._coordId.apply(this,(0,l.default)(this.t.toPhysical(e,t)));return(0,d.hasOwnProperty)(this.changes,n)?this.changes[n]:this.hot.getDataAtCell(e,t)}},{key:"getDataByRange",value:function(i,r,e,t){var a=this,s=this.hot.getData(i,r,e,t);return(0,c.arrayEach)(s,function(e,o){(0,c.arrayEach)(e,function(e,t){var n=a._coordId.apply(a,(0,l.default)(a.t.toPhysical(o+i,t+r)));(0,d.hasOwnProperty)(a.changes,n)&&(s[o][t]=a.changes[n])})}),s}},{key:"getSourceDataAtCell",value:function(e,t){var n=this._coordId(e,t);return(0,d.hasOwnProperty)(this.changes,n)?this.changes[n]:this.hot.getSourceDataAtCell(e,t)}},{key:"getSourceDataByRange",value:function(e,t,n,o){return this.hot.getSourceDataArray(e,t,n,o)}},{key:"getRawDataAtCell",value:function(e,t){return this.getSourceDataAtCell.apply(this,(0,l.default)(this.t.toPhysical(e,t)))}},{key:"getRawDataByRange",value:function(e,t,n,o){var l=this,i=[];return(0,h.rangeEach)(e,n,function(a){var s=[];(0,h.rangeEach)(t,o,function(e){var t=l.t.toPhysical(a,e),n=(0,u.default)(t,2),o=n[0],i=n[1],r=l._coordId(o,i);(0,d.hasOwnProperty)(l.changes,r)?s.push(l.changes[r]):s.push(l.getSourceDataAtCell(o,i))}),i.push(s)}),i}},{key:"updateSourceData",value:function(e,t,n){this.hot.getSourceData()[e][this.hot.colToProp(t)]=n}},{key:"_coordId",value:function(e,t){return"".concat(e,":").concat(t)}},{key:"destroy",value:function(){this.hot=null,this.changes=null,this.t=null}}]),t}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),u=n(3),a=o(n(518)),c=o(n(84)),s=function(){function t(e){(0,i.default)(this,t),this.sheet=e,this.stack=new a.default}return(0,r.default)(t,[{key:"save",value:function(i,r,a){var e=this.sheet,t=e.matrix,s=e.dataProvider,l=[];(0,u.arrayEach)(t.data,function(e){var t=e.row,n=e.column;if(e[i]<r||e[i]>r+(a-1)){var o=s.getSourceDataAtCell(t,n);l.push({row:t,column:n,value:o})}}),this.stack.push({axis:i,index:r,amount:a,changes:l})}},{key:"restore",value:function(){var e=this.sheet,i=e.matrix,r=e.dataProvider,t=this.stack.pop(),a=t.axis,s=t.index,l=t.amount,n=t.changes;n&&(0,u.arrayEach)(n,function(e){e[a]>s+(l-1)&&(e[a]-=l);var t=e.row,n=e.column,o=e.value;r.getSourceDataAtCell(t,n)!==o&&(r.updateSourceData(t,n,o),i.getCellAt(t,n).setState(c.default.STATE_OUT_OFF_DATE))})}},{key:"destroy",value:function(){this.sheet=null,this.stack=null}}]),t}();t.default=s},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(0,i.default)(this,t),this.items=e}return(0,r.default)(t,[{key:"push",value:function(){var e;(e=this.items).push.apply(e,arguments)}},{key:"pop",value:function(){return this.items.pop()}},{key:"peek",value:function(){return this.isEmpty()?void 0:this.items[this.items.length-1]}},{key:"isEmpty",value:function(){return!this.size()}},{key:"size",value:function(){return this.items.length}}]),t}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(19),n(40),n(39),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=o(n(22)),h=n(6),d=n(4),f=n(58),v=n(137),g=n(20),p=n(178),m=o(n(520)),y=o(n(521));n(522);var w=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,s.default)(n).call(this,e))).settings={},t.dateCalculator=null,t.currentYear=null,t.monthList=[],t.monthHeadersArray=[],t.weekHeadersArray=[],t.rangeBars={},t.rangeList={},t.nestedHeadersPlugin=null,t.hotSource=null,t.overallWeekSectionCount=null,t.initialSettings=null,t.dataFeed=null,t.colorData={},t.rangeBarMeta=Object.create(null),t}return(0,u.default)(n,e),(0,r.default)(n,[{key:"checkDependencies",value:function(){this.hot.getSettings().colHeaders||(0,f.warn)("You need to enable the colHeaders property in your Gantt Chart Handsontable in order for it to work properly.")}},{key:"isEnabled",value:function(){return!!this.hot.getSettings().ganttChart}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.checkDependencies(),this.parseSettings(),this.currentYear=this.settings.startYear||(new Date).getFullYear(),this.dateCalculator=new m.default({year:this.currentYear,allowSplitWeeks:this.settings.allowSplitWeeks,hideDaysBeforeFullWeeks:this.settings.hideDaysBeforeFullWeeks,hideDaysAfterFullWeeks:this.settings.hideDaysAfterFullWeeks}),this.dateCalculator.setFirstWeekDay(this.settings.firstWeekDay),this.monthList=this.dateCalculator.getMonthList(),this.monthHeadersArray=this.generateMonthHeaders(),this.weekHeadersArray=this.generateWeekHeaders(),this.overallWeekSectionCount=this.dateCalculator.countWeekSections(),this.assignGanttSettings(),this.nestedHeadersPlugin&&(this.applyDataSource(),this.colorData&&this.setRangeBarColors(this.colorData)),this.addHook("afterInit",function(){return e.onAfterInit()}),(0,h.addClass)(this.hot.rootElement,"ganttChart"),(0,l.default)((0,s.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.internalUpdateSettings||(this.dataFeed&&this.dataFeed.hotSource&&this.dataFeed.removeSourceHotHooks(this.dataFeed.hotSource),this.settings={},this.dataFeed={},this.currentYear=null,this.monthList=[],this.rangeBars={},this.rangeList={},this.rangeBarMeta={},this.hotSource=null,this.deassignGanttSettings(),(0,h.removeClass)(this.hot.rootElement,"ganttChart"),(0,l.default)((0,s.default)(n.prototype),"disablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,l.default)((0,s.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"parseSettings",value:function(){this.settings=this.hot.getSettings().ganttChart,"boolean"==typeof this.settings&&(this.settings={}),this.settings.firstWeekDay||(this.settings.firstWeekDay="monday"),void 0===this.settings.allowSplitWeeks&&(this.settings.allowSplitWeeks=!0),"function"!=typeof this.settings.weekHeaderGenerator&&(this.settings.weekHeaderGenerator=null)}},{key:"applyDataSource",value:function(){if(this.settings.dataSource){var e=this.settings.dataSource;e.instance?this.loadData(e.instance,e.startDateColumn,e.endDateColumn,e.additionalData,e.asyncUpdates):this.loadData(e)}}},{key:"loadData",value:function(e,t,n,o,i){this.dataFeed=new y.default(this.hot,e,t,n,o,i),this.hot.render()}},{key:"clearRangeBars",value:function(){this.rangeBars={}}},{key:"clearRangeList",value:function(){this.rangeList={}}},{key:"getRangeBarCoordinates",value:function(e){return this.rangeList[e]}},{key:"generateMonthHeaders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.currentYear;return this.dateCalculator.generateHeaderSet("months",this.settings.weekHeaderGenerator,t)}},{key:"generateWeekHeaders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.currentYear;return this.dateCalculator.generateHeaderSet("weeks",this.settings.weekHeaderGenerator,t)}},{key:"assignGanttSettings",value:function(){var s=this;this.initialSettings=(0,d.deepClone)(this.hot.getSettings());var e={data:(0,v.createEmptySpreadsheetData)(1,this.overallWeekSectionCount),readOnly:!0,renderer:function(e,t,n,o,i,r,a){return s.uniformBackgroundRenderer(e,t,n,o,i,r,a)},colWidths:60,hiddenColumns:!this.hot.getSettings().hiddenColumns||this.hot.getSettings().hiddenColumns,nestedHeaders:[this.monthHeadersArray.slice(),this.weekHeadersArray.slice()],collapsibleColumns:!this.hot.getSettings().collapsibleColumns||this.hot.getSettings().collapsibleColumns,columnSorting:!1,copyPaste:!1};this.internalUpdateSettings=!0,this.hot.updateSettings(e),this.internalUpdateSettings=void 0}},{key:"deassignGanttSettings",value:function(){this.internalUpdateSettings=!0,this.initialSettings&&this.hot.updateSettings(this.initialSettings),this.internalUpdateSettings=void 0}},{key:"cacheRangeBarMeta",value:function(e,t,n,o){this.rangeBarMeta[e]||(this.rangeBarMeta[e]={}),this.rangeBarMeta[e][t]||(this.rangeBarMeta[e][t]={}),this.rangeBarMeta[e][t][n]=o}},{key:"applyRangeBarMetaCache",value:function(){var i=this;(0,d.objectEach)(this.rangeBarMeta,function(e,o){(0,d.objectEach)(e,function(e,n){(0,d.objectEach)(e,function(e,t){i.hot.setCellMeta(o,n,t,e)})})})}},{key:"getAdjacentWeekColumn",value:function(e,t,n){var o=(0,p.parseDate)(e),i=!0===n?-7:7,r=o.setDate(o.getDate()+i);return this.dateCalculator.dateToColumn(r)}},{key:"addRangeBar",value:function(n,e,t,o){var i=this;null!==e&&null!==t&&this.prepareDaysInColumnsInfo((0,p.parseDate)(e),(0,p.parseDate)(t));var r=this.dateCalculator.dateToColumn(e),a=this.dateCalculator.dateToColumn(t),s=(0,p.getDateYear)(e),l=!1,u=!1;return null===r&&this.settings.hideDaysBeforeFullWeeks&&!1!==(r=this.getAdjacentWeekColumn(e,!0,!1))&&(l=!0),null===a&&this.settings.hideDaysAfterFullWeeks&&!1!==(a=this.getAdjacentWeekColumn(t,!1,!0))&&(u=!0),!(!this.dateCalculator.isValidRangeBarData(e,t)||!1===r||!1===a)&&(this.rangeBars[s]||(this.rangeBars[s]={}),this.rangeBars[s][n]||(this.rangeBars[s][n]={}),this.rangeBars[s][n][r]={barLength:a-r+1,partialStart:!l&&!this.dateCalculator.isOnTheEdgeOfWeek(e)[0],partialEnd:!u&&!this.dateCalculator.isOnTheEdgeOfWeek(t)[1],additionalData:{}},(0,d.objectEach)(o,function(e,t){i.rangeBars[s][n][r].additionalData[t]=e}),s===this.dateCalculator.getYear()&&(this.colorData[n]&&(this.rangeBars[s][n][r].colors=this.colorData[n]),this.rangeList[n]=[n,r],this.renderRangeBar(n,r,a,o)),[n,r])}},{key:"prepareDaysInColumnsInfo",value:function(e,t){for(var n=e.getFullYear();n<=t.getFullYear();n++)void 0===this.dateCalculator.daysInColumns[n]&&(this.dateCalculator.calculateWeekStructure(n),this.dateCalculator.generateHeaderSet("weeks",null,n))}},{key:"getRangeBarData",value:function(e,t){var n=this.dateCalculator.getYear(),o=this.getRangeBarCoordinates(e);if(!o)return!1;var i=this.rangeBars[n][o[0]][o[1]];return!(!i||e!==o[0]||!(t===o[1]||t>o[1]&&t<o[1]+i.barLength))&&i}},{key:"updateRangeBarData",value:function(e,t,n){var o=this.getRangeBarData(e,t);(0,d.objectEach)(n,function(e,t){o[t]!==e&&(o[t]=e)})}},{key:"renderRangeBar",value:function(e,t,n){for(var o=this.dateCalculator.getYear(),i=this.rangeBars[o][e][t],r=t;r<=n;r++){var a=this.hot.getCellMeta(e,r),s="".concat(a.className||""," rangeBar");(r===t&&i.partialStart||r===n&&i.partialEnd)&&(s+=" partial"),r===n&&(s+=" last"),this.hot.setCellMeta(e,r,"originalClassName",a.className),this.hot.setCellMeta(e,r,"className",s),this.hot.setCellMeta(e,r,"additionalData",i.additionalData),this.cacheRangeBarMeta(e,r,"originalClassName",a.className),this.cacheRangeBarMeta(e,r,"className",s),this.cacheRangeBarMeta(e,r,"additionalData",i.additionalData)}}},{key:"removeRangeBarByDate",value:function(e,t){var n=this.dateCalculator.dateToColumn(t);this.removeRangeBarByColumn(e,n)}},{key:"removeRangeBarByColumn",value:function(o,i){var r=this,e=this.dateCalculator.getYear(),t=this.rangeBars[e][o][i];t&&(this.unrenderRangeBar(o,i,i+t.barLength-1),this.rangeBars[e][o][i]=null,(0,d.objectEach)(this.rangeList,function(e,t){var n=parseInt(t,10);JSON.stringify(e)===JSON.stringify([o,i])&&(r.rangeList[n]=null)}))}},{key:"removeAllRangeBars",value:function(){var o=this;(0,d.objectEach)(this.rangeBars,function(e,n){(0,d.objectEach)(e,function(e,t){o.removeRangeBarByColumn(n,t)})})}},{key:"unrenderRangeBar",value:function(e,t,n){for(var o=t;o<=n;o++){var i=this.hot.getCellMeta(e,o);this.hot.setCellMeta(e,o,"className",i.originalClassName),this.hot.setCellMeta(e,o,"originalClassName",void 0),this.cacheRangeBarMeta(e,o,"className",i.originalClassName),this.cacheRangeBarMeta(e,o,"originalClassName",void 0)}this.hot.render()}},{key:"uniformBackgroundRenderer",value:function(e,t,n,o,i,r,a){var s=this.getRangeBarData(n,o),l=this.getRangeBarCoordinates(n);t.innerHTML="",a.className&&(t.className=a.className);var u="";(0,d.objectEach)(a.additionalData,function(e,t){u+="".concat(t,": ").concat(e,"\n")}),u=u.replace(/\n$/,""),t.title=u,s&&s.colors?o===l[1]&&s.partialStart||o===l[1]+s.barLength-1&&s.partialEnd?t.style.background=s.colors[1]:t.style.background=s.colors[0]:t.style.background=""}},{key:"setRangeBarColors",value:function(e){var o=this;this.colorData=e,(0,d.objectEach)(e,function(e,t){var n=o.getRangeBarCoordinates(t);n&&o.updateRangeBarData(n[0],n[1],{colors:e})}),this.hot.render()}},{key:"setYear",value:function(e){var t=(0,d.extend)(this.hot.getSettings().ganttChart,{startYear:e});this.hot.updateSettings({ganttChart:t})}},{key:"onAfterInit",value:function(){this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.applyDataSource()}},{key:"onUpdateSettings",value:function(){this.internalUpdateSettings?this.applyRangeBarMetaCache():(0,l.default)((0,s.default)(n.prototype),"onUpdateSettings",this).call(this)}},{key:"destroy",value:function(){this.hotSource&&this.dataFeed.removeSourceHotHooks(this.hotSource),(0,l.default)((0,s.default)(n.prototype),"destroy",this).call(this)}}]),n}(c.default);(0,g.registerPlugin)("ganttChart",w);var C=w;t.default=C},function(e,t,n){"use strict";var o=n(0);n(19),n(12),n(40),n(30),n(55),n(61),t.__esModule=!0,t.default=void 0;var E=o(n(18)),u=o(n(1)),i=o(n(2)),v=n(3),c=n(4),r=n(58),g=n(178),a=function(){function l(e){var t=e.year,n=e.allowSplitWeeks,o=void 0===n||n,i=e.hideDaysBeforeFullWeeks,r=void 0!==i&&i,a=e.hideDaysAfterFullWeeks,s=void 0!==a&&a;(0,u.default)(this,l),this.year=t,this.firstWeekDay="monday",this.allowSplitWeeks=o,this.hideDaysBeforeFullWeeks=r,this.hideDaysAfterFullWeeks=s,this.weekSectionCount=0,this.monthListCache={},this.daysInColumns={},this.calculateWeekStructure()}return(0,i.default)(l,[{key:"setYear",value:function(e){this.year=e,this.monthListCache[e]=this.calculateMonthData(e),this.calculateWeekStructure(e)}},{key:"setFirstWeekDay",value:function(e){var t=e.toLowerCase();"monday"!==t&&"sunday"!==t&&(0,r.warn)("First day of the week must be set to either Monday or Sunday"),this.firstWeekDay=t,this.calculateWeekStructure()}},{key:"countWeekSections",value:function(){return this.weekSectionCount}},{key:"getFirstWeekDay",value:function(){return this.firstWeekDay}},{key:"getYear",value:function(){return this.year}},{key:"getMonthList",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.year;return this.monthListCache[t]||(this.monthListCache[t]=this.calculateMonthData(t)),this.monthListCache[t]}},{key:"getFullMonthList",value:function(){return this.monthListCache}},{key:"dateToColumn",value:function(e){var t=(0,g.parseDate)(e);if(!t)return!1;var n=t.getMonth(),o=t.getDate()-1,i=t.getFullYear();return this.getWeekColumn(o,n,i)}},{key:"getWeekColumn",value:function(n,e,t){var o=2<arguments.length&&void 0!==t?t:this.getYear(),i=null,r=this.getMonthCacheArray(e,o);return(0,v.arrayEach)(r,function(e){if((0,c.objectEach)(e,function(e,t){if(-1<e.indexOf(n+1))return i=parseInt(t,10),!1}),i)return!1}),i}},{key:"getMonthCacheArray",value:function(o,e){var i=this,r=1<arguments.length&&void 0!==e?e:this.getYear(),a=this.getMonthList(r),s=[];if(this.allowSplitWeeks)s.push(this.daysInColumns[r][o]);else{var l=-1;(0,c.objectEach)(this.daysInColumns[r],function(e,t){var n=a[t];if(1<Object.keys(e).length&&(l+=1),l===o)return 0<n.daysBeforeFullWeeks&&s.push(i.daysInColumns[r][parseInt(t,10)-1]),s.push(e),0<n.daysAfterFullWeeks&&s.push(i.daysInColumns[r][parseInt(t,10)+1]),!1})}return s}},{key:"columnToDate",value:function(n,e){var t=1<arguments.length&&void 0!==e?e:this.getYear(),o=null;(0,c.objectEach)(this.daysInColumns[t],function(e,t){if(e[n])return o=t,!1});var i=this.daysInColumns[t][o][n];if(1!==i.length)return{start:new Date(t,o,i[0]),end:new Date(t,o,i[i.length-1])};var r=new Date(t,o,i[0]);return{start:r,end:r}}},{key:"isOnTheEdgeOfWeek",value:function(e){var n=this,o=(0,g.parseDate)(e);if(!o)return null;var t=o.getMonth(),i=o.getDate()-1,r=o.getFullYear(),a=this.getMonthCacheArray(t,r),s=!1;return(0,v.arrayEach)(a,function(e){if((0,c.objectEach)(e,function(e){if(!n.allowSplitWeeks&&7!==e.length&&(0==i||i==new Date(o.getYear(),o.getMonth()+1,0).getDate()-1))return!0;var t=e.indexOf(1+i);return 0===t?!(s=[1,0]):t===e.length-1?!(s=[0,1]):void 0}),s)return!1}),s}},{key:"generateHeaderSet",value:function(p,m,e){var y=this,w=2<arguments.length&&void 0!==e?e:this.year,t=this.getMonthList(w),C=[];return(0,c.objectEach)(t,function(e,t){var n=0<e.daysBeforeFullWeeks?1:0,o=0<e.daysAfterFullWeeks?1:0,i=y.hideDaysBeforeFullWeeks?0:n,r=y.hideDaysAfterFullWeeks?0:o,a=e.fullWeeks+(y.allowSplitWeeks?i+r:0),s=parseInt(t,10),l="";if("months"===p)C.push({label:e.name,colspan:a});else if("weeks"===p)for(var u=0;u<a;u++){var c=null,h=null;if(y.allowSplitWeeks||1!==e.fullWeeks){var d=y.getWeekColumnRange({monthObject:e,monthNumber:s,headerIndex:u,areDaysBeforeFullWeeksVisible:i,areDaysAfterFullWeeksVisible:r,headerCount:a,year:w}),f=(0,E.default)(d,2);c=f[0],h=f[1]}else{var v=y.getWeekColumnRange({monthObject:e,monthNumber:s,headerIndex:u,headerCount:a,areDaysBeforeFullWeeksVisible:i,areDaysAfterFullWeeksVisible:r,mixedMonth:!0,year:w}),g=(0,E.default)(v,2);c=g[0],h=g[1]}l=c===h?"".concat(c):"".concat(c," - ").concat(h),C.push(m?m.call(y,c,h):l),y.addDaysToCache(s,C.length-1,c,h,w)}}),C}},{key:"getWeekColumnRange",value:function(e){var t=e.monthObject,n=e.monthNumber,o=e.headerIndex,i=e.headerCount,r=e.areDaysBeforeFullWeeksVisible,a=e.areDaysAfterFullWeeksVisible,s=e.mixedMonth,l=void 0!==s&&s,u=e.year,c=void 0===u?this.year:u,h=this.getMonthList(c),d=this.allowSplitWeeks,f=null,v=null;return l?f=0===n?(v=h[n+1].daysBeforeFullWeeks,g.DEC_LENGTH-(g.WEEK_LENGTH-v)+1):n===h.length-1?(v=g.WEEK_LENGTH-h[n-1].daysAfterFullWeeks,h[n-1].days-h[n-1].daysAfterFullWeeks+1):(v=h[n+1].daysBeforeFullWeeks,h[n-1].days-(g.WEEK_LENGTH-v)+1):v=d&&r&&0===o?(f=o+1,t.daysBeforeFullWeeks):d&&a&&o===i-1?(f=t.days-t.daysAfterFullWeeks+1,t.days):(f=null,(f=d?t.daysBeforeFullWeeks+(o-r)*g.WEEK_LENGTH+1:t.daysBeforeFullWeeks+o*g.WEEK_LENGTH+1)+g.WEEK_LENGTH-1),[f,v]}},{key:"addDaysToCache",value:function(e,t,n,o,i){var r=4<arguments.length&&void 0!==i?i:this.getYear();if(this.daysInColumns[r]||(this.daysInColumns[r]={}),this.daysInColumns[r][e]||(this.daysInColumns[r][e]={}),this.daysInColumns[r][e][t]||(this.daysInColumns[r][e][t]=[]),n<=o)for(var a=n;a<=o;a++)this.daysInColumns[r][e][t].push(a);else{for(var s=0<=e-1?this.countMonthDays(e):31,l=n;l<=s;l++)this.daysInColumns[r][e][t].push(l);for(var u=1;u<=o;u++)this.daysInColumns[r][e][t].push(u)}}},{key:"isValidRangeBarData",value:function(e,t){var n=(0,g.parseDate)(e),o=(0,g.parseDate)(t);return n&&o&&n.getTime()<=o.getTime()}},{key:"calculateMonthData",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.year;return[{name:"January",days:31},{name:"February",days:new Date(t,2,0).getDate()},{name:"March",days:31},{name:"April",days:30},{name:"May",days:31},{name:"June",days:30},{name:"July",days:31},{name:"August",days:31},{name:"September",days:30},{name:"October",days:31},{name:"November",days:30},{name:"December",days:31}].slice(0)}},{key:"countMonths",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.getYear();return this.monthListCache[t].length}},{key:"countMonthDays",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:this.getYear();return this.monthListCache[n][e-1].days}},{key:"countMonthFullWeeks",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:this.getYear();return this.monthListCache[n][e-1].fullWeeks}},{key:"calculateWeekStructure",value:function(e){var a=this,s=0<arguments.length&&void 0!==e?e:this.getYear();this.monthListCache[s]=this.calculateMonthData(s);var t=this.getFirstWeekDay(),l=this.getMonthList(s),u=[],c=this.hideDaysBeforeFullWeeks?0:1,h=this.hideDaysAfterFullWeeks?0:1,d=0,f=0;"monday"===t&&(d=1),(0,v.arrayEach)(l,function(e,t){var n=new Date(s,t,1).getDay(),o=0;if(e.daysBeforeFullWeeks=(7-n+d)%7,!a.allowSplitWeeks&&e.daysBeforeFullWeeks&&(u.push((0,g.getMixedMonthObject)((0,g.getMixedMonthName)(t,l),t)),o+=1),e.fullWeeks=Math.floor((e.days-e.daysBeforeFullWeeks)/7),e.daysAfterFullWeeks=e.days-e.daysBeforeFullWeeks-7*e.fullWeeks,a.allowSplitWeeks){var i=c*(e.daysBeforeFullWeeks?1:0),r=h*(e.daysAfterFullWeeks?1:0);f+=e.fullWeeks+i+r}else t===l.length-1&&e.daysAfterFullWeeks&&(u.push((0,g.getMixedMonthObject)((0,g.getMixedMonthName)(t,l),null)),o+=1),f+=e.fullWeeks+o}),(0,v.arrayEach)(u,function(e,t){var n=e.index;delete e.index,a.addMixedMonth(null===n?n:t+n,e,s)}),s===this.getYear()&&(this.weekSectionCount=f)}},{key:"addMixedMonth",value:function(e,t,n){null===e?this.monthListCache[n].push(t):this.monthListCache[n].splice(e,0,t)}}]),l}();t.default=a},function(e,t,n){"use strict";var o=n(0);n(19),n(10),n(36),n(32),t.__esModule=!0,t.default=void 0;var s=o(n(1)),i=o(n(2)),l=n(4),r=n(3),u=n(17),c=n(178),a=function(){function a(e,t,n,o,i,r){(0,s.default)(this,a),this.data=t,this.chartInstance=e,this.chartPlugin=this.chartInstance.getPlugin("ganttChart"),this.hotSource=null,this.sourceHooks={},this.ongoingAsync=!1,this.applyData(t,n,o,i,r||!1)}return(0,i.default)(a,[{key:"applyData",value:function(e,t,n,o,i){if("[object Array]"===Object.prototype.toString.call(e))1<e.length&&this.chartInstance.alter("insert_row",0,e.length-1,"".concat(this.pluginName,".loadData")),this.loadData(e);else if(e instanceof this.chartInstance.constructor){var r=e.countRows();1<r&&this.chartInstance.alter("insert_row",0,r-1,"".concat(this.pluginName,".loadData")),this.bindWithHotInstance(e,t,n,o,i)}}},{key:"bindWithHotInstance",value:function(e,t,n,o,i){this.hotSource={instance:e,startColumn:t,endColumn:n,additionalData:o,asyncUpdates:i},this.addSourceHotHooks(),this.asyncCall(this.updateFromSource)}},{key:"asyncCall",value:function(e){var t=this;this.hotSource.asyncUpdates?(this.asyncStart(),setTimeout(function(){e.call(t),t.asyncEnd()},0)):e.call(this)}},{key:"asyncStart",value:function(){this.ongoingAsync=!0}},{key:"asyncEnd",value:function(){this.ongoingAsync=!1}},{key:"addSourceHotHooks",value:function(){var t=this;this.sourceHooks={afterLoadData:function(){return t.onAfterSourceLoadData()},afterChange:function(e){return t.onAfterSourceChange(e)},afterColumnSort:function(){return t.onAfterColumnSort()}},this.hotSource.instance.addHook("afterLoadData",this.sourceHooks.afterLoadData),this.hotSource.instance.addHook("afterChange",this.sourceHooks.afterChange),this.hotSource.instance.addHook("afterColumnSort",this.sourceHooks.afterColumnSort)}},{key:"removeSourceHotHooks",value:function(e){this.sourceHooks.afterLoadData&&e.instance.removeHook("afterLoadData",this.sourceHooks.afterLoadData),this.sourceHooks.afterChange&&e.instance.removeHook("afterChange",this.sourceHooks.afterChange),this.sourceHooks.afterColumnSort&&e.instance.removeHook("afterColumnSort",this.sourceHooks.afterColumnSort)}},{key:"getDataFromSource",value:function(e){var o,i={},r=this.hotSource,a=[];void 0===e?o=r.instance.getData(0,0,r.instance.countRows()-1,r.instance.countCols()-1):(o=[])[e]=r.instance.getDataAtRow(e);for(var t=function(e,t){i={};var n=o[e];if(null===n[r.startColumn]||""===n[r.startColumn])return"continue";(0,l.objectEach)(r.additionalData,function(e,t){i[t]=n[e]}),a.push([e,n[r.startColumn],n[r.endColumn],i,e])},n=e||0,s=o.length;n<(e?e+1:s);n++)t(n);return a}},{key:"updateFromSource",value:function(e){var t=this.getDataFromSource(e);!e&&isNaN(e)&&(this.chartPlugin.clearRangeBars(),this.chartPlugin.clearRangeList()),this.loadData(t),this.chartInstance.render()}},{key:"loadData",value:function(e){var o=this,i=[];(0,r.arrayEach)(e,function(e,t){e.row=t;var n=o.splitRangeIfNeeded(e);i=i.concat(n)}),(0,r.arrayEach)(i,function(e){o.chartPlugin.addRangeBar(e.row,(0,c.getStartDate)(e),(0,c.getEndDate)(e),(0,c.getAdditionalData)(e)),delete e.row})}},{key:"splitRangeIfNeeded",value:function(n){var o=[],e=new Date((0,c.getStartDate)(n)),t=new Date((0,c.getEndDate)(n));if("string"==typeof e||"string"==typeof t)return!1;var i=e.getFullYear(),r=t.getFullYear();return i===r?[n]:((0,u.rangeEach)(i,r,function(e){var t=(0,l.clone)(n);e!==i&&(0,c.setStartDate)(t,"01/01/".concat(e)),e!==r&&(0,c.setEndDate)(t,"12/31/".concat(e)),o.push(t)}),o)}},{key:"onAfterSourceChange",value:function(a){var s=this;this.asyncCall(function(){if(a){for(var e={},t=0,n=a.length;t<n;t++){var o=a[t],i=parseInt(o[0],10),r=parseInt(o[1],10);e[i]||(e[i]={}),e[i][r]=[o[2],o[3]]}(0,l.objectEach)(e,function(e,t){var n=parseInt(t,10);s.chartPlugin.getRangeBarCoordinates(n)&&s.chartPlugin.removeRangeBarByColumn(n,s.chartPlugin.rangeList[n][1]),s.updateFromSource(t)})}})}},{key:"onAfterSourceLoadData",value:function(){var e=this;this.asyncCall(function(){e.chartPlugin.removeAllRangeBars(),e.updateFromSource()})}},{key:"onAfterColumnSort",value:function(){var e=this;this.asyncCall(function(){e.chartPlugin.removeAllRangeBars(),e.updateFromSource()})}}]),a}();t.default=a},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(5)),l=o(n(14)),u=o(n(8)),c=n(6),h=n(20),d=n(17),f=function(e){function o(e){var t;return(0,i.default)(this,o),(t=(0,a.default)(this,(0,s.default)(o).call(this,e))).settings=null,t}return(0,u.default)(o,e),(0,r.default)(o,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().headerTooltips}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.settings=this.hot.getSettings().headerTooltips,this.parseSettings(),this.addHook("afterGetColHeader",function(e,t){return n.onAfterGetHeader(e,t)}),this.addHook("afterGetRowHeader",function(e,t){return n.onAfterGetHeader(e,t)}),(0,l.default)((0,s.default)(o.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.settings=null,this.clearTitleAttributes(),(0,l.default)((0,s.default)(o.prototype),"disablePlugin",this).call(this)}},{key:"parseSettings",value:function(){"boolean"==typeof this.settings&&(this.settings={rows:!0,columns:!0,onlyTrimmed:!1})}},{key:"clearTitleAttributes",value:function(){var e=this.hot.view.wt.getSetting("columnHeaders").length,i=this.hot.view.wt.wtTable.THEAD,r=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,t=this.hot.view.wt.wtOverlays.topLeftCornerOverlay,a=t?t.clone.wtTable.THEAD:null;(0,d.rangeEach)(0,e-1,function(e){var t=i.childNodes[e],n=r.childNodes[e],o=a?a.childNodes[e]:null;(0,d.rangeEach)(0,t.childNodes.length-1,function(e){t.childNodes[e].removeAttribute("title"),n&&n.childNodes[e]&&n.childNodes[e].removeAttribute("title"),a&&o&&o.childNodes[e]&&o.childNodes[e].removeAttribute("title")})},!0)}},{key:"onAfterGetHeader",value:function(e,t){var n=t.querySelector("span"),o="THEAD"===t.parentNode.parentNode.nodeName;(o&&this.settings.columns||!o&&this.settings.rows)&&(this.settings.onlyTrimmed?(0,c.outerWidth)(n)>=(0,c.outerWidth)(t)&&0!==(0,c.outerWidth)(n)&&t.setAttribute("title",n.textContent):t.setAttribute("title",n.textContent))}},{key:"destroy",value:function(){this.settings=null,(0,l.default)((0,s.default)(o.prototype),"destroy",this).call(this)}}]),o}(o(n(22)).default);(0,h.registerPlugin)("headerTooltips",f);var v=f;t.default=v},function(e,t,n){"use strict";var o=n(0);n(12),t.__esModule=!0,t.default=void 0;var i=o(n(69)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(26)),u=o(n(5)),c=o(n(14)),h=o(n(8)),g=n(6),p=n(17),m=n(3),d=n(4),f=n(71),v=n(58),y=n(20),w=o(n(22)),C=n(25),E=o(n(525));function S(){var e=(0,i.default)(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\n is currently not supported and might result in glitches."]);return S=function(){return e},e}function k(){var e=(0,i.default)(["You have declared a Nested Header overlapping the Fixed Columns section - it may lead to visual\n glitches. To prevent that kind of problems, split the nested headers between the fixed and non-fixed columns."]);return k=function(){return e},e}n(526);var T=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,u.default)(n).call(this,e))).settings=[],t.columnHeaderLevelCount=0,t.colspanArray=[],t.ghostTable=new E.default((0,l.default)(t)),t}return(0,h.default)(n,e),(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var i=this;this.enabled||(this.settings=this.hot.getSettings().nestedHeaders,this.addHook("afterGetColumnHeaderRenderers",function(e){return i.onAfterGetColumnHeaderRenderers(e)}),this.addHook("afterInit",function(){return i.onAfterInit()}),this.addHook("afterOnCellMouseDown",function(e,t){return i.onAfterOnCellMouseDown(e,t)}),this.addHook("beforeOnCellMouseOver",function(e,t,n,o){return i.onBeforeOnCellMouseOver(e,t,n,o)}),this.addHook("afterViewportColumnCalculatorOverride",function(e){return i.onAfterViewportColumnCalculatorOverride(e)}),this.addHook("modifyColWidth",function(e,t){return i.onModifyColWidth(e,t)}),this.setupColspanArray(),this.checkForFixedColumnsCollision(),this.columnHeaderLevelCount=this.hot.view?this.hot.view.wt.getSetting("columnHeaders").length:0,(0,c.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearColspans(),this.settings=[],this.columnHeaderLevelCount=0,this.colspanArray=[],this.ghostTable.clear(),(0,c.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,c.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this),this.ghostTable.buildWidthsMapper()}},{key:"clearColspans",value:function(){if(this.hot.view)for(var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,o=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,i=0;i<e;i++){var r=t.childNodes[i];if(!r)break;for(var a=n.childNodes[i],s=o?o.childNodes[i]:null,l=0,u=r.childNodes.length;l<u;l++)r.childNodes[l].removeAttribute("colspan"),a&&a.childNodes[l]&&a.childNodes[l].removeAttribute("colspan"),o&&s&&s.childNodes[l]&&s.childNodes[l].removeAttribute("colspan")}}},{key:"checkForFixedColumnsCollision",value:function(){var n=this,o=this.hot.getSettings().fixedColumnsLeft;(0,m.arrayEach)(this.colspanArray,function(e,t){n.getNestedParent(t,o)!==o&&(0,v.warn)((0,f.toSingleLine)(k()))})}},{key:"checkForOverlappingHeaders",value:function(){var a=this;(0,m.arrayEach)(this.colspanArray,function(e,r){(0,m.arrayEach)(a.colspanArray[r],function(e,t){if(1<e.colspan){var n=a.levelToRowCoords(r),o=a.getChildHeaders(n,t);if(0<o.length){var i=0;return(0,m.arrayEach)(o,function(e){i+=a.getColspan(n+1,e)}),i>e.colspan&&(0,v.warn)((0,f.toSingleLine)(S())),!1}}})})}},{key:"setupColspanArray",value:function(){var r=this;(0,d.objectEach)(this.settings,function(e,i){(0,d.objectEach)(e,function(e,t,n){if(function(e,t){e[t]||(e[t]=[])}(r.colspanArray,i),void 0===n[t].colspan)r.colspanArray[i].push({label:n[t]||"",colspan:1,hidden:!1});else{var o=n[t].colspan||1;r.colspanArray[i].push({label:n[t].label||"",colspan:o,hidden:!1}),r.fillColspanArrayWithDummies(o,i)}})})}},{key:"fillColspanArrayWithDummies",value:function(e,t){var n=this;(0,p.rangeEach)(0,e-2,function(){n.colspanArray[t].push({label:"",colspan:1,hidden:!0})})}},{key:"headerRendererFactory",value:function(d){var f=this;return function(e,t){var n=f.hot.rootDocument;if(t.removeAttribute("colspan"),(0,g.removeClass)(t,"hiddenHeader"),f.colspanArray[d][e]&&f.colspanArray[d][e].colspan){var o=f.colspanArray[d][e].colspan,i=f.hot.getSettings().fixedColumnsLeft||0,r=f.hot.view.wt.wtOverlays,a=r.leftOverlay,s=r.topLeftCornerOverlay,l=!!s&&s.clone.wtTable.THEAD.contains(t),u=!!a&&a.clone.wtTable.THEAD.contains(t);1<o&&t.setAttribute("colspan",l||u?Math.min(o,i-e):o),(l||u&&e===i-1)&&(0,g.addClass)(t,"overlayEdge")}f.colspanArray[d][e]&&f.colspanArray[d][e].hidden&&(0,g.addClass)(t,"hiddenHeader"),(0,g.empty)(t);var c=n.createElement("DIV");(0,g.addClass)(c,"relative");var h=n.createElement("SPAN");(0,g.addClass)(h,"colHeader"),(0,g.fastInnerHTML)(h,f.colspanArray[d][e]&&f.colspanArray[d][e].label||""),c.appendChild(h),t.appendChild(c),f.hot.runHooks("afterGetColHeader",e,t)}}},{key:"getColspan",value:function(e,t){var n=this.colspanArray[this.rowCoordsToLevel(e)][t];return n?n.colspan:1}},{key:"levelToRowCoords",value:function(e){return e-this.columnHeaderLevelCount}},{key:"rowCoordsToLevel",value:function(e){return e+this.columnHeaderLevelCount}},{key:"getNestedParent",value:function(e,t){if(e<0)return!1;var n=this.colspanArray[e][t]?this.colspanArray[e][t].colspan:1,o=!!this.colspanArray[e][t]&&this.colspanArray[e][t].hidden;if(1<n||1===n&&!1===o)return t;var i=t-1;do{if(1<this.colspanArray[e][i].colspan)break;i-=1}while(0<=t);return i}},{key:"getChildHeaders",value:function(e,t){var n=this.rowCoordsToLevel(e),o=this.colspanArray[n+1],i=this.getNestedParent(n,t),r=this.colspanArray[n][t].colspan,a=[];return o&&(0,p.rangeEach)(i,i+r-1,function(e){o[e]&&1<o[e].colspan&&(r-=o[e].colspan-1),o[e]&&!o[e].hidden&&-1===a.indexOf(e)&&a.push(e)}),a}},{key:"fillTheRemainingColspans",value:function(){var o=this;(0,d.objectEach)(this.settings,function(t,n){(0,p.rangeEach)(o.colspanArray[n].length-1,o.hot.countCols()-1,function(e){o.colspanArray[n].push({label:t[e]||"",colspan:1,hidden:!1})},!0)})}},{key:"updateHeadersHighlight",value:function(){var a=this,e=this.hot.getSelectedLast();if(void 0!==e){var s=this.hot.view.wt.wtOverlays,l=this.hot.selection.isSelectedByColumnHeader(),u=Math.min(e[1],e[3]),c=Math.max(e[1],e[3]),h=l?-1:this.columnHeaderLevelCount-1,d=[],t=function(n){return function(e,t){return function(){return t(e,n)}}},f=t("ht__highlight"),v=t("ht__active_highlight");(0,p.rangeEach)(u,c,function(r){for(var e=function(t){var e=a.getNestedParent(t,r),n=[s.topOverlay?s.topOverlay.clone.wtTable.getColumnHeader(e,t):void 0,s.topLeftCornerOverlay?s.topLeftCornerOverlay.clone.wtTable.getColumnHeader(e,t):void 0],o=a.getColspan(t-a.columnHeaderLevelCount,e),i=u<=e&&e+o-1<=c;(0,m.arrayEach)(n,function(e){if(void 0===e)return!1;!l&&t<h||l&&!i?(d.push(f(e,g.removeClass)),l&&d.push(v(e,g.removeClass))):(d.push(f(e,g.addClass)),l&&d.push(v(e,g.addClass)))})},t=a.columnHeaderLevelCount-1;-1<t;t--)e(t)}),(0,m.arrayEach)(d,function(e){e()}),d.length=0}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(n){var o=this,i=n.startColumn;(0,p.rangeEach)(0,Math.max(this.columnHeaderLevelCount-1,0),function(e){var t=o.getNestedParent(e,n.startColumn);t<n.startColumn&&(i=Math.min(i,t))}),n.startColumn=i}},{key:"onAfterOnCellMouseDown",value:function(e,t){if(t.row<0){var n=this.getColspan(t.row,t.col),o=t.col+n-1;if(1<n){var i=this.hot.countRows()-1;this.hot.selection.setRangeEnd(new C.CellCoords(i,o))}}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){if(!(0<=t.row||t.col<0)&&this.hot.view.isMouseDown()){var i=this.hot.getSelectedRangeLast(),r=i.from,a=i.to,s=this.getColspan(t.row,t.col),l=t.col+s-1,u=!1;if(r.col<=a.col?(t.col<r.col&&l===a.col||t.col<r.col&&l<r.col||t.col<r.col&&l>=r.col&&l<a.col)&&(u=!0):(t.col<a.col&&l>r.col||t.col>r.col||t.col<=a.col&&l>r.col||t.col>a.col&&l>r.col)&&(u=!0),u){var c=[a.col,r.col];r.col=c[0],a.col=c[1]}if(1<s){var h;o.column=!0,o.cell=!0;var d=[];r.col===a.col&&(l<=r.col&&t.col<r.col?d.push(a.col,t.col):d.push(t.col<r.col?t.col:r.col,l>a.col?l:a.col)),r.col<a.col&&d.push(t.col<r.col?t.col:r.col,l),r.col>a.col&&d.push(r.col,t.col),(h=this.hot).selectColumns.apply(h,d)}}}},{key:"onAfterInit",value:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length,this.fillTheRemainingColspans(),this.checkForOverlappingHeaders(),this.ghostTable.buildWidthsMapper()}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){if(e){e.length=0;for(var t=this.colspanArray.length-1;0<=t;t--)e.push(this.headerRendererFactory(t));e.reverse()}this.updateHeadersHighlight()}},{key:"onModifyColWidth",value:function(e,t){var n=this.ghostTable.widthsCache[t];return n<e?e:n}},{key:"destroy",value:function(){this.settings=null,this.columnHeaderLevelCount=null,this.colspanArray=null,(0,c.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}]),n}(w.default);(0,y.registerPlugin)("nestedHeaders",T);var R=T;t.default=R},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),m=n(6),y=n(4),a=function(){function t(e){(0,i.default)(this,t),this.nestedHeaders=e,this.container=void 0,this.widthsCache=[]}return(0,r.default)(t,[{key:"buildWidthsMapper",value:function(){this.container=this.nestedHeaders.hot.rootDocument.createElement("div"),this.buildGhostTable(this.container),this.nestedHeaders.hot.rootElement.appendChild(this.container);for(var e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length,n=0;n<t;n++)this.widthsCache.push(e[n].offsetWidth);this.container.parentNode.removeChild(this.container),this.container=null,this.nestedHeaders.hot.render()}},{key:"buildGhostTable",value:function(e){for(var t=this.nestedHeaders.hot.rootDocument,n=t.createDocumentFragment(),o=t.createElement("table"),i=!1,r=!!this.nestedHeaders.hot.getSettings().dropdownMenu,a=this.nestedHeaders.colspanArray.length,s=this.nestedHeaders.hot.countCols(),l=a-1,u=0;u<a;u++){var c=t.createElement("tr");i=!1;for(var h=0;h<s;h++){var d=t.createElement("th"),f=(0,y.clone)(this.nestedHeaders.colspanArray[u][h]);f&&!f.hidden&&(u===l&&(1<f.colspan&&(i=!0),r&&(f.label+='<button class="changeType"></button>')),(0,m.fastInnerHTML)(d,f.label),d.colSpan=f.colspan,c.appendChild(d))}o.appendChild(c)}if(i){for(var v=t.createElement("tr"),g=0;g<s;g++){var p=t.createElement("th");v.appendChild(p)}o.appendChild(v)}n.appendChild(o),e.appendChild(n)}},{key:"clear",value:function(){this.container=null,this.widthsCache.length=0}}]),t}();t.default=a},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(10),n(13),n(23),n(16),n(32),t.__esModule=!0,t.default=void 0;var c=o(n(37)),i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),h=o(n(8)),d=o(n(22)),f=n(20),v=n(17),g=n(3),p=n(25),m=o(n(528)),y=o(n(529)),w=o(n(266)),C=o(n(530));n(531);var E=new WeakMap,S=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,l.default)(n).call(this,e))).sourceData=null,t.trimRowsPlugin=null,t.bindRowsWithHeadersPlugin=null,t.dataManager=null,t.headersUI=null,E.set((0,s.default)(t),{changeSelection:!1,movedToFirstChild:!1,movedToCollapsed:!1,skipRender:null}),t}return(0,h.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var e=this;this.sourceData=this.hot.getSourceData(),this.trimRowsPlugin=this.hot.getPlugin("trimRows"),this.manualRowMovePlugin=this.hot.getPlugin("manualRowMove"),this.bindRowsWithHeadersPlugin=this.hot.getPlugin("bindRowsWithHeaders"),this.dataManager=new m.default(this,this.hot,this.sourceData),this.collapsingUI=new y.default(this,this.hot,this.trimRowsPlugin),this.headersUI=new w.default(this,this.hot),this.contextMenuUI=new C.default(this,this.hot),this.dataManager.rewriteCache(),this.addHook("afterInit",function(){return e.onAfterInit.apply(e,arguments)}),this.addHook("beforeRender",function(){return e.onBeforeRender.apply(e,arguments)}),this.addHook("modifyRowData",function(){return e.onModifyRowData.apply(e,arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength.apply(e,arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice.apply(e,arguments)}),this.addHook("beforeDataFilter",function(){return e.onBeforeDataFilter.apply(e,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)}),this.addHook("afterGetRowHeader",function(){return e.onAfterGetRowHeader.apply(e,arguments)}),this.addHook("beforeOnCellMouseDown",function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow.apply(e,arguments)}),this.addHook("modifyRemovedAmount",function(){return e.onModifyRemovedAmount.apply(e,arguments)}),this.addHook("beforeAddChild",function(){return e.onBeforeAddChild.apply(e,arguments)}),this.addHook("afterAddChild",function(){return e.onAfterAddChild.apply(e,arguments)}),this.addHook("beforeDetachChild",function(){return e.onBeforeDetachChild.apply(e,arguments)}),this.addHook("afterDetachChild",function(){return e.onAfterDetachChild.apply(e,arguments)}),this.addHook("modifyRowHeaderWidth",function(){return e.onModifyRowHeaderWidth.apply(e,arguments)}),this.addHook("afterCreateRow",function(){return e.onAfterCreateRow.apply(e,arguments)}),this.addHook("beforeRowMove",function(){return e.onBeforeRowMove.apply(e,arguments)}),this.addHook("afterRowMove",function(){return e.onAfterRowMove.apply(e,arguments)}),this.trimRowsPlugin.isEnabled()||(this.trimRowsPlugin.enablePlugin(),this.hot.getSettings().trimRows=!0),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(e,t){var n,o,i,r=E.get(this),a=e.length,s=[],l=this.dataManager.translateTrimmedRow(t),u=!0,c=null;for(n=0;n<a;n++)s.push(this.dataManager.translateTrimmedRow(e[n])),this.dataManager.isParent(s[n])&&(u=!1);if(-1<s.indexOf(l)||!u)return!1;if(o=this.dataManager.getRowParent(s[0]),null==(c=this.dataManager.getRowParent(l))&&(c=this.dataManager.getRowParent(l-1)),null==c&&(c=this.dataManager.getDataObject(l-1),r.movedToFirstChild=!0),!c)return!1;for(i=o===c,r.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),i||(Math.max.apply(Math,s)<=l?this.collapsingUI.collapsedRowsStash.shiftStash(s[0],-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(l,e.length)),r.changeSelection=!0,(s[a-1]<=l&&i||!0===r.movedToFirstChild)&&(e.reverse(),s.reverse(),!0!==r.movedToFirstChild&&(l-=1)),n=0;n<a;n++)this.dataManager.moveRow(s[n],l);if(s[s.length-1]<l)for(n=a-1;0<=n;n--)this.dataManager.moveCellMeta(s[n],l);else for(n=0;n<a;n++)this.dataManager.moveCellMeta(s[n],l);return(s[a-1]<=l&&i||this.dataManager.isParent(l))&&e.reverse(),this.dataManager.rewriteCache(),!1}},{key:"onAfterRowMove",value:function(e,t){var n=E.get(this);if(n.changeSelection){var o,i,r=e.length,a=0,s=0,l=null;if(this.collapsingUI.collapsedRowsStash.applyStash(),o=this.dataManager.translateTrimmedRow(t),n.movedToFirstChild)n.movedToFirstChild=!1,s=(a=t)+r-1,t>=Math.max.apply(Math,(0,c.default)(e))&&(a-=r,s-=r);else if(n.movedToCollapsed){var u=this.dataManager.getRowParent(o-1);null==u&&(u=this.dataManager.getDataObject(o-1)),s=a=this.dataManager.getRowIndex(u)}else e[r-1]<t?a=(s=t-1)-r+1:s=(a=t)+r-1;l=this.hot.selection,i=this.hot.countCols()-1,l.setRangeStart(new p.CellCoords(a,0)),l.setRangeEnd(new p.CellCoords(s,i),!0),n.changeSelection=!1}}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n){this.collapsingUI.toggleState(e,t,n)}},{key:"onModifyRowData",value:function(e){return this.dataManager.getDataObject(e)}},{key:"onModifySourceLength",value:function(){return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice",value:function(e,t,n){return this.dataManager.spliceData(e,t,n),!1}},{key:"onBeforeDataFilter",value:function(e,t){var n=[],o=this.dataManager.translateTrimmedRow(e),i=E.get(this);return(0,v.rangeEach)(o,o+t-1,function(e){n.push(e)}),this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o,t),this.collapsingUI.collapsedRowsStash.shiftStash(o,-1*t),this.dataManager.filterData(e,t,n),!(i.skipRender=!0)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){return this.contextMenuUI.appendOptions(e)}},{key:"onAfterGetRowHeader",value:function(e,t){this.headersUI.appendLevelIndicators(e,t)}},{key:"onModifyRowHeaderWidth",value:function(e){return this.headersUI.rowHeaderWidthCache||e}},{key:"onAfterRemoveRow",value:function(e,t,n,o){var i=this;if(o!==this.pluginName){var r=E.get(this);setTimeout(function(){r.skipRender=null,i.headersUI.updateRowHeaderWidth(),i.collapsingUI.collapsedRowsStash.applyStash()},0)}}},{key:"onModifyRemovedAmount",value:function(e,t){var i=this,r=[],a=0;return(0,v.rangeEach)(t,t+e-1,function(e){var t=!1,n=i.collapsingUI.translateTrimmedRow(e),o=i.dataManager.getDataObject(n);i.dataManager.hasChildren(o)&&(r.push(o),(0,g.arrayEach)(r,function(e){if(-1<e.__children.indexOf(o))return!(t=!0)}),t||(a+=i.dataManager.countChildren(o))),t=!1,(0,g.arrayEach)(r,function(e){if(-1<e.__children.indexOf(o))return!(t=!0)}),t&&(a-=1)}),e+a}},{key:"onBeforeAddChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterAddChild",value:function(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onBeforeDetachChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterDetachChild",value:function(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(e,t,n){n!==this.pluginName&&this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){this.bindRowsWithHeadersPlugin.bindStrategy.strategy&&this.bindRowsWithHeadersPlugin.bindStrategy.createMap(this.hot.countSourceRows());var e=Math.max.apply(Math,(0,c.default)(this.dataManager.cache.levels));0<e&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeRender",value:function(e,t){E.get(this).skipRender&&(t.skipRender=!0)}}]),n}(d.default);(0,f.registerPlugin)("nestedRows",S);var k=S;t.default=k},function(e,t,n){"use strict";var o=n(0);n(12),n(15),n(40),n(30),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(44)),r=o(n(1)),a=o(n(2)),d=n(17),s=n(4),l=n(3),u=n(92),c=function(){function o(e,t,n){(0,r.default)(this,o),this.hot=t,this.data=n,this.plugin=e,this.parentReference=new WeakMap,this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},this.recordTranslator=(0,u.getTranslator)(this.hot)}return(0,a.default)(o,[{key:"rewriteCache",value:function(){var t=this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,d.rangeEach)(0,this.data.length-1,function(e){t.cacheNode(t.data[e],0,null)})}},{key:"cacheNode",value:function(t,n,e){var o=this;this.cache.levels[n]||(this.cache.levels[n]=[],this.cache.levelCount+=1),this.cache.levels[n].push(t),this.cache.rows.push(t),this.cache.nodeInfo.set(t,{parent:e,row:this.cache.rows.length-1,level:n}),this.hasChildren(t)&&(0,l.arrayEach)(t.__children,function(e){o.cacheNode(e,n+1,t)})}},{key:"getDataObject",value:function(e){return null==e?null:this.cache.rows[e]}},{key:"readTreeNodes",value:function(e,t,n,o){var i=this,r=!1,a=t;if(isNaN(a)&&a.end)return a;var s=e;return s||(s={__children:this.data},r=!0,a-=1),null!=n&&a===n?{result:s,end:!0}:null!=o&&s===o?{result:a,end:!0}:(a+=1,s.__children&&(0,l.arrayEach)(s.__children,function(e){if(i.parentReference.set(e,r?null:s),a=i.readTreeNodes(e,a,n,o),isNaN(a)&&a.end)return!1}),a)}},{key:"updateParentReference",value:function(){this.readTreeNodes({__children:this.data},0,this.hot.countRows())}},{key:"mockParent",value:function(){var e=this.mockNode();return e.__children=this.data,e}},{key:"mockNode",value:function(){var n={};return(0,s.objectEach)(this.data[0],function(e,t){n[t]=null}),n}},{key:"getRowIndex",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).row}},{key:"getRowIndexWithinParent",value:function(e){var t=null;t=isNaN(e)?e:this.getDataObject(e);var n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}},{key:"countAllRows",value:function(){var e={__children:this.data};return this.countChildren(e)}},{key:"countChildren",value:function(e){var t=this,n=0,o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&o.__children?((0,l.arrayEach)(o.__children,function(e){n+=1,e.__children&&(n+=t.countChildren(e))}),n):0}},{key:"getRowParent",value:function(e){var t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}},{key:"getRowObjectParent",value:function(e){return"object"!==(0,i.default)(e)?null:this.cache.nodeInfo.get(e).parent}},{key:"getRowLevel",value:function(e){var t=null;return(t=isNaN(e)?e:this.getDataObject(e))?this.getRowObjectLevel(t):null}},{key:"getRowObjectLevel",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).level}},{key:"hasChildren",value:function(e){var t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}},{key:"isParent",value:function(e){var t=e;return isNaN(t)||(t=this.getDataObject(t)),!!(0,s.hasOwnProperty)(t,"__children")}},{key:"addChild",value:function(e,t){var n=t;this.hot.runHooks("beforeAddChild",e,n);var o=null;e&&(o=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",o+this.countChildren(e)+1,1);var i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),n=n||this.mockNode(),i.__children.push(n),this.rewriteCache();var r=this.getRowIndex(n);this.hot.runHooks("afterCreateRow",r,1),this.hot.runHooks("afterAddChild",e,n)}},{key:"addChildAtIndex",value:function(e,t,n,o){var i=n;this.hot.runHooks("beforeAddChild",e,i,t),this.hot.runHooks("beforeCreateRow",o+1,1);var r=e;e||(r=this.mockParent()),r.__children||(r.__children=[]),i=i||this.mockNode(),r.__children.splice(t,null,i),this.rewriteCache(),this.hot.runHooks("afterCreateRow",o+1,1),this.hot.runHooks("afterAddChild",e,i,t)}},{key:"addSibling",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:"below",o=this.translateTrimmedRow(e),i=this.getRowParent(o),r=this.getRowIndexWithinParent(o);switch(n){case"below":this.addChildAtIndex(i,r+1,null,e);break;case"above":this.addChildAtIndex(i,r,null,e)}}},{key:"detachFromParent",value:function(e,t){var n=this,o=!(1<arguments.length&&void 0!==t)||t,i=null,r=[];i=Array.isArray(e)?((0,d.rangeEach)(e[0],e[2],function(e){var t=n.translateTrimmedRow(e);r.push(n.getDataObject(t))}),(0,d.rangeEach)(0,r.length-2,function(e){n.detachFromParent(r[e],!1)}),r[r.length-1]):e;var a=this.getRowIndex(i),s=this.getRowIndexWithinParent(i),l=this.getRowParent(i),u=this.getRowParent(l),c=this.getRowIndex(u),h=null;this.hot.runHooks("beforeDetachChild",l,i),null!=s&&(this.hot.runHooks("beforeRemoveRow",a,1,[a],this.plugin.pluginName),l.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",a,1,[a],this.plugin.pluginName),u?(h=c+this.countChildren(u),this.hot.runHooks("beforeCreateRow",h,1,this.plugin.pluginName),u.__children.push(i)):(h=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",h,1,this.plugin.pluginName),this.data.push(i))),this.rewriteCache(),this.hot.runHooks("afterCreateRow",h,1,this.plugin.pluginName),o&&this.hot.render(),this.hot.runHooks("afterDetachChild",l,i)}},{key:"filterData",value:function(e,t,n){var o=this,i=[];(0,l.arrayEach)(n,function(e){i.push(o.getDataObject(e))}),(0,l.arrayEach)(i,function(e){var t=o.getRowIndexWithinParent(e),n=o.getRowParent(e);null===n?o.data.splice(t,1):n.__children.splice(t,1)}),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var o=this.translateTrimmedRow(e);if(null!=o){var i=this.getDataObject(o-1),r=null,a=null;a=i&&i.__children&&0===i.__children.length?(r=i,0):(r=this.getRowParent(o),this.getRowIndexWithinParent(o)),r?n?r.__children.splice(a,t,n):r.__children.splice(a,t):n?this.data.splice(a,t,n):this.data.splice(a,t),this.rewriteCache()}}},{key:"moveRow",value:function(e,t){var n=this.isParent(t),o=this.getRowParent(e),i=this.getRowIndexWithinParent(e),r=this.getRowParent(t);null==r&&(r=this.getRowParent(t-1)),null==r&&(r=this.getDataObject(t-1)),r?r.__children||(r.__children=[]):(r=this.getDataObject(t)).__children=[];var a=this.getRowParent(t-1),s=n?this.countChildren(a):this.getRowIndexWithinParent(t),l=o.__children.slice(i,i+1);o.__children.splice(i,1),r.__children.splice(s,0,l[0])}},{key:"moveCellMeta",value:function(e,t){var n=this.hot.getCellMetaAtRow(e);this.hot.spliceCellsMeta(t,0,n),this.hot.spliceCellsMeta(e+(e<t?0:1),1)}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}}]),o}();t.default=c},function(e,t,n){"use strict";var o=n(0);n(12),n(40),n(30),t.__esModule=!0,t.default=void 0;var s=o(n(37)),r=o(n(1)),i=o(n(2)),a=o(n(7)),l=o(n(5)),u=o(n(8)),c=n(33),h=n(3),d=n(17),f=n(6),v=o(n(179)),g=o(n(266)),p=function(e){function n(e,t){var i;return(0,r.default)(this,n),(i=(0,a.default)(this,(0,l.default)(n).call(this,e,t))).trimRowsPlugin=e.trimRowsPlugin,i.dataManager=i.plugin.dataManager,i.collapsedRows=[],i.collapsedRowsStash={stash:function(){i.lastCollapsedRows=i.collapsedRows.slice(0),i.expandMultipleChildren(i.lastCollapsedRows,!1)},shiftStash:function(e,t){var n=1<arguments.length&&void 0!==t?t:1,o=i.translateTrimmedRow(e);(0,h.arrayEach)(i.lastCollapsedRows,function(e,t){o-1<e&&(i.lastCollapsedRows[t]=e+n)})},applyStash:function(){i.hot.runHooks("skipLengthCache",100),i.collapseMultipleChildren(i.lastCollapsedRows,!0),i.lastCollapsedRows=void 0},trimStash:function(e,t){(0,d.rangeEach)(e,e+t-1,function(e){var t=i.lastCollapsedRows.indexOf(e);-1<t&&i.lastCollapsedRows.splice(t,1)})}},i}return(0,u.default)(n,e),(0,i.default)(n,[{key:"collapseChildren",value:function(e,t,n){var o,i=this,r=!(1<arguments.length&&void 0!==t)||t,a=!(2<arguments.length&&void 0!==n)||n,s=[],l=null,u=null;return u=isNaN(e)?(l=e,this.dataManager.getRowIndex(l)):(l=this.dataManager.getDataObject(e),e),this.dataManager.hasChildren(l)&&(0,h.arrayEach)(l.__children,function(e){s.push(i.dataManager.getRowIndex(e))}),o=this.collapseRows(s,!0,!1),a&&this.trimRowsPlugin.trimRows(o),r&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(u)&&this.collapsedRows.push(u),o}},{key:"collapseMultipleChildren",value:function(e,t,n){var o=this,i=!(1<arguments.length&&void 0!==t)||t,r=!(2<arguments.length&&void 0!==n)||n,a=[];(0,h.arrayEach)(e,function(e){a.push.apply(a,(0,s.default)(o.collapseChildren(e,!1,!1)))}),r&&this.trimRowsPlugin.trimRows(a),i&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t;this.collapseRows([e],n)}},{key:"collapseRows",value:function(e,t,n){var o=this,i=!(1<arguments.length&&void 0!==t)||t,r=2<arguments.length&&void 0!==n&&n,a=[];return(0,h.arrayEach)(e,function(e){a.push(e),i&&o.collapseChildRows(e,a)}),r&&this.trimRowsPlugin.trimRows(a),a}},{key:"collapseChildRows",value:function(e,t,n,o){var i=this,r=1<arguments.length&&void 0!==t?t:[],a=3<arguments.length&&void 0!==o&&o;if(this.dataManager.hasChildren(e)){var s=this.dataManager.getDataObject(e);(0,h.arrayEach)(s.__children,function(e){var t=i.dataManager.getRowIndex(e);r.push(t),i.collapseChildRows(t,r)})}a&&this.trimRowsPlugin.trimRows(r)}},{key:"expandRow",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t;this.expandRows([e],n)}},{key:"expandRows",value:function(e,t,n){var o=this,i=!(1<arguments.length&&void 0!==t)||t,r=2<arguments.length&&void 0!==n&&n,a=[];return(0,h.arrayEach)(e,function(e){a.push(e),i&&o.expandChildRows(e,a)}),r&&this.trimRowsPlugin.untrimRows(a),a}},{key:"expandChildRows",value:function(e,t,n,o){var i=this,r=1<arguments.length&&void 0!==t?t:[],a=3<arguments.length&&void 0!==o&&o;if(this.dataManager.hasChildren(e)){var s=this.dataManager.getDataObject(e);(0,h.arrayEach)(s.__children,function(e){if(!i.isAnyParentCollapsed(e)){var t=i.dataManager.getRowIndex(e);r.push(t),i.expandChildRows(t,r)}})}a&&this.trimRowsPlugin.untrimRows(r)}},{key:"expandChildren",value:function(e,t,n){var o,i=this,r=!(1<arguments.length&&void 0!==t)||t,a=!(2<arguments.length&&void 0!==n)||n,s=[],l=null,u=null;return u=isNaN(e)?(l=e,this.dataManager.getRowIndex(e)):(l=this.dataManager.getDataObject(e),e),this.collapsedRows.splice(this.collapsedRows.indexOf(u),1),this.dataManager.hasChildren(l)&&(0,h.arrayEach)(l.__children,function(e){var t=i.dataManager.getRowIndex(e);s.push(t)}),o=this.expandRows(s,!0,!1),a&&this.trimRowsPlugin.untrimRows(o),r&&this.renderAndAdjust(),o}},{key:"expandMultipleChildren",value:function(e,t,n){var o=this,i=!(1<arguments.length&&void 0!==t)||t,r=!(2<arguments.length&&void 0!==n)||n,a=[];(0,h.arrayEach)(e,function(e){a.push.apply(a,(0,s.default)(o.expandChildren(e,!1,!1)))}),r&&this.trimRowsPlugin.untrimRows(a),i&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var t=this,e=this.hot.getSourceData(),n=[];(0,h.arrayEach)(e,function(e){t.dataManager.hasChildren(e)&&n.push(e)}),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var t=this,e=this.hot.getSourceData(),n=[];(0,h.arrayEach)(e,function(e){t.dataManager.hasChildren(e)&&n.push(e)}),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"areChildrenCollapsed",value:function(e){var n=this,t=null,o=!0;return t=isNaN(e)?e:this.dataManager.getDataObject(e),this.dataManager.hasChildren(t)&&(0,h.arrayEach)(t.__children,function(e){var t=n.dataManager.getRowIndex(e);if(!n.trimRowsPlugin.isTrimmed(t))return o=!1}),o}},{key:"isAnyParentCollapsed",value:function(e){for(var t=e;null!==t;){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(-1<this.collapsedRows.indexOf(n))return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(0<=t.col)){var n=this.translateTrimmedRow(t.row);(0,f.hasClass)(e.target,g.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),(0,c.stopImmediatePropagation)(e))}}},{key:"translateTrimmedRow",value:function(e){return this.trimRowsPlugin.rowsMapper.getValueByIndex(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize()}}]),n}(v.default);t.default=p},function(e,t,n){"use strict";var o=n(9),i=n(0);n(15),n(30),n(10),n(13),n(23),n(16),t.__esModule=!0,t.default=void 0;var r=i(n(1)),a=i(n(2)),s=i(n(7)),l=i(n(5)),u=i(n(26)),c=i(n(8)),h=n(17),d=n(3),f=o(n(11)),v=i(n(179)),g=new WeakMap,p=function(e){function o(e,t){var n;return(0,r.default)(this,o),n=(0,s.default)(this,(0,l.default)(o).call(this,e,t)),g.set((0,u.default)(n),{row_above:function(e,t){n.dataManager.addSibling(t.start.row,"above")},row_below:function(e,t){n.dataManager.addSibling(t.start.row,"below")}}),n.dataManager=n.plugin.dataManager,n}return(0,c.default)(o,e),(0,a.default)(o,[{key:"appendOptions",value:function(o){var n=this,e=[{key:"add_child",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:function(){var e=n.dataManager.translateTrimmedRow(n.hot.getSelectedLast()[0]),t=n.dataManager.getDataObject(e);n.dataManager.addChild(t)},disabled:function(){var e=n.hot.getSelectedLast();return!e||e[0]<0||n.hot.selection.isSelectedByColumnHeader()||n.hot.countRows()>=n.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:function(){n.dataManager.detachFromParent(n.hot.getSelectedLast())},disabled:function(){var e=n.hot.getSelectedLast(),t=n.dataManager.translateTrimmedRow(e[0]);return!n.dataManager.getRowParent(t)||!e||e[0]<0||n.hot.selection.isSelectedByColumnHeader()||n.hot.countRows()>=n.hot.getSettings().maxRows}},{name:"---------"}];return(0,h.rangeEach)(0,o.items.length-1,function(n){if(0===n)return(0,d.arrayEach)(e,function(e,t){o.items.splice(n+t,0,e)}),!1}),this.modifyRowInsertingOptions(o)}},{key:"modifyRowInsertingOptions",value:function(n){var o=g.get(this);return(0,h.rangeEach)(0,n.items.length-1,function(e){var t=o[n.items[e].key];null!=t&&(n.items[e].callback=t)}),n}}]),o}(v.default);t.default=p},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(57),n(31),n(12),n(15),n(53),n(30),n(79),n(80),n(10),n(81),n(38),n(13),n(48),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(44)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),d=n(6),f=n(17),v=n(3),g=n(20),p=n(82),m=o(n(43)),y=o(n(533)),w=o(n(534));n(535),m.default.getSingleton().register("beforeHideColumns"),m.default.getSingleton().register("afterHideColumns"),m.default.getSingleton().register("beforeUnhideColumns"),m.default.getSingleton().register("afterUnhideColumns");var C=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,l.default)(n).call(this,e))).settings={},t.hiddenColumns=[],t.lastSelectedColumn=-1,t}return(0,c.default)(n,e),(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var o=this;this.enabled||(this.hot.hasColHeaders()?this.addHook("afterGetColHeader",function(e,t){return o.onAfterGetColHeader(e,t)}):this.addHook("afterRenderer",function(e,t,n){return o.onAfterGetColHeader(n,e)}),this.addHook("afterContextMenuDefaultOptions",function(e){return o.onAfterContextMenuDefaultOptions(e)}),this.addHook("afterGetCellMeta",function(e,t,n){return o.onAfterGetCellMeta(e,t,n)}),this.addHook("modifyColWidth",function(e,t){return o.onModifyColWidth(e,t)}),this.addHook("beforeSetRangeStartOnly",function(e){return o.onBeforeSetRangeStart(e)}),this.addHook("beforeSetRangeEnd",function(e){return o.onBeforeSetRangeEnd(e)}),this.addHook("hiddenColumn",function(e){return o.isHidden(e)}),this.addHook("beforeStretchingColumnWidth",function(e,t){return o.onBeforeStretchingColumnWidth(e,t)}),this.addHook("afterCreateCol",function(e,t){return o.onAfterCreateCol(e,t)}),this.addHook("afterRemoveCol",function(e,t){return o.onAfterRemoveCol(e,t)}),this.addHook("init",function(){return o.onInit()}),this.hot.view&&this.onInit(),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.settings={},this.hiddenColumns=[],this.lastSelectedColumn=-1,this.hot.render(),(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showColumns",value:function(t){var e=this.hiddenColumns,n=this.isColumnDataValid(t),o=e;n&&(o=this.hiddenColumns.filter(function(e){return!1===t.includes(e)})),!1!==this.hot.runHooks("beforeUnhideColumns",e,o,n)&&(n&&(this.hiddenColumns=o),this.hot.runHooks("afterUnhideColumns",e,o,n,n&&o.length<e.length))}},{key:"showColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}},{key:"hideColumns",value:function(e){var t=this.hiddenColumns,n=this.isColumnDataValid(e),o=t;n&&(o=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",t,o,n)&&(n&&(this.hiddenColumns=o),this.hot.runHooks("afterHideColumns",t,o,n,n&&o.length>t.length))}},{key:"hideColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideColumns(t)}},{key:"isHidden",value:function(e,t){var n=e;return 1<arguments.length&&void 0!==t&&t||(n=this.hot.toPhysicalColumn(e)),this.hiddenColumns.includes(n)}},{key:"isColumnDataValid",value:function(e){var t=this;return e.every(function(e){return Number.isInteger(e)&&0<=e&&e<t.hot.countCols()})}},{key:"resetCellsMeta",value:function(){(0,v.arrayEach)(this.hot.getCellsMeta(),function(e){e&&(e.skipColumnOnPaste=!1,null!==e.baseRenderer&&(e.renderer=e.baseRenderer,e.baseRenderer=null))})}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=e;return this.isHidden(t)&&(n=0),n}},{key:"onModifyColWidth",value:function(e,t){return this.isHidden(t)?.1:this.settings.indicators&&(this.isHidden(t+1)||this.isHidden(t-1))?e+(this.hot.hasColHeaders()?15:0):void 0}},{key:"onAfterGetCellMeta",value:function(e,t,n){var o=this.hot.runHooks("unmodifyCol",t);if(!1===this.settings.copyPasteEnabled&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(o)?(n.renderer!==E&&(n.baseRenderer=n.renderer),n.renderer=E):null!==n.baseRenderer&&(n.renderer=n.baseRenderer,n.baseRenderer=null),this.isHidden(n.visualCol-1)){var i=!0,r=n.visualCol-1;n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");do{if(!this.isHidden(r)){i=!1;break}r-=1}while(0<=r);i&&-1===n.className.indexOf("firstVisibleColumn")&&(n.className+=" firstVisibleColumn")}else if(n.className){var a=n.className.split(" ");if(a.length){var s=a.indexOf("afterHiddenColumn");-1<s&&a.splice(s,1);var l=a.indexOf("firstVisibleColumn");-1<l&&a.splice(l,1),n.className=a.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){function i(e,t,n,o){a.push({startRow:e,endRow:t,startCol:n,endCol:o})}var r=this,a=[];return(0,v.arrayEach)(e,function(t){var n=!0,o=0;(0,f.rangeEach)(t.startCol,t.endCol,function(e){n=r.isHidden(e)?(n||i(t.startRow,t.endRow,o,e-1),!0):(n&&(o=e),e===t.endCol&&i(t.startRow,t.endRow,o,e),!1)})}),a}},{key:"onAfterGetColHeader",value:function(e,t){if(!this.isHidden(e)){var n=!0,o=e-1;do{if(!this.isHidden(o)){n=!1;break}o-=1}while(0<=o);n&&(0,d.addClass)(t,"firstVisibleColumn"),this.settings.indicators&&(this.isHidden(e-1)&&(0,d.addClass)(t,"afterHiddenColumn"),this.isHidden(e+1)&&-1<e&&(0,d.addClass)(t,"beforeHiddenColumn"))}}},{key:"onBeforeSetRangeStart",value:function(e){var i=this;if(!(0<e.col)){e.col=0;e.col=function e(t){var n=t,o=i.hot.toPhysicalColumn(n);return i.isHidden(o,!0)&&(n=e(n+=1)),n}(e.col)}}},{key:"onBeforeSetRangeEnd",value:function(i){var r=this,a=this.hot.countCols();i.col=function e(t){var n=t,o=r.hot.toPhysicalColumn(n);return r.isHidden(o,!0)&&(r.lastSelectedColumn>n||i.col===a-1?0<n?n=e(n-=1):(0,f.rangeEach)(0,r.lastSelectedColumn,function(e){if(!r.isHidden(e))return n=e,!1}):n=e(n+=1)),n}(i.col),this.lastSelectedColumn=i.col}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:p.SEPARATOR},(0,y.default)(this),(0,w.default)(this))}},{key:"onAfterCreateCol",value:function(n,o){var i=[];(0,v.arrayEach)(this.hiddenColumns,function(e){var t=e;n<=t&&(t+=o),i.push(t)}),this.hiddenColumns=i}},{key:"onAfterRemoveCol",value:function(n,o){var i=[];(0,v.arrayEach)(this.hiddenColumns,function(e){var t=e;n<=t&&(t-=o),i.push(t)}),this.hiddenColumns=i}},{key:"onInit",value:function(){var t=this,e=this.hot.getSettings().hiddenColumns;"object"===(0,i.default)(e)&&(void 0===(this.settings=e).copyPasteEnabled&&(e.copyPasteEnabled=!0),Array.isArray(e.columns)&&this.hideColumns(e.columns),e.copyPasteEnabled||this.addHook("modifyCopyableRange",function(e){return t.onModifyCopyableRange(e)}))}},{key:"destroy",value:function(){(0,u.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}]),n}(h.default);function E(e,t){t.textContent=""}(0,g.registerPlugin)("hiddenColumns",C);var S=C;t.default=S},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(r){return{key:"hidden_columns_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,a.default)(e,4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback:function(){var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.col,n.col),i=Math.max(t.col,n.col);(0,s.rangeEach)(o,i,function(e){return r.hideColumn(e)}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.isSelectedByColumnHeader()}}};var a=i(n(18)),s=n(17),l=o(n(11))},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(s){var l=[],u=[];return{key:"hidden_columns_show",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,c.default)(e,4),o=n[1],i=n[3];if(i<o){var r=[i,o];o=r[0],i=r[1]}var a=0;o===i?a=l.length+u.length:(0,h.rangeEach)(o,i,function(e){s.isHidden(e)&&(a+=1)}),t=a<=1?0:1}return this.getTranslatedPhrase(d.CONTEXTMENU_ITEMS_SHOW_COLUMN,t)},callback:function(){var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.col,n.col),i=Math.max(t.col,n.col);o===i?(l.length===o&&(s.showColumns(l),l.length=0),u.length===this.countSourceCols()-(o+1)&&(s.showColumns(u),u.length=0)):(0,h.rangeEach)(o,i,function(e){return s.showColumn(e)}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){if(!s.hiddenColumns.length||!this.selection.isSelectedByColumnHeader())return!0;l.length=0,u.length=0;var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.col,n.col),i=Math.max(t.col,n.col),r=!1;if(o===i){var a=this.countSourceCols();(0,h.rangeEach)(0,a,function(e){if(l.length+u.length===s.hiddenColumns.length)return!1;e<o&&s.isHidden(e)?l.push(e):s.isHidden(e)&&u.push(e)}),a-=1,(l.length===o&&0<o||u.length===a-o&&o<a)&&(r=!0)}else(0,h.rangeEach)(o,i,function(e){if(s.isHidden(e))return!(r=!0)});return!r}}};var c=i(n(18)),h=n(17),d=o(n(11))},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(57),n(31),n(12),n(15),n(53),n(30),n(79),n(80),n(10),n(81),n(38),n(13),n(48),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(44)),r=o(n(1)),a=o(n(2)),s=o(n(7)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),d=n(6),f=n(17),v=n(3),g=n(20),p=o(n(43)),m=o(n(537)),y=o(n(538));n(539),p.default.getSingleton().register("beforeHideRows"),p.default.getSingleton().register("afterHideRows"),p.default.getSingleton().register("beforeUnhideRows"),p.default.getSingleton().register("afterUnhideRows");var w=function(e){function n(e){var t;return(0,r.default)(this,n),(t=(0,s.default)(this,(0,l.default)(n).call(this,e))).settings={},t.hiddenRows=[],t.lastSelectedRow=-1,t}return(0,c.default)(n,e),(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var o=this;this.enabled||(this.hot.hasRowHeaders()?this.addHook("afterGetRowHeader",function(e,t){return o.onAfterGetRowHeader(e,t)}):this.addHook("afterRenderer",function(e,t){return o.onAfterGetRowHeader(t,e)}),this.addHook("afterContextMenuDefaultOptions",function(e){return o.onAfterContextMenuDefaultOptions(e)}),this.addHook("afterGetCellMeta",function(e,t,n){return o.onAfterGetCellMeta(e,t,n)}),this.addHook("modifyRowHeight",function(e,t){return o.onModifyRowHeight(e,t)}),this.addHook("beforeSetRangeStartOnly",function(e){return o.onBeforeSetRangeStartOnly(e)}),this.addHook("beforeSetRangeStart",function(e){return o.onBeforeSetRangeStart(e)}),this.addHook("beforeSetRangeEnd",function(e){return o.onBeforeSetRangeEnd(e)}),this.addHook("hiddenRow",function(e){return o.isHidden(e)}),this.addHook("afterCreateRow",function(e,t){return o.onAfterCreateRow(e,t)}),this.addHook("afterRemoveRow",function(e,t){return o.onAfterRemoveRow(e,t)}),this.addHook("init",function(){return o.onInit()}),this.hot.view&&this.onInit(),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onInit(),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.settings={},this.hiddenRows=[],this.lastSelectedRow=-1,(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showRows",value:function(e){var t=this,n=this.hiddenRows,o=this.isRowDataValid(e),i=(0,v.arrayMap)(e,function(e){return t.hot.toPhysicalRow(e)}),r=n;o&&(r=this.hiddenRows.filter(function(e){return!1===i.includes(e)})),!1!==this.hot.runHooks("beforeUnhideRows",n,r,o)&&(o&&(this.hiddenRows=r),this.hot.runHooks("afterUnhideRows",n,r,o,o&&r.length<n.length))}},{key:"showRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}},{key:"hideRows",value:function(e){var t=this,n=this.hiddenRows,o=this.isRowDataValid(e),i=(0,v.arrayMap)(e,function(e){return t.hot.toPhysicalRow(e)}),r=n;o&&(r=Array.from(new Set(n.concat(i)))),!1!==this.hot.runHooks("beforeHideRows",n,r,o)&&(o&&(this.hiddenRows=r),this.hot.runHooks("afterHideRows",n,r,o,o&&r.length>n.length))}},{key:"hideRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideRows(t)}},{key:"isHidden",value:function(e,t){var n=e;return 1<arguments.length&&void 0!==t&&t||(n=this.hot.toPhysicalRow(e)),this.hiddenRows.includes(n)}},{key:"isRowDataValid",value:function(e){var t=this;return e.every(function(e){return Number.isInteger(e)&&0<=e&&e<t.hot.countRows()})}},{key:"resetCellsMeta",value:function(){(0,v.arrayEach)(this.hot.getCellsMeta(),function(e){e&&(e.skipRowOnPaste=!1)})}},{key:"onAfterGetCellMeta",value:function(e,t,n){var o=this.hot.runHooks("unmodifyRow",e);if(!1===this.settings.copyPasteEnabled&&this.isHidden(o)?n.skipRowOnPaste=!0:n.skipRowOnPaste=!1,this.isHidden(o-1)){var i=!0,r=o-1;n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");do{if(!this.isHidden(r)){i=!1;break}r-=1}while(0<=r);i&&-1===n.className.indexOf("firstVisibleRow")&&(n.className+=" firstVisibleRow")}else if(n.className){var a=n.className.split(" ");if(a.length){var s=a.indexOf("afterHiddenRow");-1<s&&a.splice(s,1);var l=a.indexOf("firstVisibleRow");-1<l&&a.splice(l,1),n.className=a.join(" ")}}}},{key:"onAfterGetRowHeader",value:function(e,t){var n=t.parentNode;n&&(this.isHidden(e)?(0,d.addClass)(n,"hide"):(0,d.removeClass)(n,"hide"));var o=!0,i=e-1;do{if(!this.isHidden(i)){o=!1;break}i-=1}while(0<=i);o&&(0,d.addClass)(t,"firstVisibleRow"),this.settings.indicators&&this.hot.hasRowHeaders()&&(this.isHidden(e-1)&&(0,d.addClass)(t,"afterHiddenRow"),this.isHidden(e+1)&&(0,d.addClass)(t,"beforeHiddenRow"))}},{key:"onModifyRowHeight",value:function(e,t){return this.isHidden(t)?.1:e}},{key:"onModifyCopyableRange",value:function(e){function i(e,t,n,o){a.push({startRow:e,endRow:t,startCol:n,endCol:o})}var r=this,a=[];return(0,v.arrayEach)(e,function(t){var n=!0,o=0;(0,f.rangeEach)(t.startRow,t.endRow,function(e){n=r.isHidden(e)?(n||i(o,e-1,t.startCol,t.endCol),!0):(n&&(o=e),e===t.endRow&&i(o,e,t.startCol,t.endCol),!1)})}),a}},{key:"onBeforeSetRangeStart",value:function(e){var i=this,r=this.hot.getSelectedLast()||!1,a=this.hot.countRows()-1;e.row=function e(t){var n=0,o=t;return r&&(n=o>r[0]?1:-1,i.lastSelectedRow=r[0]),a<o||o<0?i.lastSelectedRow:(i.isHidden(o)&&(o=e(o+n)),o)}(e.row)}},{key:"onBeforeSetRangeStartOnly",value:function(e){var o=this;if(!(0<e.row)){e.row=0;e.row=function e(t){var n=t;return o.isHidden(n)&&(n=e(n+=1)),n}(e.row)}}},{key:"onBeforeSetRangeEnd",value:function(o){var i=this,r=this.hot.countRows();o.row=function e(t){var n=t;return i.isHidden(n)&&(i.lastSelectedRow>n||o.row===r-1?0<n?n=e(n-=1):(0,f.rangeEach)(0,i.lastSelectedRow,function(e){if(!i.isHidden(e))return n=e,!1}):n=e(n+=1)),n}(o.row),this.lastSelectedRow=o.row}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,m.default)(this),(0,y.default)(this))}},{key:"onAfterCreateRow",value:function(n,o){var i=[];(0,v.arrayEach)(this.hiddenRows,function(e){var t=e;n<=t&&(t+=o),i.push(t)}),this.hiddenRows=i}},{key:"onAfterRemoveRow",value:function(n,o){var i=[];(0,v.arrayEach)(this.hiddenRows,function(e){var t=e;n<=t&&(t-=o),i.push(t)}),this.hiddenRows=i}},{key:"onInit",value:function(){var t=this,e=this.hot.getSettings().hiddenRows;"object"===(0,i.default)(e)&&(void 0===(this.settings=e).copyPasteEnabled&&(e.copyPasteEnabled=!0),Array.isArray(e.rows)&&this.hideRows(e.rows),e.copyPasteEnabled||this.addHook("modifyCopyableRange",function(e){return t.onModifyCopyableRange(e)}))}},{key:"destroy",value:function(){(0,u.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}]),n}(h.default);(0,g.registerPlugin)("hiddenRows",w);var C=w;t.default=C},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(r){return{key:"hidden_rows_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,a.default)(e,3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback:function(){var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.row,n.row),i=Math.max(t.row,n.row);(0,s.rangeEach)(o,i,function(e){return r.hideRow(e)}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.isSelectedByRowHeader()}}};var a=i(n(18)),s=n(17),l=o(n(11))},function(e,t,n){"use strict";var o=n(9),i=n(0);t.__esModule=!0,t.default=function(s){var l=[],u=[];return{key:"hidden_rows_show",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,c.default)(e,3),o=n[0],i=n[2];if(i<o){var r=[i,o];o=r[0],i=r[1]}var a=0;o===i?a=l.length+u.length:(0,h.rangeEach)(o,i,function(e){s.isHidden(e)&&(a+=1)}),t=a<=1?0:1}return this.getTranslatedPhrase(d.CONTEXTMENU_ITEMS_SHOW_ROW,t)},callback:function(){var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.row,n.row),i=Math.max(t.row,n.row);o===i?(l.length===o&&(s.showRows(l),l.length=0),u.length===this.countSourceRows()-(o+1)&&(s.showRows(u),u.length=0)):(0,h.rangeEach)(o,i,function(e){return s.showRow(e)}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){if(!s.hiddenRows.length||!this.selection.isSelectedByRowHeader())return!0;l.length=0,u.length=0;var e=this.getSelectedRangeLast(),t=e.from,n=e.to,o=Math.min(t.row,n.row),i=Math.max(t.row,n.row),r=!1;if(o===i){var a=this.countSourceRows();(0,h.rangeEach)(0,a,function(e){if(l.length+u.length===s.hiddenRows.length)return!1;e<o?s.isHidden(e)&&l.push(e):s.isHidden(e)&&u.push(e)}),a-=1,(l.length===o&&0<o||u.length===a-o&&o<a)&&(r=!0)}else(0,h.rangeEach)(o,i,function(e){if(s.isHidden(e))return!(r=!0)});return!r}}};var c=i(n(18)),h=n(17),d=o(n(11))},function(e,t,n){},function(e,t,n){"use strict";var o=n(0);n(19),n(47),n(57),n(31),n(15),n(79),n(80),n(10),n(81),n(38),n(13),n(16),t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(7)),s=o(n(26)),l=o(n(5)),u=o(n(14)),c=o(n(8)),h=o(n(22)),d=n(17),f=n(20),v=o(n(541)),g=n(3),p=function(e){function n(e){var t;return(0,i.default)(this,n),(t=(0,a.default)(this,(0,l.default)(n).call(this,e))).trimmedRows=[],t.removedRows=[],t.rowsMapper=new v.default((0,s.default)(t)),t}return(0,c.default)(n,e),(0,r.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}},{key:"enablePlugin",value:function(){var o=this;if(!this.enabled){var e=this.hot.getSettings().trimRows;Array.isArray(e)&&(this.trimmedRows=e),this.rowsMapper.createMap(this.hot.countSourceRows()),this.addHook("modifyRow",function(e,t){return o.onModifyRow(e,t)}),this.addHook("unmodifyRow",function(e,t){return o.onUnmodifyRow(e,t)}),this.addHook("beforeCreateRow",function(e,t,n){return o.onBeforeCreateRow(e,t,n)}),this.addHook("afterCreateRow",function(e,t){return o.onAfterCreateRow(e,t)}),this.addHook("beforeRemoveRow",function(e,t){return o.onBeforeRemoveRow(e,t)}),this.addHook("afterRemoveRow",function(){return o.onAfterRemoveRow()}),this.addHook("afterLoadData",function(e){return o.onAfterLoadData(e)}),(0,u.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().trimRows;Array.isArray(e)&&(this.disablePlugin(),this.enablePlugin()),(0,u.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.trimmedRows=[],this.removedRows.length=0,this.rowsMapper.clearMap(),(0,u.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"trimRows",value:function(e){var t=this.trimmedRows,n=this.isValidConfig(e),o=t;n&&(o=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",t,o,n)&&(n&&(this.trimmedRows=o,this.hot.runHooks("skipLengthCache",100),this.rowsMapper.createMap(this.hot.countSourceRows())),this.hot.runHooks("afterTrimRow",t,o,n,n&&o.length>t.length))}},{key:"trimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trimRows(t)}},{key:"untrimRows",value:function(t){var e=this.trimmedRows,n=this.isValidConfig(t),o=e;n&&(o=this.trimmedRows.filter(function(e){return!1===t.includes(e)})),!1!==this.hot.runHooks("beforeUntrimRow",e,o,n)&&(n&&(this.trimmedRows=o,this.hot.runHooks("skipLengthCache",100),this.rowsMapper.createMap(this.hot.countSourceRows())),this.hot.runHooks("afterUntrimRow",e,o,n,n&&o.length<e.length))}},{key:"untrimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.untrimRows(t)}},{key:"isTrimmed",value:function(e){return this.trimmedRows.includes(e)}},{key:"untrimAll",value:function(){this.untrimRows([].concat(this.trimmedRows))}},{key:"isValidConfig",value:function(e){var t=this;return e.every(function(e){return Number.isInteger(e)&&0<=e&&e<t.hot.countSourceRows()})}},{key:"onModifyRow",value:function(e,t){var n=e;return t!==this.pluginName&&(n=this.rowsMapper.getValueByIndex(n)),n}},{key:"onUnmodifyRow",value:function(e,t){var n=e;return t!==this.pluginName&&(n=this.rowsMapper.getIndexByValue(n)),n}},{key:"onBeforeCreateRow",value:function(e,t,n){if(this.isEnabled()&&0<this.trimmedRows.length&&"auto"===n)return!1}},{key:"onAfterCreateRow",value:function(t,n){var o=this;this.rowsMapper.shiftItems(t,n),this.trimmedRows=(0,g.arrayMap)(this.trimmedRows,function(e){return e>=o.rowsMapper.getValueByIndex(t)?e+n:e})}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,d.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(){var e=this;this.rowsMapper.unshiftItems(this.removedRows),this.trimmedRows=(0,g.arrayMap)(this.trimmedRows,function(t){return t-e.removedRows.filter(function(e){return e<t}).length})}},{key:"onAfterLoadData",value:function(e){e||this.rowsMapper.createMap(this.hot.countSourceRows())}},{key:"destroy",value:function(){this.rowsMapper.destroy(),(0,u.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}]),n}(h.default);(0,f.registerPlugin)("trimRows",p);var m=p;t.default=m},function(e,t,n){"use strict";var o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(1)),r=o(n(2)),a=o(n(93)),s=n(4),l=n(17),u=function(){function t(e){(0,i.default)(this,t),this.trimRows=e}return(0,r.default)(t,[{key:"createMap",value:function(e){var t=this,n=0,o=void 0===e?this._arrayMap.length:e;(this._arrayMap.length=0,l.rangeEach)(o-1,function(e){t.trimRows.isTrimmed(e)?n+=1:t._arrayMap[e-n]=e})}},{key:"destroy",value:function(){this._arrayMap=null}}]),t}();(0,s.mixin)(u,a.default);var c=u;t.default=c}],a.c=l,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(n,o,function(e){return t[e]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=267)).default;function a(e){if(l[e])return l[e].exports;var t=l[e]={i:e,l:!1,exports:{}};return s[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var s,l});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
! function(e, t) {
|
2 |
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.moment = t()
|
3 |
+
}(this, function() {
|
4 |
+
"use strict";
|
5 |
+
var e, i;
|
6 |
+
|
7 |
+
function d() {
|
8 |
+
return e.apply(null, arguments)
|
9 |
+
}
|
10 |
+
|
11 |
+
function a(e) {
|
12 |
+
return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e)
|
13 |
+
}
|
14 |
+
|
15 |
+
function s(e) {
|
16 |
+
return null != e && "[object Object]" === Object.prototype.toString.call(e)
|
17 |
+
}
|
18 |
+
|
19 |
+
function r(e) {
|
20 |
+
return void 0 === e
|
21 |
+
}
|
22 |
+
|
23 |
+
function l(e) {
|
24 |
+
return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e)
|
25 |
+
}
|
26 |
+
|
27 |
+
function u(e) {
|
28 |
+
return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e)
|
29 |
+
}
|
30 |
+
|
31 |
+
function o(e, t) {
|
32 |
+
var n, o = [];
|
33 |
+
for (n = 0; n < e.length; ++n) o.push(t(e[n], n));
|
34 |
+
return o
|
35 |
+
}
|
36 |
+
|
37 |
+
function f(e, t) {
|
38 |
+
return Object.prototype.hasOwnProperty.call(e, t)
|
39 |
+
}
|
40 |
+
|
41 |
+
function c(e, t) {
|
42 |
+
for (var n in t) f(t, n) && (e[n] = t[n]);
|
43 |
+
return f(t, "toString") && (e.toString = t.toString), f(t, "valueOf") && (e.valueOf = t.valueOf), e
|
44 |
+
}
|
45 |
+
|
46 |
+
function h(e, t, n, o) {
|
47 |
+
return _t(e, t, n, o, !0).utc()
|
48 |
+
}
|
49 |
+
|
50 |
+
function v(e) {
|
51 |
+
return null == e._pf && (e._pf = {
|
52 |
+
empty: !1,
|
53 |
+
unusedTokens: [],
|
54 |
+
unusedInput: [],
|
55 |
+
overflow: -2,
|
56 |
+
charsLeftOver: 0,
|
57 |
+
nullInput: !1,
|
58 |
+
invalidMonth: null,
|
59 |
+
invalidFormat: !1,
|
60 |
+
userInvalidated: !1,
|
61 |
+
iso: !1,
|
62 |
+
parsedDateParts: [],
|
63 |
+
meridiem: null,
|
64 |
+
rfc2822: !1,
|
65 |
+
weekdayMismatch: !1
|
66 |
+
}), e._pf
|
67 |
+
}
|
68 |
+
|
69 |
+
function g(e) {
|
70 |
+
if (null == e._isValid) {
|
71 |
+
var t = v(e),
|
72 |
+
n = i.call(t.parsedDateParts, function(e) {
|
73 |
+
return null != e
|
74 |
+
}),
|
75 |
+
o = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n);
|
76 |
+
if (e._strict && (o = o && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour), null != Object.isFrozen && Object.isFrozen(e)) return o;
|
77 |
+
e._isValid = o
|
78 |
+
}
|
79 |
+
return e._isValid
|
80 |
+
}
|
81 |
+
|
82 |
+
function p(e) {
|
83 |
+
var t = h(NaN);
|
84 |
+
return null != e ? c(v(t), e) : v(t).userInvalidated = !0, t
|
85 |
+
}
|
86 |
+
i = Array.prototype.some ? Array.prototype.some : function(e) {
|
87 |
+
for (var t = Object(this), n = t.length >>> 0, o = 0; o < n; o++)
|
88 |
+
if (o in t && e.call(this, t[o], o, t)) return !0;
|
89 |
+
return !1
|
90 |
+
};
|
91 |
+
var m = d.momentProperties = [];
|
92 |
+
|
93 |
+
function y(e, t) {
|
94 |
+
var n, o, i;
|
95 |
+
if (r(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), r(t._i) || (e._i = t._i), r(t._f) || (e._f = t._f), r(t._l) || (e._l = t._l), r(t._strict) || (e._strict = t._strict), r(t._tzm) || (e._tzm = t._tzm), r(t._isUTC) || (e._isUTC = t._isUTC), r(t._offset) || (e._offset = t._offset), r(t._pf) || (e._pf = v(t)), r(t._locale) || (e._locale = t._locale), 0 < m.length)
|
96 |
+
for (n = 0; n < m.length; n++) r(i = t[o = m[n]]) || (e[o] = i);
|
97 |
+
return e
|
98 |
+
}
|
99 |
+
var t = !1;
|
100 |
+
|
101 |
+
function w(e) {
|
102 |
+
y(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 === t && (t = !0, d.updateOffset(this), t = !1)
|
103 |
+
}
|
104 |
+
|
105 |
+
function C(e) {
|
106 |
+
return e instanceof w || null != e && null != e._isAMomentObject
|
107 |
+
}
|
108 |
+
|
109 |
+
function E(e) {
|
110 |
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)
|
111 |
+
}
|
112 |
+
|
113 |
+
function S(e) {
|
114 |
+
var t = +e,
|
115 |
+
n = 0;
|
116 |
+
return 0 != t && isFinite(t) && (n = E(t)), n
|
117 |
+
}
|
118 |
+
|
119 |
+
function k(e, t, n) {
|
120 |
+
var o, i = Math.min(e.length, t.length),
|
121 |
+
r = Math.abs(e.length - t.length),
|
122 |
+
a = 0;
|
123 |
+
for (o = 0; o < i; o++)(n && e[o] !== t[o] || !n && S(e[o]) !== S(t[o])) && a++;
|
124 |
+
return a + r
|
125 |
+
}
|
126 |
+
|
127 |
+
function T(e) {
|
128 |
+
!1 === d.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e)
|
129 |
+
}
|
130 |
+
|
131 |
+
function n(i, r) {
|
132 |
+
var a = !0;
|
133 |
+
return c(function() {
|
134 |
+
if (null != d.deprecationHandler && d.deprecationHandler(null, i), a) {
|
135 |
+
for (var e, t = [], n = 0; n < arguments.length; n++) {
|
136 |
+
if (e = "", "object" == typeof arguments[n]) {
|
137 |
+
for (var o in e += "\n[" + n + "] ", arguments[0]) e += o + ": " + arguments[0][o] + ", ";
|
138 |
+
e = e.slice(0, -2)
|
139 |
+
} else e = arguments[n];
|
140 |
+
t.push(e)
|
141 |
+
}
|
142 |
+
T(i + "\nArguments: " + Array.prototype.slice.call(t).join("") + "\n" + (new Error).stack), a = !1
|
143 |
+
}
|
144 |
+
return r.apply(this, arguments)
|
145 |
+
}, r)
|
146 |
+
}
|
147 |
+
var R, _ = {};
|
148 |
+
|
149 |
+
function b(e, t) {
|
150 |
+
null != d.deprecationHandler && d.deprecationHandler(e, t), _[e] || (T(t), _[e] = !0)
|
151 |
+
}
|
152 |
+
|
153 |
+
function O(e) {
|
154 |
+
return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e)
|
155 |
+
}
|
156 |
+
|
157 |
+
function M(e, t) {
|
158 |
+
var n, o = c({}, e);
|
159 |
+
for (n in t) f(t, n) && (s(e[n]) && s(t[n]) ? (o[n] = {}, c(o[n], e[n]), c(o[n], t[n])) : null != t[n] ? o[n] = t[n] : delete o[n]);
|
160 |
+
for (n in e) f(e, n) && !f(t, n) && s(e[n]) && (o[n] = c({}, o[n]));
|
161 |
+
return o
|
162 |
+
}
|
163 |
+
|
164 |
+
function N(e) {
|
165 |
+
null != e && this.set(e)
|
166 |
+
}
|
167 |
+
d.suppressDeprecationWarnings = !1, d.deprecationHandler = null, R = Object.keys ? Object.keys : function(e) {
|
168 |
+
var t, n = [];
|
169 |
+
for (t in e) f(e, t) && n.push(t);
|
170 |
+
return n
|
171 |
+
};
|
172 |
+
var A = {};
|
173 |
+
|
174 |
+
function D(e, t) {
|
175 |
+
var n = e.toLowerCase();
|
176 |
+
A[n] = A[n + "s"] = A[t] = e
|
177 |
+
}
|
178 |
+
|
179 |
+
function I(e) {
|
180 |
+
return "string" == typeof e ? A[e] || A[e.toLowerCase()] : void 0
|
181 |
+
}
|
182 |
+
|
183 |
+
function H(e) {
|
184 |
+
var t, n, o = {};
|
185 |
+
for (n in e) f(e, n) && (t = I(n)) && (o[t] = e[n]);
|
186 |
+
return o
|
187 |
+
}
|
188 |
+
var L = {};
|
189 |
+
|
190 |
+
function P(e, t) {
|
191 |
+
L[e] = t
|
192 |
+
}
|
193 |
+
|
194 |
+
function x(e, t, n) {
|
195 |
+
var o = "" + Math.abs(e),
|
196 |
+
i = t - o.length;
|
197 |
+
return (0 <= e ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + o
|
198 |
+
}
|
199 |
+
var F = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
200 |
+
B = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
201 |
+
W = {},
|
202 |
+
V = {};
|
203 |
+
|
204 |
+
function U(e, t, n, o) {
|
205 |
+
var i = o;
|
206 |
+
"string" == typeof o && (i = function() {
|
207 |
+
return this[o]()
|
208 |
+
}), e && (V[e] = i), t && (V[t[0]] = function() {
|
209 |
+
return x(i.apply(this, arguments), t[1], t[2])
|
210 |
+
}), n && (V[n] = function() {
|
211 |
+
return this.localeData().ordinal(i.apply(this, arguments), e)
|
212 |
+
})
|
213 |
+
}
|
214 |
+
|
215 |
+
function Y(e, t) {
|
216 |
+
return e.isValid() ? (t = j(t, e.localeData()), W[t] = W[t] || function(o) {
|
217 |
+
var e, i, t, r = o.match(F);
|
218 |
+
for (e = 0, i = r.length; e < i; e++) V[r[e]] ? r[e] = V[r[e]] : r[e] = (t = r[e]).match(/\[[\s\S]/) ? t.replace(/^\[|\]$/g, "") : t.replace(/\\/g, "");
|
219 |
+
return function(e) {
|
220 |
+
var t, n = "";
|
221 |
+
for (t = 0; t < i; t++) n += O(r[t]) ? r[t].call(e, o) : r[t];
|
222 |
+
return n
|
223 |
+
}
|
224 |
+
}(t), W[t](e)) : e.localeData().invalidDate()
|
225 |
+
}
|
226 |
+
|
227 |
+
function j(e, t) {
|
228 |
+
var n = 5;
|
229 |
+
|
230 |
+
function o(e) {
|
231 |
+
return t.longDateFormat(e) || e
|
232 |
+
}
|
233 |
+
for (B.lastIndex = 0; 0 <= n && B.test(e);) e = e.replace(B, o), B.lastIndex = 0, n -= 1;
|
234 |
+
return e
|
235 |
+
}
|
236 |
+
var z = /\d/,
|
237 |
+
G = /\d\d/,
|
238 |
+
K = /\d{3}/,
|
239 |
+
X = /\d{4}/,
|
240 |
+
q = /[+-]?\d{6}/,
|
241 |
+
Z = /\d\d?/,
|
242 |
+
$ = /\d\d\d\d?/,
|
243 |
+
Q = /\d\d\d\d\d\d?/,
|
244 |
+
J = /\d{1,3}/,
|
245 |
+
ee = /\d{1,4}/,
|
246 |
+
te = /[+-]?\d{1,6}/,
|
247 |
+
ne = /\d+/,
|
248 |
+
oe = /[+-]?\d+/,
|
249 |
+
ie = /Z|[+-]\d\d:?\d\d/gi,
|
250 |
+
re = /Z|[+-]\d\d(?::?\d\d)?/gi,
|
251 |
+
ae = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
252 |
+
se = {};
|
253 |
+
|
254 |
+
function le(e, n, o) {
|
255 |
+
se[e] = O(n) ? n : function(e, t) {
|
256 |
+
return e && o ? o : n
|
257 |
+
}
|
258 |
+
}
|
259 |
+
|
260 |
+
function ue(e, t) {
|
261 |
+
return f(se, e) ? se[e](t._strict, t._locale) : new RegExp(function(e) {
|
262 |
+
return ce(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(e, t, n, o, i) {
|
263 |
+
return t || n || o || i
|
264 |
+
}))
|
265 |
+
}(e))
|
266 |
+
}
|
267 |
+
|
268 |
+
function ce(e) {
|
269 |
+
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
|
270 |
+
}
|
271 |
+
var he = {};
|
272 |
+
|
273 |
+
function de(e, n) {
|
274 |
+
var t, o = n;
|
275 |
+
for ("string" == typeof e && (e = [e]), l(n) && (o = function(e, t) {
|
276 |
+
t[n] = S(e)
|
277 |
+
}), t = 0; t < e.length; t++) he[e[t]] = o
|
278 |
+
}
|
279 |
+
|
280 |
+
function fe(e, i) {
|
281 |
+
de(e, function(e, t, n, o) {
|
282 |
+
n._w = n._w || {}, i(e, n._w, n, o)
|
283 |
+
})
|
284 |
+
}
|
285 |
+
var ve = 0,
|
286 |
+
ge = 1,
|
287 |
+
pe = 2,
|
288 |
+
me = 3,
|
289 |
+
ye = 4,
|
290 |
+
we = 5,
|
291 |
+
Ce = 6,
|
292 |
+
Ee = 7,
|
293 |
+
Se = 8;
|
294 |
+
|
295 |
+
function ke(e) {
|
296 |
+
return Te(e) ? 366 : 365
|
297 |
+
}
|
298 |
+
|
299 |
+
function Te(e) {
|
300 |
+
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0
|
301 |
+
}
|
302 |
+
U("Y", 0, 0, function() {
|
303 |
+
var e = this.year();
|
304 |
+
return e <= 9999 ? "" + e : "+" + e
|
305 |
+
}), U(0, ["YY", 2], 0, function() {
|
306 |
+
return this.year() % 100
|
307 |
+
}), U(0, ["YYYY", 4], 0, "year"), U(0, ["YYYYY", 5], 0, "year"), U(0, ["YYYYYY", 6, !0], 0, "year"), D("year", "y"), P("year", 1), le("Y", oe), le("YY", Z, G), le("YYYY", ee, X), le("YYYYY", te, q), le("YYYYYY", te, q), de(["YYYYY", "YYYYYY"], ve), de("YYYY", function(e, t) {
|
308 |
+
t[ve] = 2 === e.length ? d.parseTwoDigitYear(e) : S(e)
|
309 |
+
}), de("YY", function(e, t) {
|
310 |
+
t[ve] = d.parseTwoDigitYear(e)
|
311 |
+
}), de("Y", function(e, t) {
|
312 |
+
t[ve] = parseInt(e, 10)
|
313 |
+
}), d.parseTwoDigitYear = function(e) {
|
314 |
+
return S(e) + (68 < S(e) ? 1900 : 2e3)
|
315 |
+
};
|
316 |
+
var Re, _e = be("FullYear", !0);
|
317 |
+
|
318 |
+
function be(t, n) {
|
319 |
+
return function(e) {
|
320 |
+
return null != e ? (Me(this, t, e), d.updateOffset(this, n), this) : Oe(this, t)
|
321 |
+
}
|
322 |
+
}
|
323 |
+
|
324 |
+
function Oe(e, t) {
|
325 |
+
return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN
|
326 |
+
}
|
327 |
+
|
328 |
+
function Me(e, t, n) {
|
329 |
+
e.isValid() && !isNaN(n) && ("FullYear" === t && Te(e.year()) && 1 === e.month() && 29 === e.date() ? e._d["set" + (e._isUTC ? "UTC" : "") + t](n, e.month(), Ne(n, e.month())) : e._d["set" + (e._isUTC ? "UTC" : "") + t](n))
|
330 |
+
}
|
331 |
+
|
332 |
+
function Ne(e, t) {
|
333 |
+
if (isNaN(e) || isNaN(t)) return NaN;
|
334 |
+
var n = function(e, t) {
|
335 |
+
return (e % t + t) % t
|
336 |
+
}(t, 12);
|
337 |
+
return e += (t - n) / 12, 1 === n ? Te(e) ? 29 : 28 : 31 - n % 7 % 2
|
338 |
+
}
|
339 |
+
Re = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) {
|
340 |
+
var t;
|
341 |
+
for (t = 0; t < this.length; ++t)
|
342 |
+
if (this[t] === e) return t;
|
343 |
+
return -1
|
344 |
+
}, U("M", ["MM", 2], "Mo", function() {
|
345 |
+
return this.month() + 1
|
346 |
+
}), U("MMM", 0, 0, function(e) {
|
347 |
+
return this.localeData().monthsShort(this, e)
|
348 |
+
}), U("MMMM", 0, 0, function(e) {
|
349 |
+
return this.localeData().months(this, e)
|
350 |
+
}), D("month", "M"), P("month", 8), le("M", Z), le("MM", Z, G), le("MMM", function(e, t) {
|
351 |
+
return t.monthsShortRegex(e)
|
352 |
+
}), le("MMMM", function(e, t) {
|
353 |
+
return t.monthsRegex(e)
|
354 |
+
}), de(["M", "MM"], function(e, t) {
|
355 |
+
t[ge] = S(e) - 1
|
356 |
+
}), de(["MMM", "MMMM"], function(e, t, n, o) {
|
357 |
+
var i = n._locale.monthsParse(e, o, n._strict);
|
358 |
+
null != i ? t[ge] = i : v(n).invalidMonth = e
|
359 |
+
});
|
360 |
+
var Ae = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
361 |
+
De = "January_February_March_April_May_June_July_August_September_October_November_December".split("_");
|
362 |
+
var Ie = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");
|
363 |
+
|
364 |
+
function He(e, t) {
|
365 |
+
var n;
|
366 |
+
if (!e.isValid()) return e;
|
367 |
+
if ("string" == typeof t)
|
368 |
+
if (/^\d+$/.test(t)) t = S(t);
|
369 |
+
else if (!l(t = e.localeData().monthsParse(t))) return e;
|
370 |
+
return n = Math.min(e.date(), Ne(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n), e
|
371 |
+
}
|
372 |
+
|
373 |
+
function Le(e) {
|
374 |
+
return null != e ? (He(this, e), d.updateOffset(this, !0), this) : Oe(this, "Month")
|
375 |
+
}
|
376 |
+
var Pe = ae;
|
377 |
+
var xe = ae;
|
378 |
+
|
379 |
+
function Fe() {
|
380 |
+
function e(e, t) {
|
381 |
+
return t.length - e.length
|
382 |
+
}
|
383 |
+
var t, n, o = [],
|
384 |
+
i = [],
|
385 |
+
r = [];
|
386 |
+
for (t = 0; t < 12; t++) n = h([2e3, t]), o.push(this.monthsShort(n, "")), i.push(this.months(n, "")), r.push(this.months(n, "")), r.push(this.monthsShort(n, ""));
|
387 |
+
for (o.sort(e), i.sort(e), r.sort(e), t = 0; t < 12; t++) o[t] = ce(o[t]), i[t] = ce(i[t]);
|
388 |
+
for (t = 0; t < 24; t++) r[t] = ce(r[t]);
|
389 |
+
this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + o.join("|") + ")", "i")
|
390 |
+
}
|
391 |
+
|
392 |
+
function Be(e) {
|
393 |
+
var t = new Date(Date.UTC.apply(null, arguments));
|
394 |
+
return e < 100 && 0 <= e && isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e), t
|
395 |
+
}
|
396 |
+
|
397 |
+
function We(e, t, n) {
|
398 |
+
var o = 7 + t - n;
|
399 |
+
return o - (7 + Be(e, 0, o).getUTCDay() - t) % 7 - 1
|
400 |
+
}
|
401 |
+
|
402 |
+
function Ve(e, t, n, o, i) {
|
403 |
+
var r, a, s = 1 + 7 * (t - 1) + (7 + n - o) % 7 + We(e, o, i);
|
404 |
+
return a = s <= 0 ? ke(r = e - 1) + s : s > ke(e) ? (r = e + 1, s - ke(e)) : (r = e, s), {
|
405 |
+
year: r,
|
406 |
+
dayOfYear: a
|
407 |
+
}
|
408 |
+
}
|
409 |
+
|
410 |
+
function Ue(e, t, n) {
|
411 |
+
var o, i, r = We(e.year(), t, n),
|
412 |
+
a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1;
|
413 |
+
return a < 1 ? o = a + Ye(i = e.year() - 1, t, n) : a > Ye(e.year(), t, n) ? (o = a - Ye(e.year(), t, n), i = e.year() + 1) : (i = e.year(), o = a), {
|
414 |
+
week: o,
|
415 |
+
year: i
|
416 |
+
}
|
417 |
+
}
|
418 |
+
|
419 |
+
function Ye(e, t, n) {
|
420 |
+
var o = We(e, t, n),
|
421 |
+
i = We(e + 1, t, n);
|
422 |
+
return (ke(e) - o + i) / 7
|
423 |
+
}
|
424 |
+
U("w", ["ww", 2], "wo", "week"), U("W", ["WW", 2], "Wo", "isoWeek"), D("week", "w"), D("isoWeek", "W"), P("week", 5), P("isoWeek", 5), le("w", Z), le("ww", Z, G), le("W", Z), le("WW", Z, G), fe(["w", "ww", "W", "WW"], function(e, t, n, o) {
|
425 |
+
t[o.substr(0, 1)] = S(e)
|
426 |
+
});
|
427 |
+
U("d", 0, "do", "day"), U("dd", 0, 0, function(e) {
|
428 |
+
return this.localeData().weekdaysMin(this, e)
|
429 |
+
}), U("ddd", 0, 0, function(e) {
|
430 |
+
return this.localeData().weekdaysShort(this, e)
|
431 |
+
}), U("dddd", 0, 0, function(e) {
|
432 |
+
return this.localeData().weekdays(this, e)
|
433 |
+
}), U("e", 0, 0, "weekday"), U("E", 0, 0, "isoWeekday"), D("day", "d"), D("weekday", "e"), D("isoWeekday", "E"), P("day", 11), P("weekday", 11), P("isoWeekday", 11), le("d", Z), le("e", Z), le("E", Z), le("dd", function(e, t) {
|
434 |
+
return t.weekdaysMinRegex(e)
|
435 |
+
}), le("ddd", function(e, t) {
|
436 |
+
return t.weekdaysShortRegex(e)
|
437 |
+
}), le("dddd", function(e, t) {
|
438 |
+
return t.weekdaysRegex(e)
|
439 |
+
}), fe(["dd", "ddd", "dddd"], function(e, t, n, o) {
|
440 |
+
var i = n._locale.weekdaysParse(e, o, n._strict);
|
441 |
+
null != i ? t.d = i : v(n).invalidWeekday = e
|
442 |
+
}), fe(["d", "e", "E"], function(e, t, n, o) {
|
443 |
+
t[o] = S(e)
|
444 |
+
});
|
445 |
+
var je = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");
|
446 |
+
var ze = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");
|
447 |
+
var Ge = "Su_Mo_Tu_We_Th_Fr_Sa".split("_");
|
448 |
+
var Ke = ae;
|
449 |
+
var Xe = ae;
|
450 |
+
var qe = ae;
|
451 |
+
|
452 |
+
function Ze() {
|
453 |
+
function e(e, t) {
|
454 |
+
return t.length - e.length
|
455 |
+
}
|
456 |
+
var t, n, o, i, r, a = [],
|
457 |
+
s = [],
|
458 |
+
l = [],
|
459 |
+
u = [];
|
460 |
+
for (t = 0; t < 7; t++) n = h([2e3, 1]).day(t), o = this.weekdaysMin(n, ""), i = this.weekdaysShort(n, ""), r = this.weekdays(n, ""), a.push(o), s.push(i), l.push(r), u.push(o), u.push(i), u.push(r);
|
461 |
+
for (a.sort(e), s.sort(e), l.sort(e), u.sort(e), t = 0; t < 7; t++) s[t] = ce(s[t]), l[t] = ce(l[t]), u[t] = ce(u[t]);
|
462 |
+
this._weekdaysRegex = new RegExp("^(" + u.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + a.join("|") + ")", "i")
|
463 |
+
}
|
464 |
+
|
465 |
+
function $e() {
|
466 |
+
return this.hours() % 12 || 12
|
467 |
+
}
|
468 |
+
|
469 |
+
function Qe(e, t) {
|
470 |
+
U(e, 0, 0, function() {
|
471 |
+
return this.localeData().meridiem(this.hours(), this.minutes(), t)
|
472 |
+
})
|
473 |
+
}
|
474 |
+
|
475 |
+
function Je(e, t) {
|
476 |
+
return t._meridiemParse
|
477 |
+
}
|
478 |
+
U("H", ["HH", 2], 0, "hour"), U("h", ["hh", 2], 0, $e), U("k", ["kk", 2], 0, function() {
|
479 |
+
return this.hours() || 24
|
480 |
+
}), U("hmm", 0, 0, function() {
|
481 |
+
return "" + $e.apply(this) + x(this.minutes(), 2)
|
482 |
+
}), U("hmmss", 0, 0, function() {
|
483 |
+
return "" + $e.apply(this) + x(this.minutes(), 2) + x(this.seconds(), 2)
|
484 |
+
}), U("Hmm", 0, 0, function() {
|
485 |
+
return "" + this.hours() + x(this.minutes(), 2)
|
486 |
+
}), U("Hmmss", 0, 0, function() {
|
487 |
+
return "" + this.hours() + x(this.minutes(), 2) + x(this.seconds(), 2)
|
488 |
+
}), Qe("a", !0), Qe("A", !1), D("hour", "h"), P("hour", 13), le("a", Je), le("A", Je), le("H", Z), le("h", Z), le("k", Z), le("HH", Z, G), le("hh", Z, G), le("kk", Z, G), le("hmm", $), le("hmmss", Q), le("Hmm", $), le("Hmmss", Q), de(["H", "HH"], me), de(["k", "kk"], function(e, t, n) {
|
489 |
+
var o = S(e);
|
490 |
+
t[me] = 24 === o ? 0 : o
|
491 |
+
}), de(["a", "A"], function(e, t, n) {
|
492 |
+
n._isPm = n._locale.isPM(e), n._meridiem = e
|
493 |
+
}), de(["h", "hh"], function(e, t, n) {
|
494 |
+
t[me] = S(e), v(n).bigHour = !0
|
495 |
+
}), de("hmm", function(e, t, n) {
|
496 |
+
var o = e.length - 2;
|
497 |
+
t[me] = S(e.substr(0, o)), t[ye] = S(e.substr(o)), v(n).bigHour = !0
|
498 |
+
}), de("hmmss", function(e, t, n) {
|
499 |
+
var o = e.length - 4,
|
500 |
+
i = e.length - 2;
|
501 |
+
t[me] = S(e.substr(0, o)), t[ye] = S(e.substr(o, 2)), t[we] = S(e.substr(i)), v(n).bigHour = !0
|
502 |
+
}), de("Hmm", function(e, t, n) {
|
503 |
+
var o = e.length - 2;
|
504 |
+
t[me] = S(e.substr(0, o)), t[ye] = S(e.substr(o))
|
505 |
+
}), de("Hmmss", function(e, t, n) {
|
506 |
+
var o = e.length - 4,
|
507 |
+
i = e.length - 2;
|
508 |
+
t[me] = S(e.substr(0, o)), t[ye] = S(e.substr(o, 2)), t[we] = S(e.substr(i))
|
509 |
+
});
|
510 |
+
var et, tt = be("Hours", !0),
|
511 |
+
nt = {
|
512 |
+
calendar: {
|
513 |
+
sameDay: "[Today at] LT",
|
514 |
+
nextDay: "[Tomorrow at] LT",
|
515 |
+
nextWeek: "dddd [at] LT",
|
516 |
+
lastDay: "[Yesterday at] LT",
|
517 |
+
lastWeek: "[Last] dddd [at] LT",
|
518 |
+
sameElse: "L"
|
519 |
+
},
|
520 |
+
longDateFormat: {
|
521 |
+
LTS: "h:mm:ss A",
|
522 |
+
LT: "h:mm A",
|
523 |
+
L: "MM/DD/YYYY",
|
524 |
+
LL: "MMMM D, YYYY",
|
525 |
+
LLL: "MMMM D, YYYY h:mm A",
|
526 |
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
527 |
+
},
|
528 |
+
invalidDate: "Invalid date",
|
529 |
+
ordinal: "%d",
|
530 |
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
531 |
+
relativeTime: {
|
532 |
+
future: "in %s",
|
533 |
+
past: "%s ago",
|
534 |
+
s: "a few seconds",
|
535 |
+
ss: "%d seconds",
|
536 |
+
m: "a minute",
|
537 |
+
mm: "%d minutes",
|
538 |
+
h: "an hour",
|
539 |
+
hh: "%d hours",
|
540 |
+
d: "a day",
|
541 |
+
dd: "%d days",
|
542 |
+
M: "a month",
|
543 |
+
MM: "%d months",
|
544 |
+
y: "a year",
|
545 |
+
yy: "%d years"
|
546 |
+
},
|
547 |
+
months: De,
|
548 |
+
monthsShort: Ie,
|
549 |
+
week: {
|
550 |
+
dow: 0,
|
551 |
+
doy: 6
|
552 |
+
},
|
553 |
+
weekdays: je,
|
554 |
+
weekdaysMin: Ge,
|
555 |
+
weekdaysShort: ze,
|
556 |
+
meridiemParse: /[ap]\.?m?\.?/i
|
557 |
+
},
|
558 |
+
ot = {},
|
559 |
+
it = {};
|
560 |
+
|
561 |
+
function rt(e) {
|
562 |
+
return e ? e.toLowerCase().replace("_", "-") : e
|
563 |
+
}
|
564 |
+
|
565 |
+
function at(e) {
|
566 |
+
var t = null;
|
567 |
+
if (!ot[e] && "undefined" != typeof module && module && module.exports) try {
|
568 |
+
t = et._abbr, require("./locale/" + e), st(t)
|
569 |
+
} catch (e) {}
|
570 |
+
return ot[e]
|
571 |
+
}
|
572 |
+
|
573 |
+
function st(e, t) {
|
574 |
+
var n;
|
575 |
+
return e && (n = r(t) ? ut(e) : lt(e, t)) && (et = n), et._abbr
|
576 |
+
}
|
577 |
+
|
578 |
+
function lt(e, t) {
|
579 |
+
if (null === t) return delete ot[e], null;
|
580 |
+
var n = nt;
|
581 |
+
if (t.abbr = e, null != ot[e]) b("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), n = ot[e]._config;
|
582 |
+
else if (null != t.parentLocale) {
|
583 |
+
if (null == ot[t.parentLocale]) return it[t.parentLocale] || (it[t.parentLocale] = []), it[t.parentLocale].push({
|
584 |
+
name: e,
|
585 |
+
config: t
|
586 |
+
}), null;
|
587 |
+
n = ot[t.parentLocale]._config
|
588 |
+
}
|
589 |
+
return ot[e] = new N(M(n, t)), it[e] && it[e].forEach(function(e) {
|
590 |
+
lt(e.name, e.config)
|
591 |
+
}), st(e), ot[e]
|
592 |
+
}
|
593 |
+
|
594 |
+
function ut(e) {
|
595 |
+
var t;
|
596 |
+
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return et;
|
597 |
+
if (!a(e)) {
|
598 |
+
if (t = at(e)) return t;
|
599 |
+
e = [e]
|
600 |
+
}
|
601 |
+
return function(e) {
|
602 |
+
for (var t, n, o, i, r = 0; r < e.length;) {
|
603 |
+
for (t = (i = rt(e[r]).split("-")).length, n = (n = rt(e[r + 1])) ? n.split("-") : null; 0 < t;) {
|
604 |
+
if (o = at(i.slice(0, t).join("-"))) return o;
|
605 |
+
if (n && n.length >= t && k(i, n, !0) >= t - 1) break;
|
606 |
+
t--
|
607 |
+
}
|
608 |
+
r++
|
609 |
+
}
|
610 |
+
return null
|
611 |
+
}(e)
|
612 |
+
}
|
613 |
+
|
614 |
+
function ct(e) {
|
615 |
+
var t, n = e._a;
|
616 |
+
return n && -2 === v(e).overflow && (t = n[ge] < 0 || 11 < n[ge] ? ge : n[pe] < 1 || n[pe] > Ne(n[ve], n[ge]) ? pe : n[me] < 0 || 24 < n[me] || 24 === n[me] && (0 !== n[ye] || 0 !== n[we] || 0 !== n[Ce]) ? me : n[ye] < 0 || 59 < n[ye] ? ye : n[we] < 0 || 59 < n[we] ? we : n[Ce] < 0 || 999 < n[Ce] ? Ce : -1, v(e)._overflowDayOfYear && (t < ve || pe < t) && (t = pe), v(e)._overflowWeeks && -1 === t && (t = Ee), v(e)._overflowWeekday && -1 === t && (t = Se), v(e).overflow = t), e
|
617 |
+
}
|
618 |
+
|
619 |
+
function ht(e, t, n) {
|
620 |
+
return null != e ? e : null != t ? t : n
|
621 |
+
}
|
622 |
+
|
623 |
+
function dt(e) {
|
624 |
+
var t, n, o, i, r, a = [];
|
625 |
+
if (!e._d) {
|
626 |
+
for (o = function(e) {
|
627 |
+
var t = new Date(d.now());
|
628 |
+
return e._useUTC ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()] : [t.getFullYear(), t.getMonth(), t.getDate()]
|
629 |
+
}(e), e._w && null == e._a[pe] && null == e._a[ge] && function(e) {
|
630 |
+
var t, n, o, i, r, a, s, l;
|
631 |
+
if (null != (t = e._w).GG || null != t.W || null != t.E) r = 1, a = 4, n = ht(t.GG, e._a[ve], Ue(bt(), 1, 4).year), o = ht(t.W, 1), ((i = ht(t.E, 1)) < 1 || 7 < i) && (l = !0);
|
632 |
+
else {
|
633 |
+
r = e._locale._week.dow, a = e._locale._week.doy;
|
634 |
+
var u = Ue(bt(), r, a);
|
635 |
+
n = ht(t.gg, e._a[ve], u.year), o = ht(t.w, u.week), null != t.d ? ((i = t.d) < 0 || 6 < i) && (l = !0) : null != t.e ? (i = t.e + r, (t.e < 0 || 6 < t.e) && (l = !0)) : i = r
|
636 |
+
}
|
637 |
+
o < 1 || o > Ye(n, r, a) ? v(e)._overflowWeeks = !0 : null != l ? v(e)._overflowWeekday = !0 : (s = Ve(n, o, i, r, a), e._a[ve] = s.year, e._dayOfYear = s.dayOfYear)
|
638 |
+
}(e), null != e._dayOfYear && (r = ht(e._a[ve], o[ve]), (e._dayOfYear > ke(r) || 0 === e._dayOfYear) && (v(e)._overflowDayOfYear = !0), n = Be(r, 0, e._dayOfYear), e._a[ge] = n.getUTCMonth(), e._a[pe] = n.getUTCDate()), t = 0; t < 3 && null == e._a[t]; ++t) e._a[t] = a[t] = o[t];
|
639 |
+
for (; t < 7; t++) e._a[t] = a[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t];
|
640 |
+
24 === e._a[me] && 0 === e._a[ye] && 0 === e._a[we] && 0 === e._a[Ce] && (e._nextDay = !0, e._a[me] = 0), e._d = (e._useUTC ? Be : function(e, t, n, o, i, r, a) {
|
641 |
+
var s = new Date(e, t, n, o, i, r, a);
|
642 |
+
return e < 100 && 0 <= e && isFinite(s.getFullYear()) && s.setFullYear(e), s
|
643 |
+
}).apply(null, a), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[me] = 24), e._w && void 0 !== e._w.d && e._w.d !== i && (v(e).weekdayMismatch = !0)
|
644 |
+
}
|
645 |
+
}
|
646 |
+
var ft = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
647 |
+
vt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
648 |
+
gt = /Z|[+-]\d\d(?::?\d\d)?/,
|
649 |
+
pt = [
|
650 |
+
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
651 |
+
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
652 |
+
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
653 |
+
["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
|
654 |
+
["YYYY-DDD", /\d{4}-\d{3}/],
|
655 |
+
["YYYY-MM", /\d{4}-\d\d/, !1],
|
656 |
+
["YYYYYYMMDD", /[+-]\d{10}/],
|
657 |
+
["YYYYMMDD", /\d{8}/],
|
658 |
+
["GGGG[W]WWE", /\d{4}W\d{3}/],
|
659 |
+
["GGGG[W]WW", /\d{4}W\d{2}/, !1],
|
660 |
+
["YYYYDDD", /\d{7}/]
|
661 |
+
],
|
662 |
+
mt = [
|
663 |
+
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
664 |
+
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
665 |
+
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
666 |
+
["HH:mm", /\d\d:\d\d/],
|
667 |
+
["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
|
668 |
+
["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
|
669 |
+
["HHmmss", /\d\d\d\d\d\d/],
|
670 |
+
["HHmm", /\d\d\d\d/],
|
671 |
+
["HH", /\d\d/]
|
672 |
+
],
|
673 |
+
yt = /^\/?Date\((\-?\d+)/i;
|
674 |
+
|
675 |
+
function wt(e) {
|
676 |
+
var t, n, o, i, r, a, s = e._i,
|
677 |
+
l = ft.exec(s) || vt.exec(s);
|
678 |
+
if (l) {
|
679 |
+
for (v(e).iso = !0, t = 0, n = pt.length; t < n; t++)
|
680 |
+
if (pt[t][1].exec(l[1])) {
|
681 |
+
i = pt[t][0], o = !1 !== pt[t][2];
|
682 |
+
break
|
683 |
+
}
|
684 |
+
if (null == i) return void(e._isValid = !1);
|
685 |
+
if (l[3]) {
|
686 |
+
for (t = 0, n = mt.length; t < n; t++)
|
687 |
+
if (mt[t][1].exec(l[3])) {
|
688 |
+
r = (l[2] || " ") + mt[t][0];
|
689 |
+
break
|
690 |
+
}
|
691 |
+
if (null == r) return void(e._isValid = !1)
|
692 |
+
}
|
693 |
+
if (!o && null != r) return void(e._isValid = !1);
|
694 |
+
if (l[4]) {
|
695 |
+
if (!gt.exec(l[4])) return void(e._isValid = !1);
|
696 |
+
a = "Z"
|
697 |
+
}
|
698 |
+
e._f = i + (r || "") + (a || ""), Tt(e)
|
699 |
+
} else e._isValid = !1
|
700 |
+
}
|
701 |
+
var Ct = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
|
702 |
+
|
703 |
+
function Et(e, t, n, o, i, r) {
|
704 |
+
var a = [function(e) {
|
705 |
+
var t = parseInt(e, 10); {
|
706 |
+
if (t <= 49) return 2e3 + t;
|
707 |
+
if (t <= 999) return 1900 + t
|
708 |
+
}
|
709 |
+
return t
|
710 |
+
}(e), Ie.indexOf(t), parseInt(n, 10), parseInt(o, 10), parseInt(i, 10)];
|
711 |
+
return r && a.push(parseInt(r, 10)), a
|
712 |
+
}
|
713 |
+
var St = {
|
714 |
+
UT: 0,
|
715 |
+
GMT: 0,
|
716 |
+
EDT: -240,
|
717 |
+
EST: -300,
|
718 |
+
CDT: -300,
|
719 |
+
CST: -360,
|
720 |
+
MDT: -360,
|
721 |
+
MST: -420,
|
722 |
+
PDT: -420,
|
723 |
+
PST: -480
|
724 |
+
};
|
725 |
+
|
726 |
+
function kt(e) {
|
727 |
+
var t = Ct.exec(function(e) {
|
728 |
+
return e.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim()
|
729 |
+
}(e._i));
|
730 |
+
if (t) {
|
731 |
+
var n = Et(t[4], t[3], t[2], t[5], t[6], t[7]);
|
732 |
+
if (! function(e, t, n) {
|
733 |
+
return !e || ze.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || (v(n).weekdayMismatch = !0, n._isValid = !1)
|
734 |
+
}(t[1], n, e)) return;
|
735 |
+
e._a = n, e._tzm = function(e, t, n) {
|
736 |
+
if (e) return St[e];
|
737 |
+
if (t) return 0;
|
738 |
+
var o = parseInt(n, 10),
|
739 |
+
i = o % 100;
|
740 |
+
return 60 * ((o - i) / 100) + i
|
741 |
+
}(t[8], t[9], t[10]), e._d = Be.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), v(e).rfc2822 = !0
|
742 |
+
} else e._isValid = !1
|
743 |
+
}
|
744 |
+
|
745 |
+
function Tt(e) {
|
746 |
+
if (e._f !== d.ISO_8601)
|
747 |
+
if (e._f !== d.RFC_2822) {
|
748 |
+
e._a = [], v(e).empty = !0;
|
749 |
+
var t, n, o, i, r, a, s, l, u = "" + e._i,
|
750 |
+
c = u.length,
|
751 |
+
h = 0;
|
752 |
+
for (o = j(e._f, e._locale).match(F) || [], t = 0; t < o.length; t++) i = o[t], (n = (u.match(ue(i, e)) || [])[0]) && (0 < (r = u.substr(0, u.indexOf(n))).length && v(e).unusedInput.push(r), u = u.slice(u.indexOf(n) + n.length), h += n.length), V[i] ? (n ? v(e).empty = !1 : v(e).unusedTokens.push(i), a = i, l = e, null != (s = n) && f(he, a) && he[a](s, l._a, l, a)) : e._strict && !n && v(e).unusedTokens.push(i);
|
753 |
+
v(e).charsLeftOver = c - h, 0 < u.length && v(e).unusedInput.push(u), e._a[me] <= 12 && !0 === v(e).bigHour && 0 < e._a[me] && (v(e).bigHour = void 0), v(e).parsedDateParts = e._a.slice(0), v(e).meridiem = e._meridiem, e._a[me] = function(e, t, n) {
|
754 |
+
var o;
|
755 |
+
if (null == n) return t;
|
756 |
+
return null != e.meridiemHour ? e.meridiemHour(t, n) : (null != e.isPM && ((o = e.isPM(n)) && t < 12 && (t += 12), o || 12 !== t || (t = 0)), t)
|
757 |
+
}(e._locale, e._a[me], e._meridiem), dt(e), ct(e)
|
758 |
+
} else kt(e);
|
759 |
+
else wt(e)
|
760 |
+
}
|
761 |
+
|
762 |
+
function Rt(e) {
|
763 |
+
var t = e._i,
|
764 |
+
n = e._f;
|
765 |
+
return e._locale = e._locale || ut(e._l), null === t || void 0 === n && "" === t ? p({
|
766 |
+
nullInput: !0
|
767 |
+
}) : ("string" == typeof t && (e._i = t = e._locale.preparse(t)), C(t) ? new w(ct(t)) : (u(t) ? e._d = t : a(n) ? function(e) {
|
768 |
+
var t, n, o, i, r;
|
769 |
+
if (0 === e._f.length) return v(e).invalidFormat = !0, e._d = new Date(NaN);
|
770 |
+
for (i = 0; i < e._f.length; i++) r = 0, t = y({}, e), null != e._useUTC && (t._useUTC = e._useUTC), t._f = e._f[i], Tt(t), g(t) && (r += v(t).charsLeftOver, r += 10 * v(t).unusedTokens.length, v(t).score = r, (null == o || r < o) && (o = r, n = t));
|
771 |
+
c(e, n || t)
|
772 |
+
}(e) : n ? Tt(e) : function(e) {
|
773 |
+
var t = e._i;
|
774 |
+
r(t) ? e._d = new Date(d.now()) : u(t) ? e._d = new Date(t.valueOf()) : "string" == typeof t ? function(e) {
|
775 |
+
var t = yt.exec(e._i);
|
776 |
+
null === t ? (wt(e), !1 === e._isValid && (delete e._isValid, kt(e), !1 === e._isValid && (delete e._isValid, d.createFromInputFallback(e)))) : e._d = new Date(+t[1])
|
777 |
+
}(e) : a(t) ? (e._a = o(t.slice(0), function(e) {
|
778 |
+
return parseInt(e, 10)
|
779 |
+
}), dt(e)) : s(t) ? function(e) {
|
780 |
+
if (!e._d) {
|
781 |
+
var t = H(e._i);
|
782 |
+
e._a = o([t.year, t.month, t.day || t.date, t.hour, t.minute, t.second, t.millisecond], function(e) {
|
783 |
+
return e && parseInt(e, 10)
|
784 |
+
}), dt(e)
|
785 |
+
}
|
786 |
+
}(e) : l(t) ? e._d = new Date(t) : d.createFromInputFallback(e)
|
787 |
+
}(e), g(e) || (e._d = null), e))
|
788 |
+
}
|
789 |
+
|
790 |
+
function _t(e, t, n, o, i) {
|
791 |
+
var r = {};
|
792 |
+
return !0 !== n && !1 !== n || (o = n, n = void 0), (s(e) && function(e) {
|
793 |
+
if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length;
|
794 |
+
var t;
|
795 |
+
for (t in e)
|
796 |
+
if (e.hasOwnProperty(t)) return !1;
|
797 |
+
return !0
|
798 |
+
}(e) || a(e) && 0 === e.length) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = o,
|
799 |
+
function(e) {
|
800 |
+
var t = new w(ct(Rt(e)));
|
801 |
+
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t
|
802 |
+
}(r)
|
803 |
+
}
|
804 |
+
|
805 |
+
function bt(e, t, n, o) {
|
806 |
+
return _t(e, t, n, o, !1)
|
807 |
+
}
|
808 |
+
d.createFromInputFallback = n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(e) {
|
809 |
+
e._d = new Date(e._i + (e._useUTC ? " UTC" : ""))
|
810 |
+
}), d.ISO_8601 = function() {}, d.RFC_2822 = function() {};
|
811 |
+
var Ot = n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
812 |
+
var e = bt.apply(null, arguments);
|
813 |
+
return this.isValid() && e.isValid() ? e < this ? this : e : p()
|
814 |
+
}),
|
815 |
+
Mt = n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
816 |
+
var e = bt.apply(null, arguments);
|
817 |
+
return this.isValid() && e.isValid() ? this < e ? this : e : p()
|
818 |
+
});
|
819 |
+
|
820 |
+
function Nt(e, t) {
|
821 |
+
var n, o;
|
822 |
+
if (1 === t.length && a(t[0]) && (t = t[0]), !t.length) return bt();
|
823 |
+
for (n = t[0], o = 1; o < t.length; ++o) t[o].isValid() && !t[o][e](n) || (n = t[o]);
|
824 |
+
return n
|
825 |
+
}
|
826 |
+
var At = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];
|
827 |
+
|
828 |
+
function Dt(e) {
|
829 |
+
var t = H(e),
|
830 |
+
n = t.year || 0,
|
831 |
+
o = t.quarter || 0,
|
832 |
+
i = t.month || 0,
|
833 |
+
r = t.week || 0,
|
834 |
+
a = t.day || 0,
|
835 |
+
s = t.hour || 0,
|
836 |
+
l = t.minute || 0,
|
837 |
+
u = t.second || 0,
|
838 |
+
c = t.millisecond || 0;
|
839 |
+
this._isValid = function(e) {
|
840 |
+
for (var t in e)
|
841 |
+
if (-1 === Re.call(At, t) || null != e[t] && isNaN(e[t])) return !1;
|
842 |
+
for (var n = !1, o = 0; o < At.length; ++o)
|
843 |
+
if (e[At[o]]) {
|
844 |
+
if (n) return !1;
|
845 |
+
parseFloat(e[At[o]]) !== S(e[At[o]]) && (n = !0)
|
846 |
+
}
|
847 |
+
return !0
|
848 |
+
}(t), this._milliseconds = +c + 1e3 * u + 6e4 * l + 1e3 * s * 60 * 60, this._days = +a + 7 * r, this._months = +i + 3 * o + 12 * n, this._data = {}, this._locale = ut(), this._bubble()
|
849 |
+
}
|
850 |
+
|
851 |
+
function It(e) {
|
852 |
+
return e instanceof Dt
|
853 |
+
}
|
854 |
+
|
855 |
+
function Ht(e) {
|
856 |
+
return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e)
|
857 |
+
}
|
858 |
+
|
859 |
+
function Lt(e, n) {
|
860 |
+
U(e, 0, 0, function() {
|
861 |
+
var e = this.utcOffset(),
|
862 |
+
t = "+";
|
863 |
+
return e < 0 && (e = -e, t = "-"), t + x(~~(e / 60), 2) + n + x(~~e % 60, 2)
|
864 |
+
})
|
865 |
+
}
|
866 |
+
Lt("Z", ":"), Lt("ZZ", ""), le("Z", re), le("ZZ", re), de(["Z", "ZZ"], function(e, t, n) {
|
867 |
+
n._useUTC = !0, n._tzm = xt(re, e)
|
868 |
+
});
|
869 |
+
var Pt = /([\+\-]|\d\d)/gi;
|
870 |
+
|
871 |
+
function xt(e, t) {
|
872 |
+
var n = (t || "").match(e);
|
873 |
+
if (null === n) return null;
|
874 |
+
var o = ((n[n.length - 1] || []) + "").match(Pt) || ["-", 0, 0],
|
875 |
+
i = 60 * o[1] + S(o[2]);
|
876 |
+
return 0 === i ? 0 : "+" === o[0] ? i : -i
|
877 |
+
}
|
878 |
+
|
879 |
+
function Ft(e, t) {
|
880 |
+
var n, o;
|
881 |
+
return t._isUTC ? (n = t.clone(), o = (C(e) || u(e) ? e.valueOf() : bt(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + o), d.updateOffset(n, !1), n) : bt(e).local()
|
882 |
+
}
|
883 |
+
|
884 |
+
function Bt(e) {
|
885 |
+
return 15 * -Math.round(e._d.getTimezoneOffset() / 15)
|
886 |
+
}
|
887 |
+
|
888 |
+
function Wt() {
|
889 |
+
return !!this.isValid() && (this._isUTC && 0 === this._offset)
|
890 |
+
}
|
891 |
+
d.updateOffset = function() {};
|
892 |
+
var Vt = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,
|
893 |
+
Ut = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
894 |
+
|
895 |
+
function Yt(e, t) {
|
896 |
+
var n, o, i, r = e,
|
897 |
+
a = null;
|
898 |
+
return It(e) ? r = {
|
899 |
+
ms: e._milliseconds,
|
900 |
+
d: e._days,
|
901 |
+
M: e._months
|
902 |
+
} : l(e) ? (r = {}, t ? r[t] = e : r.milliseconds = e) : (a = Vt.exec(e)) ? (n = "-" === a[1] ? -1 : 1, r = {
|
903 |
+
y: 0,
|
904 |
+
d: S(a[pe]) * n,
|
905 |
+
h: S(a[me]) * n,
|
906 |
+
m: S(a[ye]) * n,
|
907 |
+
s: S(a[we]) * n,
|
908 |
+
ms: S(Ht(1e3 * a[Ce])) * n
|
909 |
+
}) : (a = Ut.exec(e)) ? (n = "-" === a[1] ? -1 : (a[1], 1), r = {
|
910 |
+
y: jt(a[2], n),
|
911 |
+
M: jt(a[3], n),
|
912 |
+
w: jt(a[4], n),
|
913 |
+
d: jt(a[5], n),
|
914 |
+
h: jt(a[6], n),
|
915 |
+
m: jt(a[7], n),
|
916 |
+
s: jt(a[8], n)
|
917 |
+
}) : null == r ? r = {} : "object" == typeof r && ("from" in r || "to" in r) && (i = function(e, t) {
|
918 |
+
var n;
|
919 |
+
if (!e.isValid() || !t.isValid()) return {
|
920 |
+
milliseconds: 0,
|
921 |
+
months: 0
|
922 |
+
};
|
923 |
+
t = Ft(t, e), e.isBefore(t) ? n = zt(e, t) : ((n = zt(t, e)).milliseconds = -n.milliseconds, n.months = -n.months);
|
924 |
+
ret
|