handsontable 0.0.0-next-e6bff81-20221216 → 0.0.0-next-153a482-20221216
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +8 -5
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +8 -5
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/nestedRows/nestedRows.js +3 -0
- package/plugins/nestedRows/nestedRows.mjs +3 -0
@@ -25,10 +25,10 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 14/12/2022 (built at 16/12/2022
|
28
|
+
* Version: 0.0.0-next-153a482-20221216
|
29
|
+
* Release date: 14/12/2022 (built at 16/12/2022 13:49:47)
|
30
30
|
*/
|
31
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=635)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(269),o=n(93),i=n(691);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(421);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,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(88),o=n(167),i=n(173),a=n(106),s=n(71).f,l=n(266),u=n(268),c=n(121),d=n(57),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(270).charAt,o=n(62),i=n(106),a=n(266),s=n(268),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(4),s=n(126),l=n(47),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(692)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(743),s=n(422),l=n(61),u=n(56),c=n(123),d=n(29),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!g)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),v=i(e,d,t);return u(v)?v:d}})},function(e,t,n){var r=n(566);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(33);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(26)),i=r(n(14));n(147),n(31),n(41),n(1),n(23);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(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 c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(48),n(5),n(20),n(22),n(39),n(35),n(1),n(31),n(41),n(4),n(52),n(6),n(51),n(726)},function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(29),i=n(88),a=n(116).f,s=n(57),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&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.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,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 r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,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.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(t);return e.scrollTop},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 r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===v&&(v=w(e));return v},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=arguments.length>0&&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.getStyle=function(e,t){var n=arguments.length>2&&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 r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=S,t.isOutsideInput=O,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},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.selectElementIfAllowed=function(e){O(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(419),n(31),n(41),n(39),n(22),n(35),n(1),n(148),n(51),n(98),n(83),n(149),n(82),n(20),n(23);var i,a,s,l=n(107),u=n(94),c=n(84);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var p=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)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}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)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function w(){var e=arguments.length>0&&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 r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return u})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(111),a=n(34),s=n(42),l=n(70);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const u=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof l.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=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_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=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_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var P="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=P;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(790);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(29),i=n(145),a=n(56),s=n(81),l=n(92),u=n(408),c=n(144),d=n(278),h=n(179),f=n(47),p=n(168),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=h("concat"),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],y(i))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(401),o=n(701),i=n(279),a=n(403);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(178),i=n(264).indexOf,a=n(146),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(715),s=n(126),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="0.0.0-next-e6bff81-20221216",a="invalid",s="invalid",l=function(e){var t=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||l)if(l){var u=(0,h.default)("14/12/2022","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),d=v(E(C(f=e),v("12"),T("F")))/(v(E(C(f),T("B"),~~![][m]))||9);n=(0,h.default)(864e5*(d+1),"x").format("MMMM DD, YYYY"),c>d?(a="expired",s="expired"):(a="valid",s="valid")}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";var f;"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)&&(a="valid",s="valid");if(!R&&"valid"!==a){w[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](w[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(S[s]({keyValidityDate:n,hotVersion:i})){var p=document.createElement("div");p.className="hot-display-license-info",p.innerHTML=S[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(p,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=p,t.stringify=function(e){var t;switch((0,d.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};var o=r(n(64));n(1),n(98),n(728),n(51),n(82),n(424);var i,a,s,l,u,c,d=r(n(14)),h=r(n(95)),f=n(66);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.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."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.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."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.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."])))},non_commercial:function(){return""}},S={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.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>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.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>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.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>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(44),o=n(116).f,i=n(126),a=n(93),s=n(263),l=n(386),u=n(213);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(421);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"ArgumentTypes",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(34),s=n(60),l=n(100),u=n(42),c=n(70);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,o)=>{var s,l,u,d,h;let f,p=n.parameters||[];if(f=n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1]),void 0===n.repeatLastArgs&&p.length<f.length)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);if(void 0!==n.repeatLastArgs&&p.length<f.length&&(f.length-p.length)%n.repeatLastArgs!=0)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(p=[...p];p.length<f.length;)p.push(...p.slice(p.length-n.repeatLastArgs));let g=1,m=1;if(!n.vectorizationForbidden&&t.arraysFlag)for(let e=0;e<f.length;e++){const[t]=f[e];t instanceof c.SimpleRangeValue&&p[e].argumentType!==r.RANGE&&p[e].argumentType!==r.ANY&&(m=Math.max(m,t.height()),g=Math.max(g,t.width()))}for(let e=f.length;e<p.length;e++)if(void 0===(null===(s=p[e])||void 0===s?void 0:s.defaultValue)&&!(null===(l=p[e])||void 0===l?void 0:l.optionalArg))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const v=[];for(let e=0;e<m;e++){const s=[];for(let l=0;l<g;l++){let v=void 0;const y=[];for(let o=0;o<p.length;o++){let[s,g]=null!==(u=f[o])&&void 0!==u?u:[void 0,void 0];s instanceof c.SimpleRangeValue&&p[o].argumentType!==r.RANGE&&p[o].argumentType!==r.ANY&&!n.vectorizationForbidden&&t.arraysFlag&&(s=null===(d=s.data[1!==s.height()?e:0])||void 0===d?void 0:d[1!==s.width()?l:0]);const m=null!=s?s:null===(h=p[o])||void 0===h?void 0:h.defaultValue;if(void 0===m)y.push(void 0);else{const e=void 0!==s?this.coerceToType(m,p[o],t):m;void 0!==e?(e instanceof i.CellError&&p[o].argumentType!==r.SCALAR&&(v=null!=v?v:e),y.push(e)):g||(v=null!=v?v:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType))}}const E=null!=v?v:this.returnNumberWrapper(o(...y),n.returnNumberType);if(1===m&&1===g)return E;if(E instanceof c.SimpleRangeValue)throw"Function returning array cannot be vectorized.";s.push(E)}v.push(s)}return c.SimpleRangeValue.onlyValues(v)},this.runFunctionWithReferenceArgument=(e,t,n,r,l,u=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(l(c),n.returnNumberType):this.runFunction(e,t,n,u)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(l.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(u.isExtendedNumber)(n)){o=n;break}const s=Object(u.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(l.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(l.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(l.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(u.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(u.getRawValue)(o)}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(u.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(u.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return l})),n.d(t,"InvalidArgumentsError",(function(){return u})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return P})),n.d(t,"AliasAlreadyExisting",(function(){return x}));
|
31
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=635)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(269),o=n(93),i=n(691);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(421);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,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(88),o=n(167),i=n(173),a=n(106),s=n(71).f,l=n(266),u=n(268),c=n(121),d=n(57),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(270).charAt,o=n(62),i=n(106),a=n(266),s=n(268),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(4),s=n(126),l=n(47),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(692)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(743),s=n(422),l=n(61),u=n(56),c=n(123),d=n(29),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!g)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),v=i(e,d,t);return u(v)?v:d}})},function(e,t,n){var r=n(566);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(33);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(26)),i=r(n(14));n(147),n(31),n(41),n(1),n(23);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(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 c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(48),n(5),n(20),n(22),n(39),n(35),n(1),n(31),n(41),n(4),n(52),n(6),n(51),n(726)},function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(29),i=n(88),a=n(116).f,s=n(57),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&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.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,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 r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,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.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(t);return e.scrollTop},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 r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===v&&(v=w(e));return v},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=arguments.length>0&&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.getStyle=function(e,t){var n=arguments.length>2&&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 r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=S,t.isOutsideInput=O,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},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.selectElementIfAllowed=function(e){O(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(419),n(31),n(41),n(39),n(22),n(35),n(1),n(148),n(51),n(98),n(83),n(149),n(82),n(20),n(23);var i,a,s,l=n(107),u=n(94),c=n(84);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var p=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)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}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)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function w(){var e=arguments.length>0&&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 r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return u})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(111),a=n(34),s=n(42),l=n(70);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const u=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof l.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=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_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=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_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var P="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=P;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(790);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(29),i=n(145),a=n(56),s=n(81),l=n(92),u=n(408),c=n(144),d=n(278),h=n(179),f=n(47),p=n(168),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=h("concat"),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],y(i))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(401),o=n(701),i=n(279),a=n(403);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(178),i=n(264).indexOf,a=n(146),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(715),s=n(126),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="0.0.0-next-153a482-20221216",a="invalid",s="invalid",l=function(e){var t=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||l)if(l){var u=(0,h.default)("14/12/2022","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),d=v(E(C(f=e),v("12"),T("F")))/(v(E(C(f),T("B"),~~![][m]))||9);n=(0,h.default)(864e5*(d+1),"x").format("MMMM DD, YYYY"),c>d?(a="expired",s="expired"):(a="valid",s="valid")}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";var f;"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)&&(a="valid",s="valid");if(!R&&"valid"!==a){w[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](w[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(S[s]({keyValidityDate:n,hotVersion:i})){var p=document.createElement("div");p.className="hot-display-license-info",p.innerHTML=S[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(p,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=p,t.stringify=function(e){var t;switch((0,d.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};var o=r(n(64));n(1),n(98),n(728),n(51),n(82),n(424);var i,a,s,l,u,c,d=r(n(14)),h=r(n(95)),f=n(66);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.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."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.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."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.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."])))},non_commercial:function(){return""}},S={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.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>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.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>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.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>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(44),o=n(116).f,i=n(126),a=n(93),s=n(263),l=n(386),u=n(213);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(421);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"ArgumentTypes",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(34),s=n(60),l=n(100),u=n(42),c=n(70);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,o)=>{var s,l,u,d,h;let f,p=n.parameters||[];if(f=n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1]),void 0===n.repeatLastArgs&&p.length<f.length)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);if(void 0!==n.repeatLastArgs&&p.length<f.length&&(f.length-p.length)%n.repeatLastArgs!=0)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(p=[...p];p.length<f.length;)p.push(...p.slice(p.length-n.repeatLastArgs));let g=1,m=1;if(!n.vectorizationForbidden&&t.arraysFlag)for(let e=0;e<f.length;e++){const[t]=f[e];t instanceof c.SimpleRangeValue&&p[e].argumentType!==r.RANGE&&p[e].argumentType!==r.ANY&&(m=Math.max(m,t.height()),g=Math.max(g,t.width()))}for(let e=f.length;e<p.length;e++)if(void 0===(null===(s=p[e])||void 0===s?void 0:s.defaultValue)&&!(null===(l=p[e])||void 0===l?void 0:l.optionalArg))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const v=[];for(let e=0;e<m;e++){const s=[];for(let l=0;l<g;l++){let v=void 0;const y=[];for(let o=0;o<p.length;o++){let[s,g]=null!==(u=f[o])&&void 0!==u?u:[void 0,void 0];s instanceof c.SimpleRangeValue&&p[o].argumentType!==r.RANGE&&p[o].argumentType!==r.ANY&&!n.vectorizationForbidden&&t.arraysFlag&&(s=null===(d=s.data[1!==s.height()?e:0])||void 0===d?void 0:d[1!==s.width()?l:0]);const m=null!=s?s:null===(h=p[o])||void 0===h?void 0:h.defaultValue;if(void 0===m)y.push(void 0);else{const e=void 0!==s?this.coerceToType(m,p[o],t):m;void 0!==e?(e instanceof i.CellError&&p[o].argumentType!==r.SCALAR&&(v=null!=v?v:e),y.push(e)):g||(v=null!=v?v:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType))}}const E=null!=v?v:this.returnNumberWrapper(o(...y),n.returnNumberType);if(1===m&&1===g)return E;if(E instanceof c.SimpleRangeValue)throw"Function returning array cannot be vectorized.";s.push(E)}v.push(s)}return c.SimpleRangeValue.onlyValues(v)},this.runFunctionWithReferenceArgument=(e,t,n,r,l,u=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(l(c),n.returnNumberType):this.runFunction(e,t,n,u)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(l.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(u.isExtendedNumber)(n)){o=n;break}const s=Object(u.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(l.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(l.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(l.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(u.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(u.getRawValue)(o)}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(u.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(u.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return l})),n.d(t,"InvalidArgumentsError",(function(){return u})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return P})),n.d(t,"AliasAlreadyExisting",(function(){return x}));
|
32
32
|
/**
|
33
33
|
* @license
|
34
34
|
* Copyright (c) 2022 Handsoncode. All rights reserved.
|
@@ -854,10 +854,10 @@ function*r(){}function o(e){const t=e[Symbol.iterator](),{done:n,value:o}=t.next
|
|
854
854
|
limitations under the License.
|
855
855
|
|
856
856
|
*/
|
857
|
-
var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,l,u,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function l(i){var l=0,u=0,c=0,d=i*i;if(i<8)l=(u=o(t,d))/(c=o(n,d));else{var h=i-.785398164;u=o(a,d=64/d),c=o(s,d),l=r.sqrt(e/i)*(r.cos(h)*u-r.sin(h)*c*8/i)}return l}var u=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,l=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(u,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(l)*i-r.sin(l)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return l(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,l(t),f(t),-1);else{for(var a=!1,s=0,u=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,u*=1e-10),a&&(u+=c),a=!a,p==n&&(o=s);o/=u=2*u-c}return o}}(),C=(s=.636619772,l=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),u=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(l,a))/(i=o(u,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,l=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(l)*n+r.cos(l)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),l=0,u=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*u+l,l=u,u=c,r.abs(u)>1e10&&(u*=1e-10,l*=1e-10,a*=1e-10),i==n&&(a=l);return a*=e(t,0)/u,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(695);var i=F(n(696));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(837),h=F(n(49)),f=n(76),p=r(n(1075)),g=r(n(302)),m=F(n(285)),v=F(n(13)),y=F(n(94)),E=F(n(133)),T=F(n(606)),C=F(n(107)),R=F(n(58)),w=F(n(24)),S=F(n(36)),O=F(n(12)),b=F(n(84)),A=F(n(108)),N=F(n(16)),M=F(n(75)),I=n(129),_=n(183),k=n(184),P=n(188),x=n(223),L=n(38);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},v.arrayEach((0,P.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,P.getCellType)(e)})),i.default.cellTypes.registerCellType=P.registerCellType,i.default.cellTypes.getCellType=P.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(63),o=n(50),i=n(56),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){var r=n(29),o=n(50),i=n(55),a=n(57),s=n(175).CONFIGURABLE,l=n(385),u=n(106),c=u.enforce,d=u.get,h=Object.defineProperty,f=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&d(this).source||l(this)}),"toString")},function(e,t,n){"use strict";var r=n(388).IteratorPrototype,o=n(123),i=n(174),a=n(214),s=n(173),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(50),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(269),o=n(215);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(44),i=n(30),a=n(271),s=n(176),l=n(216),u=n(397),c=n(56),d=n(391),h=n(106).enforce,f=n(384),p=!o.ActiveXObject&&"ActiveXObject"in o,g=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=l("WeakMap",g,u);if(f&&p){r=u.getConstructor(g,"WeakMap",!0),s.enable();var v=m.prototype,y=i(v.delete),E=i(v.has),T=i(v.get),C=i(v.set);a(v,{delete:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=h(this);n.frozen||(n.frozen=new r),E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}},function(e,t,n){var r=n(29);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(145),o=n(217),i=n(56),a=n(47)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(25),o=n(29),i=n(272).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(697),n(698),n(699),n(700);var o=r(n(400)),i=n(291),a=n(585),s=r(n(59)),l=n(582),u=n(188),c=n(591),d=n(189),h=n(130);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="16/12/2022 11:50:23",f.version="0.0.0-next-e6bff81-20221216",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var p=f;t.default=p},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(402);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(216)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(273),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(57),o=n(145),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(56),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(81),o=n(171),i=n(92);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(81),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(177),o=n(63),i=n(81),a=n(714),s=n(393),l=n(217),u=n(92),c=n(144),d=n(394),h=n(275),f=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=u(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(61),o=n(395);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(127).forEach,o=n(146)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(25),o=n(44),i=n(415).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t,n){var r=n(25),o=n(44),i=n(415).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(719),n(721)},function(e,t,n){var r=n(25),o=n(44),i=n(417).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(25),o=n(44),i=n(417).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},function(e,t,n){"use strict";n(216)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(71).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(175).PROPER,o=n(29),i=n(411);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(128),o=n(63),i=n(30),a=n(219),s=n(61),l=n(97),u=n(283),c=n(80),d=n(727),h=n(281),f=n(125),p=n(62),g=n(124),m=n(273),v=n(220),y=n(218),E=n(280),T=n(29),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((l=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=l,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new u(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((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]})),C)},function(e,t,n){var r=n(61),o=n(422),i=n(97),a=n(47)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,t,n){"use strict";var r=n(25),o=n(270).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(125),i=n(62),a=n(425),s=n(80),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=l(g,c((a=f-p)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":426,"./af.js":426,"./ar":427,"./ar-dz":428,"./ar-dz.js":428,"./ar-kw":429,"./ar-kw.js":429,"./ar-ly":430,"./ar-ly.js":430,"./ar-ma":431,"./ar-ma.js":431,"./ar-sa":432,"./ar-sa.js":432,"./ar-tn":433,"./ar-tn.js":433,"./ar.js":427,"./az":434,"./az.js":434,"./be":435,"./be.js":435,"./bg":436,"./bg.js":436,"./bm":437,"./bm.js":437,"./bn":438,"./bn-bd":439,"./bn-bd.js":439,"./bn.js":438,"./bo":440,"./bo.js":440,"./br":441,"./br.js":441,"./bs":442,"./bs.js":442,"./ca":443,"./ca.js":443,"./cs":444,"./cs.js":444,"./cv":445,"./cv.js":445,"./cy":446,"./cy.js":446,"./da":447,"./da.js":447,"./de":448,"./de-at":449,"./de-at.js":449,"./de-ch":450,"./de-ch.js":450,"./de.js":448,"./dv":451,"./dv.js":451,"./el":452,"./el.js":452,"./en-au":453,"./en-au.js":453,"./en-ca":454,"./en-ca.js":454,"./en-gb":455,"./en-gb.js":455,"./en-ie":456,"./en-ie.js":456,"./en-il":457,"./en-il.js":457,"./en-in":458,"./en-in.js":458,"./en-nz":459,"./en-nz.js":459,"./en-sg":460,"./en-sg.js":460,"./eo":461,"./eo.js":461,"./es":462,"./es-do":463,"./es-do.js":463,"./es-mx":464,"./es-mx.js":464,"./es-us":465,"./es-us.js":465,"./es.js":462,"./et":466,"./et.js":466,"./eu":467,"./eu.js":467,"./fa":468,"./fa.js":468,"./fi":469,"./fi.js":469,"./fil":470,"./fil.js":470,"./fo":471,"./fo.js":471,"./fr":472,"./fr-ca":473,"./fr-ca.js":473,"./fr-ch":474,"./fr-ch.js":474,"./fr.js":472,"./fy":475,"./fy.js":475,"./ga":476,"./ga.js":476,"./gd":477,"./gd.js":477,"./gl":478,"./gl.js":478,"./gom-deva":479,"./gom-deva.js":479,"./gom-latn":480,"./gom-latn.js":480,"./gu":481,"./gu.js":481,"./he":482,"./he.js":482,"./hi":483,"./hi.js":483,"./hr":484,"./hr.js":484,"./hu":485,"./hu.js":485,"./hy-am":486,"./hy-am.js":486,"./id":487,"./id.js":487,"./is":488,"./is.js":488,"./it":489,"./it-ch":490,"./it-ch.js":490,"./it.js":489,"./ja":491,"./ja.js":491,"./jv":492,"./jv.js":492,"./ka":493,"./ka.js":493,"./kk":494,"./kk.js":494,"./km":495,"./km.js":495,"./kn":496,"./kn.js":496,"./ko":497,"./ko.js":497,"./ku":498,"./ku.js":498,"./ky":499,"./ky.js":499,"./lb":500,"./lb.js":500,"./lo":501,"./lo.js":501,"./lt":502,"./lt.js":502,"./lv":503,"./lv.js":503,"./me":504,"./me.js":504,"./mi":505,"./mi.js":505,"./mk":506,"./mk.js":506,"./ml":507,"./ml.js":507,"./mn":508,"./mn.js":508,"./mr":509,"./mr.js":509,"./ms":510,"./ms-my":511,"./ms-my.js":511,"./ms.js":510,"./mt":512,"./mt.js":512,"./my":513,"./my.js":513,"./nb":514,"./nb.js":514,"./ne":515,"./ne.js":515,"./nl":516,"./nl-be":517,"./nl-be.js":517,"./nl.js":516,"./nn":518,"./nn.js":518,"./oc-lnc":519,"./oc-lnc.js":519,"./pa-in":520,"./pa-in.js":520,"./pl":521,"./pl.js":521,"./pt":522,"./pt-br":523,"./pt-br.js":523,"./pt.js":522,"./ro":524,"./ro.js":524,"./ru":525,"./ru.js":525,"./sd":526,"./sd.js":526,"./se":527,"./se.js":527,"./si":528,"./si.js":528,"./sk":529,"./sk.js":529,"./sl":530,"./sl.js":530,"./sq":531,"./sq.js":531,"./sr":532,"./sr-cyrl":533,"./sr-cyrl.js":533,"./sr.js":532,"./ss":534,"./ss.js":534,"./sv":535,"./sv.js":535,"./sw":536,"./sw.js":536,"./ta":537,"./ta.js":537,"./te":538,"./te.js":538,"./tet":539,"./tet.js":539,"./tg":540,"./tg.js":540,"./th":541,"./th.js":541,"./tk":542,"./tk.js":542,"./tl-ph":543,"./tl-ph.js":543,"./tlh":544,"./tlh.js":544,"./tr":545,"./tr.js":545,"./tzl":546,"./tzl.js":546,"./tzm":547,"./tzm-latn":548,"./tzm-latn.js":548,"./tzm.js":547,"./ug-cn":549,"./ug-cn.js":549,"./uk":550,"./uk.js":550,"./ur":551,"./ur.js":551,"./uz":552,"./uz-latn":553,"./uz-latn.js":553,"./uz.js":552,"./vi":554,"./vi.js":554,"./x-pseudo":555,"./x-pseudo.js":555,"./yo":556,"./yo.js":556,"./zh-cn":557,"./zh-cn.js":557,"./zh-hk":558,"./zh-hk.js":558,"./zh-mo":559,"./zh-mo.js":559,"./zh-tw":560,"./zh-tw.js":560};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=732},function(e,t,n){var r=n(25),o=n(734);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(128),o=n(88),i=n(115),a=n(92),s=n(146),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(141),o=n(81),i=n(165),a=n(92),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(32)),i=r(n(21));n(4),n(40),n(1),n(5),n(6),n(65),n(89);var a=n(36),s=n(58),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(26)),u=r(n(78)),c=r(n(79));n(4),n(1),n(5),n(7),n(6),n(72),n(73);var d=n(16),h=r(n(49)),f=n(75),p=r(n(130)),g=n(575),m=n(291);function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{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,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{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=y.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.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 e=this,t=y.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,T,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,E,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,p,g,f),e.instance.runHooks("afterRenderer",r,s,l,p,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],p=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.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 y.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",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 r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,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))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((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 t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(742)),s=r(n(289)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(567)),d=r(n(744)),h=r(n(772)),f=r(n(773)),p=r(n(774)),g=r(n(289)),m=n(12),v=n(16);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new p.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=E},function(e,t,n){"use strict";var r=n(30),o=n(141),i=n(56),a=n(55),s=n(180),l=n(166),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(1),n(23),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(26)),l=n(16),u=n(107),c=n(13),d=n(108),h=n(94),f=n(131),p=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),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.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=p.scrollX,this.lastScrollY=p.scrollY}return(0,a.default)(e,[{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);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,d.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=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{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.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),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.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=p},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(747)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{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))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{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))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(226);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{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,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(752)),s=n(570),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.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 r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.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";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{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}}]),n}(r(n(569)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(185)),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{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,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"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")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(64)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(74),h=n(66),f=n(226),p=r(n(185));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=!1,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!m&&e>1e3&&(m=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number 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\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=n(226);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.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,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(185)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,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=r}return(0,i.default)(e,[{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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{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 r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.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.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(26)),d=r(n(567));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(289)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),u.top+c-f<=h){l=p;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=Math.abs((0,s.getScrollLeft)(i,i));if(l.left>u)for(var c=(0,s.innerWidth)(i),d=r.getRowHeaderWidth(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.left+d-u>=c){a=h-2;break}}return a}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(765)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.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.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(p.Overlay);t.BottomOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(767)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":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(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(572)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(769)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(p.Overlay);t.TopInlineStartCornerOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(771)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(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.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(574);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,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,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=r(n(151)),d=r(n(572)),h=r(n(290)),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=n(12),l=n(775),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var p=n.getSetting("stretchH");return"none"!==p&&p?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.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,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.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 t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.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 t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;s<0&&(s=0);var u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN,o<0&&(o=0);var i=t.getSetting("fixedColumnsStart");if(i){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:Math.abs(o),totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow;if(null===t&&null===n)return!1;var r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn;if(null===t&&null===n)return!1;var r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(23),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(563));t.ViewportColumnsCalculator=i.default;var a=r(n(564));t.ViewportRowsCalculator=a.default;var s=n(286);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(20),n(1),n(23),n(777);var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(16),u=r(n(779)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.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=this.settings.createCellRange(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.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,l.addClass)(O,S)}y+=1}}if(null!==a&&null!==u)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=u){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var P=[],x=I[k];h&&P.push(h),p&&P.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:u-a+1,classNames:P});L!==M&&(x=e.wtTable.getRowHeader(L,k)),(0,l.addClass)(x,P)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=u&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=u?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(25),o=n(778).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(57),o=n(30),i=n(170),a=n(88),s=o(n(211).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,d=0,h=[];c>d;)n=u[d++],r&&!s(o,n)||l(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(16),l=n(75),u=n(12),c=n(94),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){var r=e.main.childNodes[t];e.eventManager.addEventListener(r,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.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,c.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 e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={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,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{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,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),p=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-p/4*3,10),"px"),u[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,l=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,P=this.wot.wtSettings.getSetting("rtlMode"),x=0,L=0;if(P){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,x=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,x=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],x=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,l,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[P?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,L=L>0?L-1:0);var K=P?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(x+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+L+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?b.getBoundingClientRect().left:b.offsetLeft;(P?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[P?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,x,L,B)}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,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=l(t,m-r),g=l(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+u(g)-v[f]),[p,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(25),o=n(44),i=n(63),a=n(30),s=n(121),l=n(57),u=n(140),c=n(29),d=n(55),h=n(114),f=n(61),p=n(88),g=n(209),m=n(62),v=n(174),y=n(123),E=n(170),T=n(143),C=n(272),R=n(212),w=n(116),S=n(71),O=n(378),b=n(211),A=n(93),N=n(139),M=n(210),I=n(172),_=n(207),k=n(47),P=n(576),x=n(577),L=n(782),D=n(214),F=n(106),U=n(127).forEach,H=M("hidden"),V=F.set,j=F.getterFor("Symbol"),B=Object.prototype,W=o.Symbol,Y=W&&W.prototype,G=o.TypeError,z=o.QObject,K=w.f,X=S.f,q=C.f,$=b.f,Q=a([].push),Z=N("symbols"),J=N("op-symbols"),ee=N("wks"),te=!z||!z.prototype||!z.prototype.findChild,ne=l&&c((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(B,t);r&&delete B[t],X(e,t,n),r&&e!==B&&X(B,t,r)}:X,re=function(e,t){var n=Z[e]=y(Y);return V(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===B&&oe(J,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,H)||X(e,H,v(1,{})),e[H][r]=!0),ne(e,r,n)):X(e,r,n)},ie=function(e,t){f(e);var n=p(t),r=E(n).concat(ue(n));return U(r,(function(t){l&&!i(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=g(e),n=i($,this,t);return!(this===B&&d(Z,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,H)&&this[H][t])||n)},se=function(e,t){var n=p(e),r=g(t);if(n!==B||!d(Z,r)||d(J,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},le=function(e){var t=q(p(e)),n=[];return U(t,(function(e){d(Z,e)||d(I,e)||Q(n,e)})),n},ue=function(e){var t=e===B,n=q(t?J:p(e)),r=[];return U(n,(function(e){!d(Z,e)||t&&!d(B,e)||Q(r,Z[e])})),r};u||(A(Y=(W=function(){if(h(Y,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=_(e),n=function(e){this===B&&i(n,J,e),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),ne(this,t,v(1,e))};return l&&te&&ne(B,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return j(this).tag})),A(W,"withoutSetter",(function(e){return re(_(e),e)})),b.f=ae,S.f=oe,O.f=ie,w.f=se,T.f=C.f=le,R.f=ue,P.f=function(e){return re(k(e),e)},l&&(X(Y,"description",{configurable:!0,get:function(){return j(this).description}}),s||A(B,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(ee),(function(e){x(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ie(y(e),t)},defineProperty:oe,defineProperties:ie,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le}),L(),D(W,"Symbol"),I[H]=!0},function(e,t,n){var r=n(44);e.exports=r},function(e,t,n){var r=n(63),o=n(101),i=n(47),a=n(93);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(25),o=n(101),i=n(55),a=n(62),s=n(139),l=n(578),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(25),o=n(55),i=n(169),a=n(142),s=n(139),l=n(578),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(63),s=n(30),l=n(29),u=n(145),c=n(50),d=n(56),h=n(169),f=n(180),p=n(140),g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=f(arguments),r=t;if((d(t)||void 0!==e)&&!h(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!h(t))return t}),n[1]=t,i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=f(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(25),o=n(140),i=n(29),a=n(212),s=n(81);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73),n(1),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(133),l=n(13),u=n(36),c=n(58),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(32)),i=r(n(64)),a=r(n(2)),s=r(n(3));n(4),n(1),n(52),n(5),n(6),n(40),n(48),n(222),n(181),n(65),n(35),n(22),n(31),n(41),n(147);var l,u=n(13),c=n(66),d=n(74),h=n(579),f=n(794),p=r(n(86)),g=n(12),m=n(24),v=n(796),y=new Set(["getFirstNotHiddenIndex"]),E=function(){function e(){var t=this;(0,a.default)(this,e),this.indexesSequence=new h.IndexesSequence,this.trimmingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new f.MapCollection,this.hidingChangesObservable=new v.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,s.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,h.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof h.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof h.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t;y.has("getFirstNotHiddenIndex")&&(y.delete("getFirstNotHiddenIndex"),(0,d.warn)((0,c.toSingleLine)(l||(l=(0,i.default)(['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next \n major release. Please use "getNearestNotHiddenIndex" instead.'],['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next\\x20\n major release. Please use "getNearestNotHiddenIndex" instead.'])))));var o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesSequence.init(e),this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,u.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,h.getListWithRemovedItems)(this.getIndexesSequence(),r),s=o-i;if(t+i<o){var l=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(l)}this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r))}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,m.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,u.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesSequence.insert(o,i),this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesSequence.remove(e),this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}();t.IndexMapper=E,(0,g.mixin)(E,p.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(20),n(65),n(4),n(1),n(6),n(31),n(41),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=n(227),p=n(293),g=n(228),m=n(580),v=n(58);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var E=function(e){(0,u.default)(n,e);var t=y(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,v.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(227),d=n(228),h=n(581);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(23),n(43),t.__esModule=!0;var r=n(795);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(294);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(294),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(52),n(5),n(6),n(147),n(23),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(797),u=n(798);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,p,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,p)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(79)),s=r(n(78)),l=n(12),u=r(n(86));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(102)),i=r(n(800)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(72),n(73)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(26)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=(i={languageCode:"en-US"},(0,a.default)(i,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,["Copy with header","Copy with headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,["Copy with group header","Copy with group headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,["Copy header only","Copy headers only"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(i,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(i,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(i,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(i,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(i,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(i,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(i,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(i,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(i,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(i,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(i,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(i,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(i,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(i,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(i,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),i);t.default=u},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return m(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(26)),i=r(n(102)),a=n(103),s=r(n(803)),l=r(n(805)),u=r(n(806)),c=r(n(807)),d=r(n(808)),h=r(n(811));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p=(0,i.default)("highlight/types"),g=p.register,m=p.getItem;g(a.ACTIVE_HEADER_TYPE,s.default),g(a.AREA_TYPE,l.default),g(a.CELL_TYPE,u.default),g(a.CUSTOM_SELECTION_TYPE,c.default),g(a.FILL_TYPE,d.default),g(a.HEADER_TYPE,h.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["activeHeaderClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,l);return new s.default(c(c({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=d},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["layerLevel","areaCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,l);return new s.default(c(c({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["cellCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,l);return new s.default(c(c({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["border","visualCellRange"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,l);return new s.default(c(c(c({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(297);var o=r(n(26)),i=r(n(810)),a=n(103),s=r(n(153));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=Object.assign({},((0,i.default)(e),e));return new s.default(u(u({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:a.FILL_TYPE}))};t.default=c},function(e,t,n){"use strict";var r=n(57),o=n(30),i=n(63),a=n(29),s=n(170),l=n(212),u=n(211),c=n(81),d=n(165),h=Object.assign,f=Object.defineProperty,p=o([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||"abcdefghijklmnopqrst"!=s(h({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,h=l.f,f=u.f;o>a;)for(var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,E=0;y>E;)g=v[E++],r&&!i(f,m,g)||(n[g]=m[g]);return n}:h},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["headerClassName","rowClassName","columnClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,l);return new s.default(c(c({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(4),n(1),n(52),n(5),n(6),n(20),n(48),n(31),n(41),n(72),n(73),n(23);var a,s=r(n(2)),l=r(n(3)),u=r(n(584)),c=n(103),d=r(n(813)),h=n(12),f=n(24),p=n(13),g=r(n(86)),m=r(n(814)),v=n(229),y=n(66),E=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new d.default((function(e,t,n){return r.tableProps.createCellRange(e,t,n)})),this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disabledCellSelection:function(e,t){return r.tableProps.isDisabledCellSelection(e,t)},cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},createCellRange:function(e,t,n){return r.tableProps.createCellRange(e,t,n)},rowIndexMapper:function(){return r.tableProps.rowIndexMapper()},columnIndexMapper:function(){return r.tableProps.columnIndexMapper()}}),this.transformation=new m.default(this.selectedRange,{countRows:function(){return r.tableProps.countRowsTranslated()},countCols:function(){return r.tableProps.countColsTranslated()},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}return(0,l.default)(e,[{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){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=(0,f.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,i=e.row<0,a=e.col<0,s=i&&a,l=e.clone();this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),l),(!r||r&&!o&&(0,f.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(l),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){var t=e.clone();this.runLocalHooks("beforeSetRangeEnd",t),this.begin();var n=this.selectedRange.current();"single"!==this.settings.selectionMode&&n.setTo(this.tableProps.createCellCoords(t.row,t.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,n.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().syncWith(n);var r=this.getLayerLevel();r<this.highlight.layerLevel&&((0,p.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(r);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),a=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),a.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,n.highlight)&&(this.isMultiple()||r>=1)&&(o.add(n.from).add(n.to).commit(),1===r)){var s=this.selectedRange.previous();this.highlight.useLayerLevel(r-1).createOrGetArea().add(s.from).commit().syncWith(s),this.highlight.useLayerLevel(r)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,n.highlight)){var l=0===this.tableProps.countRowsTranslated(),u=0===this.tableProps.countColsTranslated(),d=n;if((l||u)&&(d=n.clone()),l&&(d.from.row=-1),u&&(d.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&d.from.normalize(),i.add(d.from).commit()):i.add(d.from).add(d.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===n.getWidth()&&a.add(this.tableProps.createCellCoords(n.from.row,-1)).add(this.tableProps.createCellCoords(n.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===n.getHeight()&&a.add(this.tableProps.createCellCoords(-1,n.from.col)).add(this.tableProps.createCellCoords(-1,n.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,h.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=this.tableProps.createCellCoords(t?-1:0,e?-1:0),i=this.tableProps.createCellCoords(n-1,r-1);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(i),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,v.detectSelectionType)(e);if(n===v.SELECTION_TYPE_EMPTY)return!1;if(n===v.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,y.toSingleLine)(a||(a=(0,i.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, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."]))));var r=(0,v.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),l=this.tableProps.countCols(),u=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],u=n[2],c=n[3];return!((0,v.isValidCoord)(i,s)&&(0,v.isValidCoord)(a,l)&&(0,v.isValidCoord)(u,s)&&(0,v.isValidCoord)(c,l))}));return u&&(this.clear(),(0,p.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],l=i[2],u=i[3];t.setRangeStartOnly(t.tableProps.createCellCoords(a,s),!1),t.setRangeEnd(t.tableProps.createCellCoords(l,u)),t.finish()}))),u}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countCols(),a=this.tableProps.countRows(),s=(0,v.isValidCoord)(r,i)&&(0,v.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(this.tableProps.createCellCoords(n,r)),this.setRangeEnd(this.tableProps.createCellCoords(a-1,o)),this.finish()),s}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=(0,v.isValidCoord)(e,r)&&(0,v.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(this.tableProps.createCellCoords(e,n)),this.setRangeEnd(this.tableProps.createCellCoords(t,o-1)),this.finish()),i}},{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach((function(e){e.commit()})),this.isSelected()){var e=this.highlight.getCell(),t=this.getLayerLevel();e.commit().syncWith(this.selectedRange.current());for(var n=0;n<this.selectedRange.size();n+=1){this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.commit(),o.commit(),i.commit()}this.highlight.useLayerLevel(t)}}}]),e}();(0,h.mixin)(E,g.default);var T=E;t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(31),n(41),n(296),n(4),n(5),n(6),n(54),n(186);var o=r(n(2)),i=r(n(3)),a=function(e){function t(e){(0,o.default)(this,t),this.ranges=[],this.createCellRange=e}return(0,i.default)(t,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(this.createCellRange(e)),this}},{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:e,value:function(){return this.ranges[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=r(n(86)),l=function(){function e(t,n){(0,o.default)(this,e),this.range=t,this.options=n}return(0,i.default)(e,[{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.options.createCellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),a=i.row,s=i.col,l=o,u=0,c=0;if(this.runLocalHooks("beforeTransformStart",r),null!==a&&null!==s){var d=this.options.countRows(),h=this.options.countCols(),f=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),g=this.options.minSpareCols(),m=this.options.autoWrapRow(),v=this.options.autoWrapCol();a+e>d-1?n&&p>0&&!(f&&a>=d-f-1)?(this.runLocalHooks("insertRowRequire",d),d=this.options.countRows()):v&&(r.row=1-d,r.col=s+r.col===h-1?1-h:1):v&&a+r.row<0&&s+r.col>=0&&(r.row=d-1,r.col=s+r.col===0?h-1:-1),s+r.col>h-1?n&&g>0?(this.runLocalHooks("insertColRequire",h),h=this.options.countCols()):m&&(r.row=a+r.row===d-1?1-d:1,r.col=1-h):m&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?d-1:-1,r.col=h-1);var y=this.options.createCellCoords(a+r.row,s+r.col);u=0,c=0,y.row<0?(u=-1,y.row=0):y.row>0&&y.row>=d&&(u=1,y.row=d-1),y.col<0?(c=-1,y.col=0):y.col>0&&y.col>=h&&(c=1,y.col=h-1),l=this.options.renderableToVisualCoords(y)}return this.runLocalHooks("afterTransformStart",l,u,c),l}},{key:"transformEnd",value:function(e,t){var n=this.options.createCellCoords(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),l=s.row,u=s.col;if(null!==l&&null!==u){var c=this.options.countRows(),d=this.options.countCols(),h=this.options.visualToRenderableCoords(r.to),f=h.row,p=h.col,g=this.options.createCellCoords(f+n.row,p+n.col);i=0,a=0,g.row<0?(i=-1,g.row=0):g.row>0&&g.row>=c&&(i=1,g.row=c-1),g.col<0?(a=-1,g.col=0):g.col>0&&g.col>=d&&(a=1,g.col=d-1),o=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();(0,a.mixin)(l,s.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.parse=function(e){var t=[[""]];if(0===e.length)return t;var n,a=0,s=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(i))e=e.replace(i,""),a+=1,t[s][a]="";else if(e.match(r))e=e.replace(r,""),a=0,t[s+=1]=[""];else{var l="";if(e.startsWith('"')){for(var u=0,c=!0;c;){var d=e.slice(0,1);'"'===d&&(u+=1),l+=d,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&u%2==0)&&(c=!1)}l=l.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var h=e.match(o);l=h?h[0]:"",e=e.slice(l.length)}t[s][a]=l}return t},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'.concat(i.replace(/"/g,'""'),'"'):a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a},n(51),n(561),n(82),n(230),n(39),n(83),n(147),n(22);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(23);var o=r(n(2)),i=r(n(3)),a=r(n(817)),s=r(n(818)),l=r(n(819)),u=r(n(820)),c=r(n(86)),d=n(12),h=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,o.default)(this,e),this.hot=t,this.globalMeta=new a.default(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new l.default(this.globalMeta),this.cellMeta=new u.default(this.columnMeta),i.forEach((function(e){return new e(n)})),this.globalMeta.updateMeta(r)}return(0,i.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){var r=n.visualRow,o=n.visualColumn,i=this.cellMeta.getMeta(e,t);return i.visualRow=r,i.visualCol=o,i.row=e,i.col=t,this.runLocalHooks("afterGetCellMeta",i),i}},{key:"getCellMetaKeyValue",value:function(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();t.default=h,(0,d.mixin)(h,c.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(3)),a=r(n(2)),s=n(12),l=n(187),u=r(n(588));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){function e(t){(0,a.default)(this,e),this.metaCtor=(0,i.default)((function e(){(0,a.default)(this,e)})),this.meta=this.metaCtor.prototype,(0,s.extend)(this.meta,(0,u.default)()),this.meta.instance=t}return(0,i.default)(e,[{key:"getMetaConstructor",value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){var t;(0,s.extend)(this.meta,e),(0,l.extendByMetaType)(this.meta,d(d({},e),{},{type:null!==(t=e.type)&&void 0!==t?t:this.meta.type}),e)}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=function(){function e(t){(0,o.default)(this,e);var n=t.getMetaConstructor();this.meta=new n}return(0,i.default)(e,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,e,e)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=r(n(589)),u=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new l.default((function(){return n._createMeta()}))}return(0,i.default)(e,[{key:"updateMeta",value:function(e,t){var n=this.getMeta(e);(0,a.extend)(n,t),(0,s.extendByMetaType)(n,t)}},{key:"createColumn",value:function(e,t){this.metas.insert(e,t)}},{key:"removeColumn",value:function(e,t){this.metas.remove(e,t)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),u).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(48),n(5),n(4),n(1),n(6),n(40);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(187),u=r(n(589)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new u.default((function(){return n._createRow()}))}return(0,a.default)(e,[{key:"updateMeta",value:function(e,t,n){var r=this.getMeta(e,t);(0,s.extend)(r,n),(0,l.extendByMetaType)(r,n)}},{key:"createRow",value:function(e,t){this.metas.insert(e,t)}},{key:"createColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}},{key:"removeRow",value:function(e,t){this.metas.remove(e,t)}},{key:"removeColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}},{key:"getMeta",value:function(e,t,n){var r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}},{key:"setMeta",value:function(e,t,n,r){var o,i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(n),i[n]=r}},{key:"removeMeta",value:function(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}},{key:"getMetas",value:function(){for(var e=[],t=Array.from(this.metas.values()),n=0;n<t.length;n++)e.push.apply(e,(0,o.default)(t[n].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new u.default((function(t){return e._createMeta(t)}))}},{key:"_createMeta",value:function(e){return new(this.columnMeta.getMetaConstructor(e))}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.replaceData=function(e,t,n,r){var u=r.hotInstance,c=r.dataMap,d=r.dataSource,h=r.internalSource,f=r.source,p=r.metaManager,g=r.firstRun,m=(0,i.toUpperCaseFirst)(h),v=u.getSettings();Array.isArray(v.dataSchema)?u.dataType="array":(0,a.isFunction)(v.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks("before".concat(m),e,g,f);var y=new s.default(u,e,p);if(t(y),"object"===(0,o.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("".concat(h," only accepts array of objects or array of arrays (").concat((0,o.default)(e)," given)"));var E,T=y.getSchema();e=[];var C,R=0;for(R=0,C=v.startRows;R<C;R++)if("object"!==u.dataType&&"function"!==u.dataType||!v.dataSchema)if("array"===u.dataType)E=(0,l.deepClone)(T[0]),e.push(E);else{E=[];for(var w=0,S=v.startCols;w<S;w++)E.push(null);e.push(E)}else E=(0,l.deepClone)(T),e.push(E)}Array.isArray(e[0])&&(u.dataType="array");v.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),n(y),u.runHooks("after".concat(m),e,g,f),g||(u.runHooks("afterChange",null,h),u.render())},n(53),n(20);var o=r(n(14)),i=n(84),a=n(58),s=r(n(586)),l=n(12)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DynamicCellMetaMod=void 0,n(4),n(40),n(1),n(5),n(6),n(52);var o=r(n(2)),i=r(n(3)),a=r(n(59)),s=n(12),l=n(58),u=function(){function e(t){var n=this;(0,o.default)(this,e),this.metaManager=t,this.metaSyncMemo=new Map,t.addLocalHook("afterGetCellMeta",(function(e){return n.extendCellMeta(e)})),a.default.getSingleton().add("beforeRender",(function(e){e&&n.metaSyncMemo.clear()}),this.metaManager.hot)}return(0,i.default)(e,[{key:"extendCellMeta",value:function(e){var t,n=e.row,r=e.col;if(null===(t=this.metaSyncMemo.get(n))||void 0===t||!t.has(r)){var o=e.visualRow,i=e.visualCol,a=this.metaManager.hot,u=a.colToProp(i);e.prop=u,a.runHooks("beforeGetCellMeta",o,i,e);var c,d=(0,s.hasOwnProperty)(e,"type")?e.type:null,h=(0,l.isFunction)(e.cells)?e.cells(n,r,u):null;if(d)if(h)h.type=null!==(c=h.type)&&void 0!==c?c:d;else h={type:d};h&&this.metaManager.updateCellMeta(n,r,h),a.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}}]),e}();t.DynamicCellMetaMod=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ExtendMetaPropertiesMod=void 0,n(4),n(1),n(52),n(5),n(6),n(40),n(23);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.metaManager=t,this.usageTracker=new Set,this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{onChange:function(e,t,n){if(!n)throw new Error("The `".concat(e,"` option can not be updated after the Handsontable is initialized."))}}]]),this.extendMetaProps()}return(0,i.default)(e,[{key:"extendMetaProps",value:function(){var e=this;this.propDescriptors.forEach((function(t,n){var r=t.target,o=t.onChange,i=void 0===o?function(){}:o,a="string"==typeof r,s=a?r:n,l="_".concat(s);e.metaManager.globalMeta.meta[l]=e.metaManager.globalMeta.meta[s],e.installPropWatcher(n,l,i),a&&e.installPropWatcher(r,l,i)}))}},{key:"installPropWatcher",value:function(e,t,n){var r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get:function(){return this[t]},set:function(o){var i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}]),e}();t.ExtendMetaPropertiesMod=a},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(825);t.createShortcutManager=r.createShortcutManager},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(224),o=n(826),i=n(827);t.createShortcutManager=function(e){var t=e.ownerWindow,n=e.handleEvent,a=e.beforeKeyDown,s=e.afterKeyDown,l=(0,r.createUniqueMap)({errorIdExists:function(e){return'The "'.concat(e,'" context name is already registered.')}}),u="grid",c=function(){return u},d=function(e){return l.getItem(e)},h=!1,f=(0,i.useRecorder)(t,n,a,s,(function(e,t){var n=d(c()),r=!1;if(!n.hasShortcut(t))return r;for(var o=n.getShortcuts(t),i=0;i<o.length;i++){var a=o[i],s=a.callback,l=a.runOnlyIf,u=a.preventDefault,f=a.stopPropagation,p=a.captureCtrl;if(!1!==l(e)&&(h=p,r=!1===s(e,t),h=!1,u&&e.preventDefault(),f&&e.stopPropagation(),r))break}return r}));return f.mount(),{addContext:function(e){var t=(0,o.createContext)(e);return l.addItem(e,t),t},getActiveContextName:c,getContext:d,setActiveContextName:function(e){u=e},isCtrlPressed:function(){return!h&&(f.isPressed("control")||f.isPressed("meta"))},destroy:function(){return f.unmount()}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createContext=void 0;var o=r(n(32)),i=r(n(21)),a=r(n(64));n(20),n(4),n(1),n(6),n(23),n(222),n(53),n(35),n(39);var s,l=n(224),u=n(590),c=n(24),d=n(58),h=n(12),f=n(66);t.createContext=function(e){var t=(0,l.createUniqueMap)({errorIdExists:function(t){return'The "'.concat(t,'" shortcut is already registered in the "').concat(e,'" context.')}}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys,r=e.callback,o=e.group,i=e.runOnlyIf,l=void 0===i?function(){return!0}:i,h=e.captureCtrl,p=void 0!==h&&h,g=e.preventDefault,m=void 0===g||g,v=e.stopPropagation,y=void 0!==v&&v,E=e.relativeToGroup,T=e.position;if((0,c.isUndefined)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,d.isFunction)(r))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(n))throw new Error((0,f.toSingleLine)(s||(s=(0,a.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."],["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var C={callback:r,group:o,runOnlyIf:l,captureCtrl:p,preventDefault:m,stopPropagation:y};if((0,c.isDefined)(E)){var R=[E,T];C.relativeToGroup=R[0],C.position=R[1]}n.forEach((function(e){var n=(0,u.normalizeKeys)(e);if(t.hasItem(n)){var r=t.getItem(n),o=r.findIndex((function(e){return e.group===E}));-1!==o?"before"===T?o-=1:o+=1:o=r.length,r.splice(o,0,C)}else t.addItem(n,[C])}))},r=function(e){var n=(0,u.normalizeKeys)(e);t.removeItem(n)};return{addShortcut:n,addShortcuts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){(0,h.objectEach)(t,(function(n,r){!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:function(e){var n=(0,u.normalizeKeys)(e),r=t.getItem(n);return(0,c.isDefined)(r)?r.slice():[]},hasShortcut:function(e){var n=(0,u.normalizeKeys)(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:function(e){t.getItems().forEach((function(t){var n=(0,i.default)(t,2),a=n[0],s=n[1],l=s.filter((function(t){return t.group!==e}));0===l.length?r((0,u.getKeysList)(a)):(s.length=0,s.push.apply(s,(0,o.default)(l)))}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r,c){var d=function(e){return l.includes(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=function(e){if(!1!==t(e)){var a=n(e);if(229!==e.keyCode&&!1!==a&&!(0,i.isImmediatePropagationStopped)(e)){var l=(0,o.normalizeEventKey)(e.key),f=[];d(l)?u.press(l):f=h(e);var p=[l].concat(f);!c(e,p)&&((0,s.isMacOS)()&&f.includes("meta")||!(0,s.isMacOS)()&&f.includes("control"))&&c(e,[l].concat(h(e,!0))),r(e)}}},p=function(e){if(!1!==t(e)){var n=(0,o.normalizeEventKey)(e.key);!1!==d(n)&&u.release(n)}},g=function(){u.releaseAll()};return{mount:function(){for(var t=e;t;)t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("keyup",p),t.document.documentElement.addEventListener("blur",g),t=(0,a.getParentWindow)(t)},unmount:function(){for(var t=e;t;)t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("keyup",p),t.document.documentElement.removeEventListener("blur",g),t=(0,a.getParentWindow)(t)},isPressed:function(e){return u.isPressed(e)}}},n(31),n(20),n(41);var r=n(828),o=n(590),i=n(75),a=n(16),s=n(94),l=["meta","alt","shift","control"],u=(0,r.createKeysObserver)()},function(e,t,n){"use strict";t.__esModule=!0,t.createKeysObserver=function(){var e=new Set;return{press:function(t){e.add(t)},release:function(t){e.delete(t)},releaseAll:function(){e.clear()},isPressed:function(t){return e.has(t)}}},n(4),n(1),n(52),n(5),n(6)},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(134),o=n(135);t.CELL_TYPE="text";var i={CELL_TYPE:"text",editor:r.TextEditor,renderer:o.textRenderer};t.TextCellType=i},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(189),f=r(n(49)),p=n(94),g=n(16),m=n(36),v=n(108),y=n(832),E=n(24),T=n(182),C=n(592),R=n(834);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.EDITOR_TYPE="text";var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).eventManager=new f.default((0,s.default)(r)),r.autoResize=(0,y.autoResize)(),r.TEXTAREA=void 0,r.textareaStyle=void 0,r.TEXTAREA_PARENT=void 0,r.textareaParentStyle=void 0,r.layerClass=void 0,r.createElements(),r.bindEvents(),r.hot.addHookOnce("afterDestroy",(function(){return r.destroy()})),r}return(0,a.default)(n,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.addHook("afterDocumentKeyDown",(function(t){return e.onAfterDocumentKeyDown(t)})),this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts(),this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var s=this.state;if((0,l.default)((0,d.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,c=a.fragmentSelection;u&&(this.TEXTAREA.value=""),s!==h.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!c&&!(0,p.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===h.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,l.default)((0,d.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,g.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.tabIndex=-1,(0,g.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,g.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,g.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){((0,p.isIE)()||(0,p.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,m.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,g.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,g.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,g.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===h.EDITOR_STATE.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t=this.getEditedCellRect(),n=t.top,r=t.start,o=t.width,i=t.maxWidth,a=t.height,s=t.maxHeight;this.textareaParentStyle.top="".concat(n,"px"),this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(r,"px"),this.showEditableElement();var l=(0,g.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;var u=(0,g.getComputedStyle)(this.TEXTAREA),c=parseInt(u.paddingLeft,10)+parseInt(u.paddingRight,10),d=parseInt(u.paddingTop,10)+parseInt(u.paddingBottom,10),f=o-c,p=a-d,m=i-c,v=s-d;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(f,m),minHeight:Math.min(p,v),maxWidth:m,maxHeight:v},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),(0,p.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(function(){return e.finishEditing(!1)})),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:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={runOnlyIf:function(){return(0,E.isDefined)(e.hot.getSelected())},group:"textEditor"},r=function(){e.hot.rootDocument.execCommand("insertText",!1,"\n")};t.addShortcuts([{keys:[["Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(r.row,r.col,!0)}},{keys:[["Shift","Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(-r.row,-r.col)}},{keys:[["Control","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(t){return!e.hot.selection.isMultiple()&&!t.altKey},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(){return!e.hot.selection.isMultiple()},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return r(),!1},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){e.hot.selection.transformStart(-e.hot.countVisibleRows(),0)}},{keys:[["PageDown"]],callback:function(){e.hot.selection.transformStart(e.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["End"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}}],n)}},{key:"unregisterShortcuts",value:function(){var e=this.hot.getShortcutManager().getContext("editor");e.removeShortcutsByGroup(T.SHORTCUTS_GROUP_NAVIGATION),e.removeShortcutsByGroup("textEditor"),e.removeShortcutsByGroup(C.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(e){-1===[v.KEY_CODES.ARROW_UP,v.KEY_CODES.ARROW_RIGHT,v.KEY_CODES.ARROW_DOWN,v.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),n}(h.BaseEditor);t.TextEditor=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(13),o=n(12),i={_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(e){var t=this;(0,r.arrayEach)(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;(0,o.objectEach)(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};(0,o.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(833);t.autoResize=r.autoResize},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.position="absolute",o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}},n(51),n(67)},function(e,t,n){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){for(var n=(0,r.getCaretPosition)(t),o=t.value.split("\n"),i=n,a=0,s=0;s<o.length;s++){var l=o[s];0!==s&&(a+=o[s-1].length+1);var u=a+l.length;if("home"===e?i=a:"end"===e&&(i=u),n<=u)break}(0,r.setCaretPosition)(t,i)};var r=n(16)},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.textRenderer=a,n(149);var r=n(231),o=n(16),i=n(24);function a(e,t,n,a,s,l,u){r.baseRenderer.apply(this,[e,t,n,a,s,l,u]);var c=l;if(!c&&u.placeholder&&(c=u.placeholder),c=(0,i.stringify)(c),u.trimWhitespace&&(c=c.trim()),u.rendererTemplate){(0,o.empty)(t);var d=e.rootDocument.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.baseRenderer=o;var r=n(16);function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,o.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,a.registerAllCellTypes)(),(0,s.registerAllPlugins)()};var r=n(838);t.registerAllEditors=r.registerAllEditors;var o=n(851);t.registerAllRenderers=o.registerAllRenderers;var i=n(860);t.registerAllValidators=i.registerAllValidators;var a=n(866);t.registerAllCellTypes=a.registerAllCellTypes;var s=n(883);t.registerAllPlugins=s.registerAllPlugins},function(e,t,n){"use strict";t.__esModule=!0,t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=void 0,t.registerAllEditors=function(){(0,p.registerEditor)(o.BaseEditor),(0,p.registerEditor)(r.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(a.DateEditor),(0,p.registerEditor)(s.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(u.NumericEditor),(0,p.registerEditor)(c.PasswordEditor),(0,p.registerEditor)(d.SelectEditor),(0,p.registerEditor)(h.TextEditor),(0,p.registerEditor)(f.TimeEditor)};var r=n(298);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(189);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(593);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(300);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(594);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var l=n(299);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var u=n(595);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var c=n(596);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var d=n(848);t.SelectEditor=d.SelectEditor,t.SELECT_EDITOR=d.EDITOR_TYPE;var h=n(134);t.TextEditor=h.TextEditor,t.TEXT_EDITOR=h.EDITOR_TYPE;var f=n(597);t.TimeEditor=f.TimeEditor,t.TIME_EDITOR=f.EDITOR_TYPE;var p=n(129);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26));n(4),n(1),n(5),n(7),n(6),n(22),n(89),n(225),n(51),n(82),n(35);var h=n(299),f=n(13),p=n(16),g=n(24),m=n(84),v=n(108),y=n(135);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var T=new WeakMap;t.EDITOR_TYPE="autocomplete";var C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,d.default)((0,a.default)(r),"sortByRelevance",(function(e,t,n){var r,o,i,a,s=[],l=[],u=e.length,c=t.length;if(0===u){for(i=0;i<c;i++)l.push(i);return l}for(i=0;i<c;i++){if(o=(0,m.stripTags)((0,g.stringify)(t[i])),n)a=o.indexOf(e);else{var d=this.cellProperties.locale;a=o.toLocaleLowerCase(d).indexOf(e.toLocaleLowerCase(d))}-1!==a&&(r=o.length-a-u,s.push({baseIndex:i,index:a,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})),i=0,c=s.length;i<c;i++)l.push(s[i].baseIndex);return l})),r.query=null,r.strippedChoices=[],r.rawChoices=[],T.set((0,a.default)(r),{skipOne:!1,isMacOS:r.hot.rootWindow.navigator.platform.indexOf("Mac")>-1}),r}return(0,i.default)(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return(0,g.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.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 e=this,t=T.get(this);(0,s.default)((0,c.default)(n.prototype),"open",this).call(this);var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=(0,p.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)})),r.updateSettings({colWidths:o?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,p.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,y.textRenderer)(t,n,r,o,i,a,s);var l,u,c=e.cellProperties,d=c.filteringCaseSensitive,h=c.allowHtml,f=c.locale,p=e.query,m=(0,g.stringify)(a);m&&!h&&-1!==(l=!0===d?m.indexOf(p):m.toLocaleLowerCase(f).indexOf(p.toLocaleLowerCase(f)))&&(u=m.substr(l,p.length),m=m.replace(u,"<strong>".concat(u,"</strong>"))),n.innerHTML=m},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,s.default)((0,c.default)(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,s.default)((0,c.default)(n.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),r=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=null,a=null,s=e;r&&(i=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(i)?i.length:0;if(!1===o)l&&(a=i[0]);else{for(var u=[],c=0,d=s.length;c<d&&!(r&&l<=c);c++)l?u.push(s[i[c]]):u.push(s[c]);a=0,s=u}this.strippedChoices=s,this.htEditor.loadData((0,f.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,n=this.cellProperties.preventOverflow;if(t||!t&&(n||"horizontal"===n))return!1;var r=(0,p.offset)(this.TEXTAREA),o=(0,p.outerHeight)(this.TEXTAREA),i=this.getDropdownHeight(),a=e.scrollTop,s=(0,p.outerHeight)(this.hot.view._wt.wtTable.THEAD),l=(0,p.offset)(e),u=r.top-l.top-s+a,c=e.scrollHeight-u-s-o,d=i>c&&u>c;return d?this.flipDropdown(i):this.unflipDropdown(),this.limitDropdownIfNeeded(d?u:c,i),d}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view._wt.getSetting("defaultRowHeight"),o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{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;e.position="absolute",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,f.arrayMap)(e,(function(e){return(0,g.stringify)(e)}));return(0,f.arrayMap)(n,(function(e){return t?e:(0,m.stripTags)(e)}))}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===v.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===v.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,n=T.get(this);if(n.skipOne=!1,(0,v.isPrintableChar)(e.keyCode)||e.keyCode===v.KEY_CODES.BACKSPACE||e.keyCode===v.KEY_CODES.DELETE||e.keyCode===v.KEY_CODES.INSERT){var r=10;if(e.keyCode===v.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(r+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0}),r)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(h.HandsontableEditor);t.AutocompleteEditor=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16),h=n(75),f=n(12),p=n(182);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="handsontable";var m=function(e){(0,s.default)(n,e);var t=g(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"open",value:function(){(0,a.default)((0,u.default)(n.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,d.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var l=this,c={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&&l.setValue(n),l.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,f.extend)(c,s.handsontable),this.htOptions=c}},{key:"beginEditing",value:function(e,t){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||(0,a.default)((0,u.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.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,r){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)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor");(0,a.default)((0,u.default)(n.prototype),"registerShortcuts",this).call(this);var r={group:"handsontableEditor",relativeToGroup:p.SHORTCUTS_GROUP_NAVIGATION,position:"before"},o=function(t,n){var r=e.htEditor.getInstance();if(void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length))return n.preventDefault(),(0,h.stopImmediatePropagation)(n),e.hot.listen(),e.TEXTAREA.focus(),!1};t.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var n,r,i=e.htEditor.getInstance();return!i.getSelectedLast()&&i.flipped?n=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(r=i.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=i.getSelectedLast()[0])-1),o(n,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var n,r,i=e.htEditor.getInstance();if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)n=i.getSelectedLast()[0]+1;else if(!i.flipped){var a=i.countRows()-1;r=i.getSelectedLast()[0],n=Math.min(a,r+1)}}else n=0;return o(n,t)},preventDefault:!1}],r)}},{key:"unregisterShortcuts",value:function(){(0,a.default)((0,u.default)(n.prototype),"unregisterShortcuts",this).call(this),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(189),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{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(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),n}(u.BaseEditor);t.CheckboxEditor=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(95)),d=r(n(843)),h=n(134),f=r(n(49)),p=n(16),g=n(12),m=n(108);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(844);t.EDITOR_TYPE="date";var y=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).defaultDateFormat="DD/MM/YYYY",r.isCellEdited=!1,r.parentDestroyed=!1,r.$datePicker=null,r}return(0,i.default)(n,[{key:"init",value:function(){var e=this;if("function"!=typeof c.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,a.default)((0,u.default)(n.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.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,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,p.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),new f.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()}))}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.hot.getShortcutManager(),r=t.getContext("editor");(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.showDatepicker(e),r.addShortcut({keys:[["Enter"]],callback:function(e){e.stopPropagation()},group:"dateEditor"})}},{key:"close",value:function(){var e,t=this;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.instance._registerTimeout((function(){t.instance._refreshBorders()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("dateEditor"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.instance.view.isMouseDown(),i=!!e&&(0,m.isFunctionKey)(e.keyCode);this.datePicker.style.display="block",this.$datePicker=new d.default(this.getDatePickerConfig()),this.$datePicker._onInputFocus=function(){},this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,p.outerHeight)(this.TD),"px");var a=this.hot.rootWindow.pageXOffset;a=this.hot.isRtl()?n.right-(0,p.outerWidth)(this.datePicker):n.left,this.datePickerStyle.left="".concat(a,"px"),this.originalValue?(t=this.originalValue,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,g.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),n}(h.TextEditor);t.DateEditor=y},function(e,t,n){
|
857
|
+
var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,l,u,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function l(i){var l=0,u=0,c=0,d=i*i;if(i<8)l=(u=o(t,d))/(c=o(n,d));else{var h=i-.785398164;u=o(a,d=64/d),c=o(s,d),l=r.sqrt(e/i)*(r.cos(h)*u-r.sin(h)*c*8/i)}return l}var u=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,l=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(u,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(l)*i-r.sin(l)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return l(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,l(t),f(t),-1);else{for(var a=!1,s=0,u=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,u*=1e-10),a&&(u+=c),a=!a,p==n&&(o=s);o/=u=2*u-c}return o}}(),C=(s=.636619772,l=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),u=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(l,a))/(i=o(u,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,l=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(l)*n+r.cos(l)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),l=0,u=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*u+l,l=u,u=c,r.abs(u)>1e10&&(u*=1e-10,l*=1e-10,a*=1e-10),i==n&&(a=l);return a*=e(t,0)/u,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(695);var i=F(n(696));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(837),h=F(n(49)),f=n(76),p=r(n(1075)),g=r(n(302)),m=F(n(285)),v=F(n(13)),y=F(n(94)),E=F(n(133)),T=F(n(606)),C=F(n(107)),R=F(n(58)),w=F(n(24)),S=F(n(36)),O=F(n(12)),b=F(n(84)),A=F(n(108)),N=F(n(16)),M=F(n(75)),I=n(129),_=n(183),k=n(184),P=n(188),x=n(223),L=n(38);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},v.arrayEach((0,P.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,P.getCellType)(e)})),i.default.cellTypes.registerCellType=P.registerCellType,i.default.cellTypes.getCellType=P.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(63),o=n(50),i=n(56),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){var r=n(29),o=n(50),i=n(55),a=n(57),s=n(175).CONFIGURABLE,l=n(385),u=n(106),c=u.enforce,d=u.get,h=Object.defineProperty,f=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&d(this).source||l(this)}),"toString")},function(e,t,n){"use strict";var r=n(388).IteratorPrototype,o=n(123),i=n(174),a=n(214),s=n(173),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(50),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(269),o=n(215);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(44),i=n(30),a=n(271),s=n(176),l=n(216),u=n(397),c=n(56),d=n(391),h=n(106).enforce,f=n(384),p=!o.ActiveXObject&&"ActiveXObject"in o,g=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=l("WeakMap",g,u);if(f&&p){r=u.getConstructor(g,"WeakMap",!0),s.enable();var v=m.prototype,y=i(v.delete),E=i(v.has),T=i(v.get),C=i(v.set);a(v,{delete:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=h(this);n.frozen||(n.frozen=new r),E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}},function(e,t,n){var r=n(29);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(145),o=n(217),i=n(56),a=n(47)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(25),o=n(29),i=n(272).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(697),n(698),n(699),n(700);var o=r(n(400)),i=n(291),a=n(585),s=r(n(59)),l=n(582),u=n(188),c=n(591),d=n(189),h=n(130);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="16/12/2022 13:49:47",f.version="0.0.0-next-153a482-20221216",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var p=f;t.default=p},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(402);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(216)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(273),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(57),o=n(145),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(56),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(81),o=n(171),i=n(92);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(81),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(177),o=n(63),i=n(81),a=n(714),s=n(393),l=n(217),u=n(92),c=n(144),d=n(394),h=n(275),f=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=u(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(61),o=n(395);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(127).forEach,o=n(146)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(25),o=n(44),i=n(415).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t,n){var r=n(25),o=n(44),i=n(415).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(719),n(721)},function(e,t,n){var r=n(25),o=n(44),i=n(417).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(25),o=n(44),i=n(417).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},function(e,t,n){"use strict";n(216)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(71).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(175).PROPER,o=n(29),i=n(411);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(128),o=n(63),i=n(30),a=n(219),s=n(61),l=n(97),u=n(283),c=n(80),d=n(727),h=n(281),f=n(125),p=n(62),g=n(124),m=n(273),v=n(220),y=n(218),E=n(280),T=n(29),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((l=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=l,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new u(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((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]})),C)},function(e,t,n){var r=n(61),o=n(422),i=n(97),a=n(47)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,t,n){"use strict";var r=n(25),o=n(270).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(125),i=n(62),a=n(425),s=n(80),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=l(g,c((a=f-p)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":426,"./af.js":426,"./ar":427,"./ar-dz":428,"./ar-dz.js":428,"./ar-kw":429,"./ar-kw.js":429,"./ar-ly":430,"./ar-ly.js":430,"./ar-ma":431,"./ar-ma.js":431,"./ar-sa":432,"./ar-sa.js":432,"./ar-tn":433,"./ar-tn.js":433,"./ar.js":427,"./az":434,"./az.js":434,"./be":435,"./be.js":435,"./bg":436,"./bg.js":436,"./bm":437,"./bm.js":437,"./bn":438,"./bn-bd":439,"./bn-bd.js":439,"./bn.js":438,"./bo":440,"./bo.js":440,"./br":441,"./br.js":441,"./bs":442,"./bs.js":442,"./ca":443,"./ca.js":443,"./cs":444,"./cs.js":444,"./cv":445,"./cv.js":445,"./cy":446,"./cy.js":446,"./da":447,"./da.js":447,"./de":448,"./de-at":449,"./de-at.js":449,"./de-ch":450,"./de-ch.js":450,"./de.js":448,"./dv":451,"./dv.js":451,"./el":452,"./el.js":452,"./en-au":453,"./en-au.js":453,"./en-ca":454,"./en-ca.js":454,"./en-gb":455,"./en-gb.js":455,"./en-ie":456,"./en-ie.js":456,"./en-il":457,"./en-il.js":457,"./en-in":458,"./en-in.js":458,"./en-nz":459,"./en-nz.js":459,"./en-sg":460,"./en-sg.js":460,"./eo":461,"./eo.js":461,"./es":462,"./es-do":463,"./es-do.js":463,"./es-mx":464,"./es-mx.js":464,"./es-us":465,"./es-us.js":465,"./es.js":462,"./et":466,"./et.js":466,"./eu":467,"./eu.js":467,"./fa":468,"./fa.js":468,"./fi":469,"./fi.js":469,"./fil":470,"./fil.js":470,"./fo":471,"./fo.js":471,"./fr":472,"./fr-ca":473,"./fr-ca.js":473,"./fr-ch":474,"./fr-ch.js":474,"./fr.js":472,"./fy":475,"./fy.js":475,"./ga":476,"./ga.js":476,"./gd":477,"./gd.js":477,"./gl":478,"./gl.js":478,"./gom-deva":479,"./gom-deva.js":479,"./gom-latn":480,"./gom-latn.js":480,"./gu":481,"./gu.js":481,"./he":482,"./he.js":482,"./hi":483,"./hi.js":483,"./hr":484,"./hr.js":484,"./hu":485,"./hu.js":485,"./hy-am":486,"./hy-am.js":486,"./id":487,"./id.js":487,"./is":488,"./is.js":488,"./it":489,"./it-ch":490,"./it-ch.js":490,"./it.js":489,"./ja":491,"./ja.js":491,"./jv":492,"./jv.js":492,"./ka":493,"./ka.js":493,"./kk":494,"./kk.js":494,"./km":495,"./km.js":495,"./kn":496,"./kn.js":496,"./ko":497,"./ko.js":497,"./ku":498,"./ku.js":498,"./ky":499,"./ky.js":499,"./lb":500,"./lb.js":500,"./lo":501,"./lo.js":501,"./lt":502,"./lt.js":502,"./lv":503,"./lv.js":503,"./me":504,"./me.js":504,"./mi":505,"./mi.js":505,"./mk":506,"./mk.js":506,"./ml":507,"./ml.js":507,"./mn":508,"./mn.js":508,"./mr":509,"./mr.js":509,"./ms":510,"./ms-my":511,"./ms-my.js":511,"./ms.js":510,"./mt":512,"./mt.js":512,"./my":513,"./my.js":513,"./nb":514,"./nb.js":514,"./ne":515,"./ne.js":515,"./nl":516,"./nl-be":517,"./nl-be.js":517,"./nl.js":516,"./nn":518,"./nn.js":518,"./oc-lnc":519,"./oc-lnc.js":519,"./pa-in":520,"./pa-in.js":520,"./pl":521,"./pl.js":521,"./pt":522,"./pt-br":523,"./pt-br.js":523,"./pt.js":522,"./ro":524,"./ro.js":524,"./ru":525,"./ru.js":525,"./sd":526,"./sd.js":526,"./se":527,"./se.js":527,"./si":528,"./si.js":528,"./sk":529,"./sk.js":529,"./sl":530,"./sl.js":530,"./sq":531,"./sq.js":531,"./sr":532,"./sr-cyrl":533,"./sr-cyrl.js":533,"./sr.js":532,"./ss":534,"./ss.js":534,"./sv":535,"./sv.js":535,"./sw":536,"./sw.js":536,"./ta":537,"./ta.js":537,"./te":538,"./te.js":538,"./tet":539,"./tet.js":539,"./tg":540,"./tg.js":540,"./th":541,"./th.js":541,"./tk":542,"./tk.js":542,"./tl-ph":543,"./tl-ph.js":543,"./tlh":544,"./tlh.js":544,"./tr":545,"./tr.js":545,"./tzl":546,"./tzl.js":546,"./tzm":547,"./tzm-latn":548,"./tzm-latn.js":548,"./tzm.js":547,"./ug-cn":549,"./ug-cn.js":549,"./uk":550,"./uk.js":550,"./ur":551,"./ur.js":551,"./uz":552,"./uz-latn":553,"./uz-latn.js":553,"./uz.js":552,"./vi":554,"./vi.js":554,"./x-pseudo":555,"./x-pseudo.js":555,"./yo":556,"./yo.js":556,"./zh-cn":557,"./zh-cn.js":557,"./zh-hk":558,"./zh-hk.js":558,"./zh-mo":559,"./zh-mo.js":559,"./zh-tw":560,"./zh-tw.js":560};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=732},function(e,t,n){var r=n(25),o=n(734);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(128),o=n(88),i=n(115),a=n(92),s=n(146),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(141),o=n(81),i=n(165),a=n(92),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(32)),i=r(n(21));n(4),n(40),n(1),n(5),n(6),n(65),n(89);var a=n(36),s=n(58),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(26)),u=r(n(78)),c=r(n(79));n(4),n(1),n(5),n(7),n(6),n(72),n(73);var d=n(16),h=r(n(49)),f=n(75),p=r(n(130)),g=n(575),m=n(291);function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{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,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{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=y.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.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 e=this,t=y.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,T,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,E,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,p,g,f),e.instance.runHooks("afterRenderer",r,s,l,p,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],p=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.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 y.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",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 r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,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))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((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 t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(742)),s=r(n(289)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(567)),d=r(n(744)),h=r(n(772)),f=r(n(773)),p=r(n(774)),g=r(n(289)),m=n(12),v=n(16);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new p.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=E},function(e,t,n){"use strict";var r=n(30),o=n(141),i=n(56),a=n(55),s=n(180),l=n(166),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(1),n(23),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(26)),l=n(16),u=n(107),c=n(13),d=n(108),h=n(94),f=n(131),p=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),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.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=p.scrollX,this.lastScrollY=p.scrollY}return(0,a.default)(e,[{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);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,d.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=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{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.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),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.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=p},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(747)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{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))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{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))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(226);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{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,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(752)),s=n(570),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.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 r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.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";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{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}}]),n}(r(n(569)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(185)),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{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,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"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")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(64)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(74),h=n(66),f=n(226),p=r(n(185));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=!1,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!m&&e>1e3&&(m=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number 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\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=n(226);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.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,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(185)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,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=r}return(0,i.default)(e,[{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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{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 r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.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.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(26)),d=r(n(567));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(289)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),u.top+c-f<=h){l=p;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=Math.abs((0,s.getScrollLeft)(i,i));if(l.left>u)for(var c=(0,s.innerWidth)(i),d=r.getRowHeaderWidth(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.left+d-u>=c){a=h-2;break}}return a}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(765)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.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.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(p.Overlay);t.BottomOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(767)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":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(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(572)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(769)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(p.Overlay);t.TopInlineStartCornerOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(771)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(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.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(574);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,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,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=r(n(151)),d=r(n(572)),h=r(n(290)),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=n(12),l=n(775),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var p=n.getSetting("stretchH");return"none"!==p&&p?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.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,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.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 t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.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 t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;s<0&&(s=0);var u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN,o<0&&(o=0);var i=t.getSetting("fixedColumnsStart");if(i){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:Math.abs(o),totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow;if(null===t&&null===n)return!1;var r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn;if(null===t&&null===n)return!1;var r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(23),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(563));t.ViewportColumnsCalculator=i.default;var a=r(n(564));t.ViewportRowsCalculator=a.default;var s=n(286);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(20),n(1),n(23),n(777);var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(16),u=r(n(779)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.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=this.settings.createCellRange(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.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,l.addClass)(O,S)}y+=1}}if(null!==a&&null!==u)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=u){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var P=[],x=I[k];h&&P.push(h),p&&P.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:u-a+1,classNames:P});L!==M&&(x=e.wtTable.getRowHeader(L,k)),(0,l.addClass)(x,P)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=u&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=u?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(25),o=n(778).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(57),o=n(30),i=n(170),a=n(88),s=o(n(211).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,d=0,h=[];c>d;)n=u[d++],r&&!s(o,n)||l(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(16),l=n(75),u=n(12),c=n(94),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){var r=e.main.childNodes[t];e.eventManager.addEventListener(r,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.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,c.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 e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={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,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{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,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),p=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-p/4*3,10),"px"),u[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,l=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,P=this.wot.wtSettings.getSetting("rtlMode"),x=0,L=0;if(P){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,x=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,x=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],x=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,l,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[P?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,L=L>0?L-1:0);var K=P?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(x+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+L+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?b.getBoundingClientRect().left:b.offsetLeft;(P?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[P?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,x,L,B)}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,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=l(t,m-r),g=l(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+u(g)-v[f]),[p,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(25),o=n(44),i=n(63),a=n(30),s=n(121),l=n(57),u=n(140),c=n(29),d=n(55),h=n(114),f=n(61),p=n(88),g=n(209),m=n(62),v=n(174),y=n(123),E=n(170),T=n(143),C=n(272),R=n(212),w=n(116),S=n(71),O=n(378),b=n(211),A=n(93),N=n(139),M=n(210),I=n(172),_=n(207),k=n(47),P=n(576),x=n(577),L=n(782),D=n(214),F=n(106),U=n(127).forEach,H=M("hidden"),V=F.set,j=F.getterFor("Symbol"),B=Object.prototype,W=o.Symbol,Y=W&&W.prototype,G=o.TypeError,z=o.QObject,K=w.f,X=S.f,q=C.f,$=b.f,Q=a([].push),Z=N("symbols"),J=N("op-symbols"),ee=N("wks"),te=!z||!z.prototype||!z.prototype.findChild,ne=l&&c((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(B,t);r&&delete B[t],X(e,t,n),r&&e!==B&&X(B,t,r)}:X,re=function(e,t){var n=Z[e]=y(Y);return V(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===B&&oe(J,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,H)||X(e,H,v(1,{})),e[H][r]=!0),ne(e,r,n)):X(e,r,n)},ie=function(e,t){f(e);var n=p(t),r=E(n).concat(ue(n));return U(r,(function(t){l&&!i(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=g(e),n=i($,this,t);return!(this===B&&d(Z,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,H)&&this[H][t])||n)},se=function(e,t){var n=p(e),r=g(t);if(n!==B||!d(Z,r)||d(J,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},le=function(e){var t=q(p(e)),n=[];return U(t,(function(e){d(Z,e)||d(I,e)||Q(n,e)})),n},ue=function(e){var t=e===B,n=q(t?J:p(e)),r=[];return U(n,(function(e){!d(Z,e)||t&&!d(B,e)||Q(r,Z[e])})),r};u||(A(Y=(W=function(){if(h(Y,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=_(e),n=function(e){this===B&&i(n,J,e),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),ne(this,t,v(1,e))};return l&&te&&ne(B,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return j(this).tag})),A(W,"withoutSetter",(function(e){return re(_(e),e)})),b.f=ae,S.f=oe,O.f=ie,w.f=se,T.f=C.f=le,R.f=ue,P.f=function(e){return re(k(e),e)},l&&(X(Y,"description",{configurable:!0,get:function(){return j(this).description}}),s||A(B,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(ee),(function(e){x(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ie(y(e),t)},defineProperty:oe,defineProperties:ie,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le}),L(),D(W,"Symbol"),I[H]=!0},function(e,t,n){var r=n(44);e.exports=r},function(e,t,n){var r=n(63),o=n(101),i=n(47),a=n(93);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(25),o=n(101),i=n(55),a=n(62),s=n(139),l=n(578),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(25),o=n(55),i=n(169),a=n(142),s=n(139),l=n(578),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(63),s=n(30),l=n(29),u=n(145),c=n(50),d=n(56),h=n(169),f=n(180),p=n(140),g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=f(arguments),r=t;if((d(t)||void 0!==e)&&!h(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!h(t))return t}),n[1]=t,i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=f(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(25),o=n(140),i=n(29),a=n(212),s=n(81);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73),n(1),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(133),l=n(13),u=n(36),c=n(58),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(32)),i=r(n(64)),a=r(n(2)),s=r(n(3));n(4),n(1),n(52),n(5),n(6),n(40),n(48),n(222),n(181),n(65),n(35),n(22),n(31),n(41),n(147);var l,u=n(13),c=n(66),d=n(74),h=n(579),f=n(794),p=r(n(86)),g=n(12),m=n(24),v=n(796),y=new Set(["getFirstNotHiddenIndex"]),E=function(){function e(){var t=this;(0,a.default)(this,e),this.indexesSequence=new h.IndexesSequence,this.trimmingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new f.MapCollection,this.hidingChangesObservable=new v.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,s.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,h.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof h.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof h.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t;y.has("getFirstNotHiddenIndex")&&(y.delete("getFirstNotHiddenIndex"),(0,d.warn)((0,c.toSingleLine)(l||(l=(0,i.default)(['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next \n major release. Please use "getNearestNotHiddenIndex" instead.'],['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next\\x20\n major release. Please use "getNearestNotHiddenIndex" instead.'])))));var o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesSequence.init(e),this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,u.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,h.getListWithRemovedItems)(this.getIndexesSequence(),r),s=o-i;if(t+i<o){var l=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(l)}this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r))}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,m.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,u.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesSequence.insert(o,i),this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesSequence.remove(e),this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}();t.IndexMapper=E,(0,g.mixin)(E,p.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(20),n(65),n(4),n(1),n(6),n(31),n(41),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=n(227),p=n(293),g=n(228),m=n(580),v=n(58);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var E=function(e){(0,u.default)(n,e);var t=y(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,v.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(227),d=n(228),h=n(581);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(23),n(43),t.__esModule=!0;var r=n(795);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(294);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(294),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(52),n(5),n(6),n(147),n(23),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(797),u=n(798);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,p,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,p)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(79)),s=r(n(78)),l=n(12),u=r(n(86));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(102)),i=r(n(800)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(72),n(73)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(26)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=(i={languageCode:"en-US"},(0,a.default)(i,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,["Copy with header","Copy with headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,["Copy with group header","Copy with group headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,["Copy header only","Copy headers only"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(i,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(i,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(i,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(i,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(i,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(i,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(i,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(i,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(i,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(i,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(i,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(i,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(i,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(i,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(i,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),i);t.default=u},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return m(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(26)),i=r(n(102)),a=n(103),s=r(n(803)),l=r(n(805)),u=r(n(806)),c=r(n(807)),d=r(n(808)),h=r(n(811));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p=(0,i.default)("highlight/types"),g=p.register,m=p.getItem;g(a.ACTIVE_HEADER_TYPE,s.default),g(a.AREA_TYPE,l.default),g(a.CELL_TYPE,u.default),g(a.CUSTOM_SELECTION_TYPE,c.default),g(a.FILL_TYPE,d.default),g(a.HEADER_TYPE,h.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["activeHeaderClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,l);return new s.default(c(c({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=d},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["layerLevel","areaCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,l);return new s.default(c(c({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["cellCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,l);return new s.default(c(c({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["border","visualCellRange"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,l);return new s.default(c(c(c({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(297);var o=r(n(26)),i=r(n(810)),a=n(103),s=r(n(153));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=Object.assign({},((0,i.default)(e),e));return new s.default(u(u({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:a.FILL_TYPE}))};t.default=c},function(e,t,n){"use strict";var r=n(57),o=n(30),i=n(63),a=n(29),s=n(170),l=n(212),u=n(211),c=n(81),d=n(165),h=Object.assign,f=Object.defineProperty,p=o([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||"abcdefghijklmnopqrst"!=s(h({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,h=l.f,f=u.f;o>a;)for(var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,E=0;y>E;)g=v[E++],r&&!i(f,m,g)||(n[g]=m[g]);return n}:h},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["headerClassName","rowClassName","columnClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,l);return new s.default(c(c({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(4),n(1),n(52),n(5),n(6),n(20),n(48),n(31),n(41),n(72),n(73),n(23);var a,s=r(n(2)),l=r(n(3)),u=r(n(584)),c=n(103),d=r(n(813)),h=n(12),f=n(24),p=n(13),g=r(n(86)),m=r(n(814)),v=n(229),y=n(66),E=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new d.default((function(e,t,n){return r.tableProps.createCellRange(e,t,n)})),this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disabledCellSelection:function(e,t){return r.tableProps.isDisabledCellSelection(e,t)},cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},createCellRange:function(e,t,n){return r.tableProps.createCellRange(e,t,n)},rowIndexMapper:function(){return r.tableProps.rowIndexMapper()},columnIndexMapper:function(){return r.tableProps.columnIndexMapper()}}),this.transformation=new m.default(this.selectedRange,{countRows:function(){return r.tableProps.countRowsTranslated()},countCols:function(){return r.tableProps.countColsTranslated()},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["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 r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}return(0,l.default)(e,[{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){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=(0,f.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,i=e.row<0,a=e.col<0,s=i&&a,l=e.clone();this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),l),(!r||r&&!o&&(0,f.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(l),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){var t=e.clone();this.runLocalHooks("beforeSetRangeEnd",t),this.begin();var n=this.selectedRange.current();"single"!==this.settings.selectionMode&&n.setTo(this.tableProps.createCellCoords(t.row,t.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,n.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().syncWith(n);var r=this.getLayerLevel();r<this.highlight.layerLevel&&((0,p.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(r);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),a=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),a.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,n.highlight)&&(this.isMultiple()||r>=1)&&(o.add(n.from).add(n.to).commit(),1===r)){var s=this.selectedRange.previous();this.highlight.useLayerLevel(r-1).createOrGetArea().add(s.from).commit().syncWith(s),this.highlight.useLayerLevel(r)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,n.highlight)){var l=0===this.tableProps.countRowsTranslated(),u=0===this.tableProps.countColsTranslated(),d=n;if((l||u)&&(d=n.clone()),l&&(d.from.row=-1),u&&(d.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&d.from.normalize(),i.add(d.from).commit()):i.add(d.from).add(d.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===n.getWidth()&&a.add(this.tableProps.createCellCoords(n.from.row,-1)).add(this.tableProps.createCellCoords(n.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===n.getHeight()&&a.add(this.tableProps.createCellCoords(-1,n.from.col)).add(this.tableProps.createCellCoords(-1,n.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,h.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=this.tableProps.createCellCoords(t?-1:0,e?-1:0),i=this.tableProps.createCellCoords(n-1,r-1);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(i),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,v.detectSelectionType)(e);if(n===v.SELECTION_TYPE_EMPTY)return!1;if(n===v.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,y.toSingleLine)(a||(a=(0,i.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, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."]))));var r=(0,v.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),l=this.tableProps.countCols(),u=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],u=n[2],c=n[3];return!((0,v.isValidCoord)(i,s)&&(0,v.isValidCoord)(a,l)&&(0,v.isValidCoord)(u,s)&&(0,v.isValidCoord)(c,l))}));return u&&(this.clear(),(0,p.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],l=i[2],u=i[3];t.setRangeStartOnly(t.tableProps.createCellCoords(a,s),!1),t.setRangeEnd(t.tableProps.createCellCoords(l,u)),t.finish()}))),u}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countCols(),a=this.tableProps.countRows(),s=(0,v.isValidCoord)(r,i)&&(0,v.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(this.tableProps.createCellCoords(n,r)),this.setRangeEnd(this.tableProps.createCellCoords(a-1,o)),this.finish()),s}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=(0,v.isValidCoord)(e,r)&&(0,v.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(this.tableProps.createCellCoords(e,n)),this.setRangeEnd(this.tableProps.createCellCoords(t,o-1)),this.finish()),i}},{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach((function(e){e.commit()})),this.isSelected()){var e=this.highlight.getCell(),t=this.getLayerLevel();e.commit().syncWith(this.selectedRange.current());for(var n=0;n<this.selectedRange.size();n+=1){this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.commit(),o.commit(),i.commit()}this.highlight.useLayerLevel(t)}}}]),e}();(0,h.mixin)(E,g.default);var T=E;t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(31),n(41),n(296),n(4),n(5),n(6),n(54),n(186);var o=r(n(2)),i=r(n(3)),a=function(e){function t(e){(0,o.default)(this,t),this.ranges=[],this.createCellRange=e}return(0,i.default)(t,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(this.createCellRange(e)),this}},{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:e,value:function(){return this.ranges[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=r(n(86)),l=function(){function e(t,n){(0,o.default)(this,e),this.range=t,this.options=n}return(0,i.default)(e,[{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.options.createCellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),a=i.row,s=i.col,l=o,u=0,c=0;if(this.runLocalHooks("beforeTransformStart",r),null!==a&&null!==s){var d=this.options.countRows(),h=this.options.countCols(),f=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),g=this.options.minSpareCols(),m=this.options.autoWrapRow(),v=this.options.autoWrapCol();a+e>d-1?n&&p>0&&!(f&&a>=d-f-1)?(this.runLocalHooks("insertRowRequire",d),d=this.options.countRows()):v&&(r.row=1-d,r.col=s+r.col===h-1?1-h:1):v&&a+r.row<0&&s+r.col>=0&&(r.row=d-1,r.col=s+r.col===0?h-1:-1),s+r.col>h-1?n&&g>0?(this.runLocalHooks("insertColRequire",h),h=this.options.countCols()):m&&(r.row=a+r.row===d-1?1-d:1,r.col=1-h):m&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?d-1:-1,r.col=h-1);var y=this.options.createCellCoords(a+r.row,s+r.col);u=0,c=0,y.row<0?(u=-1,y.row=0):y.row>0&&y.row>=d&&(u=1,y.row=d-1),y.col<0?(c=-1,y.col=0):y.col>0&&y.col>=h&&(c=1,y.col=h-1),l=this.options.renderableToVisualCoords(y)}return this.runLocalHooks("afterTransformStart",l,u,c),l}},{key:"transformEnd",value:function(e,t){var n=this.options.createCellCoords(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),l=s.row,u=s.col;if(null!==l&&null!==u){var c=this.options.countRows(),d=this.options.countCols(),h=this.options.visualToRenderableCoords(r.to),f=h.row,p=h.col,g=this.options.createCellCoords(f+n.row,p+n.col);i=0,a=0,g.row<0?(i=-1,g.row=0):g.row>0&&g.row>=c&&(i=1,g.row=c-1),g.col<0?(a=-1,g.col=0):g.col>0&&g.col>=d&&(a=1,g.col=d-1),o=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();(0,a.mixin)(l,s.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.parse=function(e){var t=[[""]];if(0===e.length)return t;var n,a=0,s=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(i))e=e.replace(i,""),a+=1,t[s][a]="";else if(e.match(r))e=e.replace(r,""),a=0,t[s+=1]=[""];else{var l="";if(e.startsWith('"')){for(var u=0,c=!0;c;){var d=e.slice(0,1);'"'===d&&(u+=1),l+=d,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&u%2==0)&&(c=!1)}l=l.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var h=e.match(o);l=h?h[0]:"",e=e.slice(l.length)}t[s][a]=l}return t},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'.concat(i.replace(/"/g,'""'),'"'):a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a},n(51),n(561),n(82),n(230),n(39),n(83),n(147),n(22);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(23);var o=r(n(2)),i=r(n(3)),a=r(n(817)),s=r(n(818)),l=r(n(819)),u=r(n(820)),c=r(n(86)),d=n(12),h=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,o.default)(this,e),this.hot=t,this.globalMeta=new a.default(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new l.default(this.globalMeta),this.cellMeta=new u.default(this.columnMeta),i.forEach((function(e){return new e(n)})),this.globalMeta.updateMeta(r)}return(0,i.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){var r=n.visualRow,o=n.visualColumn,i=this.cellMeta.getMeta(e,t);return i.visualRow=r,i.visualCol=o,i.row=e,i.col=t,this.runLocalHooks("afterGetCellMeta",i),i}},{key:"getCellMetaKeyValue",value:function(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();t.default=h,(0,d.mixin)(h,c.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(3)),a=r(n(2)),s=n(12),l=n(187),u=r(n(588));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){function e(t){(0,a.default)(this,e),this.metaCtor=(0,i.default)((function e(){(0,a.default)(this,e)})),this.meta=this.metaCtor.prototype,(0,s.extend)(this.meta,(0,u.default)()),this.meta.instance=t}return(0,i.default)(e,[{key:"getMetaConstructor",value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){var t;(0,s.extend)(this.meta,e),(0,l.extendByMetaType)(this.meta,d(d({},e),{},{type:null!==(t=e.type)&&void 0!==t?t:this.meta.type}),e)}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=function(){function e(t){(0,o.default)(this,e);var n=t.getMetaConstructor();this.meta=new n}return(0,i.default)(e,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,e,e)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=r(n(589)),u=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new l.default((function(){return n._createMeta()}))}return(0,i.default)(e,[{key:"updateMeta",value:function(e,t){var n=this.getMeta(e);(0,a.extend)(n,t),(0,s.extendByMetaType)(n,t)}},{key:"createColumn",value:function(e,t){this.metas.insert(e,t)}},{key:"removeColumn",value:function(e,t){this.metas.remove(e,t)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),u).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(48),n(5),n(4),n(1),n(6),n(40);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(187),u=r(n(589)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new u.default((function(){return n._createRow()}))}return(0,a.default)(e,[{key:"updateMeta",value:function(e,t,n){var r=this.getMeta(e,t);(0,s.extend)(r,n),(0,l.extendByMetaType)(r,n)}},{key:"createRow",value:function(e,t){this.metas.insert(e,t)}},{key:"createColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}},{key:"removeRow",value:function(e,t){this.metas.remove(e,t)}},{key:"removeColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}},{key:"getMeta",value:function(e,t,n){var r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}},{key:"setMeta",value:function(e,t,n,r){var o,i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(n),i[n]=r}},{key:"removeMeta",value:function(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}},{key:"getMetas",value:function(){for(var e=[],t=Array.from(this.metas.values()),n=0;n<t.length;n++)e.push.apply(e,(0,o.default)(t[n].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new u.default((function(t){return e._createMeta(t)}))}},{key:"_createMeta",value:function(e){return new(this.columnMeta.getMetaConstructor(e))}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.replaceData=function(e,t,n,r){var u=r.hotInstance,c=r.dataMap,d=r.dataSource,h=r.internalSource,f=r.source,p=r.metaManager,g=r.firstRun,m=(0,i.toUpperCaseFirst)(h),v=u.getSettings();Array.isArray(v.dataSchema)?u.dataType="array":(0,a.isFunction)(v.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks("before".concat(m),e,g,f);var y=new s.default(u,e,p);if(t(y),"object"===(0,o.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("".concat(h," only accepts array of objects or array of arrays (").concat((0,o.default)(e)," given)"));var E,T=y.getSchema();e=[];var C,R=0;for(R=0,C=v.startRows;R<C;R++)if("object"!==u.dataType&&"function"!==u.dataType||!v.dataSchema)if("array"===u.dataType)E=(0,l.deepClone)(T[0]),e.push(E);else{E=[];for(var w=0,S=v.startCols;w<S;w++)E.push(null);e.push(E)}else E=(0,l.deepClone)(T),e.push(E)}Array.isArray(e[0])&&(u.dataType="array");v.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),n(y),u.runHooks("after".concat(m),e,g,f),g||(u.runHooks("afterChange",null,h),u.render())},n(53),n(20);var o=r(n(14)),i=n(84),a=n(58),s=r(n(586)),l=n(12)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DynamicCellMetaMod=void 0,n(4),n(40),n(1),n(5),n(6),n(52);var o=r(n(2)),i=r(n(3)),a=r(n(59)),s=n(12),l=n(58),u=function(){function e(t){var n=this;(0,o.default)(this,e),this.metaManager=t,this.metaSyncMemo=new Map,t.addLocalHook("afterGetCellMeta",(function(e){return n.extendCellMeta(e)})),a.default.getSingleton().add("beforeRender",(function(e){e&&n.metaSyncMemo.clear()}),this.metaManager.hot)}return(0,i.default)(e,[{key:"extendCellMeta",value:function(e){var t,n=e.row,r=e.col;if(null===(t=this.metaSyncMemo.get(n))||void 0===t||!t.has(r)){var o=e.visualRow,i=e.visualCol,a=this.metaManager.hot,u=a.colToProp(i);e.prop=u,a.runHooks("beforeGetCellMeta",o,i,e);var c,d=(0,s.hasOwnProperty)(e,"type")?e.type:null,h=(0,l.isFunction)(e.cells)?e.cells(n,r,u):null;if(d)if(h)h.type=null!==(c=h.type)&&void 0!==c?c:d;else h={type:d};h&&this.metaManager.updateCellMeta(n,r,h),a.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}}]),e}();t.DynamicCellMetaMod=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ExtendMetaPropertiesMod=void 0,n(4),n(1),n(52),n(5),n(6),n(40),n(23);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.metaManager=t,this.usageTracker=new Set,this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{onChange:function(e,t,n){if(!n)throw new Error("The `".concat(e,"` option can not be updated after the Handsontable is initialized."))}}]]),this.extendMetaProps()}return(0,i.default)(e,[{key:"extendMetaProps",value:function(){var e=this;this.propDescriptors.forEach((function(t,n){var r=t.target,o=t.onChange,i=void 0===o?function(){}:o,a="string"==typeof r,s=a?r:n,l="_".concat(s);e.metaManager.globalMeta.meta[l]=e.metaManager.globalMeta.meta[s],e.installPropWatcher(n,l,i),a&&e.installPropWatcher(r,l,i)}))}},{key:"installPropWatcher",value:function(e,t,n){var r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get:function(){return this[t]},set:function(o){var i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}]),e}();t.ExtendMetaPropertiesMod=a},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(825);t.createShortcutManager=r.createShortcutManager},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(224),o=n(826),i=n(827);t.createShortcutManager=function(e){var t=e.ownerWindow,n=e.handleEvent,a=e.beforeKeyDown,s=e.afterKeyDown,l=(0,r.createUniqueMap)({errorIdExists:function(e){return'The "'.concat(e,'" context name is already registered.')}}),u="grid",c=function(){return u},d=function(e){return l.getItem(e)},h=!1,f=(0,i.useRecorder)(t,n,a,s,(function(e,t){var n=d(c()),r=!1;if(!n.hasShortcut(t))return r;for(var o=n.getShortcuts(t),i=0;i<o.length;i++){var a=o[i],s=a.callback,l=a.runOnlyIf,u=a.preventDefault,f=a.stopPropagation,p=a.captureCtrl;if(!1!==l(e)&&(h=p,r=!1===s(e,t),h=!1,u&&e.preventDefault(),f&&e.stopPropagation(),r))break}return r}));return f.mount(),{addContext:function(e){var t=(0,o.createContext)(e);return l.addItem(e,t),t},getActiveContextName:c,getContext:d,setActiveContextName:function(e){u=e},isCtrlPressed:function(){return!h&&(f.isPressed("control")||f.isPressed("meta"))},destroy:function(){return f.unmount()}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createContext=void 0;var o=r(n(32)),i=r(n(21)),a=r(n(64));n(20),n(4),n(1),n(6),n(23),n(222),n(53),n(35),n(39);var s,l=n(224),u=n(590),c=n(24),d=n(58),h=n(12),f=n(66);t.createContext=function(e){var t=(0,l.createUniqueMap)({errorIdExists:function(t){return'The "'.concat(t,'" shortcut is already registered in the "').concat(e,'" context.')}}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys,r=e.callback,o=e.group,i=e.runOnlyIf,l=void 0===i?function(){return!0}:i,h=e.captureCtrl,p=void 0!==h&&h,g=e.preventDefault,m=void 0===g||g,v=e.stopPropagation,y=void 0!==v&&v,E=e.relativeToGroup,T=e.position;if((0,c.isUndefined)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,d.isFunction)(r))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(n))throw new Error((0,f.toSingleLine)(s||(s=(0,a.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."],["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var C={callback:r,group:o,runOnlyIf:l,captureCtrl:p,preventDefault:m,stopPropagation:y};if((0,c.isDefined)(E)){var R=[E,T];C.relativeToGroup=R[0],C.position=R[1]}n.forEach((function(e){var n=(0,u.normalizeKeys)(e);if(t.hasItem(n)){var r=t.getItem(n),o=r.findIndex((function(e){return e.group===E}));-1!==o?"before"===T?o-=1:o+=1:o=r.length,r.splice(o,0,C)}else t.addItem(n,[C])}))},r=function(e){var n=(0,u.normalizeKeys)(e);t.removeItem(n)};return{addShortcut:n,addShortcuts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){(0,h.objectEach)(t,(function(n,r){!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:function(e){var n=(0,u.normalizeKeys)(e),r=t.getItem(n);return(0,c.isDefined)(r)?r.slice():[]},hasShortcut:function(e){var n=(0,u.normalizeKeys)(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:function(e){t.getItems().forEach((function(t){var n=(0,i.default)(t,2),a=n[0],s=n[1],l=s.filter((function(t){return t.group!==e}));0===l.length?r((0,u.getKeysList)(a)):(s.length=0,s.push.apply(s,(0,o.default)(l)))}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r,c){var d=function(e){return l.includes(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=function(e){if(!1!==t(e)){var a=n(e);if(229!==e.keyCode&&!1!==a&&!(0,i.isImmediatePropagationStopped)(e)){var l=(0,o.normalizeEventKey)(e.key),f=[];d(l)?u.press(l):f=h(e);var p=[l].concat(f);!c(e,p)&&((0,s.isMacOS)()&&f.includes("meta")||!(0,s.isMacOS)()&&f.includes("control"))&&c(e,[l].concat(h(e,!0))),r(e)}}},p=function(e){if(!1!==t(e)){var n=(0,o.normalizeEventKey)(e.key);!1!==d(n)&&u.release(n)}},g=function(){u.releaseAll()};return{mount:function(){for(var t=e;t;)t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("keyup",p),t.document.documentElement.addEventListener("blur",g),t=(0,a.getParentWindow)(t)},unmount:function(){for(var t=e;t;)t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("keyup",p),t.document.documentElement.removeEventListener("blur",g),t=(0,a.getParentWindow)(t)},isPressed:function(e){return u.isPressed(e)}}},n(31),n(20),n(41);var r=n(828),o=n(590),i=n(75),a=n(16),s=n(94),l=["meta","alt","shift","control"],u=(0,r.createKeysObserver)()},function(e,t,n){"use strict";t.__esModule=!0,t.createKeysObserver=function(){var e=new Set;return{press:function(t){e.add(t)},release:function(t){e.delete(t)},releaseAll:function(){e.clear()},isPressed:function(t){return e.has(t)}}},n(4),n(1),n(52),n(5),n(6)},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(134),o=n(135);t.CELL_TYPE="text";var i={CELL_TYPE:"text",editor:r.TextEditor,renderer:o.textRenderer};t.TextCellType=i},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(189),f=r(n(49)),p=n(94),g=n(16),m=n(36),v=n(108),y=n(832),E=n(24),T=n(182),C=n(592),R=n(834);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.EDITOR_TYPE="text";var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).eventManager=new f.default((0,s.default)(r)),r.autoResize=(0,y.autoResize)(),r.TEXTAREA=void 0,r.textareaStyle=void 0,r.TEXTAREA_PARENT=void 0,r.textareaParentStyle=void 0,r.layerClass=void 0,r.createElements(),r.bindEvents(),r.hot.addHookOnce("afterDestroy",(function(){return r.destroy()})),r}return(0,a.default)(n,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.addHook("afterDocumentKeyDown",(function(t){return e.onAfterDocumentKeyDown(t)})),this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts(),this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var s=this.state;if((0,l.default)((0,d.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,c=a.fragmentSelection;u&&(this.TEXTAREA.value=""),s!==h.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!c&&!(0,p.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===h.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,l.default)((0,d.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,g.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.tabIndex=-1,(0,g.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,g.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,g.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){((0,p.isIE)()||(0,p.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,m.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,g.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,g.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,g.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===h.EDITOR_STATE.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t=this.getEditedCellRect(),n=t.top,r=t.start,o=t.width,i=t.maxWidth,a=t.height,s=t.maxHeight;this.textareaParentStyle.top="".concat(n,"px"),this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(r,"px"),this.showEditableElement();var l=(0,g.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;var u=(0,g.getComputedStyle)(this.TEXTAREA),c=parseInt(u.paddingLeft,10)+parseInt(u.paddingRight,10),d=parseInt(u.paddingTop,10)+parseInt(u.paddingBottom,10),f=o-c,p=a-d,m=i-c,v=s-d;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(f,m),minHeight:Math.min(p,v),maxWidth:m,maxHeight:v},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),(0,p.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(function(){return e.finishEditing(!1)})),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:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={runOnlyIf:function(){return(0,E.isDefined)(e.hot.getSelected())},group:"textEditor"},r=function(){e.hot.rootDocument.execCommand("insertText",!1,"\n")};t.addShortcuts([{keys:[["Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(r.row,r.col,!0)}},{keys:[["Shift","Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(-r.row,-r.col)}},{keys:[["Control","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(t){return!e.hot.selection.isMultiple()&&!t.altKey},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(){return!e.hot.selection.isMultiple()},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return r(),!1},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){e.hot.selection.transformStart(-e.hot.countVisibleRows(),0)}},{keys:[["PageDown"]],callback:function(){e.hot.selection.transformStart(e.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["End"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}}],n)}},{key:"unregisterShortcuts",value:function(){var e=this.hot.getShortcutManager().getContext("editor");e.removeShortcutsByGroup(T.SHORTCUTS_GROUP_NAVIGATION),e.removeShortcutsByGroup("textEditor"),e.removeShortcutsByGroup(C.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(e){-1===[v.KEY_CODES.ARROW_UP,v.KEY_CODES.ARROW_RIGHT,v.KEY_CODES.ARROW_DOWN,v.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),n}(h.BaseEditor);t.TextEditor=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(13),o=n(12),i={_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(e){var t=this;(0,r.arrayEach)(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;(0,o.objectEach)(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};(0,o.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(833);t.autoResize=r.autoResize},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.position="absolute",o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}},n(51),n(67)},function(e,t,n){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){for(var n=(0,r.getCaretPosition)(t),o=t.value.split("\n"),i=n,a=0,s=0;s<o.length;s++){var l=o[s];0!==s&&(a+=o[s-1].length+1);var u=a+l.length;if("home"===e?i=a:"end"===e&&(i=u),n<=u)break}(0,r.setCaretPosition)(t,i)};var r=n(16)},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.textRenderer=a,n(149);var r=n(231),o=n(16),i=n(24);function a(e,t,n,a,s,l,u){r.baseRenderer.apply(this,[e,t,n,a,s,l,u]);var c=l;if(!c&&u.placeholder&&(c=u.placeholder),c=(0,i.stringify)(c),u.trimWhitespace&&(c=c.trim()),u.rendererTemplate){(0,o.empty)(t);var d=e.rootDocument.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.baseRenderer=o;var r=n(16);function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,o.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,a.registerAllCellTypes)(),(0,s.registerAllPlugins)()};var r=n(838);t.registerAllEditors=r.registerAllEditors;var o=n(851);t.registerAllRenderers=o.registerAllRenderers;var i=n(860);t.registerAllValidators=i.registerAllValidators;var a=n(866);t.registerAllCellTypes=a.registerAllCellTypes;var s=n(883);t.registerAllPlugins=s.registerAllPlugins},function(e,t,n){"use strict";t.__esModule=!0,t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=void 0,t.registerAllEditors=function(){(0,p.registerEditor)(o.BaseEditor),(0,p.registerEditor)(r.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(a.DateEditor),(0,p.registerEditor)(s.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(u.NumericEditor),(0,p.registerEditor)(c.PasswordEditor),(0,p.registerEditor)(d.SelectEditor),(0,p.registerEditor)(h.TextEditor),(0,p.registerEditor)(f.TimeEditor)};var r=n(298);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(189);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(593);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(300);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(594);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var l=n(299);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var u=n(595);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var c=n(596);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var d=n(848);t.SelectEditor=d.SelectEditor,t.SELECT_EDITOR=d.EDITOR_TYPE;var h=n(134);t.TextEditor=h.TextEditor,t.TEXT_EDITOR=h.EDITOR_TYPE;var f=n(597);t.TimeEditor=f.TimeEditor,t.TIME_EDITOR=f.EDITOR_TYPE;var p=n(129);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26));n(4),n(1),n(5),n(7),n(6),n(22),n(89),n(225),n(51),n(82),n(35);var h=n(299),f=n(13),p=n(16),g=n(24),m=n(84),v=n(108),y=n(135);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var T=new WeakMap;t.EDITOR_TYPE="autocomplete";var C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,d.default)((0,a.default)(r),"sortByRelevance",(function(e,t,n){var r,o,i,a,s=[],l=[],u=e.length,c=t.length;if(0===u){for(i=0;i<c;i++)l.push(i);return l}for(i=0;i<c;i++){if(o=(0,m.stripTags)((0,g.stringify)(t[i])),n)a=o.indexOf(e);else{var d=this.cellProperties.locale;a=o.toLocaleLowerCase(d).indexOf(e.toLocaleLowerCase(d))}-1!==a&&(r=o.length-a-u,s.push({baseIndex:i,index:a,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})),i=0,c=s.length;i<c;i++)l.push(s[i].baseIndex);return l})),r.query=null,r.strippedChoices=[],r.rawChoices=[],T.set((0,a.default)(r),{skipOne:!1,isMacOS:r.hot.rootWindow.navigator.platform.indexOf("Mac")>-1}),r}return(0,i.default)(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return(0,g.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.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 e=this,t=T.get(this);(0,s.default)((0,c.default)(n.prototype),"open",this).call(this);var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=(0,p.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)})),r.updateSettings({colWidths:o?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,p.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,y.textRenderer)(t,n,r,o,i,a,s);var l,u,c=e.cellProperties,d=c.filteringCaseSensitive,h=c.allowHtml,f=c.locale,p=e.query,m=(0,g.stringify)(a);m&&!h&&-1!==(l=!0===d?m.indexOf(p):m.toLocaleLowerCase(f).indexOf(p.toLocaleLowerCase(f)))&&(u=m.substr(l,p.length),m=m.replace(u,"<strong>".concat(u,"</strong>"))),n.innerHTML=m},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,s.default)((0,c.default)(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,s.default)((0,c.default)(n.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),r=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=null,a=null,s=e;r&&(i=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(i)?i.length:0;if(!1===o)l&&(a=i[0]);else{for(var u=[],c=0,d=s.length;c<d&&!(r&&l<=c);c++)l?u.push(s[i[c]]):u.push(s[c]);a=0,s=u}this.strippedChoices=s,this.htEditor.loadData((0,f.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,n=this.cellProperties.preventOverflow;if(t||!t&&(n||"horizontal"===n))return!1;var r=(0,p.offset)(this.TEXTAREA),o=(0,p.outerHeight)(this.TEXTAREA),i=this.getDropdownHeight(),a=e.scrollTop,s=(0,p.outerHeight)(this.hot.view._wt.wtTable.THEAD),l=(0,p.offset)(e),u=r.top-l.top-s+a,c=e.scrollHeight-u-s-o,d=i>c&&u>c;return d?this.flipDropdown(i):this.unflipDropdown(),this.limitDropdownIfNeeded(d?u:c,i),d}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view._wt.getSetting("defaultRowHeight"),o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{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;e.position="absolute",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,f.arrayMap)(e,(function(e){return(0,g.stringify)(e)}));return(0,f.arrayMap)(n,(function(e){return t?e:(0,m.stripTags)(e)}))}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===v.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===v.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,n=T.get(this);if(n.skipOne=!1,(0,v.isPrintableChar)(e.keyCode)||e.keyCode===v.KEY_CODES.BACKSPACE||e.keyCode===v.KEY_CODES.DELETE||e.keyCode===v.KEY_CODES.INSERT){var r=10;if(e.keyCode===v.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(r+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0}),r)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(h.HandsontableEditor);t.AutocompleteEditor=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16),h=n(75),f=n(12),p=n(182);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="handsontable";var m=function(e){(0,s.default)(n,e);var t=g(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"open",value:function(){(0,a.default)((0,u.default)(n.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,d.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var l=this,c={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&&l.setValue(n),l.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,f.extend)(c,s.handsontable),this.htOptions=c}},{key:"beginEditing",value:function(e,t){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||(0,a.default)((0,u.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.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,r){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)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor");(0,a.default)((0,u.default)(n.prototype),"registerShortcuts",this).call(this);var r={group:"handsontableEditor",relativeToGroup:p.SHORTCUTS_GROUP_NAVIGATION,position:"before"},o=function(t,n){var r=e.htEditor.getInstance();if(void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length))return n.preventDefault(),(0,h.stopImmediatePropagation)(n),e.hot.listen(),e.TEXTAREA.focus(),!1};t.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var n,r,i=e.htEditor.getInstance();return!i.getSelectedLast()&&i.flipped?n=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(r=i.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=i.getSelectedLast()[0])-1),o(n,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var n,r,i=e.htEditor.getInstance();if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)n=i.getSelectedLast()[0]+1;else if(!i.flipped){var a=i.countRows()-1;r=i.getSelectedLast()[0],n=Math.min(a,r+1)}}else n=0;return o(n,t)},preventDefault:!1}],r)}},{key:"unregisterShortcuts",value:function(){(0,a.default)((0,u.default)(n.prototype),"unregisterShortcuts",this).call(this),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(189),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{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(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),n}(u.BaseEditor);t.CheckboxEditor=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(95)),d=r(n(843)),h=n(134),f=r(n(49)),p=n(16),g=n(12),m=n(108);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(844);t.EDITOR_TYPE="date";var y=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).defaultDateFormat="DD/MM/YYYY",r.isCellEdited=!1,r.parentDestroyed=!1,r.$datePicker=null,r}return(0,i.default)(n,[{key:"init",value:function(){var e=this;if("function"!=typeof c.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,a.default)((0,u.default)(n.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.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,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,p.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),new f.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()}))}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.hot.getShortcutManager(),r=t.getContext("editor");(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.showDatepicker(e),r.addShortcut({keys:[["Enter"]],callback:function(e){e.stopPropagation()},group:"dateEditor"})}},{key:"close",value:function(){var e,t=this;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.instance._registerTimeout((function(){t.instance._refreshBorders()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("dateEditor"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.instance.view.isMouseDown(),i=!!e&&(0,m.isFunctionKey)(e.keyCode);this.datePicker.style.display="block",this.$datePicker=new d.default(this.getDatePickerConfig()),this.$datePicker._onInputFocus=function(){},this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,p.outerHeight)(this.TD),"px");var a=this.hot.rootWindow.pageXOffset;a=this.hot.isRtl()?n.right-(0,p.outerWidth)(this.datePicker):n.left,this.datePickerStyle.left="".concat(a,"px"),this.originalValue?(t=this.originalValue,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,g.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),n}(h.TextEditor);t.DateEditor=y},function(e,t,n){
|
858
858
|
/*!
|
859
859
|
* Pikaday
|
860
860
|
*
|
861
861
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
862
862
|
*/
|
863
|
-
!function(t,r){"use strict";var o;try{o=n(95)}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},c=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},p=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){d(e)&&e.setHours(0,0,0,0)},m=function(e,t){return e.getTime()===t.getTime()},v=function(e,t,n){var r,o;for(r in t)(o=void 0!==e[r])&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?d(t[r])?n&&(e[r]=new Date(t[r].getTime())):c(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=v({},t[r],n):!n&&o||(e[r]=t[r]);return e},y=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=v(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=v(o,n),e.fireEvent("on"+t,o))},E=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},T={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!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,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},C=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},R=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),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>"},w=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},S=function(e,t,n,r,o,i){var a,s,l,u,d,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?' disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=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 d='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?g+=d+u:g+=u+d,f&&(0===r||h.minMonth>=r)&&(m=!1),p&&(11===r||h.maxMonth<=r)&&(v=!1),0===t&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+"</div>"},O=function(a){var l=this,u=l.config(a);l._onMouseDown=function(e){if(l._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")?l.prevMonth():s(t,"pika-next")&&l.nextMonth():(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&o((function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()}),100))),s(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?l.gotoMonth(t.value):s(t,"pika-select-year")&&l.gotoYear(t.value))},l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7);break;case 8:case 46:l.setDate(null)}},l._parseFieldValue=function(){if(u.parse)return u.parse(u.field.value,u.format);if(t){var n=e(u.field.value,u.format,u.formatStrict);return n&&n.isValid()?n.toDate():null}return new Date(Date.parse(u.field.value))},l._onInputChange=function(e){var t;e.firedBy!==l&&(t=l._parseFieldValue(),d(t)&&l.setDate(t),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var e=r.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);l._c||(l._b=o((function(){l.hide()}),50)),l._c=!1},l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,r=t;if(t){!n&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",l._onChange)));do{if(s(r,"pika-single")||r===u.trigger)return}while(r=r.parentNode);l._v&&t!==u.trigger&&r!==u.trigger&&l.hide()}},l.el=r.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(l.el,"mousedown",l._onMouseDown,!0),i(l.el,"touchend",l._onMouseDown,!0),i(l.el,"change",l._onChange),u.keyboardInput&&i(r,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?r.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),i(u.field,"change",l._onInputChange),u.defaultDate||(u.defaultDate=l._parseFieldValue(),u.setDefaultDate=!0));var c=u.defaultDate;d(c)?u.setDefaultDate?l.setDate(c,!0):l.gotoDate(c):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",i(u.trigger,"click",l._onInputClick),i(u.trigger,"focus",l._onInputFocus),i(u.trigger,"blur",l._onInputBlur)):this.show()};return O.prototype={config:function(e){this._o||(this._o=v({},T,!0));var t=v(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=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(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),c(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||T.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,r=this._o.maxDate;d(n)&&e<n?e=n:d(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(e){var t=!0;if(d(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}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,r=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(r.valueOf()+o):"subtract"===e&&(n=new Date(r.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=E(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=E({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?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=T.minDate,this._o.minYear=T.minYear,this._o.minMonth=T.minMonth,this._o.startRange=T.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=T.maxDate,this._o.maxYear=T.maxYear,this._o.maxMonth=T.maxMonth,this._o.endRange=T.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,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s));for(var u=0;u<n.numberOfMonths;u++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),l+='<div class="pika-lendar">'+S(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,c,d,h,f,p;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||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,f=!0,p=!0,"function"==typeof e.getBoundingClientRect)c=(h=e.getBoundingClientRect()).left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(c=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&c+n>i||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth,f=!1),(this._o.reposition&&d+o>a+s||this._o.position.indexOf("top")>-1&&d-o-e.offsetHeight>0)&&(d=d-o-e.offsetHeight,p=!1),this.el.style.left=c+"px",this.el.style.top=d+"px",l(this.el,f?"left-aligned":"right-aligned"),l(this.el,p?"bottom-aligned":"top-aligned"),u(this.el,f?"right-aligned":"left-aligned"),u(this.el,p?"top-aligned":"bottom-aligned")}},render:function(n,r,o){var i=this._o,a=new Date,s=p(n,r),l=new Date(n,r,1).getDay(),u=[],c=[];g(a),i.firstDay>0&&(l-=i.firstDay)<0&&(l+=7);for(var f=0===r?11:r-1,v=11===r?0:r+1,y=0===r?n-1:n,E=11===r?n+1:n,T=p(y,f),S=s+l,O=S;O>7;)O-=7;S+=7-O;for(var b,A,N,M,I,_=!1,k=0,P=0;k<S;k++){var x=new Date(n,r,k-l+1),L=!!d(this._d)&&m(x,this._d),D=m(x,a),F=-1!==i.events.indexOf(x.toDateString()),U=k<l||k>=s+l,H=k-l+1,V=r,j=n,B=i.startRange&&m(i.startRange,x),W=i.endRange&&m(i.endRange,x),Y=i.startRange&&i.endRange&&i.startRange<x&&x<i.endRange;U&&(k<l?(H=T+H,V=f,j=y):(H-=s,V=v,j=E));var G={day:H,month:V,year:j,hasEvent:F,isSelected:L,isToday:D,isDisabled:i.minDate&&x<i.minDate||i.maxDate&&x>i.maxDate||i.disableWeekends&&h(x)||i.disableDayFn&&i.disableDayFn(x),isEmpty:U,isStartRange:B,isEndRange:W,isInRange:Y,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&L&&(_=!0),c.push(R(G)),7==++P&&(i.showWeekNumber&&c.unshift((b=k-l,A=r,N=n,M=i.firstWeekOfYearMinDays,I=void 0,void 0,I=new Date(N,A,b),'<td class="pika-week">'+(t?e(I).isoWeek():function(e,t){e.setHours(0,0,0,0);var n=e.getDate(),r=e.getDay(),o=t,i=o-1,a=function(e){return(e+7-1)%7};e.setDate(n+i-a(r));var s=new Date(e.getFullYear(),0,o),l=(e.getTime()-s.getTime())/864e5;return 1+Math.round((l-i+a(s.getDay()))/7)}(I,M))+"</td>")),u.push(w(c,i.isRTL,i.pickWholeWeek,_)),c=[],P=0,_=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+(r=t,"<tbody>"+r.join("")+"</tbody>")+"</table>";var r}(i,u,o)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(i(r,"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&&a(r,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(r,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},O}(o)}()},function(e,t,n){},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0,n(35),n(1);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(298),d=r(n(59));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="dropdown";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}],[{key:"EDITOR_TYPE",get:function(){return"dropdown"}}]),n}(c.AutocompleteEditor);t.DropdownEditor=f,d.default.getSingleton().add("beforeValidate",(function(e,t,n){var r=this.getCellMeta(t,this.propToCol(n));r.editor===f&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(134);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="numeric";var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,null,[{key:"EDITOR_TYPE",get:function(){return"numeric"}}]),n}(u.TextEditor);t.NumericEditor=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="password";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,d.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}],[{key:"EDITOR_TYPE",get:function(){return"password"}}]),n}(c.TextEditor);t.PasswordEditor=f},function(e,t,n){"use strict";t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var r=n(849);t.EDITOR_TYPE=r.EDITOR_TYPE,t.SelectEditor=r.SelectEditor},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var o=r(n(14)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(189),h=n(16),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.EDITOR_TYPE="select";var g=function(e){(0,l.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT"),(0,h.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(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",(0,h.hasClass)(this.select,"ht_editor_visible")&&(0,h.removeClass)(this.select,"ht_editor_visible"),this.unregisterShortcuts(),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,r,o,i,a){var l=this;(0,s.default)((0,c.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a);var u,d=this.cellProperties.selectOptions;u="function"==typeof d?this.prepareOptions(d(this.row,this.col,this.prop)):this.prepareOptions(d),(0,h.empty)(this.select),(0,f.objectEach)(u,(function(e,t){var n=l.hot.rootDocument.createElement("OPTION");n.value=t,(0,h.fastInnerHTML)(n,e),l.select.appendChild(n)}))}},{key:"prepareOptions",value:function(e){var t={};if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"===(0,o.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===d.EDITOR_STATE.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e=this.getEditedCellRect(),t=e.top,n=e.start,r=e.width,o=e.height,i=this.select.style;i.height="".concat(o,"px"),i.width="".concat(r,"px"),i.top="".concat(t,"px"),i[this.hot.isRtl()?"right":"left"]="".concat(n,"px"),i.margin="0px",(0,h.addClass)(this.select,"ht_editor_visible")}else this.close()}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={group:"selectEditor"};!1!==this.isInFullEditMode()&&t.addShortcuts([{keys:[["ArrowUp"]],callback:function(){var t=e.select.selectedIndex-1;t>=0&&(e.select[t].selected=!0)}},{keys:[["ArrowDown"]],callback:function(){var t=e.select.selectedIndex+1;t<=e.select.length-1&&(e.select[t].selected=!0)}}],n)}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("selectEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"select"}}]),n}(d.BaseEditor);t.SelectEditor=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="time";var h=function(e){(0,s.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.TEXTAREA.dir="ltr"}}],[{key:"EDITOR_TYPE",get:function(){return"time"}}]),n}(c.TextEditor);t.TimeEditor=h},function(e,t,n){"use strict";t.__esModule=!0,t.hasRenderer=t.getRenderer=t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.registerAllRenderers=function(){(0,d.registerRenderer)(r.autocompleteRenderer),(0,d.registerRenderer)(o.baseRenderer),(0,d.registerRenderer)(i.checkboxRenderer),(0,d.registerRenderer)(a.htmlRenderer),(0,d.registerRenderer)(s.numericRenderer),(0,d.registerRenderer)(l.passwordRenderer),(0,d.registerRenderer)(u.textRenderer),(0,d.registerRenderer)(c.timeRenderer)};var r=n(190);t.autocompleteRenderer=r.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=r.RENDERER_TYPE;var o=n(231);t.baseRenderer=o.baseRenderer,t.BASE_RENDERER=o.RENDERER_TYPE;var i=n(599);t.checkboxRenderer=i.checkboxRenderer,t.CHECKBOX_RENDERER=i.RENDERER_TYPE;var a=n(598);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var s=n(600);t.numericRenderer=s.numericRenderer,t.NUMERIC_RENDERER=s.RENDERER_TYPE;var l=n(602);t.passwordRenderer=l.passwordRenderer,t.PASSWORD_RENDERER=l.RENDERER_TYPE;var u=n(135);t.textRenderer=u.textRenderer,t.TEXT_RENDERER=u.RENDERER_TYPE;var c=n(603);t.timeRenderer=c.timeRenderer,t.TIME_RENDERER=c.RENDERER_TYPE;var d=n(183);t.registerRenderer=d.registerRenderer,t.getRegisteredRendererNames=d.getRegisteredRendererNames,t.getRegisteredRenderers=d.getRegisteredRenderers,t.getRenderer=d.getRenderer,t.hasRenderer=d.hasRenderer},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.autocompleteRenderer=l;var o=n(598),i=n(135),a=r(n(49)),s=n(16);n(854);function l(e,t,n,r,l,u,c){var d=e.rootDocument,h=c.allowHtml?o.htmlRenderer:i.textRenderer,f=d.createElement("DIV");if(f.className="htAutocompleteArrow",f.appendChild(d.createTextNode(String.fromCharCode(9660))),h.apply(this,[e,t,n,r,l,u,c]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(f,t.firstChild),(0,s.addClass)(t,"htAutocomplete"),!e.acArrowListener){var p=new a.default(e);e.acArrowListener=function(o){(0,s.hasClass)(o.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(n,r),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(function(){p.destroy()}))}}t.RENDERER_TYPE="autocomplete",l.RENDERER_TYPE="autocomplete"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.htmlRenderer=i;var r=n(231),o=n(16);function i(e,t,n,i,a,s,l){r.baseRenderer.apply(this,[e,t,n,i,a,s,l]),(0,o.fastInnerHTML)(t,null==s?"":s,!1)}t.RENDERER_TYPE="html",i.RENDERER_TYPE="html"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.checkboxRenderer=h,n(4),n(1),n(5),n(7),n(6),n(31),n(41),n(98),n(67);var o=n(231),i=r(n(49)),a=n(16),s=n(24),l=n(182);n(856);var u=r(n(59)),c=new WeakMap,d=new WeakMap;function h(e,t,n,r,u,h,p){var g=e.rootDocument;o.baseRenderer.apply(this,[e,t,n,r,u,h,p]),function(e){var t=d.get(e);if(!t){var n=e.rootElement;(t=new i.default(e)).addEventListener(n,"click",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10);t.getCellMeta(r,o).readOnly&&e.preventDefault()}(t,e)})),t.addEventListener(n,"mouseup",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;setTimeout(t.listen,10)}(t,e)})),t.addEventListener(n,"change",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10),i=t.getCellMeta(r,o);if(!i.readOnly){var a=null;a=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(r,o,a)}}(t,e)})),d.set(e,t)}}(e);var m,v,y=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)}(g),E=p.label,T=!1;if(void 0===p.checkedTemplate&&(p.checkedTemplate=!0),void 0===p.uncheckedTemplate&&(p.uncheckedTemplate=!1),(0,a.empty)(t),h===p.checkedTemplate||(0,s.stringify)(h).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.checkedTemplate).toLocaleLowerCase(p.locale)?y.checked=!0:h===p.uncheckedTemplate||(0,s.stringify)(h).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.uncheckedTemplate).toLocaleLowerCase(p.locale)?y.checked=!1:(0,s.isEmpty)(h)?(0,a.addClass)(y,"noValue"):(y.style.display="none",(0,a.addClass)(y,"htBadValue"),T=!0),y.setAttribute("data-row",n),y.setAttribute("data-col",r),!T&&E){var C="";if(E.value)C="function"==typeof E.value?E.value.call(this,n,r,u,h):E.value;else if(E.property){var R=e.getDataAtRowProp(n,E.property);C=null!==R?R:""}var w=function(e,t,n){var r=e.createElement("label");return r.className="htCheckboxRendererLabel ".concat(n?"fullWidth":""),r.appendChild(e.createTextNode(t)),r.cloneNode(!0)}(g,C,!0!==E.separated);"before"===E.position?E.separated?(t.appendChild(w),t.appendChild(y)):(w.appendChild(y),y=w):E.position&&"after"!==E.position||(E.separated?(t.appendChild(y),t.appendChild(w)):(w.insertBefore(y,w.firstChild),y=w))}function S(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n)for(var r=0;r<n.length;r++){for(var o=n[r].getTopStartCorner(),i=o.row,a=o.col,s=n[r].getBottomEndCorner(),l=s.row,u=s.col,c=[],d=i;d<=l;d+=1)for(var h=a;h<=u;h+=1){var f=e.getCellMeta(d,h);if("checkbox"!==f.type)return;if(!0!==f.readOnly){void 0===f.checkedTemplate&&(f.checkedTemplate=!0),void 0===f.uncheckedTemplate&&(f.uncheckedTemplate=!1);var p=e.getDataAtCell(d,h);!1===t?[f.checkedTemplate,f.checkedTemplate.toString()].includes(p)?c.push([d,h,f.uncheckedTemplate]):[f.uncheckedTemplate,f.uncheckedTemplate.toString(),null,void 0].includes(p)&&c.push([d,h,f.checkedTemplate]):c.push([d,h,f.uncheckedTemplate])}}c.length>0&&e.setDataAtCell(c)}}function O(){var t=e.getSelectedRange();if(t){for(var n=0;n<t.length;n++)for(var r=t[n].getTopStartCorner(),o=t[n].getBottomEndCorner(),i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return!1;var l=e.getCell(i,a);if(null==l)return!0;if(l.querySelectorAll("input[type=checkbox]").length>0&&!s.readOnly)return!0}return!1}}(!E||E&&!E.separated)&&t.appendChild(y),T&&t.appendChild(g.createTextNode("#bad-value#")),c.has(e)||(c.set(e,!0),m=e.getShortcutManager().getContext("grid"),v={group:"checkboxRenderer"},m.addShortcuts([{keys:[["space"]],callback:function(){return S(),!O()}},{keys:[["enter"]],callback:function(){return S(),!O()},runOnlyIf:function(){return e.getSettings().enterBeginsEditing}},{keys:[["delete"],["backspace"]],callback:function(){return S(!0),!O()},relativeToGroup:l.SHORTCUTS_GROUP_EDITOR,position:"before"}],v))}function f(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.RENDERER_TYPE="checkbox",u.default.getSingleton().add("modifyAutoColumnSizeSeed",(function(e,t,n){var r=t.label,o=t.type,i=t.row,a=t.column,s=t.prop;if("checkbox"===o){if(r){var l=r.value,u=r.property,c=n;if(l)c="function"==typeof l?l(i,a,s,n):l;else if(u){var d=this.getDataAtRowProp(i,u);c=null!==d?d:n}e=c}return e}})),h.RENDERER_TYPE="checkbox"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.numericRenderer=s,n(51),n(82),n(22),n(83);var o=r(n(601)),i=n(135),a=n(36);function s(e,t,n,r,s,l,u){var c=l;if((0,a.isNumeric)(c)){var d=u.numericFormat,h=d&&d.culture||"-",f=d&&d.pattern,p=u.className||"",g=p.length?p.split(" "):[];if(void 0!==h&&!o.default.languages()[h]){var m=h.replace("-",""),v=o.default.allLanguages?o.default.allLanguages[h]:o.default[m];v&&o.default.registerLanguage(v)}o.default.setLanguage(h),c=(0,o.default)(c).format(f||"0"),g.indexOf("htLeft")<0&&g.indexOf("htCenter")<0&&g.indexOf("htRight")<0&&g.indexOf("htJustify")<0&&g.push("htRight"),g.indexOf("htNumeric")<0&&g.push("htNumeric"),u.className=g.join(" "),t.dir="ltr"}(0,i.textRenderer)(e,t,n,r,s,c,u)}t.RENDERER_TYPE="numeric",s.RENDERER_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.passwordRenderer=a;var r=n(135),o=n(16),i=n(36);function a(e,t,n,a,s,l,u){r.textRenderer.apply(this,[e,t,n,a,s,l,u]);var c=u.hashLength||t.innerHTML.length,d=u.hashSymbol||"*",h="";(0,i.rangeEach)(c-1,(function(){h+=d})),(0,o.fastInnerHTML)(t,h)}t.RENDERER_TYPE="password",a.RENDERER_TYPE="password"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.timeRenderer=o;var r=n(135);function o(e,t,n,o,i,a,s){r.textRenderer.apply(this,[e,t,n,o,i,a,s]),t.dir="ltr"}t.RENDERER_TYPE="time",o.RENDERER_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidator=t.getValidator=t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.registerAllValidators=function(){(0,s.registerValidator)(r.autocompleteValidator),(0,s.registerValidator)(o.dateValidator),(0,s.registerValidator)(i.numericValidator),(0,s.registerValidator)(a.timeValidator)};var r=n(301);t.autocompleteValidator=r.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=r.VALIDATOR_TYPE;var o=n(604);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=n(607);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var a=n(608);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var s=n(184);t.registerValidator=s.registerValidator,t.getRegisteredValidatorNames=s.getRegisteredValidatorNames,t.getRegisteredValidators=s.getRegisteredValidators,t.getValidator=s.getValidator,t.hasValidator=s.hasValidator},function(e,t,n){"use strict";t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.autocompleteValidator=r;function r(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}function o(e,t){var n=e;return function(e){for(var r=!1,o=0,i=e.length;o<i;o++)if(n===e[o]){r=!0;break}t(r)}}t.VALIDATOR_TYPE="autocomplete",r.VALIDATOR_TYPE="autocomplete"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.correctFormat=u,t.dateValidator=l,n(51),n(605);var o=r(n(95)),i=n(129),a=n(300),s=n(606);function l(e,t){var n=(0,i.getEditorInstance)(a.EDITOR_TYPE,this.instance),r=e,s=!0;null==r&&(r="");var l=(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),c=(0,o.default)(new Date(r)).isValid()||l;if(this.allowEmpty&&""===r&&(c=!0,l=!0),c||(s=!1),!c&&l&&(s=!0),c&&!l)if(!0===this.correctFormat){var d=u(r,this.dateFormat),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"dateValidator"),s=!0}else s=!1;t(s)}function u(e,t){var n=(0,o.default)((0,s.getNormalizedDate)(e)),r=(0,o.default)(e,t),i=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||i?n:r).format(t)}t.VALIDATOR_TYPE="date",l.VALIDATOR_TYPE="date"},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.VALIDATOR_TYPE=void 0,t.numericValidator=o;var r=n(36);function o(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,r.isNumeric)(e))}t.VALIDATOR_TYPE="numeric",o.VALIDATOR_TYPE="numeric"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.timeValidator=a,n(51);var o=r(n(95)),i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function a(e,t){var n=this.timeFormat||"h:mm:ss a",r=!0,a=e;null===a&&(a=""),a=/^\d{3,}$/.test(a)?parseInt(a,10):a;var s=/^\d{1,2}$/.test(a);s&&(a+=":00");var l=(0,o.default)(a,i,!0).isValid()?(0,o.default)(a):(0,o.default)(a,n),u=l.isValid(),c=(0,o.default)(a,n,!0).isValid()&&!s;if(this.allowEmpty&&""===a&&(u=!0,c=!0),u||(r=!1),!u&&c&&(r=!0),u&&!c)if(!0===this.correctFormat){var d=l.format(n),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"timeValidator"),r=!0}else r=!1;t(r)}t.VALIDATOR_TYPE="time",a.VALIDATOR_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.getCellType=void 0,t.registerAllCellTypes=function(){(0,h.registerCellType)(r.AutocompleteCellType),(0,h.registerCellType)(o.CheckboxCellType),(0,h.registerCellType)(i.DateCellType),(0,h.registerCellType)(a.DropdownCellType),(0,h.registerCellType)(s.HandsontableCellType),(0,h.registerCellType)(l.NumericCellType),(0,h.registerCellType)(u.PasswordCellType),(0,h.registerCellType)(c.TextCellType),(0,h.registerCellType)(d.TimeCellType)};var r=n(867);t.AutocompleteCellType=r.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=r.CELL_TYPE;var o=n(869);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=n(871);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var a=n(873);t.DropdownCellType=a.DropdownCellType,t.DROPDOWN_TYPE=a.CELL_TYPE;var s=n(875);t.HandsontableCellType=s.HandsontableCellType,t.HANDSONTABLE_TYPE=s.CELL_TYPE;var l=n(877);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var u=n(879);t.PasswordCellType=u.PasswordCellType,t.PASSWORD_TYPE=u.CELL_TYPE;var c=n(591);t.TextCellType=c.TextCellType,t.TEXT_TYPE=c.CELL_TYPE;var d=n(881);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var h=n(188);t.registerCellType=h.registerCellType,t.getCellType=h.getCellType,t.getRegisteredCellTypeNames=h.getRegisteredCellTypeNames,t.getRegisteredCellTypes=h.getRegisteredCellTypes,t.hasCellType=h.hasCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(868);t.AutocompleteCellType=r.AutocompleteCellType,t.CELL_TYPE=r.CELL_TYPE},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(298),o=n(190),i=n(301);t.CELL_TYPE="autocomplete";var a={CELL_TYPE:"autocomplete",editor:r.AutocompleteEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.AutocompleteCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(870);t.CELL_TYPE=r.CELL_TYPE,t.CheckboxCellType=r.CheckboxCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(593),o=n(599);t.CELL_TYPE="checkbox";var i={CELL_TYPE:"checkbox",editor:r.CheckboxEditor,renderer:o.checkboxRenderer};t.CheckboxCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(872);t.CELL_TYPE=r.CELL_TYPE,t.DateCellType=r.DateCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(300),o=n(190),i=n(604);t.CELL_TYPE="date";var a={CELL_TYPE:"date",editor:r.DateEditor,renderer:o.autocompleteRenderer,validator:i.dateValidator};t.DateCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(874);t.CELL_TYPE=r.CELL_TYPE,t.DropdownCellType=r.DropdownCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(594),o=n(190),i=n(301);t.CELL_TYPE="dropdown";var a={CELL_TYPE:"dropdown",editor:r.DropdownEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.DropdownCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(876);t.CELL_TYPE=r.CELL_TYPE,t.HandsontableCellType=r.HandsontableCellType},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(299),o=n(190);t.CELL_TYPE="handsontable";var i={CELL_TYPE:"handsontable",editor:r.HandsontableEditor,renderer:o.autocompleteRenderer};t.HandsontableCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(878);t.CELL_TYPE=r.CELL_TYPE,t.NumericCellType=r.NumericCellType},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(595),o=n(600),i=n(607);t.CELL_TYPE="numeric";var a={CELL_TYPE:"numeric",editor:r.NumericEditor,renderer:o.numericRenderer,validator:i.numericValidator,dataType:"number"};t.NumericCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(880);t.CELL_TYPE=r.CELL_TYPE,t.PasswordCellType=r.PasswordCellType},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(596),o=n(602);t.CELL_TYPE="password";var i={CELL_TYPE:"password",editor:r.PasswordEditor,renderer:o.passwordRenderer,copyable:!1};t.PasswordCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(882);t.CELL_TYPE=r.CELL_TYPE,t.TimeCellType=r.TimeCellType},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(597),o=n(603),i=n(608);t.CELL_TYPE="time";var a={CELL_TYPE:"time",editor:r.TimeEditor,renderer:o.timeRenderer,validator:i.timeValidator};t.TimeCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.getPluginsNames=t.getPlugin=void 0,t.registerAllPlugins=function(){(0,F.registerPlugin)(r.AutoColumnSize),(0,F.registerPlugin)(o.Autofill),(0,F.registerPlugin)(i.AutoRowSize),(0,F.registerPlugin)(s.BindRowsWithHeaders),(0,F.registerPlugin)(l.CollapsibleColumns),(0,F.registerPlugin)(u.ColumnSorting),(0,F.registerPlugin)(c.ColumnSummary),(0,F.registerPlugin)(d.Comments),(0,F.registerPlugin)(h.ContextMenu),(0,F.registerPlugin)(f.CopyPaste),(0,F.registerPlugin)(p.CustomBorders),(0,F.registerPlugin)(g.DragToScroll),(0,F.registerPlugin)(m.DropdownMenu),(0,F.registerPlugin)(v.ExportFile),(0,F.registerPlugin)(y.Filters),(0,F.registerPlugin)(E.Formulas),(0,F.registerPlugin)(T.HiddenColumns),(0,F.registerPlugin)(C.HiddenRows),(0,F.registerPlugin)(R.ManualColumnFreeze),(0,F.registerPlugin)(w.ManualColumnMove),(0,F.registerPlugin)(S.ManualColumnResize),(0,F.registerPlugin)(O.ManualRowMove),(0,F.registerPlugin)(b.ManualRowResize),(0,F.registerPlugin)(A.MergeCells),(0,F.registerPlugin)(N.MultiColumnSorting),(0,F.registerPlugin)(M.MultipleSelectionHandles),(0,F.registerPlugin)(I.NestedHeaders),(0,F.registerPlugin)(_.NestedRows),(0,F.registerPlugin)(k.PersistentState),(0,F.registerPlugin)(P.Search),(0,F.registerPlugin)(x.TouchScroll),(0,F.registerPlugin)(L.TrimRows),(0,F.registerPlugin)(D.UndoRedo)};var r=n(884);t.AutoColumnSize=r.AutoColumnSize;var o=n(888);t.Autofill=o.Autofill;var i=n(891);t.AutoRowSize=i.AutoRowSize;var a=n(38);t.BasePlugin=a.BasePlugin;var s=n(893);t.BindRowsWithHeaders=s.BindRowsWithHeaders;var l=n(897);t.CollapsibleColumns=l.CollapsibleColumns;var u=n(610);t.ColumnSorting=u.ColumnSorting;var c=n(907);t.ColumnSummary=c.ColumnSummary;var d=n(912);t.Comments=d.Comments;var h=n(917);t.ContextMenu=h.ContextMenu;var f=n(933);t.CopyPaste=f.CopyPaste;var p=n(945);t.CustomBorders=p.CustomBorders;var g=n(953);t.DragToScroll=g.DragToScroll;var m=n(955);t.DropdownMenu=m.DropdownMenu;var v=n(958);t.ExportFile=v.ExportFile;var y=n(964);t.Filters=y.Filters;var E=n(997);t.Formulas=E.Formulas;var T=n(1e3);t.HiddenColumns=T.HiddenColumns;var C=n(1005);t.HiddenRows=C.HiddenRows;var R=n(1010);t.ManualColumnFreeze=R.ManualColumnFreeze;var w=n(1015);t.ManualColumnMove=w.ManualColumnMove;var S=n(1020);t.ManualColumnResize=S.ManualColumnResize;var O=n(1022);t.ManualRowMove=O.ManualRowMove;var b=n(1027);t.ManualRowResize=b.ManualRowResize;var A=n(1029);t.MergeCells=A.MergeCells;var N=n(1036);t.MultiColumnSorting=N.MultiColumnSorting;var M=n(1042);t.MultipleSelectionHandles=M.MultipleSelectionHandles;var I=n(1044);t.NestedHeaders=I.NestedHeaders;var _=n(1057);t.NestedRows=_.NestedRows;var k=n(1064);t.PersistentState=k.PersistentState;var P=n(1067);t.Search=P.Search;var x=n(1069);t.TouchScroll=x.TouchScroll;var L=n(1071);t.TrimRows=L.TrimRows;var D=n(1073);t.UndoRedo=D.UndoRedo;var F=n(223);t.registerPlugin=F.registerPlugin,t.getPlugin=F.getPlugin,t.getPluginsNames=F.getPluginsNames},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var r=n(885);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(39),n(67),n(48),n(52);var h=n(38),f=n(13),p=n(107),g=r(n(302)),m=r(n(59)),v=n(12),y=n(36),E=r(n(609)),T=n(84),C=n(130),R=n(76),w=n(24);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}m.default.getSingleton().register("modifyAutoColumnSizeSeed");var O="autoColumnSize";t.PLUGIN_KEY=O;t.PLUGIN_PRIORITY=10;var b=new WeakMap,A=function(e){(0,u.default)(n,e);var t=S(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),b.set((0,s.default)(r),{cachedColumnHeaders:[]}),r.ghostTable=new g.default(r.hot),r.samplesGenerator=new E.default((function(e,t){var n=r.hot.getCellMeta(e,t),o="";n.spanned||(o=r.hot.getDataAtCell(e,t));var i="";return r.hot.hasHook("modifyAutoColumnSizeSeed")&&(i=r.hot.runHooks("modifyAutoColumnSizeSeed",i,n,o)),{value:o,bundleSeed:i}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredColumns=0,r.columnWidthsMap=new R.PhysicalIndexToValueMap,r.hot.columnIndexMapper.registerMap("autoColumnSize",r.columnWidthsMap),r.addHook("beforeColumnResize",(function(e,t,n){return r.onBeforeColumnResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings()[O]&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[O];t&&null!==t.useHeaders&&void 0!==t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("afterFormulasValuesUpdate",(function(t){return e.onAfterFormulasValuesUpdate(t)})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(t)})),this.addHook("modifyColWidth",(function(t,n){return e.getColumnWidth(n,t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&(this.clearCache(e),this.calculateVisibleColumnsWidth()),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)}))}},{key:"calculateVisibleColumnsWidth",value:function(){if(this.hot.countRows()){var e=this.hot.renderCall,t=this.getFirstVisibleColumn(),n=this.getLastVisibleColumn();-1!==t&&-1!==n&&this.calculateColumnsWidth({from:t,to:n},void 0,e)}}},{key:"calculateColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;(0,y.rangeEach)(i.from,i.to,(function(t){var n=e.hot.toPhysicalColumn(t);if(null===n&&(n=t),r||null===e.columnWidthsMap.getValueAtIndex(n)&&!e.hot._getColWidthFromSettings(n)){var i=e.samplesGenerator.generateColumnSamples(t,a);(0,f.arrayEach)(i,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addColumn(r,i)}))}})),this.ghostTable.columns.length&&(this.hot.batchExecution((function(){e.ghostTable.getWidths((function(t,n){var r=e.hot.toPhysicalColumn(t);e.columnWidthsMap.setValueAtIndex(r,n)}))}),!0),this.measuredColumns=i.to+1,this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},r=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,p.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,p.requestAnimationFrame)(a):((0,p.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateColumnsWidth({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings()[O],t=e&&(0,v.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,v.hasOwnProperty)(e,"allowSampleDuplicates")?e.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=this.hot.getSettings()[O],t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countCols()-1;return(0,v.isObject)(e)&&(t=e.syncLimit,(0,T.isPercentValue)(t)?t=(0,y.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,C.ViewportColumnsCalculator.DEFAULT_WIDTH))),r}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view._wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getFirstVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getFirstRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view._wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getLastVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getLastRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=b.get(this).cachedColumnHeaders;return(0,f.arrayReduce)(e,(function(e,n,r){var o=t.length;return(o-1<r||t[r]!==n)&&e.push(r),o-1<r?t.push(n):t[r]=n,e}),[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?this.hot.batchExecution((function(){(0,f.arrayEach)(t,(function(t){e.columnWidthsMap.setValueAtIndex(t,null)}))}),!0):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),(function(e){return null===e})).length}},{key:"onBeforeViewRender",value:function(){this.calculateVisibleColumnsWidth(),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 t=this,n=(0,f.arrayMap)(e,(function(e){var n=(0,o.default)(e,2)[1];return t.hot.toPhysicalColumn(t.hot.propToCol(n))}));this.clearCache(Array.from(new Set(n)))}},{key:"onBeforeColumnResize",value:function(e,t,n){var r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}},{key:"onAfterInit",value:function(){b.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"onAfterFormulasValuesUpdate",value:function(e){var t=(0,f.arrayFilter)(e,(function(e){var t;return(0,w.isDefined)(null===(t=e.address)||void 0===t?void 0:t.col)})),n=(0,f.arrayMap)(t,(function(e){return e.address.col}));this.clearCache(Array.from(new Set(n)))}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return O}},{key:"PLUGIN_PRIORITY",get:function(){return 10}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),n}(h.BasePlugin);t.AutoColumnSize=A},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3));n(4),n(40),n(1),n(5),n(6),n(7),n(23),n(20),n(83),n(22),n(53),n(232);var s=n(12),l=n(13),u=n(223),c=n(188),d=n(129),h=n(183),f=n(184);function p(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var g=new Map([["plugin",u.hasPlugin],["cell-type",c.hasCellType],["editor",d.hasEditor],["renderer",h.hasRenderer],["validator",f.hasValidator]]);t.PLUGIN_KEY="base";var m=new WeakMap,v=[],y=null,E=new WeakSet,T=function(){function e(t){var n=this;(0,i.default)(this,e),p(this,E),(0,s.defineGetter)(this,"hot",t,{writable:!1}),m.set(this,{hooks:{}}),y=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",(function(){return n.onAfterPluginsInitialized()})),this.hot.addHook("afterUpdateSettings",(function(e){return n.onUpdateSettings(e)})),this.hot.addHook("beforeInit",(function(){return n.init()}))}return(0,a.default)(e,[{key:"init",value:function(){var e=this;this.pluginName=this.hot.getPluginName(this);var t=this.constructor.PLUGIN_DEPS,n=Array.isArray(t)?t:[];if(n.length>0){var r=[];if(n.forEach((function(e){var t=e.split(":"),n=(0,o.default)(t,2),i=n[0],a=n[1];if(!g.has(i))throw new Error('Unknown plugin dependency type "'.concat(i,'" was found.'));g.get(i)(a)||r.push(" - ".concat(a," (").concat(i,")"))})),r.length>0){var i=["The ".concat(this.pluginName," plugin requires the following modules:\n"),"".concat(r.join("\n"),"\n")].join("");v.push(i)}}if(y||(y=(0,u.getPluginsNames)()),y.indexOf("UndoRedo")>=0&&y.splice(y.indexOf("UndoRedo"),1),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(function(){e.isEnabled&&e.isEnabled()&&e.enablePlugin()})),0===y.length){if(v.length>0){var a=["".concat(v.join("\n"),"\n"),"You have to import and register them manually."].join("");throw new Error(a)}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){m.get(this).hooks[e]=m.get(this).hooks[e]||[];var n=m.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),m.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,l.arrayEach)(m.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=m.get(this).hooks;(0,s.objectEach)(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,l.arrayEach)(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(e){var t=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,E,C).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,s.objectEach)(this,(function(t,n){"hot"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}],[{key:"PLUGIN_KEY",get:function(){return"base"}},{key:"SETTING_KEYS",get:function(){return[this.PLUGIN_KEY]}}]),e}();function C(e){if(!e)return!1;var t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(var n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}t.BasePlugin=T},function(e,t,n){"use strict";n(216)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(397))},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0;var r=n(889);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0,n(22),n(31),n(41),n(20);var o=r(n(32)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=n(38),p=r(n(59)),g=n(16),m=n(13),v=r(n(49)),y=n(890);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}p.default.getSingleton().register("modifyAutofillRange"),p.default.getSingleton().register("beforeAutofill"),p.default.getSingleton().register("afterAutofill");var T="autofill";t.PLUGIN_KEY=T;t.PLUGIN_PRIORITY=20;var C=["fillHandle"],R=function(e){(0,c.default)(n,e);var t=E(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).eventManager=new v.default((0,l.default)(r)),r.addingStarted=!1,r.mouseDownOnCellCorner=!1,r.mouseDragOutside=!1,r.handleDraggedCells=0,r.directions=[],r.autoInsertRow=!1,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.onAfterCellCornerMouseDown(t)})),this.addHook("afterOnCellCornerDblClick",(function(t){return e.onCellCornerDblClick(t)})),this.addHook("beforeOnCellMouseOver",(function(t,n){return e.onBeforeCellMouseOver(n)})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e=this,t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner(),r=n.row,o=n.col,i=t.getBottomEndCorner(),a=i.row,s=i.col,l=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:o,endRow:a,endCol:s}]),u=[],c=[],d=[];return(0,m.arrayEach)(l,(function(e){for(var t=e.startRow;t<=e.endRow;t+=1)-1===u.indexOf(t)&&u.push(t);for(var n=e.startCol;n<=e.endCol;n+=1)-1===c.indexOf(n)&&c.push(n)})),(0,m.arrayEach)(u,(function(t){var n=[];(0,m.arrayEach)(c,(function(r){n.push(e.hot.getCopyableData(t,r))})),d.push(n)})),d}},{key:"fillIn",value:function(){var e=this;if(this.hot.selection.highlight.getFill().isEmpty())return!1;var t=this.hot.selection.highlight.getFill().getVisualCorners(),n=(0,i.default)(t,4),r=n[0],o=n[1],a=n[2],s=n[3],l=this.hot.getSelectedRangeLast(),u=l.getTopStartCorner(),c=l.getBottomEndCorner();this.resetSelectionOfDraggedArea();var d=[u.row,u.col,c.row,c.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(u.row,r),Math.min(u.col,o),Math.max(c.row,a),Math.max(c.col,s)],d),f=(0,y.getDragDirectionAndRange)(d,h,(function(t,n){return e.hot._createCellCoords(t,n)})),p=f.directionOfDrag,g=f.startOfDragCoords,m=f.endOfDragCoords;if(g&&g.row>-1&&g.col>-1){var v=this.getSelectionData(),E=l.clone(),T=this.hot._createCellRange(g,g,m),C=this.hot.runHooks("beforeAutofill",v,E,T,p);if(!1===C)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;var R=(0,y.getDeltas)(g,m,v,p),w=C,S=C;if(["up","left"].indexOf(p)>-1&&(1!==S.length||0!==S[0].length))if(w=[],"up"===p)for(var O=m.row-g.row+1,b=O%S.length,A=0;A<O;A++)w.push(S[(A+(S.length-b))%S.length]);else for(var N=m.col-g.col+1,M=N%S[0].length,I=0;I<S.length;I++){w.push([]);for(var _=0;_<N;_++)w[I].push(S[I][(_+(S[I].length-M))%S[I].length])}this.hot.populateFromArray(g.row,g.col,w,m.row,m.col,"".concat(this.pluginName,".fill"),null,p,R),this.setSelection(h),this.hot.runHooks("afterAutofill",w,E,T,p),this.hot.render()}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=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner(),r=e;if(this.directions.includes(y.DIRECTIONS.vertical)&&this.directions.includes(y.DIRECTIONS.horizontal)){var o=t.getTopStartCorner();(n.col<=e.col||o.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||o.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(y.DIRECTIONS.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(y.DIRECTIONS.horizontal))return;r=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout((function(){e.hot.alter("insert_row_below",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1}),200)}},{key:"addNewRowIfNeeded",value:function(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),r=this.hot.countRows(),o=e[2]+1;o<r;o++){for(var i=e[1];i<=e[3];i++){if(n[o][i])return-1}var a=n[o][e[1]-1],s=n[o][e[3]+1];(a||s)&&(t=o)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,(0,o.default)((0,m.arrayMap)(e,(function(e){return Math.max(e,0)}))).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.hot.getSelectedLast(),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).commit(),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=this.hot.rootDocument.documentElement,n=(0,g.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,g.outerHeight)(this.hot.table),r=(0,g.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,g.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=r}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{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&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&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,y.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return T}},{key:"PLUGIN_PRIORITY",get:function(){return 20}},{key:"SETTING_KEYS",get:function(){return[T].concat(C)}}]),n}(f.BasePlugin);t.Autofill=R},function(e,t,n){"use strict";t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=function(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var u=[],c=0;c<l;c++){var d=parseInt(n[0][c],10),h=parseInt(n[o-1][c],10),f=("down"===r?h-d:d-h)/(o-1)||0;u.push(f)}a.push(u)}if(-1!==["right","left"].indexOf(r))for(var p=0;p<s;p++){var g=parseInt(n[p][0],10),m=parseInt(n[p][i-1],10),v=("right"===r?m-g:g-m)/(i-1)||0;a.push([v])}return a},t.getDragDirectionAndRange=function(e,t,n){var r,o,i;t[0]===e[0]&&t[1]<e[1]?(i="left",r=n(t[0],t[1]),o=n(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",r=n(t[0],e[3]+1),o=n(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",r=n(t[0],t[1]),o=n(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",r=n(e[2]+1,t[1]),o=n(t[2],t[3]));r&&r.normalize();o&&o.normalize();return{directionOfDrag:i,startOfDragCoords:r,endOfDragCoords:o}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,r.isObject)(e)?((0,o.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,o.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t},n(22),n(43);var r=n(12),o=n(24),i={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=i},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0;var r=n(892);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoRowSize=r.AutoRowSize},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0,n(39),n(67);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=n(13),f=n(107),p=n(16),g=r(n(302)),m=n(12),v=n(36),y=r(n(609)),E=n(84),T=n(76);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="autoRowSize";t.PLUGIN_PRIORITY=40;var R=function(e){(0,l.default)(n,e);var t=C(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).rowHeightsMap=void 0,r.headerHeight=null,r.ghostTable=new g.default(r.hot),r.samplesGenerator=new y.default((function(e,t){var n;return e>=0?n=r.hot.getDataAtCell(e,t):-1===e&&(n=r.hot.getColHeader(t)),{value:n}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredRows=0,r.rowHeightsMap=new T.PhysicalIndexToValueMap,r.hot.rowIndexMapper.registerMap("autoRowSize",r.rowHeightsMap),r.addHook("beforeRowResize",(function(e,t,n){return r.onBeforeRowResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){var e=this.hot.getSettings().autoRowSize;return!0===e||(0,m.isObject)(e)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(t)})),this.addHook("modifyRowHeight",(function(t,n){return e.getRowHeight(n,t)})),this.addHook("modifyColumnHeaderHeight",(function(){return e.getColumnHeaderHeight()})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this;this.headerHeight=null,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeRowResize",(function(t,n,r){return e.onBeforeRowResize(t,n,r)}))}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var s=this.samplesGenerator.generateRowSamples(-1,a);this.ghostTable.addColumnHeadersRow(s.get(-1))}(0,v.rangeEach)(i.from,i.to,(function(t){if(r||null===e.rowHeightsMap.getValueAtIndex(t)){var n=e.samplesGenerator.generateRowSamples(t,a);(0,h.arrayEach)(n,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addRow(r,i)}))}})),this.ghostTable.rows.length&&(this.hot.batchExecution((function(){e.ghostTable.getHeights((function(t,n){t<0?e.headerHeight=n:e.rowHeightsMap.setValueAtIndex(e.hot.toPhysicalRow(t),n)}))}),!0),this.measuredRows=i.to+1,this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},r=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,f.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateRowsHeight({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,f.requestAnimationFrame)(a):((0,f.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize(!0),e.hot.view._wt.wtOverlays.inlineStartOverlay.needFullRender&&e.hot.view._wt.wtOverlays.inlineStartOverlay.clone.draw())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateRowsHeight({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():(this.inProgress=!1,this.hot.view.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?e.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,p.isVisible)(this.hot.view._wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=this.hot.getSettings().autoRowSize,t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countRows()-1;return(0,m.isObject)(e)&&(t=e.syncLimit,(0,E.isPercentValue)(t)?t=(0,v.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e)),r=t;return null!==n&&n>(t||0)&&(r=n),r}},{key:"getColumnHeaderHeight",value:function(){return this.headerHeight}},{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.headerHeight=null,this.rowHeightsMap.init()}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,r=n.from,o=n.to;this.hot.batchExecution((function(){(0,v.rangeEach)(Math.min(r,o),Math.max(r,o),(function(e){t.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.rowHeightsMap.getValues().slice(0,this.measuredRows),(function(e){return null===e})).length}},{key:"onBeforeViewRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),r=this.getLastVisibleRow();if(-1!==n&&-1!==r){if(this.calculateRowsHeight({from:n,to:r},void 0,e),t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}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 r=e;return n&&(this.calculateRowsHeight(t,void 0,!0),r=this.getRowHeight(t)),r}},{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]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autoRowSize"}},{key:"PLUGIN_PRIORITY",get:function(){return 40}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),n}(d.BasePlugin);t.AutoRowSize=R},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var r=n(894);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.BindRowsWithHeaders=r.BindRowsWithHeaders},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8));n(4),n(40),n(1),n(5),n(6);var c=n(38),d=r(n(895)),h=r(n(896));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p="bindRowsWithHeaders";t.PLUGIN_KEY=p;t.PLUGIN_PRIORITY=210;var g=new Map([["loose",d.default],["strict",h.default]]),m=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).headerIndexes=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[p]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[p];"string"!=typeof t&&(t="loose");var r=g.get(t);this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new r),this.addHook("modifyRowHeader",(function(t){return e.onModifyRowHeader(t)})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}},{key:"destroy",value:function(){(0,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return p}},{key:"PLUGIN_PRIORITY",get:function(){return 210}}]),n}(c.BasePlugin);t.BindRowsWithHeaders=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(76);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var h=(0,c.alterUtilsFactory)("physicallyIndexed"),f=h.getListWithInsertedItems,p=h.getListWithRemovedItems,g=function(e){(0,s.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,c.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=f(r,e,t,this.initValueOrFn),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=p(this.indexedValues,e);this.indexedValues=(0,c.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.default=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(76);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f=(0,d.alterUtilsFactory)("physicallyIndexed"),p=f.getListWithInsertedItems,g=f.getListWithRemovedItems,m=function(e){(0,l.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.call(this,(function(e){return e}))}return(0,a.default)(n,[{key:"insert",value:function(e,t){var r=this;this.indexedValues=p(this.indexedValues,e,t,(function(e,t){return r.getNextValue(t)})),(0,s.default)((0,c.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=g(this.indexedValues,e),(0,s.default)((0,c.default)(n.prototype),"remove",this).call(this,e)}},{key:"getNextValue",value:function(e){return Math.max.apply(Math,(0,o.default)(this.getValues()))+1+e}}]),n}(d.IndexMap);t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var r=n(898);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CollapsibleColumns=r.CollapsibleColumns},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=r(n(78)),p=r(n(79));n(4),n(40),n(1),n(5),n(6),n(20),n(31),n(7);var g=n(38),m=n(13),v=n(36),y=n(74),E=n(16),T=r(n(49)),C=n(75);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function w(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var S="collapsibleColumns";t.PLUGIN_KEY=S;t.PLUGIN_PRIORITY=290;var O=["nestedHeaders"],b=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]),A=new WeakMap,N=function(e){(0,u.default)(n,e);var t=R(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"nestedHeadersPlugin",null),(0,h.default)((0,s.default)(e),"eventManager",new T.default((0,s.default)(e))),(0,h.default)((0,s.default)(e),"headerStateManager",null),w((0,s.default)(e),A,{writable:!0,value:null}),e}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[S]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.hot.getSettings().nestedHeaders||(0,y.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),(0,p.default)(this,A,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("afterGetColHeader",(function(){return e.onAfterGetColHeader.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r){return e.onBeforeOnCellMouseDown(t,n,r)})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin())}},{key:"updatePlugin",value:function(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){var e=this.hot.getSettings().collapsibleColumns;"boolean"==typeof e?this.headerStateManager.mapState((function(e){return{collapsible:e.origColspan>1}})):Array.isArray(e)&&(this.headerStateManager.mapState((function(){return{collapsible:!1}})),this.headerStateManager.mergeStateWith(e))}(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,p.default)(this,A,null),this.nestedHeadersPlugin=null,this.clearButtons(),(0,l.default)((0,d.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,n=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};(0,v.rangeEach)(0,e-1,(function(e){var i=t.childNodes[e],a=n.childNodes[e],s=r?r.childNodes[e]:null;(0,v.rangeEach)(0,i.childNodes.length-1,(function(e){var t=i.childNodes[e].querySelector(".".concat("collapsibleIndicator"));o(t),a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(".".concat("collapsibleIndicator")),o(t)),r&&s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".".concat("collapsibleIndicator")),o(t))}))}),!0)}}},{key:"expandSection",value:function(e){this.toggleCollapsibleSection([e],"expand")}},{key:"collapseSection",value:function(e){this.toggleCollapsibleSection([e],"collapse")}},{key:"toggleAllCollapsibleSections",value:function(e){var t=this,n=this.headerStateManager.mapNodes((function(n){var r=n.collapsible,o=n.origColspan,i=n.headerLevel,a=n.columnIndex,s=n.isCollapsed;if(!0===r&&o>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:t.headerStateManager.levelToRowCoords(i),col:a}}));this.toggleCollapsibleSection(n,e)}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(e,t){var n=this;if(!b.has(t))throw new Error("Unsupported action is passed (".concat(t,")."));if(Array.isArray(e)){var r=(0,m.arrayFilter)(e,(function(e){return e.row<0})),i=r.length>0;(0,m.arrayEach)(r,(function(e){var r,o=e.row,a=e.col,s=null!==(r=n.headerStateManager.getHeaderSettings(o,a))&&void 0!==r?r:{},l=s.collapsible,u=s.isCollapsed;if(!l||u&&"collapse"===t||!u&&"expand"===t)return i=!1,!1}));var a=[],s=[];i&&(0,m.arrayEach)(r,(function(e){var r=e.row,i=e.col,l=n.headerStateManager.triggerNodeModification(t,r,i),u=l.colspanCompensation,c=l.affectedColumns,d=l.rollbackModification;u>0&&(s.push.apply(s,(0,o.default)(c)),a.push(d))}));var l=this.getCollapsedColumns(),u=[];"collapse"===t?u=(0,m.arrayUnique)([].concat((0,o.default)(l),s)):"expand"===t&&(u=(0,m.arrayFilter)(l,(function(e){return!s.includes(e)})));var c=b.get(t);if(!1!==this.hot.runHooks(c.beforeHook,l,u,i)){this.hot.batchExecution((function(){(0,m.arrayEach)(s,(function(e){(0,f.default)(n,A).setValueAtIndex(n.hot.toPhysicalColumn(e),c.hideColumn)}))}),!0);var d=this.getCollapsedColumns().length!==l.length;this.hot.runHooks(c.afterHook,l,u,i,d),this.hot.render(),this.hot.view.adjustElementsSize(!0)}else(0,m.arrayEach)(a,(function(e){e()}))}}},{key:"getCollapsedColumns",value:function(){return(0,f.default)(this,A).getHiddenIndexes()}},{key:"onAfterGetColHeader",value:function(e,t,n){var r,o,i=null!==(r=this.headerStateManager.getHeaderSettings(n,e))&&void 0!==r?r:{},a=i.collapsible,s=i.origColspan,l=i.isCollapsed,u=a&&s>1&&e>=this.hot.getSettings().fixedColumnsStart,c=t.querySelector(".".concat("collapsibleIndicator"));u?(c||(c=this.hot.rootDocument.createElement("div"),(0,E.addClass)(c,"collapsibleIndicator"),t.querySelector("div:first-child").appendChild(c)),(0,E.removeClass)(c,["collapsed","expanded"]),l?((0,E.addClass)(c,"collapsed"),(0,E.fastInnerText)(c,"+")):((0,E.addClass)(c,"expanded"),(0,E.fastInnerText)(c,"-"))):null===(o=c)||void 0===o||o.remove()}},{key:"onBeforeOnCellMouseDown",value:function(e,t){(0,E.hasClass)(e.target,"collapsibleIndicator")&&((0,E.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,E.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,C.stopImmediatePropagation)(e))}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,p.default)(this,A,null),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return S}},{key:"PLUGIN_PRIORITY",get:function(){return 290}},{key:"PLUGIN_DEPS",get:function(){return["plugin:NestedHeaders"]}},{key:"SETTING_KEYS",get:function(){return[S].concat(O)}}]),n}(g.BasePlugin);t.CollapsibleColumns=N},function(e,t,n){"use strict";n(9),n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var o=r(n(32)),i=r(n(26)),a=r(n(109));n(89),n(39),n(1),n(72),n(73),n(20),n(419),n(297),n(4),n(40),n(5),n(6);var s=r(n(2)),l=r(n(3)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=n(16),p=n(24),g=n(12),m=n(58),v=n(13),y=n(38),E=n(76),T=r(n(59)),C=n(900),R=n(303),w=n(901),S=n(902),O=n(117),b=["column"],A=["column"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}t.PLUGIN_KEY="columnSorting";t.PLUGIN_PRIORITY=50;(0,O.registerRootComparator)("columnSorting",S.rootComparator),T.default.getSingleton().register("beforeColumnSort"),T.default.getSingleton().register("afterColumnSort");var _=function(e){(0,c.default)(n,e);var t=I(n);function n(e){var r;return(0,s.default)(this,n),(r=t.call(this,e)).columnStatesManager=null,r.columnMetaCache=null,r.pluginKey="columnSorting",r.indexesSequenceCache=null,r}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnStatesManager=new C.ColumnStatesManager(this.hot,"".concat(this.pluginKey,".sortingStates")),this.columnMetaCache=new E.PhysicalIndexToValueMap((function(t){var n=e.hot.toVisualColumn(t);return null===n&&(n=t),e.getMergedPluginSettings(n)})),this.hot.columnIndexMapper.registerMap("".concat(this.pluginKey,".columnMeta"),this.columnMetaCache),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("afterInit",(function(){return e.loadOrSortBySettings()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.hot.view&&this.loadOrSortBySettings(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,t=function(t,n){var r=(0,R.getHeaderSpanElement)(n);!1!==(0,R.isFirstLevelColumnHeader)(t,n)&&null!==r&&e.updateHeaderClasses(r)};this.hot.addHook("afterGetColHeader",t),this.hot.addHookOnce("afterViewRender",(function(){e.hot.removeHook("afterGetColHeader",t)})),this.hot.batchExecution((function(){null!==e.indexesSequenceCache&&(e.hot.rowIndexMapper.setIndexesSequence(e.indexesSequenceCache.getValues()),e.hot.rowIndexMapper.unregisterMap(e.pluginKey))}),!0),this.hot.columnIndexMapper.unregisterMap("".concat(this.pluginKey,".columnMeta")),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,r)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new E.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),r&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,r?n:t,r),r&&(this.hot.render(),this.hot.forceFullRender=!1,this.hot.view.render()))}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){return(0,p.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}},{key:"setSortConfig",value:function(e){var t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}},{key:"areValidSortConfigs",value:function(e){var t=this.hot.countCols();return(0,R.areValidSortStates)(e)&&e.every((function(e){var n=e.column;return n<=t&&n>=0}))}},{key:"saveAllSortSettings",value:function(e){var t=this,n=this.columnStatesManager.getAllColumnsProperties();n.initialConfig=(0,v.arrayMap)(e,(function(e){var n=e.column,r=(0,a.default)(e,b);return M({column:t.hot.toPhysicalColumn(n)},r)})),this.hot.runHooks("persistentStateSave","columnSorting",n)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value;return(0,p.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,v.arrayMap)(n.initialConfig,(function(t){var n=t.column,r=(0,a.default)(t,A);return M({column:e.hot.toVisualColumn(n)},r)}))),n}},{key:"getColumnNextConfig",value:function(e){var t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,p.isDefined)(t)){var n=(0,R.getNextSortOrder)(t);return(0,p.isDefined)(n)?{column:e,sortOrder:n}:void 0}var r=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<r)return{column:e,sortOrder:(0,R.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"append",n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,i=this.getSortConfig(),a=this.getColumnNextConfig(e);if(r){if((0,p.isUndefined)(a))return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)));if("append"===t)return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)),[a]);if("replace"===t)return[].concat((0,o.default)(i.slice(0,n)),[a],(0,o.default)(i.slice(n+1)))}return(0,p.isDefined)(a)?i.concat(a):i}},{key:"getPluginColumnConfig",value:function(e){if((0,g.isObject)(e)){var t=e[this.pluginKey];if((0,g.isObject)(t))return t}return{}}},{key:"getMergedPluginSettings",value:function(e){var t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),o=Object.getPrototypeOf(r);return Array.isArray(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns[e])):(0,m.isFunction)(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns(e))):Object.assign(n,t)}},{key:"getFirstCellSettings",value:function(e){var t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(e){var t=this;if(0!==e.length){for(var n=[],r=this.hot.countRows(),o=function(n){return(0,v.arrayMap)(e,(function(e){return t.hot.getDataAtCell(n,e.column)}))},i=0;i<this.getNumberOfRowsToSort(r);i+=1)n.push([this.hot.toPhysicalRow(i)].concat(o(i)));var a=(0,v.arrayMap)(n,(function(e){return e[0]}));(0,O.sort)(n,this.pluginKey,(0,v.arrayMap)(e,(function(e){return e.sortOrder})),(0,v.arrayMap)(e,(function(e){return t.getFirstCellSettings(e.column)})));for(var s=n.length;s<r;s+=1)n.push([s].concat(o(s)));var l=(0,v.arrayMap)(n,(function(e){return e[0]})),u=new Map((0,v.arrayMap)(a,(function(e,t){return[e,l[t]]}))),c=(0,v.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),(function(e){return u.has(e)?u.get(e):e}));this.hot.rowIndexMapper.setIndexesSequence(c)}else this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues())}},{key:"loadOrSortBySettings",value:function(){var e=this.getAllSavedSortSettings();if((0,g.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,g.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,g.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,R.getHeaderSpanElement)(t);if(!1!==(0,R.isFirstLevelColumnHeader)(e,t)&&null!==n){var r=this.getFirstCellSettings(e)[this.pluginKey],o=r.indicator,i=r.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,e,o,i)}}},{key:"updateHeaderClasses",value:function(e){if((0,f.removeClass)(e,(0,w.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,f.addClass)(e,w.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){(0,u.default)((0,h.default)(n.prototype),"onUpdateSettings",this).call(this),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,p.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.target.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){!1!==(0,R.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,R.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 50}}]),n}(y.BasePlugin);t.ColumnSorting=_},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.ColumnStatesManager=void 0,n(31),n(222),n(65);var o=r(n(26)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=n(12),u=n(76),c=n(24);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],f=function(){function e(t,n){(0,a.default)(this,e),this.hot=t,this.sortingStates=new u.LinkedPhysicalIndexToValueMap,this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0,this.mapName=n,this.hot.columnIndexMapper.registerMap(n,this.sortingStates)}return(0,s.default)(e,[{key:"updateAllColumnsProperties",value:function(e){var t=this;(0,l.isObject)(e)&&(0,l.objectEach)(e,(function(e,n){h.includes(n)&&(t[n]=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:"getSortOrderOfColumn",value:function(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}},{key:"getIndexOfColumnInSortQueue",value:function(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((function(t){return(0,i.default)(t,1)[0]===e}))}},{key:"getNumberOfSortedColumns",value:function(){return this.sortingStates.getLength()}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return(0,l.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}},{key:"getSortStates",value:function(){var e=this;return null===this.sortingStates?[]:this.sortingStates.getEntries().map((function(t){var n=(0,i.default)(t,2),r=n[0],a=n[1];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({column:e.hot.toVisualColumn(r)},a)}))}},{key:"getColumnSortState",value:function(e){var t=this.getSortOrderOfColumn(e);if((0,c.isDefined)(t))return{column:e,sortOrder:t}}},{key:"setSortStates",value:function(e){this.sortingStates.clear();for(var t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}]),e}();t.ColumnStatesManager=f},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n,o){var a=["columnSorting"];o&&a.push("sortAction");if(!1===n)return a.push("indicatorDisabled"),a;var s=e.getSortOrderOfColumn(t);(0,r.isDefined)(s)&&a.push(i.get(s));return a},t.getClassesToRemove=function(){return Array.from(i.values()).concat("sortAction","indicatorDisabled","columnSorting")},n(4),n(40),n(1),n(5),n(6),n(20),n(48);var r=n(24),o=n(303),i=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a,s,l,u,c,d,h=(0,o.default)(n).slice(1),f=(0,o.default)(r).slice(1);return s=e[a=0],l=t[a],u=h[a],c=f[a],((d=l.columnSorting).compareFunctionFactory?d.compareFunctionFactory:(0,i.getCompareFunctionFactory)(l.type))(s,l,d)(u,c)}},n(39);var o=r(n(611)),i=n(117)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(t,i){var a=parseFloat(t),s=parseFloat(i),l=n.sortEmptyCells;if(a===s||isNaN(a)&&isNaN(s))return o.DO_NOT_SWAP;if(l){if((0,r.isEmpty)(t))return"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND;if((0,r.isEmpty)(i))return"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND}return isNaN(a)?o.FIRST_AFTER_SECOND:isNaN(s)?o.FIRST_BEFORE_SECOND:a<s?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:a>s?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP}};var r=n(24),o=n(117);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var a=t.checkedTemplate,s=t.uncheckedTemplate,l=n.sortEmptyCells;return function(u,c){var d=(0,i.isEmpty)(u),h=(0,i.isEmpty)(c),f=d?s:u,p=h?s:c,g=f===s||f===a,m=p===s||p===a;if(!1===l){if(d&&!1===h)return r.FIRST_AFTER_SECOND;if(!1===d&&h)return r.FIRST_BEFORE_SECOND}return!1===g&&m?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:g&&!1===m?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!1===g&&!1===m?(0,o.compareFunctionFactory)(e,t,n)(u,c):f===s&&p===a?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:f===a&&p===s?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}};var r=n(117),o=n(613),i=n(24);t.COLUMN_DATA_TYPE="checkbox"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(r,s){var l=n.sortEmptyCells;if(r===s)return a.DO_NOT_SWAP;if((0,i.isEmpty)(r))return(0,i.isEmpty)(s)?a.DO_NOT_SWAP:l&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,i.isEmpty)(s))return l&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;var u=t.dateFormat,c=(0,o.default)(r,u),d=(0,o.default)(s,u);return c.isValid()?d.isValid()?d.isAfter(c)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:d.isBefore(c)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}};var o=r(n(95)),i=n(24),a=n(117);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";t.__esModule=!0,t.FIRST_BEFORE_SECOND=t.FIRST_AFTER_SECOND=t.DO_NOT_SWAP=void 0,t.sort=function(e,t){for(var n=(0,r.getRootComparator)(t),o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];e.sort(n.apply(void 0,i))},n(89);var r=n(612);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var r=n(908);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSummary=r.ColumnSummary},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var o=r(n(64));n(20),n(22),n(51),n(82);var i,a=r(n(2)),s=r(n(3)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(38),f=n(12),p=r(n(909)),g=n(66),m=n(911);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.PLUGIN_KEY="columnSummary";t.PLUGIN_PRIORITY=220;var y=function(e){(0,u.default)(n,e);var t=v(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).endpoints=null,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.endpoints=new p.default(this,this.settings),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeCreateRow",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_row",t,n,null,r)})),this.addHook("beforeCreateCol",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_col",t,n,null,r)})),this.addHook("beforeRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("beforeRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterCreateRow",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_row",t,n,null,r)})),this.addHook("afterCreateCol",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_col",t,n,null,r)})),this.addHook("afterRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("afterRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterRowMove",(function(){return e.onAfterRowMove.apply(e,arguments)})),(0,l.default)((0,d.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(e){var t=this,n=0;return(0,f.objectEach)(e.ranges,(function(r){n+=t.getPartialSum(r,e.sourceColumn)})),n}},{key:"getPartialSum",value:function(e,t){var n=0,r=e[1]||e[0],o=null,i=0;do{if(o=this.getCellValue(r,t),null!==(o=(0,m.isNullishOrNaN)(o)?null:o)){var a=("".concat(o).split(".")[1]||[]).length||1;a>i&&(i=a)}n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*Math.pow(10,i))/Math.pow(10,i)}},{key:"calculateMinMax",value:function(e,t){var n=this,r=null;return(0,f.objectEach)(e.ranges,(function(o){var i=n.getPartialMinMax(o,e.sourceColumn,t);if(null===r&&null!==i&&(r=i),null!==i)switch(t){case"min":r=Math.min(r,i);break;case"max":r=Math.max(r,i)}})),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t),r=(0,m.isNullishOrNaN)(r)?null:r,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}i-=1}while(i>=e[0]);return o}},{key:"countEmpty",value:function(e,t){var n,r=0,o=e[1]||e[0];do{n=this.getCellValue(o,t),null===(n=(0,m.isNullishOrNaN)(n)?null:n)&&(r+=1),o-=1}while(o>=e[0]);return r}},{key:"countEntries",value:function(e){var t=this,n=0,r=e.ranges;return(0,f.objectEach)(r,(function(r){var o=void 0===r[1]?1:r[1]-r[0]+1,i=t.countEmpty(r,e.sourceColumn);n+=o,n-=i})),n}},{key:"calculateAverage",value:function(e){return this.calculateSum(e)/this.countEntries(e)}},{key:"getCellValue",value:function(e,t){var n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t),a=this.hot.getSourceDataAtCell(e,t),s="";if(null!==n&&null!==r&&(s=this.hot.getCellMeta(n,r).className||""),s.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof a&&(a=a.replace(/,/,".")),a=parseFloat(a)),isNaN(a)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error((0,g.toSingleLine)(i||(i=(0,o.default)(["ColumnSummary plugin: cell at (",", ",") is not in a \n numeric format. Cannot do the calculation."],["ColumnSummary plugin: cell at (",", ",") is not in a\\x20\n numeric format. Cannot do the calculation."])),e,t));return a}},{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:"onAfterRowMove",value:function(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSummary"}},{key:"PLUGIN_PRIORITY",get:function(){return 220}}]),n}(h.BasePlugin);t.ColumnSummary=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(22),n(1),n(910);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(74),l=function(){function e(t,n){(0,o.default)(this,e),this.plugin=t,this.hot=this.plugin.hot,this.endpoints=[],this.settings=n,this.settingsType="array",this.currentEndpoint=null,this.cellsToSetCache=[]}return(0,i.default)(e,[{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 t=this,n=[],r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),(0,a.arrayEach)(r,(function(e){var r={};t.assignSetting(e,r,"ranges",[[0,t.hot.countRows()-1]]),t.assignSetting(e,r,"reversedRowCoords",!1),t.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"sourceColumn",e.destinationColumn),t.assignSetting(e,r,"type","sum"),t.assignSetting(e,r,"forceNumeric",!1),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"customFunction",null),t.assignSetting(e,r,"readOnly",!0),t.assignSetting(e,r,"roundFloat",!1),n.push(r)})),n;this.settingsType="function"}},{key:"assignSetting",value:function(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}},{key:"resetSetupBeforeStructureAlteration",value:function(e,t,n){if("function"===this.settingsType){var r=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();(0,a.arrayEach)(o,(function(o){"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,r,o){var i=this,s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var l=e.indexOf("row")>-1?"row":"col",u=e.indexOf("remove")>-1?-1:1,c=this.getAllEndpoints(),d=0===e.indexOf("move_row"),h=t;(0,a.arrayEach)(c,(function(e){"row"===l&&e.destinationRow>=h&&(e.alterRowOffset=u*n),"col"===l&&e.destinationColumn>=h&&(e.alterColumnOffset=u*n)})),this.resetAllEndpoints(c,!d),d?(0,a.arrayEach)(c,(function(e){i.extendEndpointRanges(e,h,r[0],r.length),i.recreatePhysicalRanges(e),i.clearOffsetInformation(e)})):(0,a.arrayEach)(c,(function(e){i.shiftEndpointCoordinates(e,h)})),s&&this.refreshAllEndpoints()}else{var f=function e(){return i.hot.removeHook("beforeViewRender",e),i.refreshAllEndpoints()};this.hot.addHookOnce("beforeViewRender",f)}}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,r){(0,a.arrayEach)(e.ranges,(function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}},{key:"recreatePhysicalRanges",value:function(e){var t=this,n=e.ranges,r=[],o=[];(0,a.arrayEach)(n,(function(e){var n=[];if(e[1])for(var r=e[0];r<=e[1];r++)n.push(t.hot.toPhysicalRow(r));else n.push(t.hot.toPhysicalRow(e[0]));o.push(n)})),(0,a.arrayEach)(o,(function(e){var t=[];(0,a.arrayEach)(e,(function(n,o){0===o?t.push(n):e[o]!==e[o-1]+1&&(t.push(e[o-1]),r.push(t),(t=[]).push(n)),o===e.length-1&&(t.push(n),r.push(t))}))})),e.ranges=r}},{key:"shiftEndpointCoordinates",value:function(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,a.arrayEach)(e.ranges,(function(n){(0,a.arrayEach)(n,(function(r,o){r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.some((function(t){var n=t.alterRowOffset||0,r=t.alterColumnOffset||0;return t.destinationRow+n>=e.hot.countRows()||t.destinationColumn+r>=e.hot.countCols()}));r||(this.cellsToSetCache=[],(0,a.arrayEach)(t,(function(t){e.resetEndpointValue(t,n)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}},{key:"refreshAllEndpoints",value:function(){var e=this;this.cellsToSetCache=[],(0,a.arrayEach)(this.getAllEndpoints(),(function(t){e.currentEndpoint=t,e.plugin.calculate(t),e.setEndpointValue(t,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var t=this,n=[];this.cellsToSetCache=[],(0,a.arrayEach)(e,(function(e,r,o){"".concat(e[2]||"")!=="".concat(e[3])&&(0,a.arrayEach)(t.getAllEndpoints(),(function(e,i){t.hot.propToCol(o[r][1])===e.sourceColumn&&-1===n.indexOf(i)&&n.push(i)}))})),(0,a.arrayEach)(n,(function(e){t.refreshEndpoint(t.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){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.alterRowOffset||0,r=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}},{key:"setEndpointValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())this.throwOutOfBoundsWarning();else{var o=this.hot.toVisualRow(e.destinationRow);if(null!==o){var i=this.hot.getCellMeta(o,e.destinationColumn);"init"!==t&&i.readOnly===e.readOnly||(i.readOnly=e.readOnly,i.className="columnSummaryResult")}e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),n?this.hot.setDataAtCell(r,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([r,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}}},{key:"throwOutOfBoundsWarning",value:function(){(0,s.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(25),o=n(30),i=n(115),a=n(409),s=n(425),l=n(29),u=RangeError,c=String,d=Math.floor,h=o(s),f=o("".slice),p=o(1..toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}))},{toFixed:function(e){var t,n,r,o,s=a(this),l=i(e),d=[0,0,0,0,0,0],p="",E="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(d,0,n),r=l;r>=7;)m(d,1e7,0),r-=7;for(m(d,g(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<<r),m(d,1,1),v(d,2),E=y(d)}else m(d,0,n),m(d,1<<-t,0),E=y(d)+h("0",l);return E=l>0?p+((o=E.length)<=l?"0."+h("0",l-o)+E:f(E,0,o-l)+"."+f(E,o-l)):p+E}})},function(e,t,n){"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var r=n(913);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Comments=r.Comments},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var i=r(n(26)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8));n(4),n(1),n(5),n(7),n(6);var f=n(16),p=n(12),g=r(n(49)),m=n(38),v=r(n(914)),y=n(96),E=r(n(915)),T=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}n(916);t.PLUGIN_KEY="comments";t.PLUGIN_PRIORITY=60;var w=new WeakMap,S=function(e){(0,c.default)(n,e);var t=R(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).editor=null,r.displaySwitch=null,r.eventManager=null,r.range={},r.preventEditorAutoSwitch=!1,w.set((0,l.default)(r),{tempEditorDimensions:{},cellBelowCursor:null}),r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new v.default(this.hot.rootDocument,this.hot.isRtl())),this.eventManager||(this.eventManager=new g.default(this)),this.displaySwitch||(this.displaySwitch=new E.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addToContextMenu(t)})),this.addHook("afterRenderer",(function(t,n,r,o,i,a){return e.onAfterRenderer(t,a)})),this.addHook("afterScrollHorizontally",(function(){return e.hide()})),this.addHook("afterScrollVertically",(function(){return e.hide()})),this.addHook("afterBeginEditing",(function(){return e.hide()})),this.displaySwitch.addLocalHook("hide",(function(){return e.hide()})),this.displaySwitch.addLocalHook("show",(function(t,n){return e.showAtCell(t,n)})),this.registerListeners(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this,t=this.hot.rootDocument;this.eventManager.addEventListener(t,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(t,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",(function(){return e.onEditorBlur()})),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",(function(t){return e.onEditorMouseDown(t)})),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",(function(t){return e.onEditorMouseUp(t)}))}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,f.closest)(e.target,"TD","TBODY");return!!(t&&(0,f.hasClass)(t,"htCommentCell")&&(0,f.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 r=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(r,o,(0,i.default)({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];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,"comment"),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{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.range.from,t=e.row,n=e.col;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;var r=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.editor.setValue(r.comment?r.comment.value:""),this.editor.show(),this.refreshEditor(!0),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hide()}},{key:"refreshEditor",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n||this.range.from&&this.editor.isVisible()){var r=this.hot,o=r.rowIndexMapper,i=r.columnIndexMapper,a=this.range.from,s=a.row,l=a.col,u=o.getRenderableFromVisualIndex(s),c=i.getRenderableFromVisualIndex(l),d=null===u;this.editor.setPosition(0,0),null===u&&(u=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1))),null===c&&(c=i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(l,-1)));var h=null===u,p=null===c;u=null!==(e=u)&&void 0!==e?e:0,c=null!==(t=c)&&void 0!==t?t:0;var g=this.hot,m=g.rootWindow,v=g.view._wt,y=v.wtTable,E=v.getCell({row:u,col:c},!0),T=this.getCommentMeta(s,l,"style");T?this.editor.setSize(T.width,T.height):this.editor.resetSize();var C=p?0:y.getStretchedColumnWidth(c),R=d&&!h?(0,f.outerHeight)(E):0,w=E.getBoundingClientRect(),S=w.left,O=w.top,b=w.width,A=w.height,N=this.editor.getSize(),M=N.width,I=N.height,_=this.hot.rootWindow,k=_.innerWidth,P=_.innerHeight,x=this.hot.rootDocument.documentElement,L=S+m.scrollX+C,D=O+m.scrollY+R;this.hot.isRtl()&&(L-=M+C),this.hot.isLtr()&&S+b+M>k?L=S+m.scrollX-M-1:this.hot.isRtl()&&L<-(x.scrollWidth-x.clientWidth)&&(L=S+m.scrollX+C+1),O+I>P&&(D-=I-A+1),this.editor.setPosition(L,D),this.editor.setReadOnlyState(this.getCommentMeta(s,l,"readOnly"))}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.getTopStartCorner();return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var r,o=this.hot.getCellMeta(e,t).comment;o?(r=(0,p.deepClone)(o),(0,p.deepExtend)(r,n)):r=n,this.hot.setCellMeta(e,t,"comment",r)}},{key:"getCommentMeta",value:function(e,t,n){var r=this.hot.getCellMeta(e,t);if(r.comment)return r.comment[n]}},{key:"onMouseDown",value:function(e){if(this.hot.view&&this.hot.view._wt&&!this.preventEditorAutoSwitch&&!this.targetIsCommentTextArea(e)){var t=(0,f.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}},{key:"onMouseOver",value:function(e){var t=w.get(this),n=this.hot.rootDocument;if(!(this.preventEditorAutoSwitch||this.editor.isFocused()||(0,f.hasClass)(e.target,"wtBorder")||t.cellBelowCursor===e.target)&&this.editor)if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),this.targetIsCellWithComment(e)){var r=this.hot._createCellRange(this.hot.getCoords(e.target));this.displaySwitch.show(r)}else(0,f.isChildOf)(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.preventEditorAutoSwitch=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,f.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){w.get(this).tempEditorDimensions={width:(0,f.outerWidth)(e.target),height:(0,f.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=w.get(this),n=(0,f.outerWidth)(e.target),r=(0,f.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,i.default)({},"style",{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,this.displaySwitch.cancelHiding(),this.setRange({from:e.highlight}),this.show(),this.hot.deselectCell(),this.editor.focus()}},{key:"onContextMenuRemoveComment",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,t.forAll((function(t,n){t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,t.forAll((function(t,n){if(t>=0&&n>=0){var r=!!e.getCommentMeta(t,n,"readOnly");e.updateCommentMeta(t,n,(0,i.default)({},"readOnly",!r))}}))}},{key:"addToContextMenu",value:function(e){var t=this,n=function(){return t.hot.rowIndexMapper.getRenderableIndexesLength()>0&&t.hot.columnIndexMapper.getRenderableIndexesLength()>0};e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,y.checkSelectionConsistency)(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n).comment;if(r&&(r=r.readOnly),r)return!0}))&&(t=(0,y.markLabelAsSelected)(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner()&&t.checkSelectionCommentsConsistency())}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,p.isObject)(e))return e.displayDelay}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"comments"}},{key:"PLUGIN_PRIORITY",get:function(){return 60}}]),n}(m.BasePlugin);t.Comments=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.rootDocument=t,this.isRtl=n,this.container=null,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return(0,i.default)(e,[{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:"getSize",value:function(){return{width:(0,a.outerWidth)(this.getInputElement()),height:(0,a.outerHeight)(this.getInputElement())}}},{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.hidden||(this.editorStyle.display="none"),this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=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 t=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return t.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),(0,a.addClass)(this.container,e.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),(0,a.addClass)(t,e.CLASS_EDITOR),(0,a.addClass)(n,e.CLASS_INPUT),t.appendChild(n),this.container.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.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)}}],[{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"}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(67);var o=r(n(2)),i=r(n(3)),a=n(58),s=n(12),l=r(n(86)),u=function(){function e(t){(0,o.default)(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return(0,i.default)(e,[{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(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,a.debounce)((function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)}),t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();(0,s.mixin)(u,l.default);var c=u;t.default=c},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0;var r=n(918);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ContextMenu=r.ContextMenu},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0,n(20);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=r(n(59)),f=n(13),p=r(n(614)),g=r(n(49)),m=r(n(615)),v=r(n(305)),y=n(16),E=n(110);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(932);t.PLUGIN_KEY="contextMenu";t.PLUGIN_PRIORITY=70,h.default.getSingleton().register("afterContextMenuDefaultOptions"),h.default.getSingleton().register("beforeContextMenuShow"),h.default.getSingleton().register("afterContextMenuShow"),h.default.getSingleton().register("afterContextMenuHide"),h.default.getSingleton().register("afterContextMenuExecute");var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new g.default((0,a.default)(r)),r.commandExecutor=new p.default(r.hot),r.itemsFactory=null,r.menu=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().contextMenu;"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new v.default(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),this.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),this.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),this.addHook("afterOnCellContextMenu",(function(t){return e.onAfterOnCellContextMenu(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){if(this.menu&&(this.prepareMenuItems(),this.menu.open(),this.menu.isOpened())){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect(),o=r.top,i=r.left;t=o-(0,y.getWindowScrollTop)(e.view),n=i-(0,y.getWindowScrollLeft)(e.view)}else t=-1*(0,y.getWindowScrollTop)(this.menu.hotMenu.rootWindow),n=-1*(0,y.getWindowScrollLeft)(this.menu.hotMenu.rootWindow);this.menu.setPosition({top:parseInt(e.pageY,10)+t,left:parseInt(e.pageX,10)+n})}}},{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,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"prepareMenuItems",value:function(){var e=this;this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,r={items:this.itemsFactory.getItems(t)};this.hot.runHooks("afterContextMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);var o=this.itemsFactory.getItems(t);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,f.arrayEach)(o,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,r=t.colHeaders;var o=e.target;this.close(),(0,y.hasClass)(o,"handsontableInput")||(e.preventDefault(),e.stopPropagation(),(n||r||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||(0,y.hasClass)(o,"current")&&(0,y.hasClass)(o,"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,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"contextMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 70}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{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]}}]),n}(d.BasePlugin);t.ContextMenu=C,C.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:l,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return 0===this.countRows()||0===this.countCols()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(l,":left"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htLeft"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,o.align)(t,"horizontal","htLeft",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":center"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htCenter"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,o.align)(t,"horizontal","htCenter",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":right"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htRight"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,o.align)(t,"horizontal","htRight",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":justify"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htJustify"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,o.align)(t,"horizontal","htJustify",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{name:i.KEY},{key:"".concat(l,":top"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htTop"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,o.align)(t,"vertical","htTop",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":middle"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htMiddle"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,o.align)(t,"vertical","htMiddle",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":bottom"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htBottom"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,o.align)(t,"vertical","htBottom",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1}]}}},n(22);var o=n(96),i=n(304),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l="alignment";t.KEY=l},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:s,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col,r=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),r,"ContextMenu.clearColumn")},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByColumnHeader()}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s="clear_column";t.KEY=s},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_left",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(){var e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countCols():this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="col_left"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_right",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(){var e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="col_right"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:l,name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_READ_ONLY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){return e.getCellMeta(t,n).readOnly}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.checkSelectionConsistency)(t,(function(t,n){return e.getCellMeta(t,n).readOnly}));(0,i.arrayEach)(t,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"readOnly",!n)}))})),this.render()},disabled:function(){return!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))}}};var o=n(96),i=n(13),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l="make_read_only";t.KEY=l},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"redo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="redo"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.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(){if(!this.isColumnModificationAllowed())return!0;if(!(0,a.getValidSelection)(this))return!0;var e=this.countCols();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByRowHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveColumn}}};var i=r(n(21)),a=n(96),s=n(229),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var c="remove_col";t.KEY=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.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(){if(!(0,a.getValidSelection)(this))return!0;var e=this.countRows();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByColumnHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveRow}}};var i=r(n(21)),a=n(96),s=n(229),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var c="remove_row";t.KEY=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_above",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(){var e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countRows():this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="row_above"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_below",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(){var e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="row_below"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"no_items",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var r=n(18);t.KEY="no_items"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"undo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="undo"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e);var r,i,s,l,u,c,d=(0,a.getWindowScrollTop)(n),h=(0,a.getWindowScrollLeft)(n);this.rootWindow=n,this.type=this.getSourceType(t),"literal"===this.type?(r=parseInt(t.top,10),s=parseInt(t.left,10),u=t.height||0,c=t.width||0,i=r,l=s,r+=d,s+=h):"event"===this.type&&(r=parseInt(t.pageY,10),s=parseInt(t.pageX,10),u=t.target.clientHeight,c=t.target.clientWidth,i=r-d,l=s-h),this.top=r,this.topRelative=i,this.left=s,this.leftRelative=l,this.scrollTop=d,this.scrollLeft=h,this.cellHeight=u,this.cellWidth=c}return(0,i.default)(e,[{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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}();t.default=s},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var r=n(934);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CopyPaste=r.CopyPaste},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=r(n(26)),p=r(n(78)),g=r(n(79));n(83),n(20),n(4),n(40),n(1),n(5),n(6),n(65),n(35),n(48),n(51),n(7),n(232);var m=n(38),v=r(n(59)),y=n(587),E=n(13),T=n(84),C=n(16),R=r(n(935)),w=r(n(936)),S=r(n(937)),O=r(n(938)),b=r(n(939)),A=r(n(940)),N=n(942),M=n(943),I=n(285);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}function k(e,t){x(e,t),t.add(e)}function P(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n(944),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 L="copyPaste";t.PLUGIN_KEY=L;t.PLUGIN_PRIORITY=80;var D=["fragmentSelection"],F=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join(""),U=new WeakMap,H=new WeakMap,V=new WeakMap,j=new WeakMap,B=new WeakMap,W=new WeakMap,Y=new WeakMap,G=new WeakSet,z=function(e){(0,c.default)(n,e);var t=_(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),k((0,l.default)(e),G),(0,f.default)((0,l.default)(e),"columnsLimit",1/0),(0,f.default)((0,l.default)(e),"rowsLimit",1/0),(0,f.default)((0,l.default)(e),"pasteMode","overwrite"),(0,f.default)((0,l.default)(e),"uiContainer",e.hot.rootDocument.body),P((0,l.default)(e),U,{writable:!0,value:!1}),P((0,l.default)(e),H,{writable:!0,value:!1}),P((0,l.default)(e),V,{writable:!0,value:!1}),P((0,l.default)(e),j,{writable:!0,value:"cells-only"}),P((0,l.default)(e),B,{writable:!0,value:!1}),P((0,l.default)(e),W,{writable:!0,value:!1}),P((0,l.default)(e),Y,{writable:!0,value:new M.CopyableRangesFactory({countRows:function(){return e.hot.countRows()},countColumns:function(){return e.hot.countCols()},rowsLimit:function(){return e.rowsLimit},columnsLimit:function(){return e.columnsLimit},countColumnHeaders:function(){return e.hot.view.getColumnHeadersCount()}})}),(0,f.default)((0,l.default)(e),"copyableRanges",[]),(0,f.default)((0,l.default)(e),"focusableElement",void 0),e}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[L]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t,r,o=this.hot.getSettings()[L];if("object"===(0,i.default)(o))this.pasteMode=null!==(t=o.pasteMode)&&void 0!==t?t:this.pasteMode,this.rowsLimit=isNaN(o.rowsLimit)?this.rowsLimit:o.rowsLimit,this.columnsLimit=isNaN(o.columnsLimit)?this.columnsLimit:o.columnsLimit,(0,g.default)(this,U,!!o.copyColumnHeaders),(0,g.default)(this,H,!!o.copyColumnGroupHeaders),(0,g.default)(this,V,!!o.copyColumnHeadersOnly),this.uiContainer=null!==(r=o.uiContainer)&&void 0!==r?r:this.uiContainer;this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterOnCellMouseUp",(function(){return e.onAfterOnCellMouseUp()})),this.addHook("afterSelectionEnd",(function(){return e.onAfterSelectionEnd()})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()})),this.focusableElement=(0,N.createElement)(this.uiContainer),this.focusableElement.addLocalHook("copy",(function(t){return e.onCopy(t)})).addLocalHook("cut",(function(t){return e.onCut(t)})).addLocalHook("paste",(function(t){return e.onPaste(t)})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,N.destroyElement)(this.focusableElement),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only";(0,g.default)(this,j,e),(0,g.default)(this,B,!0),this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"copyCellsOnly",value:function(){this.copy("cells-only")}},{key:"copyColumnHeadersOnly",value:function(){this.copy("column-headers-only")}},{key:"copyWithAllColumnHeaders",value:function(){this.copy("with-column-group-headers")}},{key:"copyWithColumnHeaders",value:function(){this.copy("with-column-headers")}},{key:"cut",value:function(){(0,g.default)(this,W,!0),this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){return(0,y.stringify)(this.getRangedData(e))}},{key:"getRangedData",value:function(e){var t=this,n=[],r=(0,M.normalizeRanges)(e),o=r.rows,i=r.columns;return(0,E.arrayEach)(o,(function(e){var r=[];(0,E.arrayEach)(i,(function(n){e<0?r.push(t.hot.getColHeader(n,e)):r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new A.default;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){(0,p.default)(this,Y).setSelectedRange(e);var t=new Map([["headers",null],["cells",null]]);"column-headers-only"===(0,p.default)(this,j)?t.set("headers",(0,p.default)(this,Y).getMostBottomColumnHeadersRange()):("with-column-headers"===(0,p.default)(this,j)?t.set("headers",(0,p.default)(this,Y).getMostBottomColumnHeadersRange()):"with-column-group-headers"===(0,p.default)(this,j)&&t.set("headers",(0,p.default)(this,Y).getAllColumnHeadersRange()),t.set("cells",(0,p.default)(this,Y).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((function(e){return null!==e})).map((function(e){return{startRow:e.startRow,startCol:e.startCol,endRow:e.endRow,endCol:e.endCol}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);var n=t.get("cells");if(null!==n&&n.isRangeTrimmed){var r=n.startRow,o=n.startCol,i=n.endRow,a=n.endCol;this.hot.runHooks("afterCopyLimit",i-r+1,a-o+1,this.rowsLimit,this.columnsLimit)}}}},{key:"getOrCreateFocusableElement",value:function(){var e,t=null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.TEXTAREA;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(e.length){for(var n=e.length,r=e[0].length,o=[],i=t.getTopStartCorner(),a=i.row,s=i.col,l=t.getBottomEndCorner(),u=l.row,c=l.col,d=a,h=s,f=a,p=s;o.length<n||d<=u;){var g=this.hot.getCellMeta(d,s),m=g.skipRowOnPaste,v=g.visualRow;if(d=v+1,!0!==m){f=v,h=s;for(var y=[],E=o.length%n;y.length<r||h<=c;){var T=this.hot.getCellMeta(a,h),C=T.skipColumnOnPaste,R=T.visualCol;if(h=R+1,!0!==C){p=R;var w=y.length%r;y.push(e[E][w])}}o.push(y)}}return this.hot.populateFromArray(a,s,o,void 0,void 0,"CopyPaste.paste",this.pasteMode),[a,s,f,p]}}},{key:"onCopy",value:function(e){if((this.hot.isListening()||(0,p.default)(this,B))&&!this.isEditorOpened()){this.setCopyableText(),(0,g.default)(this,B,!1);var t=this.getRangedData(this.copyableRanges),n=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,G,K).call(this,this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",t,this.copyableRanges,n)){var r=(0,y.stringify)(t);if(e&&e.clipboardData){var o=(0,I._dataToHTML)(t,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[F,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.runHooks("afterCopy",t,this.copyableRanges,n)}(0,g.default)(this,j,"cells-only"),e.preventDefault()}}},{key:"onCut",value:function(e){if((this.hot.isListening()||(0,p.default)(this,W))&&!this.isEditorOpened()){this.setCopyableText(),(0,g.default)(this,W,!1);var t=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",t,this.copyableRanges)){var n=(0,y.stringify)(t);if(e&&e.clipboardData){var r=(0,I._dataToHTML)(t,this.hot.rootDocument);e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",[F,r].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",n);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",t,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=(0,T.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(n&&/(<table)|(<TABLE)/g.test(n))t=(0,I.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=(0,y.parse)(t)),(!t||0!==t.length)&&!1!==this.hot.runHooks("beforePaste",t,this.copyableRanges)){var r=this.populateValues(t),i=(0,o.default)(r,4),a=i[0],s=i[1],l=i[2],u=i[3];this.hot.selectCell(a,s,Math.min(this.hot.countRows()-1,l),Math.min(this.hot.countCols()-1,u)),this.hot.runHooks("afterPaste",t,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,R.default)(this)),(0,p.default)(this,U)&&e.items.push((0,O.default)(this)),(0,p.default)(this,H)&&e.items.push((0,S.default)(this)),(0,p.default)(this,V)&&e.items.push((0,w.default)(this)),e.items.push((0,b.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){!this.hot.isListening()||this.isEditorOpened()||this.hot.getSettings().fragmentSelection||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){this.isEditorOpened()||(this.getOrCreateFocusableElement(),this.hot.getSettings().fragmentSelection&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&(0,C.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,N.destroyElement)(this.focusableElement),this.focusableElement=null),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return L}},{key:"SETTING_KEYS",get:function(){return[L].concat(D)}},{key:"PLUGIN_PRIORITY",get:function(){return 80}}]),n}(m.BasePlugin);function K(e){for(var t=(0,M.normalizeRanges)(e).rows,n=0,r=0;r<t.length&&!(t[r]>=0);r++)n+=1;return{columnHeadersCount:n}}t.CopyPaste=z},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copyCellsOnly()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback:function(){e.copyColumnHeadersOnly()},disabled:function(){if(!this.hasColHeaders())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback:function(){e.copyWithAllColumnHeaders()},disabled:function(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback:function(){e.copyWithColumnHeaders()},disabled:function(){if(!this.hasColHeaders())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(941)),s=(0,o.default)((function e(){(0,i.default)(this,e),this.clipboardData=new a.default}));t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.data={}}return(0,i.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 r=n(0);t.__esModule=!0,t.createElement=function(e){var t=new d(e),n=h.get(e);return n=isNaN(n)?0:n,h.set(e,n+1),t},t.deactivateElement=f,t.destroyElement=function(e){if(!(e instanceof d))return;var t=h.get(e.container);(t=isNaN(t)?0:t)>0&&(t-=1);if(f(e),t<=0){t=0;var n=m.get(e.container);n&&n.parentNode&&(n.parentNode.removeChild(n),m.delete(e.container)),e.mainElement=null}h.set(e.container,t)},n(4),n(1),n(5),n(232),n(6),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(49)),s=r(n(86)),l=n(12),u=n(94),c=n(16),d=function(){function e(t){(0,o.default)(this,e),this.rootDocument=t.defaultView?t:t.ownerDocument,this.mainElement=null,this.eventManager=new a.default(this),this.listenersCount=new WeakSet,this.container=t}return(0,i.default)(e,[{key:"useSecondaryElement",value:function(){var e=function(e){var t=m.get(e);if(t)return t.parentElement||e.appendChild(t),t;var n=(e.defaultView?e:e.ownerDocument).createElement("textarea");return m.set(e,n),n.setAttribute("data-hot-input",""),n.className="HandsontableCopyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",e.appendChild(n),n}(this.container);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)}}]),e}();(0,l.mixin)(d,s.default);var h=new WeakMap;function f(e){e.eventManager.clear()}var p=function(e,t){return function(n){return t.runLocalHooks(e,n)}};function g(e,t,n){e.addEventListener(t,"copy",p("copy",n)),e.addEventListener(t,"cut",p("cut",n)),e.addEventListener(t,"paste",p("paste",n))}var m=new WeakMap},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.CopyableRangesFactory=void 0,t.normalizeRanges=function(e){var t=[],n=[];return(0,l.arrayEach)(e,(function(e){var r=Math.min(e.startRow,e.endRow),o=Math.max(e.startRow,e.endRow);(0,u.rangeEach)(r,o,(function(e){-1===t.indexOf(e)&&t.push(e)}));var i=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,u.rangeEach)(i,a,(function(e){-1===n.indexOf(e)&&n.push(e)}))})),{rows:t,columns:n}},n(22),n(4),n(1),n(5),n(7),n(6),n(232);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(13),u=n(36);function c(e,t){h(e,t),t.add(e)}function d(e,t,n){h(e,t),t.set(e,n)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var p=new WeakMap,g=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,T=new WeakSet,C=new WeakSet,R=function(){function e(t){var n=t.countRows,r=t.countColumns,i=t.rowsLimit,a=t.columnsLimit,l=t.countColumnHeaders;(0,o.default)(this,e),c(this,C),c(this,T),d(this,p,{writable:!0,value:void 0}),d(this,g,{writable:!0,value:void 0}),d(this,m,{writable:!0,value:void 0}),d(this,v,{writable:!0,value:void 0}),d(this,y,{writable:!0,value:void 0}),d(this,E,{writable:!0,value:void 0}),(0,s.default)(this,g,n),(0,s.default)(this,m,r),(0,s.default)(this,v,i),(0,s.default)(this,y,a),(0,s.default)(this,E,l)}return(0,i.default)(e,[{key:"setSelectedRange",value:function(e){(0,s.default)(this,p,e)}},{key:"getCellsRange",value:function(){if(0===(0,a.default)(this,g).call(this)||0===(0,a.default)(this,m).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner(),t=e.row,n=e.col,r=(0,a.default)(this,p).getBottomEndCorner(),o=r.row,i=r.col,s=f(this,C,S).call(this,t,o),l=f(this,T,w).call(this,n,i);return{isRangeTrimmed:o!==s||i!==l,startRow:t,startCol:n,endRow:s,endCol:l}}},{key:"getMostBottomColumnHeadersRange",value:function(){if(0===(0,a.default)(this,m).call(this)||0===(0,a.default)(this,E).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner().col,t=(0,a.default)(this,p).getBottomEndCorner().col,n=f(this,T,w).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-1,startCol:e,endRow:-1,endCol:n}}},{key:"getAllColumnHeadersRange",value:function(){if(0===(0,a.default)(this,m).call(this)||0===(0,a.default)(this,E).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner().col,t=(0,a.default)(this,p).getBottomEndCorner().col,n=f(this,T,w).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-(0,a.default)(this,E).call(this),startCol:e,endRow:-1,endCol:n}}}]),e}();function w(e,t){return Math.min(t,Math.max(e+(0,a.default)(this,y).call(this)-1,e))}function S(e,t){return Math.min(t,Math.max(e+(0,a.default)(this,v).call(this)-1,e))}t.CopyableRangesFactory=R},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0;var r=n(946);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CustomBorders=r.CustomBorders},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0,n(20),n(43),n(297),n(22),n(53);var i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=r(n(26)),p=n(38),g=n(12),m=n(36),v=n(13),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),E=n(947),T=n(154),C=n(295);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}t.PLUGIN_KEY="customBorders";t.PLUGIN_PRIORITY=90;var S=function(e){(0,c.default)(n,e);var t=w(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,f.default)((0,l.default)(e),"savedBorders",[]),e}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("init",(function(){return e.onAfterInit()})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,r=["top","bottom","start","end"],o=null;t&&(this.checkSettingsCohesion([t]),r=Object.keys(t),o=(0,T.normalizeBorder)(t));var a=(0,C.detectSelectionType)(e),s=(0,C.normalizeSelectionFactory)(a);(0,v.arrayEach)(e,(function(e){for(var t=s(e),a=(0,i.default)(t,4),l=a[0],u=a[1],c=a[2],d=a[3],h=function(e){for(var t=function(t){(0,v.arrayEach)(r,(function(r){n.prepareBorderFromCustomAdded(e,t,o,(0,T.toInlinePropName)(r))}))},i=u;i<=d;i+=1)t(i)},f=l;f<=c;f+=1)h(f)})),this.hot.view.render()}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=(0,C.detectSelectionType)(e),r=(0,C.normalizeSelectionFactory)(n),o=[];return(0,v.arrayEach)(e,(function(e){for(var n=r(e),a=(0,i.default)(n,4),s=a[0],l=a[1],u=a[2],c=a[3],d=function(e){for(var n=function(n){(0,v.arrayEach)(t.savedBorders,(function(t){t.row===e&&t.col===n&&o.push((0,T.denormalizeBorder)(t))}))},r=l;r<=c;r+=1)n(r)},h=s;h<=u;h+=1)d(h)})),o}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,v.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=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,r){var o=this.hot.countRows(),i=this.hot.countCols();if(!(e>=o||t>=i)){var a=(0,T.createEmptyBorders)(e,t);n&&(a=(0,T.extendDefaultBorder)(a,n),(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(e){if(a.id===e.settings.id)return Object.assign(e.settings,n),a.id=e.settings.id,a.top=e.settings.top,a.bottom=e.settings.bottom,a.start=e.settings.start,a.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(a)),this.insertBorderIntoSettings(a,r)}}},{key:"prepareBorderFromCustomAddedRange",value:function(e,t){var n=this,r=Math.min(e.to.row,this.hot.countRows()-1),o=Math.min(e.to.col,this.hot.countCols()-1);(0,m.rangeEach)(e.from.row,r,(function(r){(0,m.rangeEach)(e.from.col,o,(function(o){var i=(0,T.createEmptyBorders)(r,o),a=0;r===e.from.row&&(0,g.hasOwnProperty)(t,"top")&&(a+=1,i.top=t.top),r===e.to.row&&(0,g.hasOwnProperty)(t,"bottom")&&(a+=1,i.bottom=t.bottom),o===e.from.col&&(0,g.hasOwnProperty)(t,"start")&&(a+=1,i.start=t.start),o===e.to.col&&(0,g.hasOwnProperty)(t,"end")&&(a+=1,i.end=t.end),a>0&&(n.hot.setCellMeta(r,o,"borders",(0,T.denormalizeBorder)(i)),n.insertBorderIntoSettings(i))}))}))}},{key:"removeAllBorders",value:function(e,t){var n=(0,T.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,r){var o=this.hot.getCellMeta(e,t).borders;(o=o&&void 0!==o.border?(0,T.normalizeBorder)(o):(0,T.createEmptyBorders)(e,t),r)?(o[n]=(0,T.createSingleEmptyBorder)(),4===this.countHide(o)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(o)))):(o[n]=(0,T.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(o)))}},{key:"prepareBorder",value:function(e,t,n){var r=this;(0,v.arrayEach)(e,(function(e){var o=e.start,i=e.end;if(o.row===i.row&&o.col===i.col)"noBorders"===t?r.removeAllBorders(o.row,o.col):r.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":(0,m.rangeEach)(o.col,i.col,(function(e){(0,m.rangeEach)(o.row,i.row,(function(t){r.removeAllBorders(t,e)}))}));break;case"top":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(o.row,e,t,n)}));break;case"bottom":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(i.row,e,t,n)}));break;case"start":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,o.col,t,n)}));break;case"end":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,i.col,t,n)}))}}))}},{key:"createCustomBorders",value:function(e){var t=this;(0,v.arrayEach)(e,(function(e){var n=(0,T.normalizeBorder)(e);e.range?t.prepareBorderFromCustomAddedRange(e.range,n):t.prepareBorderFromCustomAdded(e.row,e.col,n)}))}},{key:"countHide",value:function(e){var t=[e.top,e.bottom,e.start,e.end];return(0,v.arrayReduce)(t,(function(e,t){var n=e;return t&&t.hide&&(n+=1),n}),0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,v.arrayMap)(this.hot.selection.highlight.customSelections,(function(e){return e.settings.id})).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var e=this;(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections[n].destroy(),e.hot.selection.highlight.customSelections.splice(n,1),!1}))}},{key:"hideBorders",value:function(){var e=this;(0,v.arrayEach)(this.savedBorders,(function(t){e.clearBordersFromSelectionSettings(t.id),e.clearNullCellRange()}))}},{key:"spliceBorder",value:function(e){var t=(0,v.arrayMap)(this.savedBorders,(function(e){return e.id})).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):(0,v.arrayEach)(this.savedBorders,(function(r,o){if(e.id===r.id)return t.savedBorders[o]=e,n=!0,!1})),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var r=!1;return(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(o){if(e.id===o.settings.id)return(0,g.objectEach)(o.instanceBorders,(function(e){e.toggleHiddenClass(t,n)})),r=!0,!1})),r}},{key:"checkCustomSelections",value:function(e,t,n){var r=this.countHide(e),o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(r){if(e.id===r.settings.id)return r.visualCellRange=t,r.commit(),n&&(0,g.objectEach)(r.instanceBorders,(function(t){t.changeBorderStyle(n,e)})),o=!0,!1})),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;if(Array.isArray(e)){var t=(0,g.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"checkSettingsCohesion",value:function(e){var t=(0,T.hasLeftRightTypeOptions)(e),n=(0,T.hasStartEndTypeOptions)(e);if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}},{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,E.top)(this),(0,E.right)(this),(0,E.bottom)(this),(0,E.left)(this),(0,E.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"customBorders"}},{key:"PLUGIN_PRIORITY",get:function(){return 90}}]),n}(p.BasePlugin);t.CustomBorders=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(948));t.bottom=o.default;var i=r(n(949));t.left=i.default;var a=r(n(950));t.noBorders=a.default;var s=r(n(951));t.right=s.default;var l=r(n(952));t.top=l.default},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,i.checkSelectionBorders)(this,"bottom")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"bottom");e.prepareBorder(n,"bottom",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!(0,i.checkSelectionBorders)(this)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,i.checkSelectionBorders)(this,"top")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var r=n(954);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DragToScroll=r.DragToScroll},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=r(n(49)),f=n(75),p=n(16);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="dragToScroll";t.PLUGIN_PRIORITY=100;var m=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new h.default((0,a.default)(r)),r.boundaries=null,r.callback=null,r.listening=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",(function(t){return e.setupListening(t)})),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.setupListening(t)})),this.registerEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),(0,s.default)((0,c.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,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=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,r)}},{key:"listen",value:function(){this.listening=!0}},{key:"unlisten",value:function(){this.listening=!1}},{key:"isListening",value:function(){return this.listening}},{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"contextmenu",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mouseup",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mousemove",(function(t){return e.onMouseMove(t)})),t=(0,p.getParentWindow)(t)}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(e){if(!(0,f.isRightClick)(e)){var t=this.hot.view._wt.wtTable.holder;t!==this.hot.rootWindow&&(this.setBoundaries(t.getBoundingClientRect()),this.setCallback((function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)})),this.listen())}}},{key:"onMouseMove",value:function(e){this.isListening()&&this.check(e.clientX,e.clientY)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dragToScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 100}}]),n}(d.BasePlugin);t.DragToScroll=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0;var r=n(956);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DropdownMenu=r.DropdownMenu},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0,n(20),n(22);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=n(13),f=r(n(614)),p=r(n(49)),g=n(16),m=r(n(615)),v=r(n(305)),y=r(n(59)),E=n(110);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(957),y.default.getSingleton().register("afterDropdownMenuDefaultOptions"),y.default.getSingleton().register("beforeDropdownMenuShow"),y.default.getSingleton().register("afterDropdownMenuShow"),y.default.getSingleton().register("afterDropdownMenuHide"),y.default.getSingleton().register("afterDropdownMenuExecute");t.PLUGIN_KEY="dropdownMenu";t.PLUGIN_PRIORITY=230;var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new p.default((0,a.default)(r)),r.commandExecutor=new f.default(r.hot),r.itemsFactory=null,r.menu=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().dropdownMenu,r={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady((function(){e.hot.runHooks("afterDropdownMenuDefaultOptions",r),e.itemsFactory.setPredefinedItems(r.items);var n=e.itemsFactory.getItems(t);e.menu&&e.menu.destroy(),e.menu=new v.default(e.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||e.hot.rootDocument.body}),e.hot.runHooks("beforeDropdownMenuSetItems",n),e.menu.setMenuItems(n),e.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),e.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),e.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),e.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),(0,h.arrayEach)(n,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}))}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"open",value:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e))}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"setListening",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if(e.stopPropagation(),(0,g.hasClass)(e.target,"changeType")&&!this.menu.isOpened()){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect();t=r.top,n=r.left}var o=e.target.getBoundingClientRect();this.open({left:o.left+n,top:o.top+e.target.offsetHeight+3+t,width:o.width,height:o.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(!(e<0||o!==r.length-1)){var i=t.querySelector(".".concat("changeType"));if(!this.enabled||!i)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className="changeType",a.type="button",a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else i&&i.parentNode.removeChild(i)}}}},{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,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dropdownMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 230}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{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]}}]),n}(d.BasePlugin);t.DropdownMenu=C,C.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0;var r=n(959);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ExportFile=r.ExportFile},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0,n(20),n(67);var i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=r(n(960)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(961));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="exportFile";t.PLUGIN_PRIORITY=240;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}},{key:"exportAsBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}},{key:"downloadFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hot,r=n.rootDocument,o=n.rootWindow,i=this._createTypeFormatter(e,t),a=this._createBlob(i),s=o.URL||o.webkitURL,l=r.createElement("a"),u="".concat(i.options.filename,".").concat(i.options.fileExtension);if(void 0!==l.download){var c=s.createObjectURL(a);l.style.display="none",l.setAttribute("href",c),l.setAttribute("download",u),r.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),r.body.removeChild(l),setTimeout((function(){s.revokeObjectURL(c)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(a,u)}},{key:"_createTypeFormatter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.EXPORT_TYPES[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return(0,h.default)(e,new d.default(this.hot),t)}},{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}}],[{key:"PLUGIN_KEY",get:function(){return"exportFile"}},{key:"PLUGIN_PRIORITY",get:function(){return 240}}]),n}(c.BasePlugin);t.ExportFile=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(36),l=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.options={}}return(0,a.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"getData",value:function(){var e=this,t=this._getDataRange(),n=t.startRow,r=t.startCol,o=t.endRow,i=t.endCol,a=this.options,l=[];return(0,s.rangeEach)(n,o,(function(t){var n=[];!a.exportHiddenRows&&e._isHiddenRow(t)||((0,s.rangeEach)(r,i,(function(r){!a.exportHiddenColumns&&e._isHiddenColumn(r)||n.push(e.hot.getDataAtCell(t,r))})),l.push(n))})),l}},{key:"getRowHeaders",value:function(){var e=this,t=[];if(this.options.rowHeaders){var n=this._getDataRange(),r=n.startRow,o=n.endRow,i=this.hot.getRowHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenRows&&e._isHiddenRow(n)||t.push(i[n])}))}return t}},{key:"getColumnHeaders",value:function(){var e=this,t=[];if(this.options.columnHeaders){var n=this._getDataRange(),r=n.startCol,o=n.endCol,i=this.hot.getColHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenColumns&&e._isHiddenColumn(n)||t.push(i[n])}))}return t}},{key:"_getDataRange",value:function(){var e=this.hot.countCols()-1,t=this.hot.countRows()-1,n=(0,o.default)(this.options.range,4),r=n[0],i=void 0===r?0:r,a=n[1],s=void 0===a?0:a,l=n[2],u=void 0===l?t:l,c=n[3],d=void 0===c?e:c;return{startRow:i=Math.max(i,0),startCol:s=Math.max(s,0),endRow:u=Math.min(u,t),endCol:d=Math.min(d,e)}}},{key:"_isHiddenRow",value:function(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}},{key:"_isHiddenColumn",value:function(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_PDF=t.TYPE_EXCEL=t.TYPE_CSV=t.EXPORT_TYPES=void 0,t.default=function(e,t,n){if("function"==typeof a[e])return new a[e](t,n);return null};var o=r(n(26)),i=r(n(962));t.TYPE_CSV="csv";t.TYPE_EXCEL="excel";t.TYPE_PDF="pdf";var a=(0,o.default)({},"csv",i.default);t.EXPORT_TYPES=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(83),n(65),n(22),n(51),n(82),n(148),n(98);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(24),d=r(n(963));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=String.fromCharCode(13),p=String.fromCharCode(34),g=String.fromCharCode(10),m=function(e){(0,a.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"export",value:function(){var e=this,t=this.options,n=this.dataProvider.getData(),r=this.dataProvider.getColumnHeaders(),o=r.length>0,i=this.dataProvider.getRowHeaders(),a=i.length>0,s=t.bom?String.fromCharCode(65279):"";return o&&(r=(0,u.arrayMap)(r,(function(t){return e._escapeCell(t,!0)})),a&&(s+=t.columnDelimiter),s+=r.join(t.columnDelimiter),s+=t.rowDelimiter),(0,u.arrayEach)(n,(function(n,r){r>0&&(s+=t.rowDelimiter),a&&(s+=e._escapeCell(i[r])+t.columnDelimiter),s+=n.map((function(t){return e._escapeCell(t)})).join(t.columnDelimiter)})),s}},{key:"_escapeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,c.stringify)(e);return""!==n&&(t||n.indexOf(f)>=0||n.indexOf(p)>=0||n.indexOf(g)>=0||n.indexOf(this.options.columnDelimiter)>=0)&&(n=n.replace(new RegExp('"',"g"),'""'),n='"'.concat(n,'"')),n}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),n}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(424);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(84),l=function(){function e(t,n){(0,o.default)(this,e),this.dataProvider=t,this.options=this._mergeOptions(n),this.dataProvider.setOptions(this.options)}return(0,i.default)(e,[{key:"_mergeOptions",value:function(t){var n=(0,a.clone)(this.constructor.DEFAULT_OPTIONS),r=new Date;return n=(0,a.extend)((0,a.clone)(e.DEFAULT_OPTIONS),n),(n=(0,a.extend)(n,t)).filename=(0,s.substitute)(n.filename,{YYYY:r.getFullYear(),MM:"".concat(r.getMonth()+1).padStart(2,"0"),DD:"".concat(r.getDate()).padStart(2,"0")}),n}}],[{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:[]}}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var r=n(965);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Filters=r.Filters},function(e,t,n){"use strict";n(9),n(7),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var i=r(n(64));n(4),n(40),n(1),n(5),n(6),n(23),n(35),n(48),n(85),n(20);var a,s=r(n(21)),l=r(n(2)),u=r(n(3)),c=r(n(33)),d=r(n(19)),h=r(n(10)),f=r(n(11)),p=r(n(8)),g=n(38),m=n(13),v=n(66),y=n(74),E=n(36),T=r(n(49)),C=n(16),R=n(110),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),S=r(n(966)),O=r(n(986)),b=r(n(988)),A=r(n(994)),N=r(n(624)),M=r(n(625)),I=r(n(995)),_=n(191),k=n(306),P=n(76);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.default)(this,n)}}n(996);t.PLUGIN_KEY="filters";t.PLUGIN_PRIORITY=250;var D=function(e){(0,h.default)(n,e);var t=L(n);function n(e){var r;return(0,l.default)(this,n),(r=t.call(this,e)).eventManager=new T.default((0,c.default)(r)),r.dropdownMenuPlugin=null,r.conditionCollection=null,r.conditionUpdateObserver=null,r.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),r.lastSelectedColumn=null,r.filtersRowsMap=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,u.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new P.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var t=this.hot.getSettings().dropdownMenu,r=t&&t.uiContainer||this.hot.rootDocument.body,o=function(t){return t.addLocalHook("accept",(function(){return e.onActionBarSubmit("accept")})),t.addLocalHook("cancel",(function(){return e.onActionBarSubmit("cancel")})),t.addLocalHook("change",(function(n){return e.onComponentChange(t,n)})),t};if(!this.components.get("filter_by_condition")){var i=new S.default(this.hot,{id:"filter_by_condition",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_CONDITION),":")},addSeparator:!1,menuContainer:r});i.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition",o(i))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new O.default(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){var a=new S.default(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:r});a.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition2",o(a))}this.components.get("filter_by_value")||this.components.set("filter_by_value",o(new b.default(this.hot,{id:"filter_by_value",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_VALUE),":")}}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",o(new A.default(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new N.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new I.default(this.hot,this.conditionCollection,(function(t){return e.getDataMapAtColumn(t)})),this.conditionUpdateObserver.addLocalHook("update",(function(t){return e.updateComponents(t)}))),this.components.forEach((function(e){return e.show()})),this.addHook("beforeDropdownMenuSetItems",(function(t){return e.onBeforeDropdownMenuSetItems(t)})),this.addHook("afterDropdownMenuDefaultOptions",(function(t){return e.onAfterDropdownMenuDefaultOptions(t)})),this.addHook("afterDropdownMenuShow",(function(){return e.onAfterDropdownMenuShow()})),this.addHook("afterDropdownMenuHide",(function(){return e.onAfterDropdownMenuHide()})),this.addHook("afterChange",(function(t){return e.onAfterChange(t)})),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),(0,d.default)((0,p.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e,t=this;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((function(e,n){e.destroy(),t.components.set(n,null)})),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));(0,d.default)((0,p.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"addCondition",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k.OPERATION_AND,o=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}},{key:"removeConditions",value:function(e){var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}},{key:"filter",value:function(){var e=this,t=this._createDataFilter(),n=!this.conditionCollection.isEmpty(),r=[],o=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",o))if(n){var i=[];this.hot.batchExecution((function(){e.filtersRowsMap.clear(),r=(0,m.arrayMap)(t.filter(),(function(e){return e.meta.visualRow}));var n=(0,_.createArrayAssertion)(r);(0,E.rangeEach)(e.hot.countSourceRows()-1,(function(e){n(e)||i.push(e)})),(0,m.arrayEach)(i,(function(t){e.filtersRowsMap.setValueAtIndex(t,!0)}))}),!0),r.length||this.hot.deselectCell()}else this.filtersRowsMap.clear();this.hot.runHooks("afterFilter",o),this.hot.view.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection()}},{key:"getSelectedColumn",value:function(){var e,t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}},{key:"clearColumnSelection",value:function(){var e=this.getSelectedColumn();null!==e&&this.hot.selectCell(0,e.visualIndex)}},{key:"getDataMapAtColumn",value:function(e){var t=this,n=this.hot.toVisualColumn(e),r=[];return(0,m.arrayEach)(this.hot.getSourceDataAtCol(n),(function(e,o){var i,a=t.hot.getCellMeta(o,n),s=a.row,l=a.col,u=a.visualCol,c=a.visualRow,d=a.type,h=a.instance,f=a.dateFormat,p=a.locale,g=null!==(i=t.hot.getDataAtCell(t.hot.toVisualRow(o),n))&&void 0!==i?i:e;r.push({meta:{row:s,col:l,visualCol:u,visualRow:c,type:d,instance:h,dateFormat:f,locale:p},value:(0,_.toEmptyString)(g)})})),r}},{key:"onAfterChange",value:function(e){var t=this;e&&(0,m.arrayEach)(e,(function(e){var n=(0,s.default)(e,2)[1],r=t.hot.propToCol(n);t.conditionCollection.hasConditions(r)&&t.updateValueComponentCondition(r)}))}},{key:"updateValueComponentCondition",value:function(e){var t=this.hot.getDataAtCol(e),n=(0,_.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,n)}},{key:"restoreComponents",value:function(e){var t,n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach((function(e){e.isHidden()||e.restoreState(n)})),this.updateDependentComponentsVisibility()}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents(Array.from(this.components.values()))}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(){var e=this;this.dropdownMenuPlugin&&this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",(function(){e.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:!0})}))}},{key:"onAfterDropdownMenuDefaultOptions",value:function(e){e.items.push({name:R.SEPARATOR}),this.components.forEach((function(t){e.items.push(t.getMenuItemDescriptor())}))}},{key:"getOperationBasedOnArguments",value:function(e,t,n,r){var o=e;return o===k.OPERATION_OR&&t.command.key!==k.CONDITION_NONE&&n.command.key!==k.CONDITION_NONE&&r.command.key!==k.CONDITION_NONE?o=k.OPERATION_OR_THEN_VARIABLE:r.command.key!==k.CONDITION_NONE&&(t.command.key!==k.CONDITION_NONE&&n.command.key!==k.CONDITION_NONE||(o=k.OPERATION_AND)),o}},{key:"onActionBarSubmit",value:function(e){var t;if("accept"===e){var n,r=this.getSelectedColumn();if(null===r)return void(null===(n=this.dropdownMenuPlugin)||void 0===n||n.close());var o=r.physicalIndex,i=this.components.get("filter_by_condition").getState(),a=this.components.get("filter_by_condition2").getState(),s=this.components.get("filter_by_value").getState(),l=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),i,a,s);this.conditionUpdateObserver.groupChanges();var u=this.conditionCollection.getColumnStackPosition(o);-1===u&&(u=void 0),this.conditionCollection.removeConditions(o),i.command.key!==k.CONDITION_NONE&&(this.conditionCollection.addCondition(o,i,l,u),a.command.key!==k.CONDITION_NONE&&this.conditionCollection.addCondition(o,a,l,u)),s.command.key!==k.CONDITION_NONE&&this.conditionCollection.addCondition(o,s,l,u),this.conditionUpdateObserver.flush(),this.components.forEach((function(e){return e.saveState(o)})),this.filtersRowsMap.clear(),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}},{key:"onComponentChange",value:function(e,t){this.updateDependentComponentsVisibility(),e.constructor!==S.default||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}},{key:"updateDependentComponentsVisibility",value:function(){var e=this.components.get("filter_by_condition").getState().command,t=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];e.showOperators?this.showComponents.apply(this,t):this.hideComponents.apply(this,t)}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?(0,C.addClass)(t,"htFiltersActive"):(0,C.removeClass)(t,"htFiltersActive")}},{key:"_createDataFilter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new M.default(t,(function(t){return e.getDataMapAtColumn(t)}))}},{key:"updateComponents",value:function(e){var t;if(null!==(t=this.dropdownMenuPlugin)&&void 0!==t&&t.enabled){var n=e.editedConditionStack,r=n.conditions,o=n.column,s=r.filter((function(e){return e.name===k.CONDITION_BY_VALUE})),l=r.filter((function(e){return e.name!==k.CONDITION_BY_VALUE}));if(s.length>=2||l.length>=3)(0,y.warn)((0,v.toSingleLine)(a||(a=(0,i.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."],["The filter conditions have been applied properly, but couldn’t be displayed visually.\\x20\n The overall amount of conditions exceed the capability of the dropdown menu.\\x20\n For more details see the documentation."]))));else{var u=this.conditionCollection.getOperation(o);this.components.get("filter_by_condition").updateState(l[0],o),this.components.get("filter_by_condition2").updateState(l[1],o),this.components.get("filter_operators").updateState(u,o),this.components.get("filter_by_value").updateState(e)}}}},{key:"getIndexesOfComponents",value:function(){var e=[];if(!this.dropdownMenuPlugin)return e;for(var t=this.dropdownMenuPlugin.menu,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(0,m.arrayEach)(r,(function(n){(0,m.arrayEach)(t.menuItems,(function(t,r){t.key===n.getMenuItemDescriptor().key&&e.push(r)}))})),e}},{key:"changeComponentsVisibility",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.dropdownMenuPlugin){for(var t=this.dropdownMenuPlugin.menu,n=t.hotMenu,r=n.getPlugin("hiddenRows"),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=this.getIndexesOfComponents.apply(this,i);e?r.showRows(s):r.hideRows(s),n.render()}}},{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))}},{key:"destroy",value:function(){var e=this;this.enabled&&(this.components.forEach((function(t,n){null!==t&&(t.destroy(),e.components.set(n,null))})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),(0,d.default)((0,p.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"filters"}},{key:"PLUGIN_PRIORITY",get:function(){return 250}},{key:"PLUGIN_DEPS",get:function(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}}]),n}(g.BasePlugin);t.Filters=D},function(e,t,n){"use strict";n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85),n(230),n(67),n(35),n(1);var i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(16),h=n(75),f=n(13),p=n(108),g=n(12),m=w(n(18)),v=r(n(233)),y=w(n(306)),E=r(n(308)),T=r(n(985)),C=n(46);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var O=function(e){(0,l.default)(n,e);var t=S(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.addSeparator=r.addSeparator,o.elements.push(new T.default(o.hot,{menuContainer:r.menuContainer})),o.elements.push(new E.default(o.hot,{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),o.elements.push(new E.default(o.hot,{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getSelectElement().addLocalHook("select",(function(t){return e.onConditionSelect(t)})),this.getSelectElement().addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),(0,f.arrayEach)(this.getInputElements(),(function(t){t.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}))}},{key:"setState",value:function(e){var t=this;if(this.reset(),e){var n=(0,g.clone)(e.command);n.name.startsWith(m.FILTERS_CONDITIONS_NAMESPACE)&&(n.name=this.hot.getTranslatedPhrase(n.name)),this.getSelectElement().setValue(n),(0,f.arrayEach)(e.args,(function(e,r){if(r>n.inputsCount-1)return!1;var o=t.getInputElement(r);o.setValue(e),o[n.inputsCount>r?"show":"hide"](),r||setTimeout((function(){return o.focus()}),10)}))}}},{key:"getState",value:function(){var e=this.getSelectElement().getValue()||(0,C.getConditionDescriptor)(y.CONDITION_NONE),t=[];return(0,f.arrayEach)(this.getInputElements(),(function(n,r){e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}},{key:"updateState",value:function(e,t){var n=e?(0,C.getConditionDescriptor)(e.name):(0,C.getConditionDescriptor)(y.CONDITION_NONE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,f.arrayEach)(this.getInputElements(),(function(e){return e.setValue(null)}))}},{key:"getSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof T.default}))[0]}},{key:"getInputElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}},{key:"getInputElements",value:function(){return this.elements.filter((function(e){return e instanceof E.default}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,d.addClass)(n.parentNode,"htFiltersMenuCondition"),e.addSeparator&&(0,d.addClass)(n.parentNode,"border");var s=e.hot.rootDocument.createElement("div");return(0,d.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,f.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=[(0,C.getConditionDescriptor)(y.CONDITION_NONE)];if(null!==e){var r=e.visualIndex;t=(0,y.default)(this.hot.getDataType(0,r,this.hot.countRows(),r))}(0,f.arrayEach)(this.getInputElements(),(function(e){return e.hide()})),this.getSelectElement().setItems(t),(0,s.default)((0,c.default)(n.prototype),"reset",this).call(this),this.getSelectElement().setValue(t[0])}},{key:"onConditionSelect",value:function(e){(0,f.arrayEach)(this.getInputElements(),(function(t,n){t[e.inputsCount>n?"show":"hide"](),0===n&&setTimeout((function(){return t.focus()}),10)})),this.runLocalHooks("change",e)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){(0,p.isKey)(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),(0,h.stopImmediatePropagation)(e)):(0,p.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,h.stopImmediatePropagation)(e))}}]),n}(v.default);t.default=O},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(){return!0}t.CONDITION_NAME="none",(0,i.registerCondition)("none",s,{name:o.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(616);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_empty",(0,i.registerCondition)("not_empty",l,{name:o.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(617);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="neq",(0,i.registerCondition)("neq",l,{name:o.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}t.CONDITION_NAME="gt",(0,s.registerCondition)("gt",u,{name:a.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}t.CONDITION_NAME="gte",(0,s.registerCondition)("gte",u,{name:a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}t.CONDITION_NAME="lt",(0,s.registerCondition)("lt",u,{name:a.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<=n}t.CONDITION_NAME="lte",(0,s.registerCondition)("lte",u,{name:a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(618);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_between",(0,i.registerCondition)("not_between",l,{name:o.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(230);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(n))}t.CONDITION_NAME="begins_with",(0,l.registerCondition)("begins_with",c,{name:a.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(977);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(n))}t.CONDITION_NAME="ends_with",(0,l.registerCondition)("ends_with",c,{name:a.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r,o=n(25),i=n(178),a=n(116).f,s=n(125),l=n(62),u=n(282),c=n(80),d=n(284),h=n(121),f=i("".endsWith),p=i("".slice),g=Math.min,m=d("endsWith");o({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:g(s(n),r),i=l(e);return f?f(t,i,o):p(t,o-i.length,o)===i}})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(621);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_contains",(0,i.registerCondition)("not_contains",l,{name:o.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(-1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_tomorrow",(0,s.registerCondition)("date_tomorrow",u,{name:a.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().startOf("day"),"d")}t.CONDITION_NAME="date_today",(0,s.registerCondition)("date_today",u,{name:a.FILTERS_CONDITIONS_TODAY,inputsCount:0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_yesterday",(0,s.registerCondition)("date_yesterday",u,{name:a.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=r(n(21)),i=n(46),a=n(191);function s(e,t){return(0,(0,o.default)(t,1)[0])(e.value)}t.CONDITION_NAME="by_value",(0,i.registerCondition)("by_value",s,{name:"By value",inputsCount:0,inputValuesDecorator:function(e){var t=(0,o.default)(e,1)[0];return[(0,a.createArrayAssertion)(t)]},showOperators:!1})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(46);function o(){return!0}t.CONDITION_NAME="true",(0,r.registerCondition)("true",o,{name:"True"})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(46);function o(){return!1}t.CONDITION_NAME="false",(0,r.registerCondition)("false",o,{name:"False"})},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(85);var h=r(n(305)),f=n(12),p=n(13),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),m=n(110),v=r(n(193));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var T=new WeakMap,C=function(e){(0,u.default)(n,e);var t=E(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,(0,f.extend)(n.DEFAULTS,r)),T.set((0,s.default)(o),{}),o.menu=null,o.items=[],o.registerHooks(),o}return(0,a.default)(n,[{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,p.arrayEach)(e,(function(e){e.name=t.translateIfPossible(e.name)})),e}},{key:"build",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"build",this).call(this),this.menu=new h.default(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer}),this.menu.setMenuItems(this.items);var t=new v.default(this.hot,{className:"htUISelectCaption"}),r=new v.default(this.hot,{className:"htUISelectDropdown"}),o=T.get(this);o.caption=t,o.captionElement=t.element,o.dropdown=r,(0,p.arrayEach)([t,r],(function(t){return e._element.appendChild(t.element)})),this.menu.addLocalHook("select",(function(t){return e.onMenuSelect(t)})),this.menu.addLocalHook("afterClose",(function(){return e.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),T.get(this).captionElement.textContent=e,(0,l.default)((0,d.default)(n.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}},{key:"onMenuSelect",value:function(e){e.name!==m.SEPARATOR&&(this.options.value=e,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=T.get(this),t=e.caption,r=e.dropdown;t&&t.destroy(),r&&r.destroy(),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"DEFAULTS",get:function(){return(0,f.clone)({className:"htUISelect",wrapIt:!1})}}]),n}(v.default);t.default=C},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(64));n(85),n(225),n(1);var i,a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(16),h=n(13),f=n(66),p=r(n(233)),g=n(192),m=n(307),v=n(622),y=n(623),E=r(n(987));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.buildOperatorsElement(),o}return(0,s.default)(n,[{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,d.addClass)(n.parentNode,"htFiltersMenuOperators"),n.parentNode.hasAttribute("ghost-table")||(0,h.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"buildOperatorsElement",value:function(){var e=this,t=[m.OPERATION_ID,v.OPERATION_ID];(0,h.arrayEach)(t,(function(n){var r=new E.default(e.hot,{name:"operator",label:{htmlFor:n,textContent:(0,g.getOperationName)(n)},value:n,checked:n===t[0],id:n});r.addLocalHook("change",(function(t){return e.onRadioInputChange(t)})),e.elements.push(r)}))}},{key:"setChecked",value:function(e){if(this.elements.length<e)throw Error((0,f.toSingleLine)(i||(i=(0,o.default)(["Radio button with index "," doesn't exist."])),e));(0,h.arrayEach)(this.elements,(function(t,n){t.setChecked(n===e)}))}},{key:"getActiveOperationId",value:function(){var e=this.elements.find((function(e){return e instanceof E.default&&e.isChecked()}));return e?e.getValue():m.OPERATION_ID}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,h.arrayEach)(this.elements,(function(t){t.setChecked(t.getValue()===e)}))}},{key:"updateState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,n=e;n===y.OPERATION_ID&&(n=v.OPERATION_ID),this.state.setValueAtIndex(t,n)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(e){this.setState(e.target.value)}}]),n}(p.default);t.default=C},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(12),h=r(n(193));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=new WeakMap,g=function(e){(0,l.default)(n,e);var t=f(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,d.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=p.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=p.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(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.checked=e,this.update()}},{key:"focus",value:function(){this.isBuilt()&&p.get(this).input.focus()}}],[{key:"DEFAULTS",get:function(){return(0,d.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),n}(h.default);t.default=g},function(e,t,n){"use strict";n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85),n(35),n(1);var i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(16),f=n(75),p=n(13),g=n(108),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),v=n(191),y=r(n(233)),E=r(n(989)),T=n(306),C=n(46);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.elements.push(new E.default(o.hot)),o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getMultipleSelectElement().addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}},{key:"setState",value:function(e){if(this.reset(),e&&e.command.key===T.CONDITION_BY_VALUE){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}},{key:"getState",value:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?T.CONDITION_NONE:T.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}},{key:"updateState",value:function(e){var t=this,n=function(n,r,o,a,s){var l=(0,p.arrayFilter)(r,(function(e){return e.name===T.CONDITION_BY_VALUE})),u=(0,i.default)(l,1)[0],c={},d=t.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS);if(u){var h=(0,v.unifyColumnValues)((0,p.arrayMap)(a(n,s),(function(e){return e.value})));o&&(u.args[0]=o);var f=[],g=(0,v.intersectValues)(h,u.args[0],d,(function(e){e.checked&&f.push(e.value)})),y=e.editedConditionStack.column;c.locale=t.hot.getCellMeta(0,y).locale,c.args=[f],c.command=(0,C.getConditionDescriptor)(T.CONDITION_BY_VALUE),c.itemsSnapshot=g}else c.args=[],c.command=(0,C.getConditionDescriptor)(T.CONDITION_NONE);t.state.setValueAtIndex(n,c)};n(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&n(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 E.default}))[0]}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,h.addClass)(n.parentNode,"htFiltersMenuValue");var s=e.hot.rootDocument.createElement("div");return(0,h.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,p.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS),t=(0,v.unifyColumnValues)(this._getColumnVisibleValues()),r=(0,v.intersectValues)(t,t,e);this.getMultipleSelectElement().setItems(r),(0,l.default)((0,d.default)(n.prototype),"reset",this).call(this),this.getMultipleSelectElement().setValue(t);var o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}},{key:"onInputKeyDown",value:function(e){(0,g.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,f.stopImmediatePropagation)(e))}},{key:"_getColumnVisibleValues",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,p.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(function(e){return(0,v.toEmptyString)(e)}))}}]),n}(y.default);t.default=S},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var f=n(16),p=n(12),g=n(13),m=n(108),v=n(58),y=n(133),E=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),T=n(75),C=r(n(193)),R=r(n(308)),w=r(n(990)),S=n(191);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var A=new WeakMap,N=function(e){(0,c.default)(n,e);var t=b(n);function n(e,r){var o;return(0,a.default)(this,n),o=t.call(this,e,(0,p.extend)(n.DEFAULTS,r)),A.set((0,l.default)(o),{}),o.searchInput=new R.default(o.hot,{placeholder:E.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"}),o.selectAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"}),o.clearAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"}),o.items=[],o.itemsBox=null,o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.searchInput.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)})),this.searchInput.addLocalHook("input",(function(t){return e.onInput(t)})),this.selectAllUI.addLocalHook("click",(function(t){return e.onSelectAllClick(t)})),this.clearAllUI.addLocalHook("click",(function(t){return e.onClearAllClick(t)}))}},{key:"setItems",value:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getLocale",value:function(){return this.locale}},{key:"getItems",value:function(){return(0,i.default)(this.items)}},{key:"getValue",value:function(){return e=this.items,t=[],(0,g.arrayEach)(e,(function(e){e.checked&&t.push(e.value)})),t;var e,t}},{key:"isSelectedAllValues",value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var e=this;(0,u.default)((0,h.default)(n.prototype),"build",this).call(this);var t=this.hot.rootDocument,r=t.createElement("div"),o=new C.default(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(r);var i=function(n){e._element&&(e.itemsBox&&e.itemsBox.destroy(),(0,f.addClass)(n,"htUIMultipleSelectHot"),e.itemsBox=new e.hot.constructor(n,{data:e.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(e,t,n,r,o,i){e.title=i.instance.getDataAtRowProp(t,i.label.property)},maxCols:1,autoWrapCol:!0,height:110,colWidths:function(){return e.itemsBox.container.scrollWidth-(0,f.getScrollbarWidth)(t)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},layoutDirection:e.hot.isRtl()?"rtl":"ltr"}),e.itemsBox.init(),e.itemsBox.getShortcutManager().getContext("grid").addShortcut({keys:[["Escape"]],callback:function(t){e.runLocalHooks("keydown",t,e)},group:"multipleSelect.itemBox"}))};i(r),setTimeout((function(){return i(r)}),100)}},{key:"reset",value:function(){this.searchInput.reset(),this.selectAllUI.reset(),this.clearAllUI.reset()}},{key:"update",value:function(){var e,t,r;this.isBuilt()&&(this.itemsBox.loadData((e=this.items,t=this.options.value,r=(0,S.createArrayAssertion)(t),(0,g.arrayMap)(e,(function(e){return e.checked=r(e.value),e})))),(0,u.default)((0,h.default)(n.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,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(e){var t,n=this,r=e.target.value.toLocaleLowerCase(this.getLocale());t=""===r?(0,i.default)(this.items):(0,g.arrayFilter)(this.items,(function(e){return"".concat(e.value).toLocaleLowerCase(n.getLocale()).indexOf(r)>=0})),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this),(0,v.partial)(m.isKey,e.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&((0,T.stopImmediatePropagation)(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onSelectAllClick",value:function(e){var t=[];e.preventDefault(),(0,g.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!0,t.push((0,y.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}},{key:"onClearAllClick",value:function(e){var t=[];e.preventDefault(),(0,g.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!1,t.push((0,y.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}}],[{key:"DEFAULTS",get:function(){return(0,p.clone)({className:"htUIMultipleSelect",value:[]})}}]),n}(C.default);t.default=N},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(991);var d=n(12),h=r(n(193));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=new WeakMap,g=function(e){(0,l.default)(n,e);var t=f(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,d.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this),p.get(this).link=this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(p.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}],[{key:"DEFAULTS",get:function(){return(0,d.clone)({href:"#",tagName:"a"})}}]),n}(h.default);t.default=g},function(e,t,n){"use strict";var r=n(25),o=n(992);r({target:"String",proto:!0,forced:n(993)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){var r=n(30),o=n(80),i=n(62),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var l=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(i(r),a,""")+'"'),u+">"+l+"</"+t+">"}},function(e,t,n){var r=n(29);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85);var i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(13),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),f=r(n(233)),p=r(n(308));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!0})).name=r.name,o.elements.push(new p.default(o.hot,{type:"button",value:h.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:n.BUTTON_OK})),o.elements.push(new p.default(o.hot,{type:"button",value:h.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:n.BUTTON_CANCEL})),o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;(0,d.arrayEach)(this.elements,(function(t){t.addLocalHook("click",(function(t,n){return e.onButtonClick(t,n)}))}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,c.addClass)(n.parentNode,"htFiltersMenuActionBar"),n.parentNode.hasAttribute("ghost-table")||(0,d.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}},{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(e,t){t.options.identifier===n.BUTTON_OK?this.accept():this.cancel()}}],[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),n}(f.default);t.default=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(22),n(39),n(20),n(35),n(1);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12),l=n(58),u=r(n(86)),c=r(n(624)),d=r(n(625)),h=n(191),f=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return[]};(0,o.default)(this,e),this.hot=t,this.conditionCollection=n,this.columnDataFactory=i,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",(function(e){return r._onConditionBeforeModify(e)})),this.conditionCollection.addLocalHook("afterRemove",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("afterAdd",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("beforeClean",(function(){return r._onConditionBeforeClean()})),this.conditionCollection.addLocalHook("afterClean",(function(){return r._onConditionAfterClean()}))}return(0,i.default)(e,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var e=this;this.grouping=!1,(0,a.arrayEach)(this.changes,(function(t){e.updateStatesAtColumn(t)})),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}},{key:"updateStatesAtColumn",value:function(e,t){var n=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var r=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.getColumnStackPosition(e);-1===o&&(o=this.latestEditedColumnPosition);var i=r.slice(0,o),s=r.slice(o);s.length&&s[0].column===e&&s.shift();var u=(0,l.curry)((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=new c.default(n.hot,!1),i=[].concat(e,r);o.importAllConditions(i);var s,l=n.columnDataFactory(t);s=o.isEmpty()?l:new d.default(o,(function(e){return n.columnDataFactory(e)})).filter(),s=(0,a.arrayMap)(s,(function(e){return e.meta.visualRow}));var u=(0,h.createArrayAssertion)(s);return o.destroy(),(0,a.arrayFilter)(l,(function(e){return u(e.meta.visualRow)}))}))(i),f=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:f},dependentConditionStacks:s,filteredRowsFactory:u,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}},{key:"_onConditionAfterClean",value:function(){var e=this;(0,a.arrayEach)(this.latestOrderStack,(function(t){e.updateStatesAtColumn(t)}))}},{key:"destroy",value:function(){var e=this;this.clearLocalHooks(),(0,s.objectEach)(this,(function(t,n){e[n]=null}))}}]),e}();(0,s.mixin)(f,u.default);var p=f;t.default=p},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0;var r=n(309);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Formulas=r.Formulas},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t,n=c(),r=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(r.map((function(e){return[e.getPlugin("formulas").sheetId,e]})))},t.registerCustomFunctions=f,t.registerEngine=h,t.registerLanguage=p,t.registerNamedExpressions=g,t.setupEngine=function(e){var t,n=e.getSettings(),r=n[l.PLUGIN_KEY],i=null==r?void 0:r.engine;if(!0===r)return null;if((0,a.isUndefined)(i))return null;if("function"==typeof i.hyperformula||"function"==typeof i)return h(null!==(t=i.hyperformula)&&void 0!==t?t:i,n,e);if("object"===(0,o.default)(i)&&(0,a.isUndefined)(i.hyperformula)){var s=c(),f=d().get(i);return s.has(i)||s.set(i,[]),s.get(i).push(e),f&&f.push(e.guid),i.getConfig().licenseKey||i.updateConfig({licenseKey:u.DEFAULT_LICENSE_KEY}),i}return null},t.setupSheet=function(e,t){!(0,a.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){var n=c(),r=n.get(e),o=d(),i=o.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(o.delete(e),e.destroy()))}};var o=r(n(14));n(4),n(40),n(1),n(5),n(6),n(48),n(65),n(31),n(41),n(53),n(22),n(23),n(85);var i=r(n(102)),a=n(24),s=n(74),l=n(309),u=n(626);function c(){var e=(0,i.default)(l.PLUGIN_KEY);return e.hasItem("engine_relationship")||e.register("engine_relationship",new Map),e.getItem("engine_relationship")}function d(){var e=(0,i.default)(l.PLUGIN_KEY);return e.hasItem("shared_engine_usage")||e.register("shared_engine_usage",new Map),e.getItem("shared_engine_usage")}function h(e,t,n){var r=t[l.PLUGIN_KEY],o=(0,u.getEngineSettingsWithDefaultsAndOverrides)(t),i=c(),a=d();f(e,r.functions),p(e,r.language);var s=e.buildEmpty(o);return i.set(s,[n]),a.set(s,[n.guid]),g(s,r.namedExpressions),s.on("sheetAdded",(function(){s.rebuildAndRecalculate()})),s.on("sheetRemoved",(function(){s.rebuildAndRecalculate()})),s}function f(e,t){t&&t.forEach((function(t){var n=t.name,r=t.plugin,o=t.translations;try{e.registerFunction(n,r,o)}catch(e){(0,s.warn)(e.message)}}))}function p(e,t){if(t){var n=t.langCode;try{e.registerLanguage(n,t)}catch(e){(0,s.warn)(e.message)}}}function g(e,t){t&&(e.suspendEvaluation(),t.forEach((function(t){var n=t.name,r=t.expression,o=t.scope,i=t.options;try{e.addNamedExpression(n,r,o,i)}catch(e){(0,s.warn)(e.message)}})),e.resumeEvaluation())}},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}t.__esModule=!0,t.isEscapedFormulaExpression=r,t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0;var r=n(1001);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenColumns=r.HiddenColumns},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0,n(20),n(39),n(65),n(48),n(5),n(4),n(1),n(52),n(6),n(72),n(73),n(22),n(53),n(83),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(78)),h=r(n(79)),f=n(38),p=n(16),g=n(36),m=n(13),v=n(12),y=n(24),E=n(110),T=r(n(59)),C=r(n(1002)),R=r(n(1003)),w=n(76);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1004),T.default.getSingleton().register("beforeHideColumns"),T.default.getSingleton().register("afterHideColumns"),T.default.getSingleton().register("beforeUnhideColumns"),T.default.getSingleton().register("afterUnhideColumns");t.PLUGIN_KEY="hiddenColumns";t.PLUGIN_PRIORITY=310;var b=new WeakMap,A=new WeakMap,N=function(e){(0,l.default)(n,e);var t=S(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),b,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenColumns;(0,v.isObject)(t)&&((0,h.default)(this,b,t),(0,y.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,h.default)(this,A,new w.HidingMap),(0,d.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,(0,d.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("afterGetColHeader",(function(){return e.onAfterGetColHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,h.default)(this,b,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showColumns",value:function(e){var t=this,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n,i=(0,d.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalColumn(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualColumn(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideColumns",n,o,r&&a)&&(r&&a&&(0,d.default)(this,A).setValues(i),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",n,o,r&&a,r&&o.length<n.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,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,d.default)(t,A).setValueAtIndex(t.hot.toPhysicalColumn(e),!0)}))}),!0),this.hot.runHooks("afterHideColumns",n,o,r,r&&o.length>n.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:"getHiddenColumns",value:function(){var e=this;return(0,m.arrayMap)((0,d.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualColumn(t)}))}},{key:"isHidden",value:function(e){return(0,d.default)(this,A).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipColumnOnPaste=!1)}))}},{key:"onModifyColWidth",value:function(e,t){return this.isHidden(t)?0:(0,d.default)(this,b).indicators&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,d.default)(this,b).copyPasteEnabled&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenColumn");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,d.default)(this,b).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,g.rangeEach)(e.startCol,e.endCol,(function(i){t.isHidden(i)?(n||r(e.startRow,e.endRow,o,i-1),n=!0):(n&&(o=i),i===e.endCol&&r(e.startRow,e.endRow,o,i),n=!1)}))})),n}},{key:"onAfterGetColHeader",value:function(e,t){if((0,d.default)(this,b).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,C.default)(this),(0,R.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this,b).columns)&&this.hideColumns((0,d.default)(this,b).columns)}},{key:"destroy",value:function(){(0,h.default)(this,b,null),(0,h.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenColumns"}},{key:"PLUGIN_PRIORITY",get:function(){return 310}}]),n}(f.BasePlugin);t.HiddenColumns=N},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.col,r.col),0),i=Math.max(n.col,r.col),a=[],s=o;s<=i;s+=1)a.push(s);e.hideColumns(a);var l=a[a.length-1],u=this.columnIndexMapper.getNearestNotHiddenIndex(l,1,!0);Number.isInteger(u)&&u>=0?this.selectColumns(u):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},n(72),n(73);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_columns_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countCols()||this.selectColumns(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenColumns(),(function(e){return n.toPhysicalColumn(e)}));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().col,l=o.getBottomEndCorner().col,u=this.columnIndexMapper,c=u.getRenderableFromVisualIndex(s),d=u.getRenderableFromVisualIndex(l),h=u.getNotTrimmedIndexes(),f=[];if(s!==l){if(l-s+1>d-c+1){var p=h.slice(s,l+1);f.push.apply(f,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)f.push.apply(f,(0,i.default)(h.slice(0,s)));else if(null===c)f.push.apply(f,(0,i.default)(h.slice(0,this.countCols())));else{var g=this.countCols()-1;d===u.getRenderableFromVisualIndex(u.getNearestNotHiddenIndex(g,-1))&&g>l&&f.push.apply(f,(0,i.default)(h.slice(l+1)))}return(0,a.arrayEach)(f,(function(e){t.push(n.toVisualColumn(e))})),0===t.length}}};var i=r(n(32));n(39),n(35),n(1),n(31),n(41);var a=n(13),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0;var r=n(1006);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenRows=r.HiddenRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0,n(20),n(39),n(65),n(48),n(5),n(4),n(1),n(52),n(6),n(72),n(73),n(22),n(53),n(83),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(78)),h=r(n(79)),f=n(38),p=n(16),g=n(36),m=n(13),v=n(12),y=n(24),E=n(110),T=r(n(59)),C=r(n(1007)),R=r(n(1008)),w=n(76);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1009),T.default.getSingleton().register("beforeHideRows"),T.default.getSingleton().register("afterHideRows"),T.default.getSingleton().register("beforeUnhideRows"),T.default.getSingleton().register("afterUnhideRows");t.PLUGIN_KEY="hiddenRows";t.PLUGIN_PRIORITY=320;var b=new WeakMap,A=new WeakMap,N=function(e){(0,l.default)(n,e);var t=S(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),b,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenRows;(0,v.isObject)(t)&&((0,h.default)(this,b,t),(0,y.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,h.default)(this,A,new w.HidingMap),(0,d.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,(0,d.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.addHook("afterGetRowHeader",(function(){return e.onAfterGetRowHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,h.default)(this,b,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showRows",value:function(e){var t=this,n=this.getHiddenRows(),r=this.isValidConfig(e),o=n,i=(0,d.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalRow(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualRow(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideRows",n,o,r&&a)&&(r&&a&&(0,d.default)(this,A).setValues(i),this.hot.runHooks("afterUnhideRows",n,o,r&&a,r&&o.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.getHiddenRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideRows",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,d.default)(t,A).setValueAtIndex(t.hot.toPhysicalRow(e),!0)}))}),!0),this.hot.runHooks("afterHideRows",n,o,r,r&&o.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:"getHiddenRows",value:function(){var e=this;return(0,m.arrayMap)((0,d.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualRow(t)}))}},{key:"isHidden",value:function(e){return(0,d.default)(this,A).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipRowOnPaste=!1)}))}},{key:"onModifyRowHeight",value:function(e,t){return this.isHidden(t)?0:e}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,d.default)(this,b).copyPasteEnabled&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenRow");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,d.default)(this,b).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,g.rangeEach)(e.startRow,e.endRow,(function(i){t.isHidden(i)?(n||r(o,i-1,e.startCol,e.endCol),n=!0):(n&&(o=i),i===e.endRow&&r(o,i,e.startCol,e.endCol),n=!1)}))})),n}},{key:"onAfterGetRowHeader",value:function(e,t){if((0,d.default)(this,b).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,C.default)(this),(0,R.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this,b).rows)&&this.hideRows((0,d.default)(this,b).rows)}},{key:"destroy",value:function(){(0,h.default)(this,b,null),(0,h.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 320}}]),n}(f.BasePlugin);t.HiddenRows=N},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.row,r.row),0),i=Math.max(n.row,r.row),a=[],s=o;s<=i;s+=1)a.push(s);e.hideRows(a);var l=a[a.length-1],u=this.rowIndexMapper.getNearestNotHiddenIndex(l,1,!0);Number.isInteger(u)&&u>=0?this.selectRows(u):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},n(72),n(73);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_rows_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.rowIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countRows()||this.selectRows(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenRows(),(function(e){return n.toPhysicalRow(e)}));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().row,l=o.getBottomEndCorner().row,u=this.rowIndexMapper,c=u.getRenderableFromVisualIndex(s),d=u.getRenderableFromVisualIndex(l),h=u.getNotTrimmedIndexes(),f=[];if(s!==l){if(l-s+1>d-c+1){var p=h.slice(s,l+1);f.push.apply(f,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)f.push.apply(f,(0,i.default)(h.slice(0,s)));else if(null===c)f.push.apply(f,(0,i.default)(h.slice(0,this.countRows())));else{var g=this.countRows()-1;d===u.getRenderableFromVisualIndex(u.getNearestNotHiddenIndex(g,-1))&&g>l&&f.push.apply(f,(0,i.default)(h.slice(l+1)))}return(0,a.arrayEach)(f,(function(e){t.push(n.toVisualRow(e))})),0===t.length}}};var i=r(n(32));n(39),n(35),n(1),n(31),n(41);var a=n(13),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var r=n(1011);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnFreeze=r.ManualColumnFreeze},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(38),h=r(n(59)),f=r(n(1012)),p=r(n(1013));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1014),h.default.getSingleton().register("beforeColumnFreeze"),h.default.getSingleton().register("afterColumnFreeze"),h.default.getSingleton().register("beforeColumnUnfreeze"),h.default.getSingleton().register("afterColumnUnfreeze");t.PLUGIN_KEY="manualColumnFreeze";t.PLUGIN_PRIORITY=110;var m=new WeakMap,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),m.set((0,a.default)(r),{afterFirstUse:!1}),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addContextMenuEntry(t)})),this.addHook("beforeColumnMove",(function(t,n){return e.onBeforeColumnMove(t,n)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){m.get(this).afterFirstUse=!1,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings(),r=n.fixedColumnsStart<this.hot.countCols()&&e>n.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0),!1!==this.hot.runHooks("beforeColumnFreeze",e,r)&&(r&&(this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart),n._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,r))}},{key:"unfreezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings(),r=n.fixedColumnsStart>0&&e<=n.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0),!1!==this.hot.runHooks("beforeColumnUnfreeze",e,r)&&(r&&(n._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,r))}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,f.default)(this),(0,p.default)(this))}},{key:"onBeforeColumnMove",value:function(e,t){if(m.get(this).afterFirstUse){var n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some((function(e){return e<n})))return!1}}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnFreeze"}},{key:"PLUGIN_PRIORITY",get:function(){return 110}}]),n}(d.BasePlugin);t.ManualColumnFreeze=v},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.freezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}};var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.unfreezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var r=n(1016);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnMove=r.ManualColumnMove},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var d=n(38),h=r(n(59)),f=n(13),p=n(16),g=n(36),m=r(n(49)),v=r(n(1017)),y=r(n(1018));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1019),h.default.getSingleton().register("beforeColumnMove"),h.default.getSingleton().register("afterColumnMove");var T="manualColumnMove";t.PLUGIN_KEY=T;t.PLUGIN_PRIORITY=120;var C=new WeakMap,R=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),C.set((0,a.default)(r),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new v.default(e),r.guideline=new y.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[T]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollVertically",(function(){return e.onAfterScrollVertically()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualColumnMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){return this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=C.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeColumnMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.columnIndexMapper.moveIndexes(e,t);var a=o&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,r,o,a),a}}},{key:"dragColumn",value:function(e,t){return this.dragColumns([e],t)}},{key:"dragColumns",value:function(e,t){var n=this.countFinalIndex(e,t);return C.get(this).cachedDropIndex=t,this.moveColumns(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isColumnOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,f.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getColumnsWidth",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=0,o=e;o<=t;o+=1){var i=n.getRenderableFromVisualIndex(o);o<0?r+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==i&&(r+=this.hot.view._wt.wtTable.getStretchedColumnWidth(i)||0)}return r}},{key:"moveBySettingsOrLoad",value:function(){var e=this.hot.getSettings()[T];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveColumns(t,0)}}},{key:"isFixedColumnsStart",value:function(e){return e<this.hot.getSettings().fixedColumnsStart}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?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=C.get(this),t=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(e.hoveredColumn)&&t>0&&this.hot.scrollViewportTo(void 0,this.hot.columnIndexMapper.getNearestNotHiddenIndex(t-1,-1));var n=this.hot.view._wt.wtTable,r=this.hot.view._wt.wtOverlays.scrollableElement,o="number"==typeof r.scrollX?r.scrollX:r.scrollLeft,i=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.hoveredColumn-1),a=n.hider.offsetWidth,s=n.TBODY.offsetLeft,l=this.backlight.getOffset().start,u=this.backlight.getSize().width,c=0,d=0;if(this.hot.isRtl()){var h=this.hot.rootWindow,f=(0,p.outerWidth)(this.hot.rootElement),g=h.innerWidth-e.rootElementOffset-f;d=h.innerWidth-e.target.eventPageX-g-(void 0===r.scrollX?o:0)}else d=e.target.eventPageX-(e.rootElementOffset-(void 0===r.scrollX?o:0));if(e.hasRowHeaders&&(c=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(e.hoveredColumn)&&(i+=o),i+=c,e.hoveredColumn<0)e.fixedColumnsStart>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+i<=d){var m=e.hoveredColumn>=e.countCols?e.countCols-1:e.hoveredColumn;e.target.col=m+1,i+=e.target.TD.offsetWidth}else e.target.col=e.hoveredColumn;var v=d,y=i;d+u+l>=a?v=a-u-l:d+l<s+c&&(v=s+c+Math.abs(l)),i>=a-1?y=a-1:0===y?y=1:void 0!==r.scrollX&&e.hoveredColumn<e.fixedColumnsStart&&(y-=e.rootElementOffset<=r.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,v),this.guideline.setPosition(null,y)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=C.get(this),l=(0,p.hasClass)(e.target,"sortAction");if(!a||!i||s.pressed||0!==e.button||l)return s.pressed=!1,s.columnsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var d=a.from,h=a.to,f=Math.min(d.col,h.col),g=Math.max(d.col,h.col);if(t.row<0&&t.col>=f&&t.col<=g){r.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.target.eventOffsetX=e.offsetX,s.hoveredColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(f,g),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumnsStart=this.hot.getSettings().fixedColumnsStart,s.rootElementOffset=(0,p.offset)(this.hot.rootElement).left;var m=s.hasRowHeaders?-1:0,v=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,y=t.col<s.fixedColumnsStart,E=Math.abs(this.hot.view._wt.wtOverlays.inlineStartOverlay.getScrollPosition()),T=Math.abs(e.offsetX-(this.hot.isRtl()?e.target.offsetWidth:0)),R=this.getColumnsWidth(f,t.col-1)+T,w=this.getColumnsWidth(m,f-1)+(y?E:0)+R;this.backlight.setPosition(v,w),this.backlight.setSize(this.getColumnsWidth(f,g),o.hider.offsetHeight-v),this.backlight.setOffset(null,-R),(0,p.addClass)(this.hot.rootElement,"on-moving--columns")}else(0,p.removeClass)(this.hot.rootElement,"after-selection--columns"),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=C.get(this);if(t.pressed){if(e.target===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,r){var o=this.hot.getSelectedRangeLast(),i=C.get(this);o&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.hoveredColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=C.get(this),t=e.target.col,n=e.columnsToMove.length;if(e.hoveredColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--columns"),!(n<1||void 0===t)){var r=e.columnsToMove[0],o=this.hot.toPhysicalColumn(r),i=this.dragColumns(e.columnsToMove,t);if(e.columnsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualColumn(o),s=a+n-1;this.hot.selectColumns(a,s)}}}},{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:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return T}},{key:"PLUGIN_PRIORITY",get:function(){return 120}}]),n}(d.BasePlugin);t.ManualColumnMove=R},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(627)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),n}(c.default);t.default=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(627)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),n}(c.default);t.default=f},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var r=n(1021);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnResize=r.ManualColumnResize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(23),n(31),n(41),n(67);var d=n(38),h=n(16),f=r(n(49)),p=n(13),g=n(36),m=n(76);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y="manualColumnResize";t.PLUGIN_KEY=y;t.PLUGIN_PRIORITY=130;var E=new WeakMap,T=function(e){(0,l.default)(n,e);var t=v(n);function n(e){var r;(0,o.default)(this,n);var i=(r=t.call(this,e)).hot.rootDocument;return r.currentTH=null,r.currentCol=null,r.selectedCols=[],r.currentWidth=null,r.newSize=null,r.startY=null,r.startWidth=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new f.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.columnWidthsMap=void 0,E.set((0,a.default)(r),{config:void 0}),(0,h.addClass)(r.handle,"manualColumnResizer"),(0,h.addClass)(r.guide,"manualColumnResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[y]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnWidthsMap=new m.PhysicalIndexToValueMap,this.columnWidthsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,this.columnWidthsMap),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("beforeStretchingColumnWidth",(function(t,n){return e.onBeforeStretchingColumnWidth(t,n)})),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)})),this.bindEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){E.get(this).config=this.columnWidthsMap.getValues(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.columnWidthsMap.getValues())}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),r=this.hot.toPhysicalColumn(e);return this.columnWidthsMap.setValueAtIndex(r,n),n}},{key:"clearManualSize",value:function(e){var t=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(t,null)}},{key:"onMapInit",value:function(){var e=this,t=E.get(this),n=this.hot.getSettings()[y],r=this.loadManualColumnWidths();void 0!==r?this.hot.batchExecution((function(){r.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0):Array.isArray(n)?(this.hot.batchExecution((function(){n.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0),t.config=n):!0===n&&Array.isArray(t.config)&&this.hot.batchExecution((function(){t.config.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"setupHandlePosition",value:function(e){var t=this;if(e.parentNode){this.currentTH=e;var n=this.hot.view._wt,r=n.wtTable.getCoords(this.currentTH),o=r.col;if(!(o<0)){var i,a=(0,h.outerHeight)(this.currentTH),s=this.currentTH.getBoundingClientRect();o<n.getSetting("fixedColumnsStart")&&(i=n.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),i||(i=n.wtOverlays.topOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),this.currentCol=this.hot.columnIndexMapper.getVisualFromRenderableIndex(o),this.selectedCols=[];var l=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&l){var u=this.hot.getSelectedRange();(0,p.arrayEach)(u,(function(e){var n=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,g.rangeEach)(n,r,(function(e){t.selectedCols.includes(e)||t.selectedCols.push(e)}))}))}this.selectedCols.includes(this.currentCol)||(this.selectedCols=[this.currentCol]),this.startOffset=i.start-6,this.startWidth=parseInt(s.width,10),this.handle.style.top="".concat(i.top,"px"),this.handle.style[this.inlineDir]="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(a,"px"),this.hot.rootElement.appendChild(this.handle)}}}},{key:"refreshHandlePosition",value:function(){this.handle.style[this.inlineDir]="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.refreshGuidePosition(),this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style[this.inlineDir]=this.handle.style[this.inlineDir]}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){return!!(0,h.closest)(e,["THEAD"],this.hot.rootElement)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(!(0,h.isDetached)(e.target)&&this.checkIfColumnHeader(e.target)){var t=this.getClosestTHParent(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeColumnResize",e.newSize,n,!0);void 0!==o&&(e.newSize=o),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!0),r&&t()};this.dblclick>=2&&(this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=e.pageX,this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;if(this.pressed){var n=(e.pageX-this.startX)*this.hot.getDirectionFactor();this.currentWidth=this.startWidth+n,(0,p.arrayEach)(this.selectedCols,(function(e){t.newSize=t.setManualSize(e,t.currentWidth)})),this.refreshHandlePosition(),this.refreshGuidePosition()}}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeColumnResize",e.newSize,n,!1),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootWindow,r=t.rootElement;this.eventManager.addEventListener(r,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(r,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(n,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(n,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalColumn(t),o=this.columnWidthsMap.getValueAtIndex(r);this.hot.getSettings()[y]&&o&&(n=o)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.columnWidthsMap.getValueAtIndex(t);return null===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return y}},{key:"PLUGIN_PRIORITY",get:function(){return 130}}]),n}(d.BasePlugin);t.ManualColumnResize=T},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var r=n(1023);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowMove=r.ManualRowMove},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var d=n(38),h=r(n(59)),f=n(13),p=n(16),g=n(36),m=r(n(49)),v=r(n(1024)),y=r(n(1025));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1026),h.default.getSingleton().register("beforeRowMove"),h.default.getSingleton().register("afterRowMove");t.PLUGIN_KEY="manualRowMove";t.PLUGIN_PRIORITY=140;var T=new WeakMap,C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),T.set((0,a.default)(r),{rowsToMove:[],pressed:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new v.default(e),r.guideline=new y.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollHorizontally",(function(){return e.onAfterScrollHorizontally()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualRowMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){return this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=T.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeRowMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.rowIndexMapper.moveIndexes(e,t);var a=o&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,r,o,a),a}}},{key:"dragRow",value:function(e,t){return this.dragRows([e],t)}},{key:"dragRows",value:function(e,t){var n=this.countFinalIndex(e,t);return T.get(this).cachedDropIndex=t,this.moveRows(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,f.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getRowsHeight",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=0,o=e;o<=t;o++){var i=n.getRenderableFromVisualIndex(o);null!==i&&(r+=this.hot.view._wt.wtTable.getRowHeight(i)||23)}return r}},{key:"moveBySettingsOrLoad",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.countRows()-1-this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}},{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,r=e.to,o=Math.min(n.row,r.row),i=Math.max(n.row,r.row);return(0,g.rangeEach)(o,i,(function(e){t.push(e)})),t}},{key:"refreshPositions",value:function(){var e=T.get(this),t=e.target.coords,n=this.hot.view.getFirstFullyVisibleRow(),r=this.hot.view.getLastFullyVisibleRow(),o=this.hot.countRows();this.isFixedRowTop(t.row)&&n>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(n-1,-1)),this.isFixedRowBottom(t.row)&&r<o&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(r+1,1),void 0,!0);var i=this.hot.view._wt.wtTable,a=e.target.TD,s=(0,p.offset)(this.hot.rootElement),l=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row-1),u=e.target.eventPageY-s.top+i.holder.scrollTop,c=i.hider.offsetHeight,d=i.TBODY.offsetTop,h=this.backlight.getOffset().top,f=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(l+=i.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:a.offsetHeight/2+l<=u?(e.target.row=t.row+1,l+=0===t.row?a.offsetHeight-1:a.offsetHeight):e.target.row=t.row;var g=u,m=l;u+f+h>=c?g=c-f-h:u+h<d&&(g=d+Math.abs(h)),l>=c-1&&(m=c-1),this.backlight.setPosition(g),this.guideline.setPosition(m)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt,i=o.wtTable,a=o.wtViewport,s=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast(),u=T.get(this);if(!l||!s||u.pressed||0!==e.button)return u.pressed=!1,u.rowsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),d=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&d&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var h=l.from,f=l.to,g=Math.min(h.row,f.row),m=Math.max(h.row,f.row);if(t.col<0&&t.row>=g&&t.row<=m){r.row=!0,u.pressed=!0,u.target.eventPageY=e.pageY,u.target.coords=t,u.target.TD=n,u.rowsToMove=this.prepareRowsToMoving();var v=i.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,v),this.backlight.setSize(i.hider.offsetWidth-v,this.getRowsHeight(g,m)),this.backlight.setOffset(-1*(this.getRowsHeight(g,t.row-1)+e.offsetY),null),(0,p.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}else(0,p.removeClass)(this.hot.rootElement,"after-selection--rows"),u.pressed=!1,u.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=T.get(this);if(t.pressed){if(e.target===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,r){var o=this.hot.getSelectedRangeLast(),i=T.get(this);o&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=T.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--rows"),!(n<1||void 0===t)){var r=e.rowsToMove[0],o=this.hot.toPhysicalRow(r),i=this.dragRows(e.rowsToMove,t);if(e.rowsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualRow(o),s=a+n-1;this.hot.selectRows(a,s)}}}},{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:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualRowMove"}},{key:"PLUGIN_PRIORITY",get:function(){return 140}}]),n}(d.BasePlugin);t.ManualRowMove=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(628)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualRowMove--backlight")}}]),n}(c.default);t.default=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(628)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualRowMove--guideline")}}]),n}(c.default);t.default=f},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var r=n(1028);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowResize=r.ManualRowResize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(31),n(41),n(67),n(23);var d=n(38),h=n(16),f=r(n(49)),p=n(13),g=n(36),m=n(76),v=n(130);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var E="manualRowResize";t.PLUGIN_KEY=E;t.PLUGIN_PRIORITY=30;var T=new WeakMap,C=function(e){(0,l.default)(n,e);var t=y(n);function n(e){var r;(0,o.default)(this,n);var i=(r=t.call(this,e)).hot.rootDocument;return r.currentTH=null,r.currentRow=null,r.selectedRows=[],r.currentHeight=null,r.newSize=null,r.startY=null,r.startHeight=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new f.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.rowHeightsMap=void 0,T.set((0,a.default)(r),{config:void 0}),(0,h.addClass)(r.handle,"manualRowResizer"),(0,h.addClass)(r.guide,"manualRowResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[E]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.rowHeightsMap=new m.PhysicalIndexToValueMap,this.rowHeightsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,this.rowHeightsMap),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.bindEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){T.get(this).config=this.rowHeightsMap.getValues(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.rowHeightsMap.getValues())}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setManualSize",value:function(e,t){var n=this.hot.toPhysicalRow(e),r=Math.max(t,v.ViewportRowsCalculator.DEFAULT_HEIGHT);return this.rowHeightsMap.setValueAtIndex(n,r),r}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view,r=n._wt,o=r.wtTable.getCoords(this.currentTH),i=o.row;if(!(i<0)){var a,s=(0,h.outerWidth)(this.currentTH),l=this.currentTH.getBoundingClientRect(),u=i<r.getSetting("fixedRowsTop"),c=i>=n.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");u?a=r.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col):c&&(a=r.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),a||(a=r.wtOverlays.inlineStartOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.selectedRows=[];var d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&d){var f=this.hot.getSelectedRange();(0,p.arrayEach)(f,(function(e){var n=e.getTopStartCorner().row,r=e.getBottomStartCorner().row;(0,g.rangeEach)(n,r,(function(e){t.selectedRows.includes(e)||t.selectedRows.push(e)}))}))}this.selectedRows.includes(this.currentRow)||(this.selectedRows=[this.currentRow]),this.startOffset=a.top-6,this.startHeight=parseInt(l.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style[this.inlineDir]="".concat(a.start,"px"),this.handle.style.width="".concat(s,"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,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style[this.inlineDir],10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style[this.inlineDir]="".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,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){var t,n;return(0,h.closest)(e,["TH"],this.hot.rootElement)&&"TBODY"===(null===(t=e.parentNode)||void 0===t||null===(n=t.parentNode)||void 0===n?void 0:n.tagName)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"getActualRowHeight",value:function(e){var t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&this.newSize<t?t:this.newSize}},{key:"onMouseOver",value:function(e){if(!(0,h.isDetached)(e.target)&&this.checkIfRowHeader(e.target)){var t=this.getClosestTHParent(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!0);void 0!==o&&(e.newSize=o),e.setManualSize(n,e.newSize),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!0),r&&t()};this.dblclick>=2&&(this.selectedRows.length>1?((0,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedRows,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=e.pageY,this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(e.pageY-this.startY),(0,p.arrayEach)(this.selectedRows,(function(e){t.newSize=t.setManualSize(e,t.currentHeight)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!1),r&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)this.selectedRows.length>1?((0,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedRows,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootElement,r=t.rootWindow;this.eventManager.addEventListener(n,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(n,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(r,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(r,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyRowHeight",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalRow(t),o=this.rowHeightsMap.getValueAtIndex(r);this.hot.getSettings()[E]&&o&&(n=o)}return n}},{key:"onMapInit",value:function(){var e=this,t=T.get(this),n=this.hot.getSettings()[E],r=this.loadManualRowHeights();this.hot.batchExecution((function(){void 0!==r?r.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})):Array.isArray(n)?(n.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})),t.config=n):!0===n&&Array.isArray(t.config)&&t.config.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return E}},{key:"PLUGIN_PRIORITY",get:function(){return 30}}]),n}(d.BasePlugin);t.ManualRowResize=C},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var r=n(1030);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MergeCells=r.MergeCells},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(31),n(41);var h=n(38),f=r(n(59)),p=r(n(1031)),g=r(n(310)),m=r(n(1032)),v=r(n(1033)),y=r(n(1034)),E=n(13),T=n(12),C=n(74),R=n(36),w=n(629);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}n(1035),f.default.getSingleton().register("beforeMergeCells"),f.default.getSingleton().register("afterMergeCells"),f.default.getSingleton().register("beforeUnmergeCells"),f.default.getSingleton().register("afterUnmergeCells");t.PLUGIN_KEY="mergeCells";t.PLUGIN_PRIORITY=150;var O=new WeakMap,b=function(e){(0,u.default)(n,e);var t=S(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),O.set((0,s.default)(r),{lastDesiredCoords:null}),r.mergedCellsCollection=null,r.autofillCalculations=null,r.selectionCalculations=null,r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new p.default(this),this.autofillCalculations=new m.default(this),this.selectionCalculations=new v.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.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("beforeSetRangeStart",(function(){return e.onBeforeSetRangeStart.apply(e,arguments)})),this.addHook("beforeSetRangeStartOnly",(function(){return e.onBeforeSetRangeStart.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)})),this.addHook("beforeUndoStackChange",(function(e,t){if("MergeCells"===t)return!1})),this.registerShortcuts(),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),(0,l.default)((0,d.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,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(g.default.containsNegativeValues(e)?((0,C.warn)(g.default.NEGATIVE_VALUES_WARNING(e)),t=!1):g.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,C.warn)(g.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):g.default.isSingleCell(e)?((0,C.warn)(g.default.IS_SINGLE_CELL(e)),t=!1):g.default.containsZeroSpan(e)&&((0,C.warn)(g.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n=[];if((0,E.arrayEach)(e,(function(e){if(t.validateSetting(e)){var r=t.hot._createCellCoords(e.row,e.col),o=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),i=t.hot._createCellRange(r,r,o);t.mergeRange(i,!0,!0),(0,R.rangeEach)(e.row,e.row+e.rowspan-1,(function(t){(0,R.rangeEach)(e.col,e.col+e.colspan-1,(function(r){!1==(t===e.row&&r===e.col)&&n.push([t,r,null])}))}))}})),0===n.length)return;this.hot.setDataAtCell(n)}}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection(this.hot.isRtl()?"NE-SW":"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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.getTopStartCorner(),i=e.getBottomEndCorner(),a={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[],l=null;if(!this.canMergeRange(a,n))return!1;this.hot.runHooks("beforeMergeCells",e,n),(0,R.rangeEach)(0,a.rowspan-1,(function(e){(0,R.rangeEach)(0,a.colspan-1,(function(n){var r=null;s[e]||(s[e]=[]),0===e&&0===n?r=t.hot.getSourceDataAtCell(t.hot.toPhysicalRow(a.row),t.hot.toPhysicalColumn(a.col)):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=r}))})),this.hot.setCellMeta(a.row,a.col,"spanned",!0);var u=this.mergedCellsCollection.add(a);return!u||(r?l=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),l)}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCellsCollection.getWithinRange(e);r&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,E.arrayEach)(r,(function(e){t.mergedCellsCollection.remove(e.row,e.col),(0,R.rangeEach)(0,e.rowspan-1,(function(n){(0,R.rangeEach)(0,e.colspan-1,(function(r){t.hot.removeCellMeta(e.row+n,e.col+r,"hidden")}))})),t.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,n),this.hot.render())}},{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,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.mergeRange(this.hot._createCellRange(o,o,i))}},{key:"unmerge",value:function(e,t,n,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.unmergeRange(this.hot._createCellRange(o,o,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"registerShortcuts",value:function(){var e=this;this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:function(){e.toggleMerge(e.hot.getSelectedRangeLast()),e.hot.render()},runOnlyIf:function(e){return!e.altKey},group:"mergeCells"})}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup("mergeCells")}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),r=0;r<t.length;r+=1)if(n.from.row===t[r].row&&n.from.col===t[r].col&&n.to.row===t[r].row+t[r].rowspan-1&&n.to.col===t[r].col+t[r].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=O.get(this),r=this.hot.getSelectedRangeLast(),o={row:e.row,col:e.col},i=this.hot._createCellCoords(r.highlight.row,r.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),a){var s=this.hot._createCellCoords(a.row,a.col),l=this.hot._createCellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);this.hot._createCellRange(s,s,l).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),o.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-i.row:o.row,o.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-i.col:o.col,e.row>0?o.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(o.row=i.row-a.row+e.row),e.col>0?o.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(o.col=i.col-a.col+e.col)}t=this.hot._createCellCoords(r.highlight.row+o.row,r.highlight.col+o.col);var u=this.mergedCellsCollection.get(t.row,t.col);if(u){var c=this.mergedCellsCollection.getFirstRenderableCoords(u.row,u.col);n.lastDesiredCoords=t,o={row:c.row-i.row,col:c.col-i.col}}0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),r=(0,T.clone)(e),o=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=(0,T.clone)(r),a=this.mergedCellsCollection.getWithinRange(o,!0);do{i=(0,T.clone)(r),this.selectionCalculations.getUpdatedSelectionRange(n,r),(0,E.arrayEach)(a,(function(e){t.selectionCalculations.snapDelta(r,n,e)}))}while(r.row!==i.row||r.col!==i.col);e.row=r.row,e.col=r.col}},{key:"onModifyGetCellCoords",value:function(e,t){if(!(e<0||t<0)){var n=this.mergedCellsCollection.get(e,t);if(n){var r=n.row,o=n.col,i=n.colspan;return[r,o,r+n.rowspan-1,o+i-1]}}}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,y.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var r=this.mergedCellsCollection.get(t,n),i=(0,T.isObject)(r)?(0,T.clone)(r):void 0;if((0,T.isObject)(i)){var a=this.hot,s=a.rowIndexMapper,l=a.columnIndexMapper,u=i.row,c=i.col,d=i.colspan,h=i.rowspan,f=this.translateMergedCellToRenderable(u,h,c,d),p=(0,o.default)(f,2),g=p[0],m=p[1],v=g-s.getRenderableFromVisualIndex(t)+1,y=m-l.getRenderableFromVisualIndex(n)+1;i.row=s.getNearestNotHiddenIndex(i.row,1),i.col=l.getNearestNotHiddenIndex(i.col,1),i.rowspan=Math.min(i.rowspan,v),i.colspan=Math.min(i.colspan,y)}(0,w.applySpanProperties)(e,i,t,n)}},{key:"onBeforeSetRangeStart",value:function(e){if(this.mergedCellsCollection.isFirstRenderableMergedCell(e.row,e.col)){var t=this.mergedCellsCollection.get(e.row,e.col),n=[t.row,t.col];e.row=n[0],e.col=n[1]}}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=this.hot._createCellCoords(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 r=0;r<this.mergedCellsCollection.mergedCells.length;r+=1){var o=this.mergedCellsCollection.mergedCells[r].getRange();t.expandByRange(o)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}},{key:"modifyViewportRowStart",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.startRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.row,1));if(a<e.startRow)return e.startRow=a,void this.modifyViewportRowStart(e,t)}}}},{key:"modifyViewportRowEnd",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.endRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=i.row+i.rowspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(a,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}},{key:"modifyViewportColumnStart",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.col,1));if(a<e.startColumn)return e.startColumn=a,void this.modifyViewportColumnStart(e,t)}}}},{key:"modifyViewportColumnEnd",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.endColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=i.col+i.colspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(a,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}},{key:"translateMergedCellToRenderable",value:function(e,t,n,r){var o,i,a=this.hot,s=a.rowIndexMapper,l=a.columnIndexMapper;return o=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),i=0===r?l.getNearestNotHiddenIndex(n,1):l.getNearestNotHiddenIndex(n+r-1,-1),[e>=0?s.getRenderableFromVisualIndex(o):e,n>=0?l.getRenderableFromVisualIndex(i):n]}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),r=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,r,n))return r=t;var o=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return o?r=this.autofillCalculations.snapDragArea(t,r,n,o):r}},{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(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getWithinRange(n);(0,E.arrayEach)(r,(function(t){n.getBottomEndCorner().row===t.getLastRow()&&n.getBottomEndCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)}))}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var r=this.mergedCellsCollection.get(e.row,e.col);if(r){var o=t>0,i=t<0,a=n<0,s=n>0,l=r.row+r.rowspan-1==this.hot.countRows()-1,u=0===r.row,c=r.col+r.colspan-1==this.hot.countCols()-1,d=0===r.col;(o&&l||i&&u||s&&c||a&&d)&&(e.row=r.row,e.col=r.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}],[{key:"PLUGIN_KEY",get:function(){return"mergeCells"}},{key:"PLUGIN_PRIORITY",get:function(){return 150}}]),n}(h.BasePlugin);t.MergeCells=b},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(64));n(22),n(53);var i,a=r(n(32)),s=r(n(2)),l=r(n(3)),u=r(n(310)),c=n(36),d=n(74),h=n(13),f=n(629),p=n(66),g=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}return(0,l.default)(e,[{key:"get",value:function(e,t){var n=this.mergedCells,r=!1;return(0,h.arrayEach)(n,(function(n){return!(n.row<=e&&n.row+n.rowspan-1>=e&&n.col<=t&&n.col+n.colspan-1>=t)||(r=n,!1)})),r}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return(0,h.arrayEach)(t,(function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t)})),n}},{key:"getWithinRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCells,o=[],i=e;if(!i.includesRange){var a=this.hot._createCellCoords(i.from.row,i.from.col),s=this.hot._createCellCoords(i.to.row,i.to.col);i=this.hot._createCellRange(a,a,s)}return(0,h.arrayEach)(r,(function(e){var r=t.hot._createCellCoords(e.row,e.col),a=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),s=t.hot._createCellRange(r,r,a);n?i.overlaps(s)&&o.push(e):i.includesRange(s)&&o.push(e)})),!!o.length&&o}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,o=t.col,i=t.rowspan,a=t.colspan,s=new u.default(r,o,i,a,this.hot._createCellCoords,this.hot._createCellRange),l=this.get(r,o),c=this.isOverlapping(s);return l||c?((0,d.warn)(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,r=this.get(e,t),o=r?this.mergedCells.indexOf(r):-1;return!(!r||-1===o)&&(n.splice(o,1),r)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];(0,h.arrayEach)(t,(function(t){var r=e.hot.getCell(t.row,t.col);r&&n.push([r,e.get(t.row,t.col),t.row,t.col])})),this.mergedCells.length=0,(0,h.arrayEach)(n,(function(t,o){(0,c.rangeEach)(0,t.rowspan-1,(function(n){(0,c.rangeEach)(0,t.colspan-1,(function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}}))})),n[o][1]=null})),(0,h.arrayEach)(n,(function(e){f.applySpanProperties.apply(void 0,(0,a.default)(e))})),(0,h.arrayEach)(r,(function(e){f.applySpanProperties.apply(void 0,(0,a.default)(e))}))}},{key:"isOverlapping",value:function(e){var t=this,n=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(e.row,e.col),this.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),r=!1;return(0,h.arrayEach)(this.mergedCells,(function(e){return!t.hot._createCellRange(t.hot._createCellCoords(0,0),t.hot._createCellCoords(e.row,e.col),t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(n)||(r=!0,!1)})),r}},{key:"isFirstRenderableMergedCell",value:function(e,t){var n=this.get(e,t);return n&&this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1)===t}},{key:"getFirstRenderableCoords",value:function(e,t){var n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);var r=this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1),o=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1);return this.hot._createCellCoords(r,o)}},{key:"shiftCollections",value:function(e,t,n){var r=this,o=[0,0];switch(e){case"right":o[0]+=n;break;case"left":o[0]-=n;break;case"down":o[1]+=n;break;case"up":o[1]-=n}(0,h.arrayEach)(this.mergedCells,(function(e){e.shift(o,t)})),(0,c.rangeEachReverse)(this.mergedCells.length-1,0,(function(e){var t=r.mergedCells[e];t&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t),1)}))}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,p.toSingleLine)(i||(i=(0,o.default)(["The merged cell declared at [",", ","], overlaps \n with the other declared merged cell. The overlapping merged cell was not added to the table, please \n fix your setup."],["The merged cell declared at [",", ","], overlaps\\x20\n with the other declared merged cell. The overlapping merged cell was not added to the table, please\\x20\n fix your setup."])),e.row,e.col)}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(39),n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(13),u=function(){function e(t){(0,i.default)(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return(0,a.default)(e,[{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,r){var i=t.slice(0),a=this.getAutofillSize(e,t,n),s=(0,o.default)(e,4),l=s[0],u=s[1],c=s[2],d=s[3],h=["up","down"].indexOf(n)>-1?c-l+1:d-u+1,f=a-Math.floor(a/h)*h,p=this.getFarthestCollection(e,t,n,r);if(p)if("down"===n){var g=p.row+p.rowspan-l-f;i[2]+g>=this.plugin.hot.countRows()?i[2]-=f:i[2]+=f?g:0}else if("right"===n){var m=p.col+p.colspan-u-f;i[3]+m>=this.plugin.hot.countCols()?i[3]-=f:i[3]+=f?m:0}else if("up"===n){var v=c-f-p.row+1;i[0]+v<0?i[0]+=f:i[0]-=f?v:0}else if("left"===n){var y=d-f-p.col+1;i[1]+y<0?i[1]+=f:i[1]-=f?y:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:a,dragArea:i,cycleLength:h}),i}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,s.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],l=r[3],u=(0,o.default)(t,4),c=u[0],d=u[1],h=u[2],f=u[3];switch(n){case"up":return i-c;case"down":return h-s;case"left":return a-d;case"right":return f-l;default:return null}}},{key:"getDragArea",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],l=r[3],u=(0,o.default)(t,4),c=u[0],d=u[1],h=u[2],f=u[3];switch(n){case"up":return[c,d,i-1,l];case"down":return[s+1,a,h,l];case"left":return[c,d,s,a-1];case"right":return[i,l+1,h,f];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,r){var i=(0,o.default)(e,4),a=i[0],s=i[1],u=i[2],c=i[3],d=["up","down"].indexOf(n)>-1,h=d?u:c,f=d?a:s,p=this.getAutofillSize(e,t,n),g=d?u-a+1:c-s+1,m=p-Math.floor(p/g)*g,v=null,y=null,E=null;switch(n){case"up":v="includesVertically",E=h-m+1;break;case"left":v="includesHorizontally",E=h-m+1;break;case"down":v="includesVertically",E=f+m-1;break;case"right":v="includesHorizontally",E=f+m-1}return(0,l.arrayEach)(r,(function(e){e[v](E)&&e.isFarther(y,n)&&(y=e)})),y}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=function(e,n){switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}},i=0,a=null,s=1;do{for(var l=0;l<n.length;l+=1){if(o(a=n[l],i=s*this.currentFillData.cycleLength))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,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-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}l===n.length-1&&(s+=1)}}while(o(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t=this,n={min:null,max:null},r={min:null,max:null};return(0,l.arrayEach)(e,(function(e){var o=e[0],i=t.plugin.hot.propToCol(e[1]);(null===n.min||o<n.min)&&(n.min=o),(null===n.max||o>n.max)&&(n.max=o),(null===r.min||i<r.min)&&(r.min=i),(null===r.max||i>r.max)&&(r.max=i)})),{from:{row:n.min,column:r.min},to:{row:n.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var r=this.getDragArea(e,t,n),i=(0,o.default)(r,4),a=i[0],s=i[1],l=i[2],u=i[3],c=this.plugin.hot._createCellCoords(a,s),d=this.plugin.hot._createCellCoords(l,u),h=this.plugin.hot._createCellRange(c,c,d);return!!this.mergedCellsCollection.getWithinRange(h,!0)}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(31),n(41);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.plugin=t,this.hot=t.hot,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return(0,i.default)(e,[{key:"snapDelta",value:function(e,t,n){var r=t.to,o=r.row+e.row,i=r.col+e.col;e.row?this.jumpOverMergedCell(e,n,o):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var r=e.row||e.col,o=null,i=null,a=null;e.row?(o=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(o=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==r&&(r>0?o&&n!==i&&(r+=a-n+1):o&&n!==a&&(r-=n-i+1),e.row?e.row=r:e.col&&(e.col=r))}},{key:"getUpdatedSelectionRange",value:function(e,t){return this.hot._createCellRange(e.highlight,e.from,this.hot._createCellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,r){var o=Math.min(n[0],n[2]),i=Math.min(n[1],n[3]),a=Math.max(n[0],n[2]),s=Math.max(n[1],n[3]);if(void 0!==r&&this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t)){var l=this.plugin.mergedCellsCollection.get(e,t);if(l){var u=l.getLastRow(),c=l.getLastColumn();return o<=l.row&&i<=l.col&&a>=u&&s>=c?"".concat(this.fullySelectedMergedCellClassName,"-").concat(r):this.plugin.selectionCalculations.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?"".concat(this.fullySelectedMergedCellClassName,"-multiple"):void 0}}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;r<e.rowspan;r+=1)for(var o=0;o<e.colspan;o+=1)n.push(this.hot._createCellCoords(e.row+r,e.col+o));for(var i=0;i<n.length;i+=1){for(var a=[],s=0;s<t.length;s+=1)a[s]=t[s].includes(n[i]);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}}]),e}();t.default=a},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name:function(){var t=this.getSelectedLast();if(t){var n=e.mergedCellsCollection.get(t[0],t[1]);if(n.row===t[0]&&n.col===t[1]&&n.row+n.rowspan-1===t[2]&&n.col+n.colspan-1===t[3])return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){e.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 i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),a=r(n(310));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0;var r=n(1037);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultiColumnSorting=r.MultiColumnSorting},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0,n(20),n(89);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(610),d=n(117),h=n(303),f=n(16),p=n(1038),g=n(1039),m=n(1040);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(1041);var y="multiColumnSorting";t.PLUGIN_KEY=y;t.PLUGIN_PRIORITY=170;(0,d.registerRootComparator)(y,p.rootComparator);var E=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).pluginKey=y,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,a.default)((0,u.default)(n.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,g.warnAboutPluginsConflict)(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){(0,a.default)((0,u.default)(n.prototype),"sort",this).call(this,e)}},{key:"clearSort",value:function(){(0,a.default)((0,u.default)(n.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return(0,a.default)((0,u.default)(n.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(e){return(0,a.default)((0,u.default)(n.prototype),"getSortConfig",this).call(this,e)}},{key:"setSortConfig",value:function(e){(0,a.default)((0,u.default)(n.prototype),"setSortConfig",this).call(this,e)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}},{key:"updateHeaderClasses",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(t=(0,a.default)((0,u.default)(n.prototype),"updateHeaderClasses",this)).call.apply(t,[this,e].concat(o)),(0,f.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled&&(0,f.addClass)(e,m.getClassesToAdd.apply(void 0,o))}},{key:"onUpdateSettings",value:function(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,g.warnAboutPluginsConflict)(),(0,a.default)((0,u.default)(n.prototype),"onUpdateSettings",this).call(this,e)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,h.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}],[{key:"PLUGIN_KEY",get:function(){return y}},{key:"PLUGIN_PRIORITY",get:function(){return 170}}]),n}(c.ColumnSorting);t.MultiColumnSorting=E},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a=(0,o.default)(n).slice(1),s=(0,o.default)(r).slice(1);return function n(r){var o=e[r],l=t[r],u=a[r],c=s[r],d=l.multiColumnSorting,h=(d.compareFunctionFactory?d.compareFunctionFactory:(0,i.getCompareFunctionFactory)(l.type))(o,l,d)(u,c);if(h===i.DO_NOT_SWAP){var f=r+1;if(void 0!==t[f])return n(f)}return h}(0)}},n(39);var o=r(n(611)),i=n(117)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,a.warn)((0,s.toSingleLine)(o||(o=(0,i.default)(["Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously. \n Only `multiColumnSorting` will work."],["Plugins \\`columnSorting\\` and \\`multiColumnSorting\\` should not be enabled simultaneously. \n Only \\`multiColumnSorting\\` will work."]))))};var o,i=r(n(64)),a=n(74),s=n(66)},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n){var r=[];if(!1===n)return r;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push("".concat("sort","-").concat(e.getIndexOfColumnInSortQueue(t)+1));return r},t.getClassesToRemove=function(e){var t=e.className.split(" "),n=new RegExp("^".concat("sort","-[0-9]{1,2}$"));return t.filter((function(e){return n.test(e)}))},n(148),n(51),n(98),n(35),n(1)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0;var r=n(1043);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultipleSelectionHandles=r.MultipleSelectionHandles},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0,n(53),n(22),n(39);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(94),h=n(38),f=r(n(49));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="multipleSelectionHandles";t.PLUGIN_PRIORITY=160;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).dragged=[],r.eventManager=null,r.lastSetCell=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,d.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new f.default(this)),this.registerListeners(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this,t=this,n=this.hot.rootElement;function r(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);if(-1===n)return!1;0===n?t.dragged=t.dragged.slice(0,1):1===n&&(t.dragged=t.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",(function(e){var n;return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("top"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("bottom"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchend",(function(e){return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(r.call(t,"top"),t.touchStartRange=void 0,e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(r.call(t,"bottom"),t.touchStartRange=void 0,e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchmove",(function(n){var r,o,i,a,s,l,u=e.hot.rootDocument;if(0!==t.dragged.length){var c=u.elementFromPoint(n.touches[0].clientX,n.touches[0].clientY);c&&c!==t.lastSetCell&&("TD"!==c.nodeName&&"TH"!==c.nodeName||(-1===(r=t.hot.getCoords(c)).col&&(r.col=0),i=(o=t.hot.getSelectedRangeLast()).getWidth(),a=o.getHeight(),s=o.getDirection(),1===i&&1===a&&t.hot.selection.setRangeEnd(r),null!==(l=t.getCurrentRangeCoords(o,r,t.touchStartRange.direction,s,t.dragged[0])).start&&t.hot.selection.setRangeStart(l.start),t.hot.selection.setRangeEnd(l.end),t.lastSetCell=c),n.preventDefault())}}))}},{key:"getCurrentRangeCoords",value:function(e,t,n,r,o){var i=e.getTopStartCorner(),a=e.getBottomEndCorner(),s=e.getBottomStartCorner(),l=e.getTopEndCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(r){case"NE-SW":case"NW-SE":u="top"===o?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SE-NW":"bottom"===o&&(u={start:this.hot._createCellCoords(a.row,t.col),end:this.hot._createCellCoords(t.row,i.col)})}break;case"NW-SE":switch(r){case"NE-SW":"top"===o?u={start:t,end:s}:u.end=t;break;case"NW-SE":"top"===o?u={start:t,end:a}:u.end=t;break;case"SE-NW":"top"===o?u={start:t,end:i}:u.end=t;break;case"SW-NE":"top"===o?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(r){case"NW-SE":u="bottom"===o?{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,a.col)};break;case"SW-NE":u="top"===o?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,a.col)}:{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(i.row,t.col)};break;case"SE-NW":"bottom"===o?u={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(i.row,t.col)}:"top"===o&&(u={start:s,end:t})}break;case"SE-NW":switch(r){case"NW-SE":case"NE-SW":case"SW-NE":"top"===o&&(u.end=t);break;case"SE-NW":"top"===o?u.end=t:u={start:t,end:i}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}],[{key:"PLUGIN_KEY",get:function(){return"multipleSelectionHandles"}},{key:"PLUGIN_PRIORITY",get:function(){return 160}}]),n}(h.BasePlugin);t.MultipleSelectionHandles=g},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var r=n(1045);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedHeaders=r.NestedHeaders},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var o=r(n(64));n(20),n(1),n(23),n(4),n(5),n(7),n(6);var i,a,s=r(n(2)),l=r(n(3)),u=r(n(33)),c=r(n(19)),d=r(n(10)),h=r(n(11)),f=r(n(8)),p=r(n(26)),g=r(n(79)),m=r(n(78)),v=n(16),y=n(36),E=n(75),T=n(66),C=n(74),R=n(295),w=n(38),S=r(n(1046)),O=r(n(1055));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function A(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1056);t.PLUGIN_KEY="nestedHeaders";t.PLUGIN_PRIORITY=280;var N=new WeakMap,M=new WeakMap,I=function(e){(0,d.default)(n,e);var t=b(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),A((0,u.default)(e),N,{writable:!0,value:new S.default}),A((0,u.default)(e),M,{writable:!0,value:null}),(0,p.default)((0,u.default)(e),"ghostTable",new O.default(e.hot,(function(t,n){return e.getHeaderSettings(t,n)}))),(0,p.default)((0,u.default)(e),"detectedOverlappedHeaders",!1),e}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().nestedHeaders;Array.isArray(t)&&Array.isArray(t[0])||(0,C.warn)((0,T.toSingleLine)(i||(i=(0,o.default)(["Your Nested Headers plugin configuration is invalid. The settings has to be \n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"],["Your Nested Headers plugin configuration is invalid. The settings has to be\\x20\n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"])))),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(){return e.onAfterOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterGetColumnHeaderRenderers",(function(t){return e.onAfterGetColumnHeaderRenderers(t)})),this.addHook("modifyColWidth",(function(){return e.onModifyColWidth.apply(e,arguments)})),this.addHook("modifyColumnHeaderValue",(function(){return e.onModifyColumnHeaderValue.apply(e,arguments)})),this.addHook("beforeHighlightingColumnHeader",(function(){return e.onBeforeHighlightingColumnHeader.apply(e,arguments)})),this.addHook("beforeCopy",(function(){return e.onBeforeCopy.apply(e,arguments)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin()}}},{key:"updatePlugin",value:function(){var e=this;if(this.hot.view){var t=this.hot.getSettings().nestedHeaders;(0,m.default)(this,N).setColumnsLimit(this.hot.countCols()),Array.isArray(t)&&(this.detectedOverlappedHeaders=(0,m.default)(this,N).setState(t)),this.detectedOverlappedHeaders&&(0,C.warn)((0,T.toSingleLine)(a||(a=(0,o.default)(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration \n is currently not supported."],["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\\x20\n is currently not supported."])))),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((function(t,n){var r=!0===t?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(r,n)})),!(0,m.default)(this,M)&&this.enabled&&(0,g.default)(this,M,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((function(t){t.forEach((function(t){var n=t.op,r=t.index,o=t.newValue;if("replace"===n){var i=!0===o?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(i,r)}})),e.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.clearColspans(),(0,m.default)(this,N).clear(),(0,m.default)(this,M).unsubscribe(),(0,g.default)(this,M,null),this.ghostTable.clear(),(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getStateManager",value:function(){return(0,m.default)(this,N)}},{key:"getLayersCount",value:function(){return(0,m.default)(this,N).getLayersCount()}},{key:"getHeaderSettings",value:function(e,t){return(0,m.default)(this,N).getHeaderSettings(e,t)}},{key:"clearColspans",value:function(){if(this.hot.view)for(var e=this.hot.view._wt,t=e.getSetting("columnHeaders").length,n=e.wtTable.THEAD,r=e.wtOverlays.topOverlay.clone.wtTable.THEAD,o=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,i=0;i<t;i++){var a=n.childNodes[i];if(!a)break;for(var s=r.childNodes[i],l=o?o.childNodes[i]:null,u=0,c=a.childNodes.length;u<c;u++)a.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(a.childNodes[u],"hiddenHeader"),s&&s.childNodes[u]&&(s.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(s.childNodes[u],"hiddenHeader")),o&&l&&l.childNodes[u]&&(l.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(l.childNodes[u],"hiddenHeader"))}}},{key:"headerRendererFactory",value:function(e){var t=this,n=this.hot.view._wt.getSetting("fixedColumnsStart");return function(r,o){var i,a=t.hot,s=a.columnIndexMapper,l=a.view,u=s.getVisualFromRenderableIndex(r);null===u&&(u=r),o.removeAttribute("colspan"),(0,v.removeClass)(o,"hiddenHeader");var c=null!==(i=(0,m.default)(t,N).getHeaderSettings(e,u))&&void 0!==i?i:{label:""},d=c.colspan,h=c.isHidden;if(c.isPlaceholder||h)(0,v.addClass)(o,"hiddenHeader");else if(d>1){var f,p,g=l._wt.wtOverlays,y=null===(f=g.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(o),E=null===(p=g.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(o),T=y||E?Math.min(d,n-r):d;T>1&&o.setAttribute("colspan",T)}t.hot.view.appendColHeader(u,o,(function(){return t.getColumnHeaderValue.apply(t,arguments)}),e)}}},{key:"getColumnHeaderValue",value:function(e,t){var n,r=null!==(n=(0,m.default)(this,N).getHeaderSettings(t,e))&&void 0!==n?n:{},o=r.isHidden;return r.isPlaceholder||o?"":this.hot.getColHeader(e,t)}},{key:"onBeforeHighlightingColumnHeader",value:function(e,t,n){var r=(0,m.default)(this,N).getHeaderTreeNodeData(t,e);if(!r)return e;var o=n.classNames,i=n.columnCursor,a=n.selectionType,s=n.selectionWidth,l=(0,m.default)(this,N).getHeaderSettings(t,e),u=l.isRoot,c=l.colspan;if(a===R.HEADER_TYPE){if(!u)return r.columnIndex}else a===R.ACTIVE_HEADER_TYPE&&(c>s-i||!u)&&(o.length=0);return e}},{key:"onBeforeCopy",value:function(e,t,n){if(0!==n.columnHeadersCount)for(var r=0;r<t.length;r++){var o=t[r],i=o.startRow,a=o.startCol,s=o.endRow,l=o.endCol,u=s-i+1;if(i>=0||1===a-l+1)break;for(var c=a;c<=l;c++)for(var d=i;d<=s;d++){var h,f=u+d,p=c-a;if(0!==p)!1===(null===(h=(0,m.default)(this,N).getHeaderTreeNodeData(d,c))||void 0===h?void 0:h.isRoot)&&(e[f][p]="")}}}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){this._getHeaderTreeNodeDataByCoords(t)&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){var n=this._getHeaderTreeNodeDataByCoords(t);if(n){var r=this.hot.selection,o=r.isSelected()?r.getSelectedRange().current():null,i=[],a=n.columnIndex,s=n.origColspan,l=!r.inInSelection(t);e.shiftKey&&o?t.col<o.from.col?i.push(o.getTopEndCorner().col,a,t.row):t.col>o.from.col?i.push(o.getTopStartCorner().col,a+s-1,t.row):i.push(a,a+s-1,t.row):((0,E.isLeftClick)(e)||(0,E.isRightClick)(e)&&l)&&i.push(a,a+s-1,t.row),r.selectColumns.apply(r,i)}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o;if(this.hot.view.isMouseDown()){var i=this._getHeaderTreeNodeDataByCoords(t);if(i){var a=i.columnIndex,s=i.origColspan,l=this.hot.getSelectedRangeLast(),u=l.getTopStartCorner(),c=l.getBottomEndCorner(),d=l.from;r.column=!0,r.cell=!0;var h=[];t.col<d.col?h.push(c.col,a):t.col>d.col?h.push(u.col,a+s-1):h.push(a,a+s-1),(o=this.hot).selectColumns.apply(o,h)}}}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){e.length=0;for(var t=0;t<(0,m.default)(this,N).getLayersCount();t++)e.push(this.headerRendererFactory(t))}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){for(var t=(0,m.default)(this,N).getLayersCount(),n=e.startColumn,r=!!t,o=0;o<t;o++){var i=(0,m.default)(this,N).findLeftMostColumnIndex(o,e.startColumn),a=this.hot.columnIndexMapper.getRenderableFromVisualIndex(i);if(i>=0&&(r=!1),(0,y.isNumeric)(a)&&a<e.startColumn){n=a;break}}e.startColumn=r?(0,m.default)(this,N).getHeaderTreeNodeData(0,n).columnIndex:n}},{key:"onModifyColWidth",value:function(e,t){var n=this.ghostTable.getWidth(t);return e>n?e:n}},{key:"onModifyColumnHeaderValue",value:function(e,t,n){var r;return(null!==(r=(0,m.default)(this,N).getHeaderTreeNodeData(n,t))&&void 0!==r?r:{label:""}).label}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,g.default)(this,N,null),null!==(0,m.default)(this,M)&&((0,m.default)(this,M).unsubscribe(),(0,g.default)(this,M,null)),(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"_getHeaderTreeNodeDataByCoords",value:function(e){if(!(e.row>=0||e.col<0))return(0,m.default)(this,N).getHeaderTreeNodeData(e.row,e.col)}}],[{key:"PLUGIN_KEY",get:function(){return"nestedHeaders"}},{key:"PLUGIN_PRIORITY",get:function(){return 280}}]),n}(w.BasePlugin);t.NestedHeaders=I},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(65),n(4),n(1),n(5),n(7),n(6);var o=r(n(26)),i=r(n(109)),a=r(n(2)),s=r(n(3)),l=r(n(79)),u=r(n(78)),c=n(13),d=r(n(1047)),h=r(n(1049)),f=n(1051),p=n(1054),g=["row"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var E=new WeakMap,T=new WeakMap,C=new WeakMap,R=function(){function e(){(0,a.default)(this,e),y(this,E,{writable:!0,value:new d.default}),y(this,T,{writable:!0,value:new h.default((0,u.default)(this,E))}),y(this,C,{writable:!0,value:[[]]})}return(0,s.default)(e,[{key:"setState",value:function(e){(0,u.default)(this,E).setData(e);var t=!1;try{(0,u.default)(this,T).buildTree()}catch(e){(0,u.default)(this,T).clear(),(0,u.default)(this,E).clear(),t=!0}return(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots())),t}},{key:"setColumnsLimit",value:function(e){(0,u.default)(this,E).setColumnsLimit(e)}},{key:"mergeStateWith",value:function(e){var t=this,n=(0,c.arrayMap)(e,(function(e){var n=e.row,r=(0,i.default)(e,g);return v({row:n<0?t.rowCoordsToLevel(n):n},r)}));(0,u.default)(this,E).mergeWith(n),(0,u.default)(this,T).buildTree(),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))}},{key:"mapState",value:function(e){(0,u.default)(this,E).map(e),(0,u.default)(this,T).buildTree(),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))}},{key:"mapNodes",value:function(e){return(0,c.arrayReduce)((0,u.default)(this,T).getRoots(),(function(t,n){return n.walkDown((function(n){var r=e(n.data);void 0!==r&&t.push(r)})),t}),[])}},{key:"triggerNodeModification",value:function(e,t,n){t<0&&(t=this.rowCoordsToLevel(t));var r,o=(0,u.default)(this,T).getNode(t,n);return o&&(r=(0,f.triggerNodeModification)(e,o,n),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))),r}},{key:"triggerColumnModification",value:function(e,t){return this.triggerNodeModification(e,-1,t)}},{key:"rowCoordsToLevel",value:function(e){if(e>=0)return null;var t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}},{key:"levelToRowCoords",value:function(e){if(e<0)return null;var t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}},{key:"getHeaderSettings",value:function(e,t){var n,r;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(n=null===(r=(0,u.default)(this,C)[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}},{key:"getHeaderTreeNodeData",value:function(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;var n=(0,u.default)(this,T).getNode(e,t);return n?v({},n.data):null}},{key:"findLeftMostColumnIndex",value:function(e,t){var n;if((null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0}).isRoot)return t;for(var r=t-1;r>=0;){var o;if((null!==(o=this.getHeaderSettings(e,r))&&void 0!==o?o:{isRoot:!0}).isRoot)break;r-=1}return r}},{key:"getLayersCount",value:function(){return(0,u.default)(this,E).getLayersCount()}},{key:"getColumnsCount",value:function(){return(0,u.default)(this,E).getColumnsCount()}},{key:"clear",value:function(){(0,l.default)(this,C,[]),(0,u.default)(this,E).clear(),(0,u.default)(this,T).clear()}}]),e}();t.default=R},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=t.HEADER_CONFIGURABLE_PROPS=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(26)),i=r(n(109)),a=r(n(2)),s=r(n(3)),l=r(n(78)),u=r(n(79)),c=n(12),d=n(13),h=n(1048),f=["row","col"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=["label","collapsible"];t.HEADER_CONFIGURABLE_PROPS=m;var v=new WeakMap,y=new WeakMap,E=new WeakMap,T=function(){function e(){(0,a.default)(this,e),g(this,v,{writable:!0,value:[]}),g(this,y,{writable:!0,value:0}),g(this,E,{writable:!0,value:1/0})}return(0,s.default)(e,[{key:"setColumnsLimit",value:function(e){(0,u.default)(this,E,e)}},{key:"setData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,u.default)(this,v,(0,h.normalizeSettings)(e,(0,l.default)(this,E))),(0,u.default)(this,y,(0,l.default)(this,v).length)}},{key:"getData",value:function(){return(0,l.default)(this,v)}},{key:"mergeWith",value:function(e){var t=this;(0,d.arrayEach)(e,(function(e){var n=e.row,r=e.col,o=(0,i.default)(e,f),a=t.getHeaderSettings(n,r);null!==a&&(0,c.extend)(a,o,m)}))}},{key:"map",value:function(e){(0,d.arrayEach)((0,l.default)(this,v),(function(t){(0,d.arrayEach)(t,(function(t){var n=e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t));(0,c.isObject)(n)&&(0,c.extend)(t,n,m)}))}))}},{key:"getHeaderSettings",value:function(e,t){var n;if(e>=(0,l.default)(this,y)||e<0)return null;var r=(0,l.default)(this,v)[e];return t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}},{key:"getHeadersSettings",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=[];if(e>=(0,l.default)(this,y)||e<0)return r;for(var o=(0,l.default)(this,v)[e],i=0,a=t;a<o.length;a++){var s=o[a];if(s.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=s.colspan,r.push(s),s.colspan>1&&(a+=s.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}},{key:"getLayersCount",value:function(){return(0,l.default)(this,y)}},{key:"getColumnsCount",value:function(){return(0,l.default)(this,y)>0?(0,l.default)(this,v)[0].length:0}},{key:"clear",value:function(){(0,u.default)(this,v,[]),(0,u.default)(this,y,0)}}]),e}();t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.normalizeSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=[];if(0===t)return n;(0,i.arrayEach)(e,(function(e){var r=[],o=0;n.push(r),(0,i.arrayEach)(e,(function(e){var n=(0,l.createDefaultHeaderSettings)();if((0,a.isObject)(e)){var i=e.label,u=e.colspan;n.label=(0,s.stringify)(i),"number"==typeof u&&u>1&&(n.colspan=u,n.origColspan=u)}else n.label=(0,s.stringify)(e);var c=!1;if((o+=n.origColspan)>=t&&(n.colspan=n.origColspan-(o-t),n.origColspan=n.colspan,c=!0),r.push(n),n.colspan>1)for(var d=0;d<n.colspan-1;d++)r.push((0,l.createPlaceholderHeaderSettings)());return!c}))}));var r=Math.max.apply(Math,(0,o.default)((0,i.arrayMap)(n,(function(e){return e.length}))));return(0,i.arrayEach)(n,(function(e){if(e.length<r){var t=(0,i.arrayMap)(new Array(r-e.length),(function(){return(0,l.createDefaultHeaderSettings)()}));e.splice.apply(e,[e.length,0].concat((0,o.default)(t)))}})),n},n(53),n(20);var o=r(n(32)),i=n(13),a=n(12),s=n(24),l=n(630)},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(48),n(7);var o=r(n(26)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(78)),u=r(n(79)),c=n(13),d=r(n(1050));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var g=new WeakMap,m=new WeakMap,v=new WeakMap,y=function(){function e(t){(0,a.default)(this,e),p(this,g,{writable:!0,value:new Map}),p(this,m,{writable:!0,value:new Map}),p(this,v,{writable:!0,value:null}),(0,u.default)(this,v,t)}return(0,s.default)(e,[{key:"getRoots",value:function(){return Array.from((0,l.default)(this,g).values())}},{key:"getRootByColumn",value:function(e){var t;return(0,l.default)(this,m).has(e)&&(t=(0,l.default)(this,g).get((0,l.default)(this,m).get(e))),t}},{key:"getNode",value:function(e,t){var n=this.getRootByColumn(t);if(n){var r,o=t-(0,l.default)(this,m).get(t),i=0;return n.walkDown((function(n){var a=n.data,s=a.origColspan,l=a.headerLevel;if(e===l){if(o>=i&&o<=i+s-1)return(r=n).data.isRoot=t===r.data.columnIndex,!1;i+=s}})),r}}},{key:"rebuildTreeIndex",value:function(){var e=this,t=0;(0,l.default)(this,m).clear(),(0,c.arrayEach)((0,l.default)(this,g),(function(n){for(var r=(0,i.default)(n,2)[1].data.colspan,o=t;o<t+r;o++)(0,l.default)(e,m).set(o,t);t+=r}))}},{key:"buildTree",value:function(){this.clear();for(var e=(0,l.default)(this,v).getColumnsCount(),t=0;t<e;){var n=(0,l.default)(this,v).getHeaderSettings(0,t),r=new d.default;(0,l.default)(this,g).set(t,r),this.buildLeaves(r,t,0,n.origColspan),t+=n.origColspan}this.rebuildTreeIndex()}},{key:"buildLeaves",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=(0,l.default)(this,v).getHeadersSettings(n,t,o);n+=1,(0,c.arrayEach)(i,(function(o){var i,a=f(f({},o),{},{headerLevel:n-1,columnIndex:t});1===n?(e.data=a,i=e):(i=new d.default(a),e.addChild(i)),n<(0,l.default)(r,v).getLayersCount()&&r.buildLeaves(i,t,n,o.origColspan),t+=o.origColspan}))}},{key:"clear",value:function(){(0,l.default)(this,g).clear(),(0,l.default)(this,m).clear()}}]),e}();t.default=y},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=t.TRAVERSAL_DF_PRE=t.TRAVERSAL_DF_POST=t.TRAVERSAL_BF=void 0,t.depthFirstPreOrder=c,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=r(n(32));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=e.call(t,this),r=0;r<this.childs.length;r++){if(!1===n)return!1;n=c.call(this.childs[r],e,t)}return n}t.TRAVERSAL_DF_PRE="DF-pre-order";t.TRAVERSAL_DF_POST="DF-post-order";t.TRAVERSAL_BF="BF";var d=new Map([["DF-pre-order",c],["DF-post-order",function e(t,n){for(var r=0;r<this.childs.length;r++){if(!1===e.call(this.childs[r],t,n))return!1}return t.call(n,this)}],["BF",function(e,t){var n=[this];!function r(){if(0!==n.length){var o=n.shift();n.push.apply(n,(0,s.default)(o.childs)),!1!==e.call(t,o)&&r()}}()}]]),h=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"data",{}),(0,a.default)(this,"parent",null),(0,a.default)(this,"childs",[]),this.data=t}return(0,i.default)(e,[{key:"addChild",value:function(e){e.parent=this,this.childs.push(e)}},{key:"cloneTree",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,n=new e(u({},t.data)),r=0;r<t.childs.length;r++)n.addChild(this.cloneTree(t.childs[r]));return n}},{key:"replaceTreeWith",value:function(e){this.data=u({},e.data),this.childs=[];for(var t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}},{key:"walkDown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BF";if(!d.has(t))throw new Error('Traversal strategy "'.concat(t,'" does not exist'));d.get(t).call(this,e,this)}},{key:"walkUp",value:function(e){var t=this;!function n(r){!1!==e.call(t,r)&&null!==r.parent&&n(r.parent)}(this)}}]),e}();t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,n){if(!s.has(e))throw new Error('The node modifier action ("'.concat(e,'") does not exist.'));return s.get(e)(t,n)},n(4),n(40),n(1),n(5),n(6);var r=n(631),o=n(632),i=n(1052),a=n(1053),s=new Map([["collapse",r.collapseNode],["expand",o.expandNode],["hide-column",i.hideColumn],["show-column",a.showColumn]])},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the hide column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the hide column modification can be applied."]))));if(e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0}))};var o=r(n(64));n(72),n(73),n(31),n(41);var i,a=n(66)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the show column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the show column modification can be applied."]))));if(!e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1}))};var o=r(n(64));n(72),n(73),n(31),n(41),n(53),n(22);var i,a=n(66)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.generateMatrix=function(e){var t=[];return(0,i.arrayEach)(e,(function(e){e.walkDown((function(e){for(var n=e.data,r=n.origColspan,o=n.columnIndex,i=n.headerLevel,s=n.crossHiddenColumns,u=function(e,t){var n;Array.isArray(e[t])?n=e[t]:(n=[],e[t]=n);return n}(t,i),c=!1,d=o;d<o+r;d++){if(s.includes(d)||c)u.push((0,a.createPlaceholderHeaderSettings)(n));else{var h=l(n);h.isRoot=!0,u.push(h),c=!0}}}))})),t};var o=r(n(109));n(31),n(41);var i=n(13),a=n(630),s=["crossHiddenColumns"];function l(e){var t=(0,a.createDefaultHeaderSettings)(e);t.crossHiddenColumns;return(0,o.default)(t,s)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"hot",void 0),(0,a.default)(this,"nestedHeaderSettingsGetter",void 0),(0,a.default)(this,"layersCount",0),(0,a.default)(this,"container",void 0),(0,a.default)(this,"widthsMap",void 0),this.hot=t,this.nestedHeaderSettingsGetter=n,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}return(0,i.default)(e,[{key:"setLayersCount",value:function(e){return this.layersCount=e,this}},{key:"getWidth",value:function(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}},{key:"buildWidthsMap",value:function(){this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);var e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length;this.widthsMap.clear();for(var n=0;n<t;n++){var r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),o=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(o,e[n].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}},{key:"_buildGhostTable",value:function(e){for(var t=this.hot,n=t.rootDocument,r=t.columnIndexMapper,o=n.createDocumentFragment(),i=n.createElement("table"),a=!!this.hot.getSettings().dropdownMenu,l=r.getRenderableIndexesLength(),u=0;u<this.layersCount;u++){for(var c=n.createElement("tr"),d=0;d<l;d++){var h=r.getVisualFromRenderableIndex(d);null===h&&(h=d);var f=n.createElement("th"),p=this.nestedHeaderSettingsGetter(u,h);if(p&&(!p.isPlaceholder||p.isHidden)){var g=p.label;a&&(g+='<button class="changeType"></button>'),(0,s.fastInnerHTML)(f,g),f.colSpan=p.colspan,c.appendChild(f)}}i.appendChild(c)}o.appendChild(i),e.appendChild(o)}},{key:"clear",value:function(){this.widthsMap.clear(),this.container=null}}]),e}();t.default=l},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var r=n(1058);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedRows=r.NestedRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(39),n(67),n(48),n(221),n(23),n(52);var h=n(38),f=r(n(1059)),p=r(n(1060)),g=r(n(634)),m=r(n(1061)),v=n(74),y=n(133),E=n(76),T=r(n(1062));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}n(1063);t.PLUGIN_KEY="nestedRows";t.PLUGIN_PRIORITY=300;var R=new WeakMap,w=function(e){(0,u.default)(n,e);var t=C(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).dataManager=null,r.headersUI=null,r.collapsedRowsMap=null,R.set((0,s.default)(r),{movedToCollapsed:!1,skipRender:null,skipCoreAPIModifiers:!1}),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new E.TrimmingMap),this.dataManager=new f.default(this,this.hot),this.collapsingUI=new p.default(this,this.hot),this.headersUI=new g.default(this,this.hot),this.contextMenuUI=new m.default(this,this.hot),this.rowMoveController=new T.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("beforeViewRender",(function(){return e.onBeforeViewRender.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("filterData",(function(){return e.onFilterData.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("beforeRemoveRow",(function(){return e.onBeforeRemoveRow.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.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("beforeLoadData",(function(t){return e.onBeforeLoadData(t)})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();var e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(e,t,n,r){return this.rowMoveController.onBeforeRowMove(e,t,n,r)}},{key:"disableCoreAPIModifiers",value:function(){R.get(this).skipCoreAPIModifiers=!0}},{key:"enableCoreAPIModifiers",value:function(){R.get(this).skipCoreAPIModifiers=!1}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n){this.collapsingUI.toggleState(e,t,n)}},{key:"onModifyRowData",value:function(e){if(!R.get(this).skipCoreAPIModifiers)return this.dataManager.getDataObject(e)}},{key:"onModifySourceLength",value:function(){if(!R.get(this).skipCoreAPIModifiers)return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice",value:function(e,t,n){return!(!R.get(this).skipCoreAPIModifiers&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,n),!1)}},{key:"onFilterData",value:function(e,t,n){var r=R.get(this);return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(n[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(n[0],null,-1*t),this.dataManager.filterData(e,t,n),r.skipRender=!0,this.dataManager.getData().slice()}},{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,r){var o=this;if(r!==this.pluginName){var i=R.get(this);setTimeout((function(){i.skipRender=null,o.headersUI.updateRowHeaderWidth(),o.collapsingUI.collapsedRowsStash.applyStash()}),0)}}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this,o=Array.from(n.reduce((function(e,t){if(r.dataManager.isParent(t)){var n=r.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(n)&&n.forEach((function(t){return e.add(r.dataManager.getRowIndex(t))})),e}return e.add(t)}),new Set));n.length=0,n.push.apply(n,o)}},{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,n){this.collapsingUI.collapsedRowsStash.shiftStash(n,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(){this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){var e=Math.max.apply(Math,(0,o.default)(this.dataManager.cache.levels));e>0&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeViewRender",value:function(e,t){R.get(this).skipRender&&(t.skipRender=!0)}},{key:"destroy",value:function(){(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}},{key:"onBeforeLoadData",value:function(e){if(!(0,y.isArrayOfObjects)(e))return(0,v.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings().nestedRows=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}}],[{key:"PLUGIN_KEY",get:function(){return"nestedRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 300}}]),n}(h.BasePlugin);t.NestedRows=w},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6),n(22),n(53),n(48),n(20),n(39);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(36),u=n(12),c=n(13),d=function(){function e(t,n){(0,a.default)(this,e),this.hot=n,this.data=null,this.plugin=t,this.parentReference=new WeakMap,this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}}return(0,s.default)(e,[{key:"setData",value:function(e){this.data=e}},{key:"getData",value:function(){return this.data}},{key:"getRawSourceData",value:function(){var e;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}},{key:"updateWithData",value:function(e){this.setData(e),this.rewriteCache()}},{key:"rewriteCache",value:function(){var e=this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,l.rangeEach)(0,this.data.length-1,(function(t){e.cacheNode(e.data[t],0,null)}))}},{key:"cacheNode",value:function(e,t,n){var r=this;this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,c.arrayEach)(e.__children,(function(n){r.cacheNode(n,t+1,e)}))}},{key:"getDataObject",value:function(e){return null==e?null:this.cache.rows[e]}},{key:"readTreeNodes",value:function(e,t,n,r){var o=this,i=!1,a=t;if(isNaN(a)&&a.end)return a;var s=e;return s||(s={__children:this.data},i=!0,a-=1),null!=n&&a===n?{result:s,end:!0}:null!=r&&s===r?{result:a,end:!0}:(a+=1,s.__children&&(0,c.arrayEach)(s.__children,(function(e){if(o.parentReference.set(e,i?null:s),a=o.readTreeNodes(e,a,n,r),isNaN(a)&&a.end)return!1})),a)}},{key:"mockParent",value:function(){var e=this.mockNode();return e.__children=this.data,e}},{key:"mockNode",value:function(){var e={};return(0,u.objectEach)(this.data[0],(function(t,n){e[n]=null})),e}},{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,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?((0,c.arrayEach)(r.__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 e&&"object"===(0,i.default)(e)?this.cache.nodeInfo.get(e).parent:null}},{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:"isChild",value:function(e){return null!==this.getRowParent(e)}},{key:"getChild",value:function(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}},{key:"isRowHighestLevel",value:function(e){return!this.isChild(e)}},{key:"isParent",value:function(e){var t,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}},{key:"addChild",value:function(e,t){var n=t;this.hot.runHooks("beforeAddChild",e,n);var r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);var o=e;e||(o=this.mockParent()),o.__children||(o.__children=[]),n||(n=this.mockNode()),o.__children.push(n),this.rewriteCache();var i=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(i,1),this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}},{key:"addChildAtIndex",value:function(e,t,n){var r,o=n;if(o||(o=this.mockNode()),this.hot.runHooks("beforeAddChild",e,o,t),e){var i=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",i,1),e.__children.splice(t,null,o),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(i,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",i,1),r=i}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),r=this.getRowIndex(this.data[t]);o=this.getDataObject(r),this.hot.runHooks("afterAddChild",e,o,t)}},{key:"addSibling",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below",n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null);break;case"above":this.addChildAtIndex(r,o,null)}}},{key:"detachFromParent",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=[];Array.isArray(e)?((0,l.rangeEach)(e[0],e[2],(function(e){var n=t.translateTrimmedRow(e);o.push(t.getDataObject(n))})),(0,l.rangeEach)(0,o.length-2,(function(e){t.detachFromParent(o[e],!1)})),r=o[o.length-1]):r=e;var i=this.getRowIndex(r),a=this.countChildren(r),s=this.getRowIndexWithinParent(r),u=this.getRowParent(r),c=this.getRowParent(u),d=this.getRowIndex(c),h=null;if(this.hot.runHooks("beforeDetachChild",u,r),null!=s){var f=Array.from(new Array(i+a+1).keys()).splice(-1*(a+1));if(this.hot.runHooks("beforeRemoveRow",i,a+1,f,this.plugin.pluginName),u.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,a+1,f,this.plugin.pluginName),c){h=d+this.countChildren(c);var p=this.getChild(c,this.countChildren(c)-1),g=this.getRowIndex(p);this.hot.runHooks("beforeCreateRow",g+1,a+1,this.plugin.pluginName),c.__children.push(r)}else h=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",h-2,a+1,this.plugin.pluginName),this.data.push(r)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",h-2,a+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",u,r,this.getRowIndex(r)),n&&this.hot.render()}},{key:"filterData",value:function(e,t,n){var r=this,o=[];(0,c.arrayEach)(n,(function(e){o.push(r.getDataObject(e))})),(0,c.arrayEach)(o,(function(e){var t=r.getRowIndexWithinParent(e),n=r.getRowParent(e);null===n?r.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var r,i=this.getDataObject(e-1),a=null,s=e;if(i&&i.__children&&0===i.__children.length?(a=i,s=0):e<this.countAllRows()&&(a=this.getRowParent(e),s=this.getRowIndexWithinParent(e)),a)n?(r=a.__children).splice.apply(r,[s,t].concat((0,o.default)(n))):a.__children.splice(s,t);else if(n){var l;(l=this.data).splice.apply(l,[s,t].concat((0,o.default)(n)))}else this.data.splice(s,t);this.rewriteCache()}},{key:"syncRowWithRawSource",value:function(e){var t=e,n=null;do{null!==(n=this.getRowParent(n))&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndex(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}},{key:"moveRow",value:function(e,t,n,r){var o=t===this.hot.countRows(),i=this.getRowParent(e),a=this.getRowIndexWithinParent(e),s=i.__children.slice(a,a+1),l=e>t,u=o?this.getRowParent(t-1):this.getRowParent(t);null==u&&(u=this.getRowParent(t-1)),null==u&&(u=this.getDataObject(t-1)),u?u.__children||(u.__children=[]):(u=this.getDataObject(t)).__children=[];var c=o||n||r?u.__children.length:this.getRowIndexWithinParent(t),d=i===u;u.__children.splice(c,0,s[0]),i.__children.splice(a+(l&&d?1:0),1),this.syncRowWithRawSource(i),d||this.syncRowWithRawSource(u)}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}},{key:"untranslateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}]),e}();t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(39),n(22),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(75),d=n(13),h=n(36),f=n(16),p=r(n(311)),g=r(n(634));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,r)).dataManager=o.plugin.dataManager,o.collapsedRows=[],o.collapsedRowsStash={stash:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,d.arrayEach)(o.lastCollapsedRows,(function(r,i){r>=e&&r<t&&(o.lastCollapsedRows[i]=r+n)}))},applyStash:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:function(e,t){(0,h.rangeEach)(e,e+t-1,(function(e){var t=o.lastCollapsedRows.indexOf(e);t>-1&&o.lastCollapsedRows.splice(t,1)}))}},o}return(0,a.default)(n,[{key:"collapseChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),a=e),this.dataManager.hasChildren(i)&&(0,d.arrayEach)(i.__children,(function(e){o.push(t.dataManager.getRowIndex(e))})),s=this.collapseRows(o,!0,!1),r&&this.trimRows(s),n&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(a)&&this.collapsedRows.push(a),s}},{key:"collapseMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,d.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.collapseChildren(e,!1,!1)))})),r&&this.trimRows(i),n&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}},{key:"collapseRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,d.arrayEach)(e,(function(e){o.push(e),n&&t.collapseChildRows(e,o)})),r&&this.trimRows(o),o}},{key:"collapseChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,d.arrayEach)(o.__children,(function(e){var r=t.dataManager.getRowIndex(e);n.push(r),t.collapseChildRows(r,n)}))}r&&this.trimRows(n)}},{key:"expandRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}},{key:"expandRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,d.arrayEach)(e,(function(e){o.push(e),n&&t.expandChildRows(e,o)})),r&&this.untrimRows(o),o}},{key:"expandChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,d.arrayEach)(o.__children,(function(e){if(!t.isAnyParentCollapsed(e)){var r=t.dataManager.getRowIndex(e);n.push(r),t.expandChildRows(r,n)}}))}r&&this.untrimRows(n)}},{key:"expandChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),a=e),this.collapsedRows.splice(this.collapsedRows.indexOf(a),1),this.dataManager.hasChildren(i)&&(0,d.arrayEach)(i.__children,(function(e){var n=t.dataManager.getRowIndex(e);o.push(n)})),s=this.expandRows(o,!0,!1),r&&this.untrimRows(s),n&&this.renderAndAdjust(),s}},{key:"expandMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,d.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.expandChildren(e,!1,!1)))})),r&&this.untrimRows(i),n&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,d.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,d.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"trimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,d.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}},{key:"untrimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,d.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}},{key:"areChildrenCollapsed",value:function(e){var t=this,n=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===n&&(n={__children:this.dataManager.data}),this.dataManager.hasChildren(n)&&(0,d.arrayEach)(n.__children,(function(e){var n=t.dataManager.getRowIndex(e);if(!t.plugin.collapsedRowsMap.getValueAtIndex(n))return r=!1,!1})),r}},{key:"isAnyParentCollapsed",value:function(e){for(var t=e;null!==t;){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(n)>-1)return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(t.col>=0)){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.hot.toPhysicalRow(e)}},{key:"untranslateTrimmedRow",value:function(e){return this.hot.toVisualRow(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.adjustElementsSize()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(53);var d=n(36),h=n(13),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),p=r(n(311));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=new WeakMap,y=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,r),v.set((0,s.default)(o),{row_above:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"above")},row_below:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"below")}}),o.dataManager=o.plugin.dataManager,o}return(0,a.default)(n,[{key:"appendOptions",value:function(e){var t=this,n=[{key:"add_child",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:function(){var e=t.dataManager.translateTrimmedRow(t.hot.getSelectedLast()[0]),n=t.dataManager.getDataObject(e);t.dataManager.addChild(n)},disabled:function(){var e=t.hot.getSelectedLast();return!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var e=t.hot.getSelectedLast(),n=t.dataManager.translateTrimmedRow(e[0]);return!t.dataManager.getRowParent(n)||!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return(0,d.rangeEach)(0,e.items.length-1,(function(t){if(0===t)return(0,h.arrayEach)(n,(function(n,r){e.items.splice(t+r,0,n)})),!1})),this.modifyRowInsertingOptions(e)}},{key:"modifyRowInsertingOptions",value:function(e){var t=v.get(this);return(0,d.rangeEach)(0,e.items.length-1,(function(n){var r=t[e.items[n].key];null!=r&&(e.items[n].callback=r)})),e}}]),n}(p.default);t.default=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(64));n(65),n(22),n(1),n(23),n(20);var a,s=r(n(2)),l=r(n(3)),u=n(24),c=n(74),d=n(66),h=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.hot=t.hot,this.dataManager=t.dataManager,this.collapsingUI=t.collapsingUI}return(0,l.default)(e,[{key:"onBeforeRowMove",value:function(e,t,n,r){var o=this;if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:n,movePossible:r}))return!1;this.movedToCollapsed=!1;var i=n===this.hot.countRows(),a=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(n),s=!0,l=e.map((function(e){if(!s)return!1;var t=o.dataManager.translateTrimmedRow(e);return s=o.shouldAllowMoving(t,a),t})),u=-1===l.indexOf(a);if(!s||!u)return!1;var c=this.getBaseParent(l),d=this.getTargetParent(i,a),h=c===d;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(d),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(l,a,h),this.moveRows(l,a,d),this.dataManager.rewriteCache(),this.moveCellsMeta(l,a),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,n,r,r&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,n),!1}},{key:"displayAPICompatibilityWarning",value:function(e){var t=e.rows,n=e.finalIndex,r=e.dropIndex,o=e.movePossible,s=!1;return(0,u.isUndefined)(r)&&((0,c.warn)((0,d.toSingleLine)(a||(a=(0,i.default)(["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows \n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."],["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\\x20\n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."])))),this.hot.runHooks("afterRowMove",t,n,r,o,!1),s=!0),s}},{key:"shouldAllowMoving",value:function(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}},{key:"getBaseParent",value:function(e){return this.dataManager.getRowParent(e[0])}},{key:"getTargetParent",value:function(e,t){var n=this.dataManager.getRowParent(e?t-1:t);return null==n&&(n=this.dataManager.getRowParent(t-1)),n}},{key:"shiftCollapsibleParentsLocations",value:function(e,t,n){n||(Math.max.apply(Math,(0,o.default)(e))<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}},{key:"moveRows",value:function(e,t,n){var r=this,o=t===this.dataManager.getRowIndex(n)+this.dataManager.countChildren(n)+1;this.hot.batchRender((function(){e.forEach((function(e){r.dataManager.moveRow(e,t,r.movedToCollapsed,o)}))}))}},{key:"moveCellsMeta",value:function(e,t){var n,r=this,i=[],a=Math.max.apply(Math,(0,o.default)(e))<t;e.forEach((function(e){i.push(r.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),(n=this.hot).spliceCellsMeta.apply(n,[t-(a?i.length:0),0].concat(i))}},{key:"selectCells",value:function(e,t){var n,r=e.length,o=0,i=0,a=null;if(this.movedToCollapsed){var s=null;s=e[r-1]<t?this.dataManager.translateTrimmedRow(t-r):this.dataManager.translateTrimmedRow(t);var l=this.dataManager.getRowParent(null===s?this.hot.countSourceRows()-1:s-1),u=this.dataManager.getRowIndex(l);i=o=this.dataManager.untranslateTrimmedRow(u)}else e[r-1]<t?o=(i=t-1)-r+1:i=(o=t)+r-1;a=this.hot.selection,n=this.hot.countCols()-1,a.setRangeStart(this.hot._createCellCoords(o,0)),a.setRangeEnd(this.hot._createCellCoords(i,n),!0)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}}]),e}();t.default=h},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1065);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.PersistentState=r.PersistentState},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=r(n(1066)),h=r(n(59));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}h.default.getSingleton().register("persistentStateSave"),h.default.getSingleton().register("persistentStateLoad"),h.default.getSingleton().register("persistentStateReset");t.PLUGIN_KEY="persistentState";t.PLUGIN_PRIORITY=0;var p=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).storage=void 0,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new d.default(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(function(t,n){return e.saveValue(t,n)})),this.addHook("persistentStateLoad",(function(t,n){return e.loadValue(t,n)})),this.addHook("persistentStateReset",(function(){return e.resetValue()})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,a.default)((0,u.default)(n.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,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"persistentState"}},{key:"PLUGIN_PRIORITY",get:function(){return 0}}]),n}(c.BasePlugin);t.PersistentState=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(22);var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,o.default)(this,e),this.rootWindow=n,this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return(0,i.default)(e,[{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,r=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===r?void 0:JSON.parse(r)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;(0,a.arrayEach)(this.savedKeys,(function(t,n){e.rootWindow.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))})),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()}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1068);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Search=r.Search},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(22),n(1),n(98),n(51),n(605),n(31),n(41),n(53),n(83);var d=n(38),h=n(12),f=n(36),p=n(24);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="search";t.PLUGIN_PRIORITY=190;var m=function(e,t,n,r,o){e.getCellMeta(t,n).isSearchResult=o},v=function(e,t,n){return!((0,p.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,p.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))},y=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).callback=m,r.queryMethod=v,r.searchResultClass="htSearchResult",r}return(0,a.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,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,t=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(function(){e.hot.removeHook("beforeRenderer",t)})),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),o=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return(0,f.rangeEach)(0,o-1,(function(o){(0,f.rangeEach)(0,i-1,(function(i){var l=t.hot.getDataAtCell(o,i),u=t.hot.getCellMeta(o,i),c=u.search.callback||n,d=(u.search.queryMethod||r)(e,l,u);if(d){var h={row:o,col:i,data:l};a.push(h)}c&&c(s,o,i,l,d)}))})),a}},{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,h.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,r,i,a){var s,l=a.className||[],u=[];"string"==typeof l?u=l.split(" "):(s=u).push.apply(s,(0,o.default)(l));this.isEnabled()&&a.isSearchResult?u.includes(this.searchResultClass)||u.push("".concat(this.searchResultClass)):u.includes(this.searchResultClass)&&u.splice(u.indexOf(this.searchResultClass),1),a.className=u.join(" ")}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"search"}},{key:"PLUGIN_PRIORITY",get:function(){return 190}}]),n}(d.BasePlugin);t.Search=y},function(e,t,n){"use strict";t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1070);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TouchScroll=r.TouchScroll},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(13),h=n(38),f=n(107);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="touchScroll";t.PLUGIN_PRIORITY=200;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).scrollbars=[],r.clones=[],r.lockedCollection=!1,r.freezeOverlays=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,f.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterViewRender",(function(){return e.onAfterViewRender()})),this.registerEvents(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,(0,a.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,u.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:"onAfterViewRender",value:function(){if(!this.lockedCollection){var e=this.hot.view._wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,r=e.inlineStartOverlay,o=e.topInlineStartCornerOverlay,i=e.bottomInlineStartCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(r),o&&this.scrollbars.push(o),i&&i.clone&&this.scrollbars.push(i),this.clones=[],t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,d.arrayEach)(this.clones,(function(e){(0,c.addClass)(e,"hide-tween")}))}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,d.arrayEach)(this.clones,(function(e){(0,c.removeClass)(e,"hide-tween"),(0,c.addClass)(e,"show-tween")})),this.hot._registerTimeout((function(){(0,d.arrayEach)(e.clones,(function(e){(0,c.removeClass)(e,"show-tween")}))}),400),(0,d.arrayEach)(this.scrollbars,(function(e){e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}}],[{key:"PLUGIN_KEY",get:function(){return"touchScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 200}},{key:"SETTING_KEYS",get:function(){return!0}}]),n}(h.BasePlugin);t.TouchScroll=g},function(e,t,n){"use strict";t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1072);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TrimRows=r.TrimRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(48),n(5),n(4),n(1),n(52),n(6),n(20),n(39),n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=n(76),h=n(13);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="trimRows";t.PLUGIN_PRIORITY=330;var p=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).trimmedRowsMap=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new d.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",(function(){return e.onMapInit()})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){e.trimmedRowsMap.clear(),(0,h.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0),(0,a.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("trimRows"),(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getTrimmedRows",value:function(){return this.trimmedRowsMap.getTrimmedIndexes()}},{key:"trimRows",value:function(e){var t=this,n=this.getTrimmedRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,h.arrayEach)(e,(function(e){t.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",n,o,r,r&&o.length>n.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(e){var t=this.getTrimmedRows(),n=this.isValidConfig(e),r=t,o=this.trimmedRowsMap.getValues().slice(),i=e.length>0;n&&i&&((0,h.arrayEach)(e,(function(e){o[e]=!1})),r=(0,h.arrayReduce)(o,(function(e,t,n){return t&&e.push(n),e}),[])),!1!==this.hot.runHooks("beforeUntrimRow",t,r,n&&i)&&(n&&i&&this.trimmedRowsMap.setValues(o),this.hot.runHooks("afterUntrimRow",t,r,n&&i,n&&r.length<t.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.trimmedRowsMap.getValueAtIndex(e)||!1}},{key:"untrimAll",value:function(){this.untrimRows(this.getTrimmedRows())}},{key:"isValidConfig",value:function(e){var t=this.hot.countSourceRows();return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"onMapInit",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){(0,h.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0)}},{key:"destroy",value:function(){(0,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"trimRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 330}}]),n}(c.BasePlugin);t.TrimRows=p},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(1074));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.UndoRedo=o.default,t.PLUGIN_KEY=o.PLUGIN_KEY},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(32)),c=r(n(21));n(225),n(1),n(221),n(39),n(53),n(23),n(43),n(89),n(22),n(35),n(20);var d=r(n(59)),h=n(13),f=n(36),p=n(12),g=n(96);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function v(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,this.enabled=!1,e.addHook("afterChange",(function(n,r){var o=this,i=n&&n.length;if(i&&n.find((function(e){var t=(0,c.default)(e,4);return t[2]!==t[3]}))){t.done((function(){var t=n.reduce((function(e,t){return e.push((0,u.default)(t)),e}),[]);(0,h.arrayEach)(t,(function(t){t[1]=e.propToCol(t[1])}));var r=i>1?o.getSelected():[[t[0][0],t[0][1]]];return new v.ChangeAction(t,r)}),r)}})),e.addHook("afterCreateRow",(function(e,n,r){t.done((function(){return new v.CreateRowAction(e,n)}),r)})),e.addHook("beforeRemoveRow",(function(n,r,o,i){t.done((function(){var o=e.toPhysicalRow(n),i=(0,p.deepClone)(t.instance.getSourceData(o,0,o+r-1,t.instance.countSourceCols()-1));return new v.RemoveRowAction(o,i,e.getSettings().fixedRowsBottom,e.getSettings().fixedRowsTop,e.rowIndexMapper.getIndexesSequence())}),i)})),e.addHook("afterCreateCol",(function(e,n,r){t.done((function(){return new v.CreateColumnAction(e,n)}),r)})),e.addHook("beforeRemoveCol",(function(n,r,o,i){t.done((function(){var o=t.instance.getSourceDataArray(),i=(t.instance.countCols()+n)%t.instance.countCols(),a=[],s=[],l=[];(0,f.rangeEach)(o.length-1,(function(t){var n=[],s=o[t];(0,f.rangeEach)(i,i+(r-1),(function(t){n.push(s[e.toPhysicalColumn(t)])})),a.push(n)})),(0,f.rangeEach)(r-1,(function(t){l.push(e.toPhysicalColumn(i+t))})),Array.isArray(e.getSettings().colHeaders)&&(0,f.rangeEach)(r-1,(function(t){s.push(e.getSettings().colHeaders[e.toPhysicalColumn(i+t)]||null)}));var u=e.columnIndexMapper.getIndexesSequence(),c=e.rowIndexMapper.getIndexesSequence();return new v.RemoveColumnAction(i,l,a,s,u,c,e.getSettings().fixedColumnsStart)}),i)})),e.addHook("beforeCellAlignment",(function(e,n,r,o){t.done((function(){return new v.CellAlignmentAction(e,n,r,o)}))})),e.addHook("beforeFilter",(function(e){t.done((function(){return new v.FiltersAction(e)}))})),e.addHook("beforeRowMove",(function(e,n){!1!==e&&t.done((function(){return new v.RowMoveAction(e,n)}))})),e.addHook("beforeMergeCells",(function(n,r){r||t.done((function(){return new v.MergeCellsAction(e,n)}))})),e.addHook("afterUnmergeCells",(function(n,r){r||t.done((function(){return new v.UnmergeCellsAction(e,n)}))})),e.addHook("afterInit",(function(){t.init()}))}t.PLUGIN_KEY="undoRedo",v.prototype.done=function(e,t){if(!this.ignoreNewActions&&!("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)){var n=this.doneActions.slice();if(!1!==this.instance.runHooks("beforeUndoStackChange",n,t)){var r=e(),o=this.undoneActions.slice();this.doneActions.push(r),this.instance.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.instance.runHooks("beforeRedoStackChange",o),this.undoneActions.length=0,this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice())}}},v.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",e);var t=this.doneActions.pop();this.instance.runHooks("afterUndoStackChange",e,this.doneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeUndo",n))return;this.ignoreNewActions=!0;var r=this,o=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",o),t.undo(this.instance,(function(){r.ignoreNewActions=!1,r.undoneActions.push(t)})),this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice()),this.instance.runHooks("afterUndo",n)}},v.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",e);var t=this.undoneActions.pop();this.instance.runHooks("afterRedoStackChange",e,this.undoneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeRedo",n))return;this.ignoreNewActions=!0;var r=this,o=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",o),t.redo(this.instance,(function(){r.ignoreNewActions=!1,r.doneActions.push(t)})),this.instance.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.instance.runHooks("afterRedo",n)}},v.prototype.isUndoAvailable=function(){return this.doneActions.length>0},v.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},v.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},v.prototype.isEnabled=function(){return this.enabled},v.prototype.enable=function(){if(!this.isEnabled()){var e,t=this.instance;this.enabled=!0,(e=t).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()},this.registerShortcuts(),t.addHook("afterChange",T)}},v.prototype.disable=function(){if(this.isEnabled()){var e,t=this.instance;this.enabled=!1,delete(e=t).undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo,this.unregisterShortcuts(),t.removeHook("afterChange",T)}},v.prototype.destroy=function(){this.clear(),this.instance=null,this.doneActions=null,this.undoneActions=null},v.Action=function(){},v.Action.prototype.undo=function(){},v.Action.prototype.redo=function(){},v.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},(0,p.inherit)(v.ChangeAction,v.Action),v.ChangeAction.prototype.undo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=e.countEmptyRows(!0),o=e.countEmptyCols(!0),i=0,a=n.length;i<a;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");for(var s=0,l=n.length;s<l;s++){var u=(0,c.default)(n[s],2),d=u[0],h=u[1];e.getSettings().minSpareRows&&d+1+e.getSettings().minSpareRows===e.countRows()&&r===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(d+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&h+1+e.getSettings().minSpareCols===e.countCols()&&o===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(h+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())}e.selectCells(this.selected,!1,!1)},v.ChangeAction.prototype.redo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=0,o=n.length;r<o;r++)n[r].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)},v.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,p.inherit)(v.CreateRowAction,v.Action),v.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},v.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")},v.RemoveRowAction=function(e,t,n,r,o){this.index=e,this.data=t,this.actionType="remove_row",this.fixedRowsBottom=n,this.fixedRowsTop=r,this.rowIndexesSequence=o},(0,p.inherit)(v.RemoveRowAction,v.Action),v.RemoveRowAction.prototype.undo=function(e,t){var n=this,r=e.getSettings(),o=[];r.fixedRowsBottom=this.fixedRowsBottom,r.fixedRowsTop=this.fixedRowsTop,this.data.forEach((function(e,t){Object.keys(e).forEach((function(r){var i=parseInt(r,10);o.push([n.index+t,isNaN(i)?r:i,e[r]])}))})),e.alter("insert_row_above",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(o,null,null,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence)},v.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},v.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,p.inherit)(v.CreateColumnAction,v.Action),v.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},v.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")},v.RemoveColumnAction=function(e,t,n,r,o,i,a){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=r,this.columnPositions=o.slice(0),this.rowPositions=i.slice(0),this.actionType="remove_col",this.fixedColumnsStart=a},(0,p.inherit)(v.RemoveColumnAction,v.Action),v.RemoveColumnAction.prototype.undo=function(e,t){var n=this;e.getSettings().fixedColumnsStart=this.fixedColumnsStart;for(var r=this.indexes.slice(0).sort(),o=function(e,t,o){return o[n.indexes.indexOf(r[t])]},i=this.data.length,a=[],s=0;s<i;s++)a.push((0,h.arrayMap)(this.data[s],o));var l=(0,h.arrayMap)(this.headers,o),u=[];e.alter("insert_col_start",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,h.arrayEach)(e.getSourceDataArray(),(function(e,t){(0,h.arrayEach)(r,(function(n,r){e[n]=a[t][r],u.push([t,n,e[n]])}))})),e.setSourceDataAtCell(u,void 0,void 0,"UndoRedo.undo"),e.columnIndexMapper.insertIndexes(r[0],r.length),void 0!==this.headers&&(0,h.arrayEach)(l,(function(t,n){e.getSettings().colHeaders[r[n]]=t})),e.batchExecution((function(){e.rowIndexMapper.setIndexesSequence(n.rowPositions),e.columnIndexMapper.setIndexesSequence(n.columnPositions)}),!0),e.addHookOnce("afterViewRender",t),e.render()},v.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},v.CellAlignmentAction=function(e,t,n,r){this.stateBefore=e,this.range=t,this.type=n,this.alignment=r},v.CellAlignmentAction.prototype.undo=function(e,t){var n=this;(0,h.arrayEach)(this.range,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"className",n.stateBefore[t][r]||" htLeft")}))})),e.addHookOnce("afterViewRender",t),e.render()},v.CellAlignmentAction.prototype.redo=function(e,t){(0,g.align)(this.range,this.type,this.alignment,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),e.addHookOnce("afterViewRender",t),e.render()},v.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,p.inherit)(v.FiltersAction,v.Action),v.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},v.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var y=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;(0,o.default)(this,n),(i=t.call(this)).cellRange=r;var a=i.cellRange.getTopStartCorner(),s=i.cellRange.getBottomEndCorner();return i.rangeData=e.getData(a.row,a.col,s.row,s.col),i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);var r=this.cellRange.getTopStartCorner();e.populateFromArray(r.row,r.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}]),n}(v.Action);v.MergeCellsAction=y;var E=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).cellRange=r,i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),n}(v.Action);function T(e,t){if("loadData"===t)return this.undoRedo.clear()}v.UnmergeCellsAction=E,v.RowMoveAction=function(e,t){this.rows=e.slice(),this.finalIndex=t,this.actionType="row_move"},(0,p.inherit)(v.RowMoveAction,v.Action),v.RowMoveAction.prototype.undo=function(e,t){var n=this,r=e.getPlugin("manualRowMove"),o=[].concat(this.rows),i=o.filter((function(e){return e>n.finalIndex})),a=o.filter((function(e){return e<=n.finalIndex})),s=i.sort((function(e,t){return t-e})).concat(a.sort((function(e,t){return e-t})));e.addHookOnce("afterViewRender",t);for(var l=0;l<s.length;l+=1){var u=e.toVisualRow(s[l]);r.moveRow(u,s[l])}e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)},v.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),n.moveRows(this.rows.slice(),this.finalIndex),e.render(),e.deselectCell(),e.selectRows(this.finalIndex,this.finalIndex+this.rows.length-1)},v.prototype.init=function(){var e=this.instance.getSettings().undo,t=void 0===e||e;this.instance.undoRedo||(this.instance.undoRedo=this),t?this.instance.undoRedo.enable():this.instance.undoRedo.disable()},v.prototype.registerShortcuts=function(){var e=this,t={runOnlyIf:function(e){return!e.altKey},group:"undoRedo"};this.instance.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Control/Meta","z"]],callback:function(){e.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:function(){e.redo()}}],t)},v.prototype.unregisterShortcuts=function(){this.instance.getShortcutManager().getContext("grid").removeShortcutsByGroup("undoRedo")};var C=d.default.getSingleton();C.add("afterUpdateSettings",(function(){var e;null===(e=this.getPlugin("undoRedo"))||void 0===e||e.init()})),C.register("beforeUndo"),C.register("afterUndo"),C.register("beforeRedo"),C.register("afterRedo"),v.PLUGIN_KEY="undoRedo",v.SETTING_KEYS=!0;var R=v;t.default=R},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){var n,r=this.first(),o=r.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(r[0],i),r.data("handsontable",o),o.init()),r}if(o){if(void 0===o[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];n=(a=o[t]).call.apply(a,[o].concat(l)),"destroy"===t&&r.removeData()}return n}},n(20)}]).default}));
|
863
|
+
!function(t,r){"use strict";var o;try{o=n(95)}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},c=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},p=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){d(e)&&e.setHours(0,0,0,0)},m=function(e,t){return e.getTime()===t.getTime()},v=function(e,t,n){var r,o;for(r in t)(o=void 0!==e[r])&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?d(t[r])?n&&(e[r]=new Date(t[r].getTime())):c(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=v({},t[r],n):!n&&o||(e[r]=t[r]);return e},y=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=v(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=v(o,n),e.fireEvent("on"+t,o))},E=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},T={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!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,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},C=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},R=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),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>"},w=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},S=function(e,t,n,r,o,i){var a,s,l,u,d,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?' disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=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 d='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?g+=d+u:g+=u+d,f&&(0===r||h.minMonth>=r)&&(m=!1),p&&(11===r||h.maxMonth<=r)&&(v=!1),0===t&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+"</div>"},O=function(a){var l=this,u=l.config(a);l._onMouseDown=function(e){if(l._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")?l.prevMonth():s(t,"pika-next")&&l.nextMonth():(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&o((function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()}),100))),s(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?l.gotoMonth(t.value):s(t,"pika-select-year")&&l.gotoYear(t.value))},l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7);break;case 8:case 46:l.setDate(null)}},l._parseFieldValue=function(){if(u.parse)return u.parse(u.field.value,u.format);if(t){var n=e(u.field.value,u.format,u.formatStrict);return n&&n.isValid()?n.toDate():null}return new Date(Date.parse(u.field.value))},l._onInputChange=function(e){var t;e.firedBy!==l&&(t=l._parseFieldValue(),d(t)&&l.setDate(t),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var e=r.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);l._c||(l._b=o((function(){l.hide()}),50)),l._c=!1},l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,r=t;if(t){!n&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",l._onChange)));do{if(s(r,"pika-single")||r===u.trigger)return}while(r=r.parentNode);l._v&&t!==u.trigger&&r!==u.trigger&&l.hide()}},l.el=r.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(l.el,"mousedown",l._onMouseDown,!0),i(l.el,"touchend",l._onMouseDown,!0),i(l.el,"change",l._onChange),u.keyboardInput&&i(r,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?r.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),i(u.field,"change",l._onInputChange),u.defaultDate||(u.defaultDate=l._parseFieldValue(),u.setDefaultDate=!0));var c=u.defaultDate;d(c)?u.setDefaultDate?l.setDate(c,!0):l.gotoDate(c):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",i(u.trigger,"click",l._onInputClick),i(u.trigger,"focus",l._onInputFocus),i(u.trigger,"blur",l._onInputBlur)):this.show()};return O.prototype={config:function(e){this._o||(this._o=v({},T,!0));var t=v(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=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(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),c(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||T.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,r=this._o.maxDate;d(n)&&e<n?e=n:d(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(e){var t=!0;if(d(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}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,r=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(r.valueOf()+o):"subtract"===e&&(n=new Date(r.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=E(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=E({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?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=T.minDate,this._o.minYear=T.minYear,this._o.minMonth=T.minMonth,this._o.startRange=T.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=T.maxDate,this._o.maxYear=T.maxYear,this._o.maxMonth=T.maxMonth,this._o.endRange=T.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,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s));for(var u=0;u<n.numberOfMonths;u++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),l+='<div class="pika-lendar">'+S(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,c,d,h,f,p;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||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,f=!0,p=!0,"function"==typeof e.getBoundingClientRect)c=(h=e.getBoundingClientRect()).left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(c=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&c+n>i||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth,f=!1),(this._o.reposition&&d+o>a+s||this._o.position.indexOf("top")>-1&&d-o-e.offsetHeight>0)&&(d=d-o-e.offsetHeight,p=!1),this.el.style.left=c+"px",this.el.style.top=d+"px",l(this.el,f?"left-aligned":"right-aligned"),l(this.el,p?"bottom-aligned":"top-aligned"),u(this.el,f?"right-aligned":"left-aligned"),u(this.el,p?"top-aligned":"bottom-aligned")}},render:function(n,r,o){var i=this._o,a=new Date,s=p(n,r),l=new Date(n,r,1).getDay(),u=[],c=[];g(a),i.firstDay>0&&(l-=i.firstDay)<0&&(l+=7);for(var f=0===r?11:r-1,v=11===r?0:r+1,y=0===r?n-1:n,E=11===r?n+1:n,T=p(y,f),S=s+l,O=S;O>7;)O-=7;S+=7-O;for(var b,A,N,M,I,_=!1,k=0,P=0;k<S;k++){var x=new Date(n,r,k-l+1),L=!!d(this._d)&&m(x,this._d),D=m(x,a),F=-1!==i.events.indexOf(x.toDateString()),U=k<l||k>=s+l,H=k-l+1,V=r,j=n,B=i.startRange&&m(i.startRange,x),W=i.endRange&&m(i.endRange,x),Y=i.startRange&&i.endRange&&i.startRange<x&&x<i.endRange;U&&(k<l?(H=T+H,V=f,j=y):(H-=s,V=v,j=E));var G={day:H,month:V,year:j,hasEvent:F,isSelected:L,isToday:D,isDisabled:i.minDate&&x<i.minDate||i.maxDate&&x>i.maxDate||i.disableWeekends&&h(x)||i.disableDayFn&&i.disableDayFn(x),isEmpty:U,isStartRange:B,isEndRange:W,isInRange:Y,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&L&&(_=!0),c.push(R(G)),7==++P&&(i.showWeekNumber&&c.unshift((b=k-l,A=r,N=n,M=i.firstWeekOfYearMinDays,I=void 0,void 0,I=new Date(N,A,b),'<td class="pika-week">'+(t?e(I).isoWeek():function(e,t){e.setHours(0,0,0,0);var n=e.getDate(),r=e.getDay(),o=t,i=o-1,a=function(e){return(e+7-1)%7};e.setDate(n+i-a(r));var s=new Date(e.getFullYear(),0,o),l=(e.getTime()-s.getTime())/864e5;return 1+Math.round((l-i+a(s.getDay()))/7)}(I,M))+"</td>")),u.push(w(c,i.isRTL,i.pickWholeWeek,_)),c=[],P=0,_=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+(r=t,"<tbody>"+r.join("")+"</tbody>")+"</table>";var r}(i,u,o)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(i(r,"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&&a(r,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(r,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},O}(o)}()},function(e,t,n){},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0,n(35),n(1);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(298),d=r(n(59));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="dropdown";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}],[{key:"EDITOR_TYPE",get:function(){return"dropdown"}}]),n}(c.AutocompleteEditor);t.DropdownEditor=f,d.default.getSingleton().add("beforeValidate",(function(e,t,n){var r=this.getCellMeta(t,this.propToCol(n));r.editor===f&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(134);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="numeric";var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,null,[{key:"EDITOR_TYPE",get:function(){return"numeric"}}]),n}(u.TextEditor);t.NumericEditor=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="password";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,d.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}],[{key:"EDITOR_TYPE",get:function(){return"password"}}]),n}(c.TextEditor);t.PasswordEditor=f},function(e,t,n){"use strict";t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var r=n(849);t.EDITOR_TYPE=r.EDITOR_TYPE,t.SelectEditor=r.SelectEditor},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var o=r(n(14)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(189),h=n(16),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.EDITOR_TYPE="select";var g=function(e){(0,l.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT"),(0,h.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(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",(0,h.hasClass)(this.select,"ht_editor_visible")&&(0,h.removeClass)(this.select,"ht_editor_visible"),this.unregisterShortcuts(),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,r,o,i,a){var l=this;(0,s.default)((0,c.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a);var u,d=this.cellProperties.selectOptions;u="function"==typeof d?this.prepareOptions(d(this.row,this.col,this.prop)):this.prepareOptions(d),(0,h.empty)(this.select),(0,f.objectEach)(u,(function(e,t){var n=l.hot.rootDocument.createElement("OPTION");n.value=t,(0,h.fastInnerHTML)(n,e),l.select.appendChild(n)}))}},{key:"prepareOptions",value:function(e){var t={};if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"===(0,o.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===d.EDITOR_STATE.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e=this.getEditedCellRect(),t=e.top,n=e.start,r=e.width,o=e.height,i=this.select.style;i.height="".concat(o,"px"),i.width="".concat(r,"px"),i.top="".concat(t,"px"),i[this.hot.isRtl()?"right":"left"]="".concat(n,"px"),i.margin="0px",(0,h.addClass)(this.select,"ht_editor_visible")}else this.close()}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={group:"selectEditor"};!1!==this.isInFullEditMode()&&t.addShortcuts([{keys:[["ArrowUp"]],callback:function(){var t=e.select.selectedIndex-1;t>=0&&(e.select[t].selected=!0)}},{keys:[["ArrowDown"]],callback:function(){var t=e.select.selectedIndex+1;t<=e.select.length-1&&(e.select[t].selected=!0)}}],n)}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("selectEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"select"}}]),n}(d.BaseEditor);t.SelectEditor=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="time";var h=function(e){(0,s.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.TEXTAREA.dir="ltr"}}],[{key:"EDITOR_TYPE",get:function(){return"time"}}]),n}(c.TextEditor);t.TimeEditor=h},function(e,t,n){"use strict";t.__esModule=!0,t.hasRenderer=t.getRenderer=t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.registerAllRenderers=function(){(0,d.registerRenderer)(r.autocompleteRenderer),(0,d.registerRenderer)(o.baseRenderer),(0,d.registerRenderer)(i.checkboxRenderer),(0,d.registerRenderer)(a.htmlRenderer),(0,d.registerRenderer)(s.numericRenderer),(0,d.registerRenderer)(l.passwordRenderer),(0,d.registerRenderer)(u.textRenderer),(0,d.registerRenderer)(c.timeRenderer)};var r=n(190);t.autocompleteRenderer=r.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=r.RENDERER_TYPE;var o=n(231);t.baseRenderer=o.baseRenderer,t.BASE_RENDERER=o.RENDERER_TYPE;var i=n(599);t.checkboxRenderer=i.checkboxRenderer,t.CHECKBOX_RENDERER=i.RENDERER_TYPE;var a=n(598);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var s=n(600);t.numericRenderer=s.numericRenderer,t.NUMERIC_RENDERER=s.RENDERER_TYPE;var l=n(602);t.passwordRenderer=l.passwordRenderer,t.PASSWORD_RENDERER=l.RENDERER_TYPE;var u=n(135);t.textRenderer=u.textRenderer,t.TEXT_RENDERER=u.RENDERER_TYPE;var c=n(603);t.timeRenderer=c.timeRenderer,t.TIME_RENDERER=c.RENDERER_TYPE;var d=n(183);t.registerRenderer=d.registerRenderer,t.getRegisteredRendererNames=d.getRegisteredRendererNames,t.getRegisteredRenderers=d.getRegisteredRenderers,t.getRenderer=d.getRenderer,t.hasRenderer=d.hasRenderer},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.autocompleteRenderer=l;var o=n(598),i=n(135),a=r(n(49)),s=n(16);n(854);function l(e,t,n,r,l,u,c){var d=e.rootDocument,h=c.allowHtml?o.htmlRenderer:i.textRenderer,f=d.createElement("DIV");if(f.className="htAutocompleteArrow",f.appendChild(d.createTextNode(String.fromCharCode(9660))),h.apply(this,[e,t,n,r,l,u,c]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(f,t.firstChild),(0,s.addClass)(t,"htAutocomplete"),!e.acArrowListener){var p=new a.default(e);e.acArrowListener=function(o){(0,s.hasClass)(o.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(n,r),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(function(){p.destroy()}))}}t.RENDERER_TYPE="autocomplete",l.RENDERER_TYPE="autocomplete"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.htmlRenderer=i;var r=n(231),o=n(16);function i(e,t,n,i,a,s,l){r.baseRenderer.apply(this,[e,t,n,i,a,s,l]),(0,o.fastInnerHTML)(t,null==s?"":s,!1)}t.RENDERER_TYPE="html",i.RENDERER_TYPE="html"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.checkboxRenderer=h,n(4),n(1),n(5),n(7),n(6),n(31),n(41),n(98),n(67);var o=n(231),i=r(n(49)),a=n(16),s=n(24),l=n(182);n(856);var u=r(n(59)),c=new WeakMap,d=new WeakMap;function h(e,t,n,r,u,h,p){var g=e.rootDocument;o.baseRenderer.apply(this,[e,t,n,r,u,h,p]),function(e){var t=d.get(e);if(!t){var n=e.rootElement;(t=new i.default(e)).addEventListener(n,"click",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10);t.getCellMeta(r,o).readOnly&&e.preventDefault()}(t,e)})),t.addEventListener(n,"mouseup",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;setTimeout(t.listen,10)}(t,e)})),t.addEventListener(n,"change",(function(t){return function(e,t){var n=e.target;if(!f(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10),i=t.getCellMeta(r,o);if(!i.readOnly){var a=null;a=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(r,o,a)}}(t,e)})),d.set(e,t)}}(e);var m,v,y=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)}(g),E=p.label,T=!1;if(void 0===p.checkedTemplate&&(p.checkedTemplate=!0),void 0===p.uncheckedTemplate&&(p.uncheckedTemplate=!1),(0,a.empty)(t),h===p.checkedTemplate||(0,s.stringify)(h).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.checkedTemplate).toLocaleLowerCase(p.locale)?y.checked=!0:h===p.uncheckedTemplate||(0,s.stringify)(h).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.uncheckedTemplate).toLocaleLowerCase(p.locale)?y.checked=!1:(0,s.isEmpty)(h)?(0,a.addClass)(y,"noValue"):(y.style.display="none",(0,a.addClass)(y,"htBadValue"),T=!0),y.setAttribute("data-row",n),y.setAttribute("data-col",r),!T&&E){var C="";if(E.value)C="function"==typeof E.value?E.value.call(this,n,r,u,h):E.value;else if(E.property){var R=e.getDataAtRowProp(n,E.property);C=null!==R?R:""}var w=function(e,t,n){var r=e.createElement("label");return r.className="htCheckboxRendererLabel ".concat(n?"fullWidth":""),r.appendChild(e.createTextNode(t)),r.cloneNode(!0)}(g,C,!0!==E.separated);"before"===E.position?E.separated?(t.appendChild(w),t.appendChild(y)):(w.appendChild(y),y=w):E.position&&"after"!==E.position||(E.separated?(t.appendChild(y),t.appendChild(w)):(w.insertBefore(y,w.firstChild),y=w))}function S(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n)for(var r=0;r<n.length;r++){for(var o=n[r].getTopStartCorner(),i=o.row,a=o.col,s=n[r].getBottomEndCorner(),l=s.row,u=s.col,c=[],d=i;d<=l;d+=1)for(var h=a;h<=u;h+=1){var f=e.getCellMeta(d,h);if("checkbox"!==f.type)return;if(!0!==f.readOnly){void 0===f.checkedTemplate&&(f.checkedTemplate=!0),void 0===f.uncheckedTemplate&&(f.uncheckedTemplate=!1);var p=e.getDataAtCell(d,h);!1===t?[f.checkedTemplate,f.checkedTemplate.toString()].includes(p)?c.push([d,h,f.uncheckedTemplate]):[f.uncheckedTemplate,f.uncheckedTemplate.toString(),null,void 0].includes(p)&&c.push([d,h,f.checkedTemplate]):c.push([d,h,f.uncheckedTemplate])}}c.length>0&&e.setDataAtCell(c)}}function O(){var t=e.getSelectedRange();if(t){for(var n=0;n<t.length;n++)for(var r=t[n].getTopStartCorner(),o=t[n].getBottomEndCorner(),i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return!1;var l=e.getCell(i,a);if(null==l)return!0;if(l.querySelectorAll("input[type=checkbox]").length>0&&!s.readOnly)return!0}return!1}}(!E||E&&!E.separated)&&t.appendChild(y),T&&t.appendChild(g.createTextNode("#bad-value#")),c.has(e)||(c.set(e,!0),m=e.getShortcutManager().getContext("grid"),v={group:"checkboxRenderer"},m.addShortcuts([{keys:[["space"]],callback:function(){return S(),!O()}},{keys:[["enter"]],callback:function(){return S(),!O()},runOnlyIf:function(){return e.getSettings().enterBeginsEditing}},{keys:[["delete"],["backspace"]],callback:function(){return S(!0),!O()},relativeToGroup:l.SHORTCUTS_GROUP_EDITOR,position:"before"}],v))}function f(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.RENDERER_TYPE="checkbox",u.default.getSingleton().add("modifyAutoColumnSizeSeed",(function(e,t,n){var r=t.label,o=t.type,i=t.row,a=t.column,s=t.prop;if("checkbox"===o){if(r){var l=r.value,u=r.property,c=n;if(l)c="function"==typeof l?l(i,a,s,n):l;else if(u){var d=this.getDataAtRowProp(i,u);c=null!==d?d:n}e=c}return e}})),h.RENDERER_TYPE="checkbox"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.numericRenderer=s,n(51),n(82),n(22),n(83);var o=r(n(601)),i=n(135),a=n(36);function s(e,t,n,r,s,l,u){var c=l;if((0,a.isNumeric)(c)){var d=u.numericFormat,h=d&&d.culture||"-",f=d&&d.pattern,p=u.className||"",g=p.length?p.split(" "):[];if(void 0!==h&&!o.default.languages()[h]){var m=h.replace("-",""),v=o.default.allLanguages?o.default.allLanguages[h]:o.default[m];v&&o.default.registerLanguage(v)}o.default.setLanguage(h),c=(0,o.default)(c).format(f||"0"),g.indexOf("htLeft")<0&&g.indexOf("htCenter")<0&&g.indexOf("htRight")<0&&g.indexOf("htJustify")<0&&g.push("htRight"),g.indexOf("htNumeric")<0&&g.push("htNumeric"),u.className=g.join(" "),t.dir="ltr"}(0,i.textRenderer)(e,t,n,r,s,c,u)}t.RENDERER_TYPE="numeric",s.RENDERER_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.passwordRenderer=a;var r=n(135),o=n(16),i=n(36);function a(e,t,n,a,s,l,u){r.textRenderer.apply(this,[e,t,n,a,s,l,u]);var c=u.hashLength||t.innerHTML.length,d=u.hashSymbol||"*",h="";(0,i.rangeEach)(c-1,(function(){h+=d})),(0,o.fastInnerHTML)(t,h)}t.RENDERER_TYPE="password",a.RENDERER_TYPE="password"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.timeRenderer=o;var r=n(135);function o(e,t,n,o,i,a,s){r.textRenderer.apply(this,[e,t,n,o,i,a,s]),t.dir="ltr"}t.RENDERER_TYPE="time",o.RENDERER_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidator=t.getValidator=t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.registerAllValidators=function(){(0,s.registerValidator)(r.autocompleteValidator),(0,s.registerValidator)(o.dateValidator),(0,s.registerValidator)(i.numericValidator),(0,s.registerValidator)(a.timeValidator)};var r=n(301);t.autocompleteValidator=r.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=r.VALIDATOR_TYPE;var o=n(604);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=n(607);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var a=n(608);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var s=n(184);t.registerValidator=s.registerValidator,t.getRegisteredValidatorNames=s.getRegisteredValidatorNames,t.getRegisteredValidators=s.getRegisteredValidators,t.getValidator=s.getValidator,t.hasValidator=s.hasValidator},function(e,t,n){"use strict";t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.autocompleteValidator=r;function r(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}function o(e,t){var n=e;return function(e){for(var r=!1,o=0,i=e.length;o<i;o++)if(n===e[o]){r=!0;break}t(r)}}t.VALIDATOR_TYPE="autocomplete",r.VALIDATOR_TYPE="autocomplete"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.correctFormat=u,t.dateValidator=l,n(51),n(605);var o=r(n(95)),i=n(129),a=n(300),s=n(606);function l(e,t){var n=(0,i.getEditorInstance)(a.EDITOR_TYPE,this.instance),r=e,s=!0;null==r&&(r="");var l=(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),c=(0,o.default)(new Date(r)).isValid()||l;if(this.allowEmpty&&""===r&&(c=!0,l=!0),c||(s=!1),!c&&l&&(s=!0),c&&!l)if(!0===this.correctFormat){var d=u(r,this.dateFormat),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"dateValidator"),s=!0}else s=!1;t(s)}function u(e,t){var n=(0,o.default)((0,s.getNormalizedDate)(e)),r=(0,o.default)(e,t),i=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||i?n:r).format(t)}t.VALIDATOR_TYPE="date",l.VALIDATOR_TYPE="date"},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.VALIDATOR_TYPE=void 0,t.numericValidator=o;var r=n(36);function o(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,r.isNumeric)(e))}t.VALIDATOR_TYPE="numeric",o.VALIDATOR_TYPE="numeric"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.timeValidator=a,n(51);var o=r(n(95)),i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function a(e,t){var n=this.timeFormat||"h:mm:ss a",r=!0,a=e;null===a&&(a=""),a=/^\d{3,}$/.test(a)?parseInt(a,10):a;var s=/^\d{1,2}$/.test(a);s&&(a+=":00");var l=(0,o.default)(a,i,!0).isValid()?(0,o.default)(a):(0,o.default)(a,n),u=l.isValid(),c=(0,o.default)(a,n,!0).isValid()&&!s;if(this.allowEmpty&&""===a&&(u=!0,c=!0),u||(r=!1),!u&&c&&(r=!0),u&&!c)if(!0===this.correctFormat){var d=l.format(n),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"timeValidator"),r=!0}else r=!1;t(r)}t.VALIDATOR_TYPE="time",a.VALIDATOR_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.getCellType=void 0,t.registerAllCellTypes=function(){(0,h.registerCellType)(r.AutocompleteCellType),(0,h.registerCellType)(o.CheckboxCellType),(0,h.registerCellType)(i.DateCellType),(0,h.registerCellType)(a.DropdownCellType),(0,h.registerCellType)(s.HandsontableCellType),(0,h.registerCellType)(l.NumericCellType),(0,h.registerCellType)(u.PasswordCellType),(0,h.registerCellType)(c.TextCellType),(0,h.registerCellType)(d.TimeCellType)};var r=n(867);t.AutocompleteCellType=r.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=r.CELL_TYPE;var o=n(869);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=n(871);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var a=n(873);t.DropdownCellType=a.DropdownCellType,t.DROPDOWN_TYPE=a.CELL_TYPE;var s=n(875);t.HandsontableCellType=s.HandsontableCellType,t.HANDSONTABLE_TYPE=s.CELL_TYPE;var l=n(877);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var u=n(879);t.PasswordCellType=u.PasswordCellType,t.PASSWORD_TYPE=u.CELL_TYPE;var c=n(591);t.TextCellType=c.TextCellType,t.TEXT_TYPE=c.CELL_TYPE;var d=n(881);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var h=n(188);t.registerCellType=h.registerCellType,t.getCellType=h.getCellType,t.getRegisteredCellTypeNames=h.getRegisteredCellTypeNames,t.getRegisteredCellTypes=h.getRegisteredCellTypes,t.hasCellType=h.hasCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(868);t.AutocompleteCellType=r.AutocompleteCellType,t.CELL_TYPE=r.CELL_TYPE},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(298),o=n(190),i=n(301);t.CELL_TYPE="autocomplete";var a={CELL_TYPE:"autocomplete",editor:r.AutocompleteEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.AutocompleteCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(870);t.CELL_TYPE=r.CELL_TYPE,t.CheckboxCellType=r.CheckboxCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(593),o=n(599);t.CELL_TYPE="checkbox";var i={CELL_TYPE:"checkbox",editor:r.CheckboxEditor,renderer:o.checkboxRenderer};t.CheckboxCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(872);t.CELL_TYPE=r.CELL_TYPE,t.DateCellType=r.DateCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(300),o=n(190),i=n(604);t.CELL_TYPE="date";var a={CELL_TYPE:"date",editor:r.DateEditor,renderer:o.autocompleteRenderer,validator:i.dateValidator};t.DateCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(874);t.CELL_TYPE=r.CELL_TYPE,t.DropdownCellType=r.DropdownCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(594),o=n(190),i=n(301);t.CELL_TYPE="dropdown";var a={CELL_TYPE:"dropdown",editor:r.DropdownEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.DropdownCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(876);t.CELL_TYPE=r.CELL_TYPE,t.HandsontableCellType=r.HandsontableCellType},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(299),o=n(190);t.CELL_TYPE="handsontable";var i={CELL_TYPE:"handsontable",editor:r.HandsontableEditor,renderer:o.autocompleteRenderer};t.HandsontableCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(878);t.CELL_TYPE=r.CELL_TYPE,t.NumericCellType=r.NumericCellType},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(595),o=n(600),i=n(607);t.CELL_TYPE="numeric";var a={CELL_TYPE:"numeric",editor:r.NumericEditor,renderer:o.numericRenderer,validator:i.numericValidator,dataType:"number"};t.NumericCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(880);t.CELL_TYPE=r.CELL_TYPE,t.PasswordCellType=r.PasswordCellType},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(596),o=n(602);t.CELL_TYPE="password";var i={CELL_TYPE:"password",editor:r.PasswordEditor,renderer:o.passwordRenderer,copyable:!1};t.PasswordCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(882);t.CELL_TYPE=r.CELL_TYPE,t.TimeCellType=r.TimeCellType},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(597),o=n(603),i=n(608);t.CELL_TYPE="time";var a={CELL_TYPE:"time",editor:r.TimeEditor,renderer:o.timeRenderer,validator:i.timeValidator};t.TimeCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.getPluginsNames=t.getPlugin=void 0,t.registerAllPlugins=function(){(0,F.registerPlugin)(r.AutoColumnSize),(0,F.registerPlugin)(o.Autofill),(0,F.registerPlugin)(i.AutoRowSize),(0,F.registerPlugin)(s.BindRowsWithHeaders),(0,F.registerPlugin)(l.CollapsibleColumns),(0,F.registerPlugin)(u.ColumnSorting),(0,F.registerPlugin)(c.ColumnSummary),(0,F.registerPlugin)(d.Comments),(0,F.registerPlugin)(h.ContextMenu),(0,F.registerPlugin)(f.CopyPaste),(0,F.registerPlugin)(p.CustomBorders),(0,F.registerPlugin)(g.DragToScroll),(0,F.registerPlugin)(m.DropdownMenu),(0,F.registerPlugin)(v.ExportFile),(0,F.registerPlugin)(y.Filters),(0,F.registerPlugin)(E.Formulas),(0,F.registerPlugin)(T.HiddenColumns),(0,F.registerPlugin)(C.HiddenRows),(0,F.registerPlugin)(R.ManualColumnFreeze),(0,F.registerPlugin)(w.ManualColumnMove),(0,F.registerPlugin)(S.ManualColumnResize),(0,F.registerPlugin)(O.ManualRowMove),(0,F.registerPlugin)(b.ManualRowResize),(0,F.registerPlugin)(A.MergeCells),(0,F.registerPlugin)(N.MultiColumnSorting),(0,F.registerPlugin)(M.MultipleSelectionHandles),(0,F.registerPlugin)(I.NestedHeaders),(0,F.registerPlugin)(_.NestedRows),(0,F.registerPlugin)(k.PersistentState),(0,F.registerPlugin)(P.Search),(0,F.registerPlugin)(x.TouchScroll),(0,F.registerPlugin)(L.TrimRows),(0,F.registerPlugin)(D.UndoRedo)};var r=n(884);t.AutoColumnSize=r.AutoColumnSize;var o=n(888);t.Autofill=o.Autofill;var i=n(891);t.AutoRowSize=i.AutoRowSize;var a=n(38);t.BasePlugin=a.BasePlugin;var s=n(893);t.BindRowsWithHeaders=s.BindRowsWithHeaders;var l=n(897);t.CollapsibleColumns=l.CollapsibleColumns;var u=n(610);t.ColumnSorting=u.ColumnSorting;var c=n(907);t.ColumnSummary=c.ColumnSummary;var d=n(912);t.Comments=d.Comments;var h=n(917);t.ContextMenu=h.ContextMenu;var f=n(933);t.CopyPaste=f.CopyPaste;var p=n(945);t.CustomBorders=p.CustomBorders;var g=n(953);t.DragToScroll=g.DragToScroll;var m=n(955);t.DropdownMenu=m.DropdownMenu;var v=n(958);t.ExportFile=v.ExportFile;var y=n(964);t.Filters=y.Filters;var E=n(997);t.Formulas=E.Formulas;var T=n(1e3);t.HiddenColumns=T.HiddenColumns;var C=n(1005);t.HiddenRows=C.HiddenRows;var R=n(1010);t.ManualColumnFreeze=R.ManualColumnFreeze;var w=n(1015);t.ManualColumnMove=w.ManualColumnMove;var S=n(1020);t.ManualColumnResize=S.ManualColumnResize;var O=n(1022);t.ManualRowMove=O.ManualRowMove;var b=n(1027);t.ManualRowResize=b.ManualRowResize;var A=n(1029);t.MergeCells=A.MergeCells;var N=n(1036);t.MultiColumnSorting=N.MultiColumnSorting;var M=n(1042);t.MultipleSelectionHandles=M.MultipleSelectionHandles;var I=n(1044);t.NestedHeaders=I.NestedHeaders;var _=n(1057);t.NestedRows=_.NestedRows;var k=n(1064);t.PersistentState=k.PersistentState;var P=n(1067);t.Search=P.Search;var x=n(1069);t.TouchScroll=x.TouchScroll;var L=n(1071);t.TrimRows=L.TrimRows;var D=n(1073);t.UndoRedo=D.UndoRedo;var F=n(223);t.registerPlugin=F.registerPlugin,t.getPlugin=F.getPlugin,t.getPluginsNames=F.getPluginsNames},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var r=n(885);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(39),n(67),n(48),n(52);var h=n(38),f=n(13),p=n(107),g=r(n(302)),m=r(n(59)),v=n(12),y=n(36),E=r(n(609)),T=n(84),C=n(130),R=n(76),w=n(24);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}m.default.getSingleton().register("modifyAutoColumnSizeSeed");var O="autoColumnSize";t.PLUGIN_KEY=O;t.PLUGIN_PRIORITY=10;var b=new WeakMap,A=function(e){(0,u.default)(n,e);var t=S(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),b.set((0,s.default)(r),{cachedColumnHeaders:[]}),r.ghostTable=new g.default(r.hot),r.samplesGenerator=new E.default((function(e,t){var n=r.hot.getCellMeta(e,t),o="";n.spanned||(o=r.hot.getDataAtCell(e,t));var i="";return r.hot.hasHook("modifyAutoColumnSizeSeed")&&(i=r.hot.runHooks("modifyAutoColumnSizeSeed",i,n,o)),{value:o,bundleSeed:i}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredColumns=0,r.columnWidthsMap=new R.PhysicalIndexToValueMap,r.hot.columnIndexMapper.registerMap("autoColumnSize",r.columnWidthsMap),r.addHook("beforeColumnResize",(function(e,t,n){return r.onBeforeColumnResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings()[O]&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[O];t&&null!==t.useHeaders&&void 0!==t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("afterFormulasValuesUpdate",(function(t){return e.onAfterFormulasValuesUpdate(t)})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(t)})),this.addHook("modifyColWidth",(function(t,n){return e.getColumnWidth(n,t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&(this.clearCache(e),this.calculateVisibleColumnsWidth()),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)}))}},{key:"calculateVisibleColumnsWidth",value:function(){if(this.hot.countRows()){var e=this.hot.renderCall,t=this.getFirstVisibleColumn(),n=this.getLastVisibleColumn();-1!==t&&-1!==n&&this.calculateColumnsWidth({from:t,to:n},void 0,e)}}},{key:"calculateColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;(0,y.rangeEach)(i.from,i.to,(function(t){var n=e.hot.toPhysicalColumn(t);if(null===n&&(n=t),r||null===e.columnWidthsMap.getValueAtIndex(n)&&!e.hot._getColWidthFromSettings(n)){var i=e.samplesGenerator.generateColumnSamples(t,a);(0,f.arrayEach)(i,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addColumn(r,i)}))}})),this.ghostTable.columns.length&&(this.hot.batchExecution((function(){e.ghostTable.getWidths((function(t,n){var r=e.hot.toPhysicalColumn(t);e.columnWidthsMap.setValueAtIndex(r,n)}))}),!0),this.measuredColumns=i.to+1,this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},r=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,p.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,p.requestAnimationFrame)(a):((0,p.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateColumnsWidth({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings()[O],t=e&&(0,v.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,v.hasOwnProperty)(e,"allowSampleDuplicates")?e.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=this.hot.getSettings()[O],t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countCols()-1;return(0,v.isObject)(e)&&(t=e.syncLimit,(0,T.isPercentValue)(t)?t=(0,y.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,C.ViewportColumnsCalculator.DEFAULT_WIDTH))),r}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view._wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getFirstVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getFirstRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view._wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getLastVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getLastRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=b.get(this).cachedColumnHeaders;return(0,f.arrayReduce)(e,(function(e,n,r){var o=t.length;return(o-1<r||t[r]!==n)&&e.push(r),o-1<r?t.push(n):t[r]=n,e}),[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?this.hot.batchExecution((function(){(0,f.arrayEach)(t,(function(t){e.columnWidthsMap.setValueAtIndex(t,null)}))}),!0):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),(function(e){return null===e})).length}},{key:"onBeforeViewRender",value:function(){this.calculateVisibleColumnsWidth(),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 t=this,n=(0,f.arrayMap)(e,(function(e){var n=(0,o.default)(e,2)[1];return t.hot.toPhysicalColumn(t.hot.propToCol(n))}));this.clearCache(Array.from(new Set(n)))}},{key:"onBeforeColumnResize",value:function(e,t,n){var r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}},{key:"onAfterInit",value:function(){b.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"onAfterFormulasValuesUpdate",value:function(e){var t=(0,f.arrayFilter)(e,(function(e){var t;return(0,w.isDefined)(null===(t=e.address)||void 0===t?void 0:t.col)})),n=(0,f.arrayMap)(t,(function(e){return e.address.col}));this.clearCache(Array.from(new Set(n)))}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return O}},{key:"PLUGIN_PRIORITY",get:function(){return 10}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),n}(h.BasePlugin);t.AutoColumnSize=A},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3));n(4),n(40),n(1),n(5),n(6),n(7),n(23),n(20),n(83),n(22),n(53),n(232);var s=n(12),l=n(13),u=n(223),c=n(188),d=n(129),h=n(183),f=n(184);function p(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var g=new Map([["plugin",u.hasPlugin],["cell-type",c.hasCellType],["editor",d.hasEditor],["renderer",h.hasRenderer],["validator",f.hasValidator]]);t.PLUGIN_KEY="base";var m=new WeakMap,v=[],y=null,E=new WeakSet,T=function(){function e(t){var n=this;(0,i.default)(this,e),p(this,E),(0,s.defineGetter)(this,"hot",t,{writable:!1}),m.set(this,{hooks:{}}),y=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",(function(){return n.onAfterPluginsInitialized()})),this.hot.addHook("afterUpdateSettings",(function(e){return n.onUpdateSettings(e)})),this.hot.addHook("beforeInit",(function(){return n.init()}))}return(0,a.default)(e,[{key:"init",value:function(){var e=this;this.pluginName=this.hot.getPluginName(this);var t=this.constructor.PLUGIN_DEPS,n=Array.isArray(t)?t:[];if(n.length>0){var r=[];if(n.forEach((function(e){var t=e.split(":"),n=(0,o.default)(t,2),i=n[0],a=n[1];if(!g.has(i))throw new Error('Unknown plugin dependency type "'.concat(i,'" was found.'));g.get(i)(a)||r.push(" - ".concat(a," (").concat(i,")"))})),r.length>0){var i=["The ".concat(this.pluginName," plugin requires the following modules:\n"),"".concat(r.join("\n"),"\n")].join("");v.push(i)}}if(y||(y=(0,u.getPluginsNames)()),y.indexOf("UndoRedo")>=0&&y.splice(y.indexOf("UndoRedo"),1),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(function(){e.isEnabled&&e.isEnabled()&&e.enablePlugin()})),0===y.length){if(v.length>0){var a=["".concat(v.join("\n"),"\n"),"You have to import and register them manually."].join("");throw new Error(a)}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){m.get(this).hooks[e]=m.get(this).hooks[e]||[];var n=m.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),m.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,l.arrayEach)(m.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=m.get(this).hooks;(0,s.objectEach)(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,l.arrayEach)(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(e){var t=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,E,C).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,s.objectEach)(this,(function(t,n){"hot"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}],[{key:"PLUGIN_KEY",get:function(){return"base"}},{key:"SETTING_KEYS",get:function(){return[this.PLUGIN_KEY]}}]),e}();function C(e){if(!e)return!1;var t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(var n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}t.BasePlugin=T},function(e,t,n){"use strict";n(216)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(397))},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0;var r=n(889);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0,n(22),n(31),n(41),n(20);var o=r(n(32)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=n(38),p=r(n(59)),g=n(16),m=n(13),v=r(n(49)),y=n(890);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}p.default.getSingleton().register("modifyAutofillRange"),p.default.getSingleton().register("beforeAutofill"),p.default.getSingleton().register("afterAutofill");var T="autofill";t.PLUGIN_KEY=T;t.PLUGIN_PRIORITY=20;var C=["fillHandle"],R=function(e){(0,c.default)(n,e);var t=E(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).eventManager=new v.default((0,l.default)(r)),r.addingStarted=!1,r.mouseDownOnCellCorner=!1,r.mouseDragOutside=!1,r.handleDraggedCells=0,r.directions=[],r.autoInsertRow=!1,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.onAfterCellCornerMouseDown(t)})),this.addHook("afterOnCellCornerDblClick",(function(t){return e.onCellCornerDblClick(t)})),this.addHook("beforeOnCellMouseOver",(function(t,n){return e.onBeforeCellMouseOver(n)})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e=this,t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner(),r=n.row,o=n.col,i=t.getBottomEndCorner(),a=i.row,s=i.col,l=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:o,endRow:a,endCol:s}]),u=[],c=[],d=[];return(0,m.arrayEach)(l,(function(e){for(var t=e.startRow;t<=e.endRow;t+=1)-1===u.indexOf(t)&&u.push(t);for(var n=e.startCol;n<=e.endCol;n+=1)-1===c.indexOf(n)&&c.push(n)})),(0,m.arrayEach)(u,(function(t){var n=[];(0,m.arrayEach)(c,(function(r){n.push(e.hot.getCopyableData(t,r))})),d.push(n)})),d}},{key:"fillIn",value:function(){var e=this;if(this.hot.selection.highlight.getFill().isEmpty())return!1;var t=this.hot.selection.highlight.getFill().getVisualCorners(),n=(0,i.default)(t,4),r=n[0],o=n[1],a=n[2],s=n[3],l=this.hot.getSelectedRangeLast(),u=l.getTopStartCorner(),c=l.getBottomEndCorner();this.resetSelectionOfDraggedArea();var d=[u.row,u.col,c.row,c.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(u.row,r),Math.min(u.col,o),Math.max(c.row,a),Math.max(c.col,s)],d),f=(0,y.getDragDirectionAndRange)(d,h,(function(t,n){return e.hot._createCellCoords(t,n)})),p=f.directionOfDrag,g=f.startOfDragCoords,m=f.endOfDragCoords;if(g&&g.row>-1&&g.col>-1){var v=this.getSelectionData(),E=l.clone(),T=this.hot._createCellRange(g,g,m),C=this.hot.runHooks("beforeAutofill",v,E,T,p);if(!1===C)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;var R=(0,y.getDeltas)(g,m,v,p),w=C,S=C;if(["up","left"].indexOf(p)>-1&&(1!==S.length||0!==S[0].length))if(w=[],"up"===p)for(var O=m.row-g.row+1,b=O%S.length,A=0;A<O;A++)w.push(S[(A+(S.length-b))%S.length]);else for(var N=m.col-g.col+1,M=N%S[0].length,I=0;I<S.length;I++){w.push([]);for(var _=0;_<N;_++)w[I].push(S[I][(_+(S[I].length-M))%S[I].length])}this.hot.populateFromArray(g.row,g.col,w,m.row,m.col,"".concat(this.pluginName,".fill"),null,p,R),this.setSelection(h),this.hot.runHooks("afterAutofill",w,E,T,p),this.hot.render()}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=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner(),r=e;if(this.directions.includes(y.DIRECTIONS.vertical)&&this.directions.includes(y.DIRECTIONS.horizontal)){var o=t.getTopStartCorner();(n.col<=e.col||o.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||o.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(y.DIRECTIONS.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(y.DIRECTIONS.horizontal))return;r=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout((function(){e.hot.alter("insert_row_below",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1}),200)}},{key:"addNewRowIfNeeded",value:function(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),r=this.hot.countRows(),o=e[2]+1;o<r;o++){for(var i=e[1];i<=e[3];i++){if(n[o][i])return-1}var a=n[o][e[1]-1],s=n[o][e[3]+1];(a||s)&&(t=o)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,(0,o.default)((0,m.arrayMap)(e,(function(e){return Math.max(e,0)}))).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.hot.getSelectedLast(),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).commit(),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=this.hot.rootDocument.documentElement,n=(0,g.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,g.outerHeight)(this.hot.table),r=(0,g.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,g.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=r}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{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&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&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,y.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return T}},{key:"PLUGIN_PRIORITY",get:function(){return 20}},{key:"SETTING_KEYS",get:function(){return[T].concat(C)}}]),n}(f.BasePlugin);t.Autofill=R},function(e,t,n){"use strict";t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=function(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var u=[],c=0;c<l;c++){var d=parseInt(n[0][c],10),h=parseInt(n[o-1][c],10),f=("down"===r?h-d:d-h)/(o-1)||0;u.push(f)}a.push(u)}if(-1!==["right","left"].indexOf(r))for(var p=0;p<s;p++){var g=parseInt(n[p][0],10),m=parseInt(n[p][i-1],10),v=("right"===r?m-g:g-m)/(i-1)||0;a.push([v])}return a},t.getDragDirectionAndRange=function(e,t,n){var r,o,i;t[0]===e[0]&&t[1]<e[1]?(i="left",r=n(t[0],t[1]),o=n(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",r=n(t[0],e[3]+1),o=n(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",r=n(t[0],t[1]),o=n(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",r=n(e[2]+1,t[1]),o=n(t[2],t[3]));r&&r.normalize();o&&o.normalize();return{directionOfDrag:i,startOfDragCoords:r,endOfDragCoords:o}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,r.isObject)(e)?((0,o.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,o.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t},n(22),n(43);var r=n(12),o=n(24),i={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=i},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0;var r=n(892);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoRowSize=r.AutoRowSize},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0,n(39),n(67);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=n(13),f=n(107),p=n(16),g=r(n(302)),m=n(12),v=n(36),y=r(n(609)),E=n(84),T=n(76);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="autoRowSize";t.PLUGIN_PRIORITY=40;var R=function(e){(0,l.default)(n,e);var t=C(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).rowHeightsMap=void 0,r.headerHeight=null,r.ghostTable=new g.default(r.hot),r.samplesGenerator=new y.default((function(e,t){var n;return e>=0?n=r.hot.getDataAtCell(e,t):-1===e&&(n=r.hot.getColHeader(t)),{value:n}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredRows=0,r.rowHeightsMap=new T.PhysicalIndexToValueMap,r.hot.rowIndexMapper.registerMap("autoRowSize",r.rowHeightsMap),r.addHook("beforeRowResize",(function(e,t,n){return r.onBeforeRowResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){var e=this.hot.getSettings().autoRowSize;return!0===e||(0,m.isObject)(e)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(t)})),this.addHook("modifyRowHeight",(function(t,n){return e.getRowHeight(n,t)})),this.addHook("modifyColumnHeaderHeight",(function(){return e.getColumnHeaderHeight()})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this;this.headerHeight=null,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeRowResize",(function(t,n,r){return e.onBeforeRowResize(t,n,r)}))}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var s=this.samplesGenerator.generateRowSamples(-1,a);this.ghostTable.addColumnHeadersRow(s.get(-1))}(0,v.rangeEach)(i.from,i.to,(function(t){if(r||null===e.rowHeightsMap.getValueAtIndex(t)){var n=e.samplesGenerator.generateRowSamples(t,a);(0,h.arrayEach)(n,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addRow(r,i)}))}})),this.ghostTable.rows.length&&(this.hot.batchExecution((function(){e.ghostTable.getHeights((function(t,n){t<0?e.headerHeight=n:e.rowHeightsMap.setValueAtIndex(e.hot.toPhysicalRow(t),n)}))}),!0),this.measuredRows=i.to+1,this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},r=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,f.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateRowsHeight({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,f.requestAnimationFrame)(a):((0,f.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize(!0),e.hot.view._wt.wtOverlays.inlineStartOverlay.needFullRender&&e.hot.view._wt.wtOverlays.inlineStartOverlay.clone.draw())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateRowsHeight({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():(this.inProgress=!1,this.hot.view.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?e.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,p.isVisible)(this.hot.view._wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=this.hot.getSettings().autoRowSize,t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countRows()-1;return(0,m.isObject)(e)&&(t=e.syncLimit,(0,E.isPercentValue)(t)?t=(0,v.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e)),r=t;return null!==n&&n>(t||0)&&(r=n),r}},{key:"getColumnHeaderHeight",value:function(){return this.headerHeight}},{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.headerHeight=null,this.rowHeightsMap.init()}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,r=n.from,o=n.to;this.hot.batchExecution((function(){(0,v.rangeEach)(Math.min(r,o),Math.max(r,o),(function(e){t.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.rowHeightsMap.getValues().slice(0,this.measuredRows),(function(e){return null===e})).length}},{key:"onBeforeViewRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),r=this.getLastVisibleRow();if(-1!==n&&-1!==r){if(this.calculateRowsHeight({from:n,to:r},void 0,e),t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}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 r=e;return n&&(this.calculateRowsHeight(t,void 0,!0),r=this.getRowHeight(t)),r}},{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]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autoRowSize"}},{key:"PLUGIN_PRIORITY",get:function(){return 40}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),n}(d.BasePlugin);t.AutoRowSize=R},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var r=n(894);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.BindRowsWithHeaders=r.BindRowsWithHeaders},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8));n(4),n(40),n(1),n(5),n(6);var c=n(38),d=r(n(895)),h=r(n(896));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p="bindRowsWithHeaders";t.PLUGIN_KEY=p;t.PLUGIN_PRIORITY=210;var g=new Map([["loose",d.default],["strict",h.default]]),m=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).headerIndexes=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[p]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[p];"string"!=typeof t&&(t="loose");var r=g.get(t);this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new r),this.addHook("modifyRowHeader",(function(t){return e.onModifyRowHeader(t)})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}},{key:"destroy",value:function(){(0,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return p}},{key:"PLUGIN_PRIORITY",get:function(){return 210}}]),n}(c.BasePlugin);t.BindRowsWithHeaders=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(76);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var h=(0,c.alterUtilsFactory)("physicallyIndexed"),f=h.getListWithInsertedItems,p=h.getListWithRemovedItems,g=function(e){(0,s.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,c.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=f(r,e,t,this.initValueOrFn),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=p(this.indexedValues,e);this.indexedValues=(0,c.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.default=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(76);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f=(0,d.alterUtilsFactory)("physicallyIndexed"),p=f.getListWithInsertedItems,g=f.getListWithRemovedItems,m=function(e){(0,l.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.call(this,(function(e){return e}))}return(0,a.default)(n,[{key:"insert",value:function(e,t){var r=this;this.indexedValues=p(this.indexedValues,e,t,(function(e,t){return r.getNextValue(t)})),(0,s.default)((0,c.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=g(this.indexedValues,e),(0,s.default)((0,c.default)(n.prototype),"remove",this).call(this,e)}},{key:"getNextValue",value:function(e){return Math.max.apply(Math,(0,o.default)(this.getValues()))+1+e}}]),n}(d.IndexMap);t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var r=n(898);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CollapsibleColumns=r.CollapsibleColumns},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=r(n(78)),p=r(n(79));n(4),n(40),n(1),n(5),n(6),n(20),n(31),n(7);var g=n(38),m=n(13),v=n(36),y=n(74),E=n(16),T=r(n(49)),C=n(75);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function w(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var S="collapsibleColumns";t.PLUGIN_KEY=S;t.PLUGIN_PRIORITY=290;var O=["nestedHeaders"],b=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]),A=new WeakMap,N=function(e){(0,u.default)(n,e);var t=R(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"nestedHeadersPlugin",null),(0,h.default)((0,s.default)(e),"eventManager",new T.default((0,s.default)(e))),(0,h.default)((0,s.default)(e),"headerStateManager",null),w((0,s.default)(e),A,{writable:!0,value:null}),e}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[S]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.hot.getSettings().nestedHeaders||(0,y.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),(0,p.default)(this,A,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("afterGetColHeader",(function(){return e.onAfterGetColHeader.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r){return e.onBeforeOnCellMouseDown(t,n,r)})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin())}},{key:"updatePlugin",value:function(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){var e=this.hot.getSettings().collapsibleColumns;"boolean"==typeof e?this.headerStateManager.mapState((function(e){return{collapsible:e.origColspan>1}})):Array.isArray(e)&&(this.headerStateManager.mapState((function(){return{collapsible:!1}})),this.headerStateManager.mergeStateWith(e))}(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,p.default)(this,A,null),this.nestedHeadersPlugin=null,this.clearButtons(),(0,l.default)((0,d.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,n=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};(0,v.rangeEach)(0,e-1,(function(e){var i=t.childNodes[e],a=n.childNodes[e],s=r?r.childNodes[e]:null;(0,v.rangeEach)(0,i.childNodes.length-1,(function(e){var t=i.childNodes[e].querySelector(".".concat("collapsibleIndicator"));o(t),a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(".".concat("collapsibleIndicator")),o(t)),r&&s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".".concat("collapsibleIndicator")),o(t))}))}),!0)}}},{key:"expandSection",value:function(e){this.toggleCollapsibleSection([e],"expand")}},{key:"collapseSection",value:function(e){this.toggleCollapsibleSection([e],"collapse")}},{key:"toggleAllCollapsibleSections",value:function(e){var t=this,n=this.headerStateManager.mapNodes((function(n){var r=n.collapsible,o=n.origColspan,i=n.headerLevel,a=n.columnIndex,s=n.isCollapsed;if(!0===r&&o>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:t.headerStateManager.levelToRowCoords(i),col:a}}));this.toggleCollapsibleSection(n,e)}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(e,t){var n=this;if(!b.has(t))throw new Error("Unsupported action is passed (".concat(t,")."));if(Array.isArray(e)){var r=(0,m.arrayFilter)(e,(function(e){return e.row<0})),i=r.length>0;(0,m.arrayEach)(r,(function(e){var r,o=e.row,a=e.col,s=null!==(r=n.headerStateManager.getHeaderSettings(o,a))&&void 0!==r?r:{},l=s.collapsible,u=s.isCollapsed;if(!l||u&&"collapse"===t||!u&&"expand"===t)return i=!1,!1}));var a=[],s=[];i&&(0,m.arrayEach)(r,(function(e){var r=e.row,i=e.col,l=n.headerStateManager.triggerNodeModification(t,r,i),u=l.colspanCompensation,c=l.affectedColumns,d=l.rollbackModification;u>0&&(s.push.apply(s,(0,o.default)(c)),a.push(d))}));var l=this.getCollapsedColumns(),u=[];"collapse"===t?u=(0,m.arrayUnique)([].concat((0,o.default)(l),s)):"expand"===t&&(u=(0,m.arrayFilter)(l,(function(e){return!s.includes(e)})));var c=b.get(t);if(!1!==this.hot.runHooks(c.beforeHook,l,u,i)){this.hot.batchExecution((function(){(0,m.arrayEach)(s,(function(e){(0,f.default)(n,A).setValueAtIndex(n.hot.toPhysicalColumn(e),c.hideColumn)}))}),!0);var d=this.getCollapsedColumns().length!==l.length;this.hot.runHooks(c.afterHook,l,u,i,d),this.hot.render(),this.hot.view.adjustElementsSize(!0)}else(0,m.arrayEach)(a,(function(e){e()}))}}},{key:"getCollapsedColumns",value:function(){return(0,f.default)(this,A).getHiddenIndexes()}},{key:"onAfterGetColHeader",value:function(e,t,n){var r,o,i=null!==(r=this.headerStateManager.getHeaderSettings(n,e))&&void 0!==r?r:{},a=i.collapsible,s=i.origColspan,l=i.isCollapsed,u=a&&s>1&&e>=this.hot.getSettings().fixedColumnsStart,c=t.querySelector(".".concat("collapsibleIndicator"));u?(c||(c=this.hot.rootDocument.createElement("div"),(0,E.addClass)(c,"collapsibleIndicator"),t.querySelector("div:first-child").appendChild(c)),(0,E.removeClass)(c,["collapsed","expanded"]),l?((0,E.addClass)(c,"collapsed"),(0,E.fastInnerText)(c,"+")):((0,E.addClass)(c,"expanded"),(0,E.fastInnerText)(c,"-"))):null===(o=c)||void 0===o||o.remove()}},{key:"onBeforeOnCellMouseDown",value:function(e,t){(0,E.hasClass)(e.target,"collapsibleIndicator")&&((0,E.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,E.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,C.stopImmediatePropagation)(e))}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,p.default)(this,A,null),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return S}},{key:"PLUGIN_PRIORITY",get:function(){return 290}},{key:"PLUGIN_DEPS",get:function(){return["plugin:NestedHeaders"]}},{key:"SETTING_KEYS",get:function(){return[S].concat(O)}}]),n}(g.BasePlugin);t.CollapsibleColumns=N},function(e,t,n){"use strict";n(9),n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var o=r(n(32)),i=r(n(26)),a=r(n(109));n(89),n(39),n(1),n(72),n(73),n(20),n(419),n(297),n(4),n(40),n(5),n(6);var s=r(n(2)),l=r(n(3)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=n(16),p=n(24),g=n(12),m=n(58),v=n(13),y=n(38),E=n(76),T=r(n(59)),C=n(900),R=n(303),w=n(901),S=n(902),O=n(117),b=["column"],A=["column"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}t.PLUGIN_KEY="columnSorting";t.PLUGIN_PRIORITY=50;(0,O.registerRootComparator)("columnSorting",S.rootComparator),T.default.getSingleton().register("beforeColumnSort"),T.default.getSingleton().register("afterColumnSort");var _=function(e){(0,c.default)(n,e);var t=I(n);function n(e){var r;return(0,s.default)(this,n),(r=t.call(this,e)).columnStatesManager=null,r.columnMetaCache=null,r.pluginKey="columnSorting",r.indexesSequenceCache=null,r}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnStatesManager=new C.ColumnStatesManager(this.hot,"".concat(this.pluginKey,".sortingStates")),this.columnMetaCache=new E.PhysicalIndexToValueMap((function(t){var n=e.hot.toVisualColumn(t);return null===n&&(n=t),e.getMergedPluginSettings(n)})),this.hot.columnIndexMapper.registerMap("".concat(this.pluginKey,".columnMeta"),this.columnMetaCache),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("afterInit",(function(){return e.loadOrSortBySettings()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.hot.view&&this.loadOrSortBySettings(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,t=function(t,n){var r=(0,R.getHeaderSpanElement)(n);!1!==(0,R.isFirstLevelColumnHeader)(t,n)&&null!==r&&e.updateHeaderClasses(r)};this.hot.addHook("afterGetColHeader",t),this.hot.addHookOnce("afterViewRender",(function(){e.hot.removeHook("afterGetColHeader",t)})),this.hot.batchExecution((function(){null!==e.indexesSequenceCache&&(e.hot.rowIndexMapper.setIndexesSequence(e.indexesSequenceCache.getValues()),e.hot.rowIndexMapper.unregisterMap(e.pluginKey))}),!0),this.hot.columnIndexMapper.unregisterMap("".concat(this.pluginKey,".columnMeta")),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,r)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new E.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),r&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,r?n:t,r),r&&(this.hot.render(),this.hot.forceFullRender=!1,this.hot.view.render()))}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){return(0,p.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}},{key:"setSortConfig",value:function(e){var t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}},{key:"areValidSortConfigs",value:function(e){var t=this.hot.countCols();return(0,R.areValidSortStates)(e)&&e.every((function(e){var n=e.column;return n<=t&&n>=0}))}},{key:"saveAllSortSettings",value:function(e){var t=this,n=this.columnStatesManager.getAllColumnsProperties();n.initialConfig=(0,v.arrayMap)(e,(function(e){var n=e.column,r=(0,a.default)(e,b);return M({column:t.hot.toPhysicalColumn(n)},r)})),this.hot.runHooks("persistentStateSave","columnSorting",n)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value;return(0,p.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,v.arrayMap)(n.initialConfig,(function(t){var n=t.column,r=(0,a.default)(t,A);return M({column:e.hot.toVisualColumn(n)},r)}))),n}},{key:"getColumnNextConfig",value:function(e){var t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,p.isDefined)(t)){var n=(0,R.getNextSortOrder)(t);return(0,p.isDefined)(n)?{column:e,sortOrder:n}:void 0}var r=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<r)return{column:e,sortOrder:(0,R.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"append",n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,i=this.getSortConfig(),a=this.getColumnNextConfig(e);if(r){if((0,p.isUndefined)(a))return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)));if("append"===t)return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)),[a]);if("replace"===t)return[].concat((0,o.default)(i.slice(0,n)),[a],(0,o.default)(i.slice(n+1)))}return(0,p.isDefined)(a)?i.concat(a):i}},{key:"getPluginColumnConfig",value:function(e){if((0,g.isObject)(e)){var t=e[this.pluginKey];if((0,g.isObject)(t))return t}return{}}},{key:"getMergedPluginSettings",value:function(e){var t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),o=Object.getPrototypeOf(r);return Array.isArray(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns[e])):(0,m.isFunction)(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns(e))):Object.assign(n,t)}},{key:"getFirstCellSettings",value:function(e){var t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(e){var t=this;if(0!==e.length){for(var n=[],r=this.hot.countRows(),o=function(n){return(0,v.arrayMap)(e,(function(e){return t.hot.getDataAtCell(n,e.column)}))},i=0;i<this.getNumberOfRowsToSort(r);i+=1)n.push([this.hot.toPhysicalRow(i)].concat(o(i)));var a=(0,v.arrayMap)(n,(function(e){return e[0]}));(0,O.sort)(n,this.pluginKey,(0,v.arrayMap)(e,(function(e){return e.sortOrder})),(0,v.arrayMap)(e,(function(e){return t.getFirstCellSettings(e.column)})));for(var s=n.length;s<r;s+=1)n.push([s].concat(o(s)));var l=(0,v.arrayMap)(n,(function(e){return e[0]})),u=new Map((0,v.arrayMap)(a,(function(e,t){return[e,l[t]]}))),c=(0,v.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),(function(e){return u.has(e)?u.get(e):e}));this.hot.rowIndexMapper.setIndexesSequence(c)}else this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues())}},{key:"loadOrSortBySettings",value:function(){var e=this.getAllSavedSortSettings();if((0,g.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,g.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,g.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,R.getHeaderSpanElement)(t);if(!1!==(0,R.isFirstLevelColumnHeader)(e,t)&&null!==n){var r=this.getFirstCellSettings(e)[this.pluginKey],o=r.indicator,i=r.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,e,o,i)}}},{key:"updateHeaderClasses",value:function(e){if((0,f.removeClass)(e,(0,w.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,f.addClass)(e,w.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){(0,u.default)((0,h.default)(n.prototype),"onUpdateSettings",this).call(this),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,p.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.target.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){!1!==(0,R.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,R.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 50}}]),n}(y.BasePlugin);t.ColumnSorting=_},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.ColumnStatesManager=void 0,n(31),n(222),n(65);var o=r(n(26)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=n(12),u=n(76),c=n(24);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],f=function(){function e(t,n){(0,a.default)(this,e),this.hot=t,this.sortingStates=new u.LinkedPhysicalIndexToValueMap,this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0,this.mapName=n,this.hot.columnIndexMapper.registerMap(n,this.sortingStates)}return(0,s.default)(e,[{key:"updateAllColumnsProperties",value:function(e){var t=this;(0,l.isObject)(e)&&(0,l.objectEach)(e,(function(e,n){h.includes(n)&&(t[n]=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:"getSortOrderOfColumn",value:function(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}},{key:"getIndexOfColumnInSortQueue",value:function(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((function(t){return(0,i.default)(t,1)[0]===e}))}},{key:"getNumberOfSortedColumns",value:function(){return this.sortingStates.getLength()}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return(0,l.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}},{key:"getSortStates",value:function(){var e=this;return null===this.sortingStates?[]:this.sortingStates.getEntries().map((function(t){var n=(0,i.default)(t,2),r=n[0],a=n[1];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({column:e.hot.toVisualColumn(r)},a)}))}},{key:"getColumnSortState",value:function(e){var t=this.getSortOrderOfColumn(e);if((0,c.isDefined)(t))return{column:e,sortOrder:t}}},{key:"setSortStates",value:function(e){this.sortingStates.clear();for(var t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}]),e}();t.ColumnStatesManager=f},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n,o){var a=["columnSorting"];o&&a.push("sortAction");if(!1===n)return a.push("indicatorDisabled"),a;var s=e.getSortOrderOfColumn(t);(0,r.isDefined)(s)&&a.push(i.get(s));return a},t.getClassesToRemove=function(){return Array.from(i.values()).concat("sortAction","indicatorDisabled","columnSorting")},n(4),n(40),n(1),n(5),n(6),n(20),n(48);var r=n(24),o=n(303),i=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a,s,l,u,c,d,h=(0,o.default)(n).slice(1),f=(0,o.default)(r).slice(1);return s=e[a=0],l=t[a],u=h[a],c=f[a],((d=l.columnSorting).compareFunctionFactory?d.compareFunctionFactory:(0,i.getCompareFunctionFactory)(l.type))(s,l,d)(u,c)}},n(39);var o=r(n(611)),i=n(117)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(t,i){var a=parseFloat(t),s=parseFloat(i),l=n.sortEmptyCells;if(a===s||isNaN(a)&&isNaN(s))return o.DO_NOT_SWAP;if(l){if((0,r.isEmpty)(t))return"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND;if((0,r.isEmpty)(i))return"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND}return isNaN(a)?o.FIRST_AFTER_SECOND:isNaN(s)?o.FIRST_BEFORE_SECOND:a<s?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:a>s?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP}};var r=n(24),o=n(117);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var a=t.checkedTemplate,s=t.uncheckedTemplate,l=n.sortEmptyCells;return function(u,c){var d=(0,i.isEmpty)(u),h=(0,i.isEmpty)(c),f=d?s:u,p=h?s:c,g=f===s||f===a,m=p===s||p===a;if(!1===l){if(d&&!1===h)return r.FIRST_AFTER_SECOND;if(!1===d&&h)return r.FIRST_BEFORE_SECOND}return!1===g&&m?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:g&&!1===m?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!1===g&&!1===m?(0,o.compareFunctionFactory)(e,t,n)(u,c):f===s&&p===a?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:f===a&&p===s?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}};var r=n(117),o=n(613),i=n(24);t.COLUMN_DATA_TYPE="checkbox"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(r,s){var l=n.sortEmptyCells;if(r===s)return a.DO_NOT_SWAP;if((0,i.isEmpty)(r))return(0,i.isEmpty)(s)?a.DO_NOT_SWAP:l&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,i.isEmpty)(s))return l&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;var u=t.dateFormat,c=(0,o.default)(r,u),d=(0,o.default)(s,u);return c.isValid()?d.isValid()?d.isAfter(c)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:d.isBefore(c)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}};var o=r(n(95)),i=n(24),a=n(117);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";t.__esModule=!0,t.FIRST_BEFORE_SECOND=t.FIRST_AFTER_SECOND=t.DO_NOT_SWAP=void 0,t.sort=function(e,t){for(var n=(0,r.getRootComparator)(t),o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];e.sort(n.apply(void 0,i))},n(89);var r=n(612);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var r=n(908);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSummary=r.ColumnSummary},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var o=r(n(64));n(20),n(22),n(51),n(82);var i,a=r(n(2)),s=r(n(3)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(38),f=n(12),p=r(n(909)),g=n(66),m=n(911);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.PLUGIN_KEY="columnSummary";t.PLUGIN_PRIORITY=220;var y=function(e){(0,u.default)(n,e);var t=v(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).endpoints=null,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.endpoints=new p.default(this,this.settings),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeCreateRow",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_row",t,n,null,r)})),this.addHook("beforeCreateCol",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_col",t,n,null,r)})),this.addHook("beforeRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("beforeRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterCreateRow",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_row",t,n,null,r)})),this.addHook("afterCreateCol",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_col",t,n,null,r)})),this.addHook("afterRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("afterRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterRowMove",(function(){return e.onAfterRowMove.apply(e,arguments)})),(0,l.default)((0,d.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(e){var t=this,n=0;return(0,f.objectEach)(e.ranges,(function(r){n+=t.getPartialSum(r,e.sourceColumn)})),n}},{key:"getPartialSum",value:function(e,t){var n=0,r=e[1]||e[0],o=null,i=0;do{if(o=this.getCellValue(r,t),null!==(o=(0,m.isNullishOrNaN)(o)?null:o)){var a=("".concat(o).split(".")[1]||[]).length||1;a>i&&(i=a)}n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*Math.pow(10,i))/Math.pow(10,i)}},{key:"calculateMinMax",value:function(e,t){var n=this,r=null;return(0,f.objectEach)(e.ranges,(function(o){var i=n.getPartialMinMax(o,e.sourceColumn,t);if(null===r&&null!==i&&(r=i),null!==i)switch(t){case"min":r=Math.min(r,i);break;case"max":r=Math.max(r,i)}})),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t),r=(0,m.isNullishOrNaN)(r)?null:r,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}i-=1}while(i>=e[0]);return o}},{key:"countEmpty",value:function(e,t){var n,r=0,o=e[1]||e[0];do{n=this.getCellValue(o,t),null===(n=(0,m.isNullishOrNaN)(n)?null:n)&&(r+=1),o-=1}while(o>=e[0]);return r}},{key:"countEntries",value:function(e){var t=this,n=0,r=e.ranges;return(0,f.objectEach)(r,(function(r){var o=void 0===r[1]?1:r[1]-r[0]+1,i=t.countEmpty(r,e.sourceColumn);n+=o,n-=i})),n}},{key:"calculateAverage",value:function(e){return this.calculateSum(e)/this.countEntries(e)}},{key:"getCellValue",value:function(e,t){var n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t),a=this.hot.getSourceDataAtCell(e,t),s="";if(null!==n&&null!==r&&(s=this.hot.getCellMeta(n,r).className||""),s.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof a&&(a=a.replace(/,/,".")),a=parseFloat(a)),isNaN(a)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error((0,g.toSingleLine)(i||(i=(0,o.default)(["ColumnSummary plugin: cell at (",", ",") is not in a \n numeric format. Cannot do the calculation."],["ColumnSummary plugin: cell at (",", ",") is not in a\\x20\n numeric format. Cannot do the calculation."])),e,t));return a}},{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:"onAfterRowMove",value:function(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSummary"}},{key:"PLUGIN_PRIORITY",get:function(){return 220}}]),n}(h.BasePlugin);t.ColumnSummary=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(22),n(1),n(910);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(74),l=function(){function e(t,n){(0,o.default)(this,e),this.plugin=t,this.hot=this.plugin.hot,this.endpoints=[],this.settings=n,this.settingsType="array",this.currentEndpoint=null,this.cellsToSetCache=[]}return(0,i.default)(e,[{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 t=this,n=[],r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),(0,a.arrayEach)(r,(function(e){var r={};t.assignSetting(e,r,"ranges",[[0,t.hot.countRows()-1]]),t.assignSetting(e,r,"reversedRowCoords",!1),t.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"sourceColumn",e.destinationColumn),t.assignSetting(e,r,"type","sum"),t.assignSetting(e,r,"forceNumeric",!1),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"customFunction",null),t.assignSetting(e,r,"readOnly",!0),t.assignSetting(e,r,"roundFloat",!1),n.push(r)})),n;this.settingsType="function"}},{key:"assignSetting",value:function(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}},{key:"resetSetupBeforeStructureAlteration",value:function(e,t,n){if("function"===this.settingsType){var r=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();(0,a.arrayEach)(o,(function(o){"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,r,o){var i=this,s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var l=e.indexOf("row")>-1?"row":"col",u=e.indexOf("remove")>-1?-1:1,c=this.getAllEndpoints(),d=0===e.indexOf("move_row"),h=t;(0,a.arrayEach)(c,(function(e){"row"===l&&e.destinationRow>=h&&(e.alterRowOffset=u*n),"col"===l&&e.destinationColumn>=h&&(e.alterColumnOffset=u*n)})),this.resetAllEndpoints(c,!d),d?(0,a.arrayEach)(c,(function(e){i.extendEndpointRanges(e,h,r[0],r.length),i.recreatePhysicalRanges(e),i.clearOffsetInformation(e)})):(0,a.arrayEach)(c,(function(e){i.shiftEndpointCoordinates(e,h)})),s&&this.refreshAllEndpoints()}else{var f=function e(){return i.hot.removeHook("beforeViewRender",e),i.refreshAllEndpoints()};this.hot.addHookOnce("beforeViewRender",f)}}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,r){(0,a.arrayEach)(e.ranges,(function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}},{key:"recreatePhysicalRanges",value:function(e){var t=this,n=e.ranges,r=[],o=[];(0,a.arrayEach)(n,(function(e){var n=[];if(e[1])for(var r=e[0];r<=e[1];r++)n.push(t.hot.toPhysicalRow(r));else n.push(t.hot.toPhysicalRow(e[0]));o.push(n)})),(0,a.arrayEach)(o,(function(e){var t=[];(0,a.arrayEach)(e,(function(n,o){0===o?t.push(n):e[o]!==e[o-1]+1&&(t.push(e[o-1]),r.push(t),(t=[]).push(n)),o===e.length-1&&(t.push(n),r.push(t))}))})),e.ranges=r}},{key:"shiftEndpointCoordinates",value:function(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,a.arrayEach)(e.ranges,(function(n){(0,a.arrayEach)(n,(function(r,o){r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.some((function(t){var n=t.alterRowOffset||0,r=t.alterColumnOffset||0;return t.destinationRow+n>=e.hot.countRows()||t.destinationColumn+r>=e.hot.countCols()}));r||(this.cellsToSetCache=[],(0,a.arrayEach)(t,(function(t){e.resetEndpointValue(t,n)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}},{key:"refreshAllEndpoints",value:function(){var e=this;this.cellsToSetCache=[],(0,a.arrayEach)(this.getAllEndpoints(),(function(t){e.currentEndpoint=t,e.plugin.calculate(t),e.setEndpointValue(t,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var t=this,n=[];this.cellsToSetCache=[],(0,a.arrayEach)(e,(function(e,r,o){"".concat(e[2]||"")!=="".concat(e[3])&&(0,a.arrayEach)(t.getAllEndpoints(),(function(e,i){t.hot.propToCol(o[r][1])===e.sourceColumn&&-1===n.indexOf(i)&&n.push(i)}))})),(0,a.arrayEach)(n,(function(e){t.refreshEndpoint(t.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){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.alterRowOffset||0,r=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}},{key:"setEndpointValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())this.throwOutOfBoundsWarning();else{var o=this.hot.toVisualRow(e.destinationRow);if(null!==o){var i=this.hot.getCellMeta(o,e.destinationColumn);"init"!==t&&i.readOnly===e.readOnly||(i.readOnly=e.readOnly,i.className="columnSummaryResult")}e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),n?this.hot.setDataAtCell(r,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([r,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}}},{key:"throwOutOfBoundsWarning",value:function(){(0,s.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(25),o=n(30),i=n(115),a=n(409),s=n(425),l=n(29),u=RangeError,c=String,d=Math.floor,h=o(s),f=o("".slice),p=o(1..toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}))},{toFixed:function(e){var t,n,r,o,s=a(this),l=i(e),d=[0,0,0,0,0,0],p="",E="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(d,0,n),r=l;r>=7;)m(d,1e7,0),r-=7;for(m(d,g(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<<r),m(d,1,1),v(d,2),E=y(d)}else m(d,0,n),m(d,1<<-t,0),E=y(d)+h("0",l);return E=l>0?p+((o=E.length)<=l?"0."+h("0",l-o)+E:f(E,0,o-l)+"."+f(E,o-l)):p+E}})},function(e,t,n){"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var r=n(913);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Comments=r.Comments},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var i=r(n(26)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8));n(4),n(1),n(5),n(7),n(6);var f=n(16),p=n(12),g=r(n(49)),m=n(38),v=r(n(914)),y=n(96),E=r(n(915)),T=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}n(916);t.PLUGIN_KEY="comments";t.PLUGIN_PRIORITY=60;var w=new WeakMap,S=function(e){(0,c.default)(n,e);var t=R(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).editor=null,r.displaySwitch=null,r.eventManager=null,r.range={},r.preventEditorAutoSwitch=!1,w.set((0,l.default)(r),{tempEditorDimensions:{},cellBelowCursor:null}),r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new v.default(this.hot.rootDocument,this.hot.isRtl())),this.eventManager||(this.eventManager=new g.default(this)),this.displaySwitch||(this.displaySwitch=new E.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addToContextMenu(t)})),this.addHook("afterRenderer",(function(t,n,r,o,i,a){return e.onAfterRenderer(t,a)})),this.addHook("afterScrollHorizontally",(function(){return e.hide()})),this.addHook("afterScrollVertically",(function(){return e.hide()})),this.addHook("afterBeginEditing",(function(){return e.hide()})),this.displaySwitch.addLocalHook("hide",(function(){return e.hide()})),this.displaySwitch.addLocalHook("show",(function(t,n){return e.showAtCell(t,n)})),this.registerListeners(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this,t=this.hot.rootDocument;this.eventManager.addEventListener(t,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(t,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",(function(){return e.onEditorBlur()})),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",(function(t){return e.onEditorMouseDown(t)})),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",(function(t){return e.onEditorMouseUp(t)}))}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,f.closest)(e.target,"TD","TBODY");return!!(t&&(0,f.hasClass)(t,"htCommentCell")&&(0,f.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 r=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(r,o,(0,i.default)({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];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,"comment"),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{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.range.from,t=e.row,n=e.col;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;var r=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.editor.setValue(r.comment?r.comment.value:""),this.editor.show(),this.refreshEditor(!0),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hide()}},{key:"refreshEditor",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n||this.range.from&&this.editor.isVisible()){var r=this.hot,o=r.rowIndexMapper,i=r.columnIndexMapper,a=this.range.from,s=a.row,l=a.col,u=o.getRenderableFromVisualIndex(s),c=i.getRenderableFromVisualIndex(l),d=null===u;this.editor.setPosition(0,0),null===u&&(u=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1))),null===c&&(c=i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(l,-1)));var h=null===u,p=null===c;u=null!==(e=u)&&void 0!==e?e:0,c=null!==(t=c)&&void 0!==t?t:0;var g=this.hot,m=g.rootWindow,v=g.view._wt,y=v.wtTable,E=v.getCell({row:u,col:c},!0),T=this.getCommentMeta(s,l,"style");T?this.editor.setSize(T.width,T.height):this.editor.resetSize();var C=p?0:y.getStretchedColumnWidth(c),R=d&&!h?(0,f.outerHeight)(E):0,w=E.getBoundingClientRect(),S=w.left,O=w.top,b=w.width,A=w.height,N=this.editor.getSize(),M=N.width,I=N.height,_=this.hot.rootWindow,k=_.innerWidth,P=_.innerHeight,x=this.hot.rootDocument.documentElement,L=S+m.scrollX+C,D=O+m.scrollY+R;this.hot.isRtl()&&(L-=M+C),this.hot.isLtr()&&S+b+M>k?L=S+m.scrollX-M-1:this.hot.isRtl()&&L<-(x.scrollWidth-x.clientWidth)&&(L=S+m.scrollX+C+1),O+I>P&&(D-=I-A+1),this.editor.setPosition(L,D),this.editor.setReadOnlyState(this.getCommentMeta(s,l,"readOnly"))}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.getTopStartCorner();return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var r,o=this.hot.getCellMeta(e,t).comment;o?(r=(0,p.deepClone)(o),(0,p.deepExtend)(r,n)):r=n,this.hot.setCellMeta(e,t,"comment",r)}},{key:"getCommentMeta",value:function(e,t,n){var r=this.hot.getCellMeta(e,t);if(r.comment)return r.comment[n]}},{key:"onMouseDown",value:function(e){if(this.hot.view&&this.hot.view._wt&&!this.preventEditorAutoSwitch&&!this.targetIsCommentTextArea(e)){var t=(0,f.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}},{key:"onMouseOver",value:function(e){var t=w.get(this),n=this.hot.rootDocument;if(!(this.preventEditorAutoSwitch||this.editor.isFocused()||(0,f.hasClass)(e.target,"wtBorder")||t.cellBelowCursor===e.target)&&this.editor)if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),this.targetIsCellWithComment(e)){var r=this.hot._createCellRange(this.hot.getCoords(e.target));this.displaySwitch.show(r)}else(0,f.isChildOf)(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.preventEditorAutoSwitch=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,f.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){w.get(this).tempEditorDimensions={width:(0,f.outerWidth)(e.target),height:(0,f.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=w.get(this),n=(0,f.outerWidth)(e.target),r=(0,f.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,i.default)({},"style",{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,this.displaySwitch.cancelHiding(),this.setRange({from:e.highlight}),this.show(),this.hot.deselectCell(),this.editor.focus()}},{key:"onContextMenuRemoveComment",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,t.forAll((function(t,n){t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,t.forAll((function(t,n){if(t>=0&&n>=0){var r=!!e.getCommentMeta(t,n,"readOnly");e.updateCommentMeta(t,n,(0,i.default)({},"readOnly",!r))}}))}},{key:"addToContextMenu",value:function(e){var t=this,n=function(){return t.hot.rowIndexMapper.getRenderableIndexesLength()>0&&t.hot.columnIndexMapper.getRenderableIndexesLength()>0};e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(T.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,y.checkSelectionConsistency)(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n).comment;if(r&&(r=r.readOnly),r)return!0}))&&(t=(0,y.markLabelAsSelected)(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner()&&t.checkSelectionCommentsConsistency())}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,p.isObject)(e))return e.displayDelay}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"comments"}},{key:"PLUGIN_PRIORITY",get:function(){return 60}}]),n}(m.BasePlugin);t.Comments=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.rootDocument=t,this.isRtl=n,this.container=null,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return(0,i.default)(e,[{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:"getSize",value:function(){return{width:(0,a.outerWidth)(this.getInputElement()),height:(0,a.outerHeight)(this.getInputElement())}}},{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.hidden||(this.editorStyle.display="none"),this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=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 t=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return t.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),(0,a.addClass)(this.container,e.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),(0,a.addClass)(t,e.CLASS_EDITOR),(0,a.addClass)(n,e.CLASS_INPUT),t.appendChild(n),this.container.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.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)}}],[{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"}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(67);var o=r(n(2)),i=r(n(3)),a=n(58),s=n(12),l=r(n(86)),u=function(){function e(t){(0,o.default)(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return(0,i.default)(e,[{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(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,a.debounce)((function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)}),t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();(0,s.mixin)(u,l.default);var c=u;t.default=c},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0;var r=n(918);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ContextMenu=r.ContextMenu},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0,n(20);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=r(n(59)),f=n(13),p=r(n(614)),g=r(n(49)),m=r(n(615)),v=r(n(305)),y=n(16),E=n(110);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(932);t.PLUGIN_KEY="contextMenu";t.PLUGIN_PRIORITY=70,h.default.getSingleton().register("afterContextMenuDefaultOptions"),h.default.getSingleton().register("beforeContextMenuShow"),h.default.getSingleton().register("afterContextMenuShow"),h.default.getSingleton().register("afterContextMenuHide"),h.default.getSingleton().register("afterContextMenuExecute");var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new g.default((0,a.default)(r)),r.commandExecutor=new p.default(r.hot),r.itemsFactory=null,r.menu=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().contextMenu;"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new v.default(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),this.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),this.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),this.addHook("afterOnCellContextMenu",(function(t){return e.onAfterOnCellContextMenu(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){if(this.menu&&(this.prepareMenuItems(),this.menu.open(),this.menu.isOpened())){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect(),o=r.top,i=r.left;t=o-(0,y.getWindowScrollTop)(e.view),n=i-(0,y.getWindowScrollLeft)(e.view)}else t=-1*(0,y.getWindowScrollTop)(this.menu.hotMenu.rootWindow),n=-1*(0,y.getWindowScrollLeft)(this.menu.hotMenu.rootWindow);this.menu.setPosition({top:parseInt(e.pageY,10)+t,left:parseInt(e.pageX,10)+n})}}},{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,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"prepareMenuItems",value:function(){var e=this;this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,r={items:this.itemsFactory.getItems(t)};this.hot.runHooks("afterContextMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);var o=this.itemsFactory.getItems(t);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,f.arrayEach)(o,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,r=t.colHeaders;var o=e.target;this.close(),(0,y.hasClass)(o,"handsontableInput")||(e.preventDefault(),e.stopPropagation(),(n||r||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||(0,y.hasClass)(o,"current")&&(0,y.hasClass)(o,"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,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"contextMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 70}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{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]}}]),n}(d.BasePlugin);t.ContextMenu=C,C.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:l,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return 0===this.countRows()||0===this.countCols()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(l,":left"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htLeft"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,o.align)(t,"horizontal","htLeft",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":center"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htCenter"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,o.align)(t,"horizontal","htCenter",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":right"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htRight"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,o.align)(t,"horizontal","htRight",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":justify"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htJustify"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,o.align)(t,"horizontal","htJustify",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{name:i.KEY},{key:"".concat(l,":top"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htTop"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,o.align)(t,"vertical","htTop",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":middle"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htMiddle"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,o.align)(t,"vertical","htMiddle",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(l,":bottom"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htBottom"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,o.align)(t,"vertical","htBottom",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1}]}}},n(22);var o=n(96),i=n(304),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l="alignment";t.KEY=l},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:s,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col,r=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),r,"ContextMenu.clearColumn")},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByColumnHeader()}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s="clear_column";t.KEY=s},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_left",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(){var e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countCols():this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="col_left"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_right",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(){var e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="col_right"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:l,name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_READ_ONLY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){return e.getCellMeta(t,n).readOnly}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.checkSelectionConsistency)(t,(function(t,n){return e.getCellMeta(t,n).readOnly}));(0,i.arrayEach)(t,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"readOnly",!n)}))})),this.render()},disabled:function(){return!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))}}};var o=n(96),i=n(13),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l="make_read_only";t.KEY=l},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"redo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="redo"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.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(){if(!this.isColumnModificationAllowed())return!0;if(!(0,a.getValidSelection)(this))return!0;var e=this.countCols();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByRowHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveColumn}}};var i=r(n(21)),a=n(96),s=n(229),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var c="remove_col";t.KEY=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.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(){if(!(0,a.getValidSelection)(this))return!0;var e=this.countRows();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByColumnHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveRow}}};var i=r(n(21)),a=n(96),s=n(229),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var c="remove_row";t.KEY=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_above",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(){var e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countRows():this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="row_above"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_below",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(){var e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(96),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="row_below"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"no_items",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var r=n(18);t.KEY="no_items"},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"undo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="undo"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e);var r,i,s,l,u,c,d=(0,a.getWindowScrollTop)(n),h=(0,a.getWindowScrollLeft)(n);this.rootWindow=n,this.type=this.getSourceType(t),"literal"===this.type?(r=parseInt(t.top,10),s=parseInt(t.left,10),u=t.height||0,c=t.width||0,i=r,l=s,r+=d,s+=h):"event"===this.type&&(r=parseInt(t.pageY,10),s=parseInt(t.pageX,10),u=t.target.clientHeight,c=t.target.clientWidth,i=r-d,l=s-h),this.top=r,this.topRelative=i,this.left=s,this.leftRelative=l,this.scrollTop=d,this.scrollLeft=h,this.cellHeight=u,this.cellWidth=c}return(0,i.default)(e,[{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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}();t.default=s},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var r=n(934);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CopyPaste=r.CopyPaste},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=r(n(26)),p=r(n(78)),g=r(n(79));n(83),n(20),n(4),n(40),n(1),n(5),n(6),n(65),n(35),n(48),n(51),n(7),n(232);var m=n(38),v=r(n(59)),y=n(587),E=n(13),T=n(84),C=n(16),R=r(n(935)),w=r(n(936)),S=r(n(937)),O=r(n(938)),b=r(n(939)),A=r(n(940)),N=n(942),M=n(943),I=n(285);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}function k(e,t){x(e,t),t.add(e)}function P(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n(944),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 L="copyPaste";t.PLUGIN_KEY=L;t.PLUGIN_PRIORITY=80;var D=["fragmentSelection"],F=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join(""),U=new WeakMap,H=new WeakMap,V=new WeakMap,j=new WeakMap,B=new WeakMap,W=new WeakMap,Y=new WeakMap,G=new WeakSet,z=function(e){(0,c.default)(n,e);var t=_(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),k((0,l.default)(e),G),(0,f.default)((0,l.default)(e),"columnsLimit",1/0),(0,f.default)((0,l.default)(e),"rowsLimit",1/0),(0,f.default)((0,l.default)(e),"pasteMode","overwrite"),(0,f.default)((0,l.default)(e),"uiContainer",e.hot.rootDocument.body),P((0,l.default)(e),U,{writable:!0,value:!1}),P((0,l.default)(e),H,{writable:!0,value:!1}),P((0,l.default)(e),V,{writable:!0,value:!1}),P((0,l.default)(e),j,{writable:!0,value:"cells-only"}),P((0,l.default)(e),B,{writable:!0,value:!1}),P((0,l.default)(e),W,{writable:!0,value:!1}),P((0,l.default)(e),Y,{writable:!0,value:new M.CopyableRangesFactory({countRows:function(){return e.hot.countRows()},countColumns:function(){return e.hot.countCols()},rowsLimit:function(){return e.rowsLimit},columnsLimit:function(){return e.columnsLimit},countColumnHeaders:function(){return e.hot.view.getColumnHeadersCount()}})}),(0,f.default)((0,l.default)(e),"copyableRanges",[]),(0,f.default)((0,l.default)(e),"focusableElement",void 0),e}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[L]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t,r,o=this.hot.getSettings()[L];if("object"===(0,i.default)(o))this.pasteMode=null!==(t=o.pasteMode)&&void 0!==t?t:this.pasteMode,this.rowsLimit=isNaN(o.rowsLimit)?this.rowsLimit:o.rowsLimit,this.columnsLimit=isNaN(o.columnsLimit)?this.columnsLimit:o.columnsLimit,(0,g.default)(this,U,!!o.copyColumnHeaders),(0,g.default)(this,H,!!o.copyColumnGroupHeaders),(0,g.default)(this,V,!!o.copyColumnHeadersOnly),this.uiContainer=null!==(r=o.uiContainer)&&void 0!==r?r:this.uiContainer;this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterOnCellMouseUp",(function(){return e.onAfterOnCellMouseUp()})),this.addHook("afterSelectionEnd",(function(){return e.onAfterSelectionEnd()})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()})),this.focusableElement=(0,N.createElement)(this.uiContainer),this.focusableElement.addLocalHook("copy",(function(t){return e.onCopy(t)})).addLocalHook("cut",(function(t){return e.onCut(t)})).addLocalHook("paste",(function(t){return e.onPaste(t)})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,N.destroyElement)(this.focusableElement),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only";(0,g.default)(this,j,e),(0,g.default)(this,B,!0),this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"copyCellsOnly",value:function(){this.copy("cells-only")}},{key:"copyColumnHeadersOnly",value:function(){this.copy("column-headers-only")}},{key:"copyWithAllColumnHeaders",value:function(){this.copy("with-column-group-headers")}},{key:"copyWithColumnHeaders",value:function(){this.copy("with-column-headers")}},{key:"cut",value:function(){(0,g.default)(this,W,!0),this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){return(0,y.stringify)(this.getRangedData(e))}},{key:"getRangedData",value:function(e){var t=this,n=[],r=(0,M.normalizeRanges)(e),o=r.rows,i=r.columns;return(0,E.arrayEach)(o,(function(e){var r=[];(0,E.arrayEach)(i,(function(n){e<0?r.push(t.hot.getColHeader(n,e)):r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new A.default;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){(0,p.default)(this,Y).setSelectedRange(e);var t=new Map([["headers",null],["cells",null]]);"column-headers-only"===(0,p.default)(this,j)?t.set("headers",(0,p.default)(this,Y).getMostBottomColumnHeadersRange()):("with-column-headers"===(0,p.default)(this,j)?t.set("headers",(0,p.default)(this,Y).getMostBottomColumnHeadersRange()):"with-column-group-headers"===(0,p.default)(this,j)&&t.set("headers",(0,p.default)(this,Y).getAllColumnHeadersRange()),t.set("cells",(0,p.default)(this,Y).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((function(e){return null!==e})).map((function(e){return{startRow:e.startRow,startCol:e.startCol,endRow:e.endRow,endCol:e.endCol}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);var n=t.get("cells");if(null!==n&&n.isRangeTrimmed){var r=n.startRow,o=n.startCol,i=n.endRow,a=n.endCol;this.hot.runHooks("afterCopyLimit",i-r+1,a-o+1,this.rowsLimit,this.columnsLimit)}}}},{key:"getOrCreateFocusableElement",value:function(){var e,t=null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.TEXTAREA;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(e.length){for(var n=e.length,r=e[0].length,o=[],i=t.getTopStartCorner(),a=i.row,s=i.col,l=t.getBottomEndCorner(),u=l.row,c=l.col,d=a,h=s,f=a,p=s;o.length<n||d<=u;){var g=this.hot.getCellMeta(d,s),m=g.skipRowOnPaste,v=g.visualRow;if(d=v+1,!0!==m){f=v,h=s;for(var y=[],E=o.length%n;y.length<r||h<=c;){var T=this.hot.getCellMeta(a,h),C=T.skipColumnOnPaste,R=T.visualCol;if(h=R+1,!0!==C){p=R;var w=y.length%r;y.push(e[E][w])}}o.push(y)}}return this.hot.populateFromArray(a,s,o,void 0,void 0,"CopyPaste.paste",this.pasteMode),[a,s,f,p]}}},{key:"onCopy",value:function(e){if((this.hot.isListening()||(0,p.default)(this,B))&&!this.isEditorOpened()){this.setCopyableText(),(0,g.default)(this,B,!1);var t=this.getRangedData(this.copyableRanges),n=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,G,K).call(this,this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",t,this.copyableRanges,n)){var r=(0,y.stringify)(t);if(e&&e.clipboardData){var o=(0,I._dataToHTML)(t,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[F,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.runHooks("afterCopy",t,this.copyableRanges,n)}(0,g.default)(this,j,"cells-only"),e.preventDefault()}}},{key:"onCut",value:function(e){if((this.hot.isListening()||(0,p.default)(this,W))&&!this.isEditorOpened()){this.setCopyableText(),(0,g.default)(this,W,!1);var t=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",t,this.copyableRanges)){var n=(0,y.stringify)(t);if(e&&e.clipboardData){var r=(0,I._dataToHTML)(t,this.hot.rootDocument);e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",[F,r].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",n);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",t,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=(0,T.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(n&&/(<table)|(<TABLE)/g.test(n))t=(0,I.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=(0,y.parse)(t)),(!t||0!==t.length)&&!1!==this.hot.runHooks("beforePaste",t,this.copyableRanges)){var r=this.populateValues(t),i=(0,o.default)(r,4),a=i[0],s=i[1],l=i[2],u=i[3];this.hot.selectCell(a,s,Math.min(this.hot.countRows()-1,l),Math.min(this.hot.countCols()-1,u)),this.hot.runHooks("afterPaste",t,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,R.default)(this)),(0,p.default)(this,U)&&e.items.push((0,O.default)(this)),(0,p.default)(this,H)&&e.items.push((0,S.default)(this)),(0,p.default)(this,V)&&e.items.push((0,w.default)(this)),e.items.push((0,b.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){!this.hot.isListening()||this.isEditorOpened()||this.hot.getSettings().fragmentSelection||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){this.isEditorOpened()||(this.getOrCreateFocusableElement(),this.hot.getSettings().fragmentSelection&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&(0,C.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,N.destroyElement)(this.focusableElement),this.focusableElement=null),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return L}},{key:"SETTING_KEYS",get:function(){return[L].concat(D)}},{key:"PLUGIN_PRIORITY",get:function(){return 80}}]),n}(m.BasePlugin);function K(e){for(var t=(0,M.normalizeRanges)(e).rows,n=0,r=0;r<t.length&&!(t[r]>=0);r++)n+=1;return{columnHeadersCount:n}}t.CopyPaste=z},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copyCellsOnly()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback:function(){e.copyColumnHeadersOnly()},disabled:function(){if(!this.hasColHeaders())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback:function(){e.copyWithAllColumnHeaders()},disabled:function(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name:function(){var e=this.getSelectedRangeLast(),t=e?Math.min(e.getWidth()-1,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback:function(){e.copyWithColumnHeaders()},disabled:function(){if(!this.hasColHeaders())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var r=n(18)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(941)),s=(0,o.default)((function e(){(0,i.default)(this,e),this.clipboardData=new a.default}));t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.data={}}return(0,i.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 r=n(0);t.__esModule=!0,t.createElement=function(e){var t=new d(e),n=h.get(e);return n=isNaN(n)?0:n,h.set(e,n+1),t},t.deactivateElement=f,t.destroyElement=function(e){if(!(e instanceof d))return;var t=h.get(e.container);(t=isNaN(t)?0:t)>0&&(t-=1);if(f(e),t<=0){t=0;var n=m.get(e.container);n&&n.parentNode&&(n.parentNode.removeChild(n),m.delete(e.container)),e.mainElement=null}h.set(e.container,t)},n(4),n(1),n(5),n(232),n(6),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(49)),s=r(n(86)),l=n(12),u=n(94),c=n(16),d=function(){function e(t){(0,o.default)(this,e),this.rootDocument=t.defaultView?t:t.ownerDocument,this.mainElement=null,this.eventManager=new a.default(this),this.listenersCount=new WeakSet,this.container=t}return(0,i.default)(e,[{key:"useSecondaryElement",value:function(){var e=function(e){var t=m.get(e);if(t)return t.parentElement||e.appendChild(t),t;var n=(e.defaultView?e:e.ownerDocument).createElement("textarea");return m.set(e,n),n.setAttribute("data-hot-input",""),n.className="HandsontableCopyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",e.appendChild(n),n}(this.container);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)}}]),e}();(0,l.mixin)(d,s.default);var h=new WeakMap;function f(e){e.eventManager.clear()}var p=function(e,t){return function(n){return t.runLocalHooks(e,n)}};function g(e,t,n){e.addEventListener(t,"copy",p("copy",n)),e.addEventListener(t,"cut",p("cut",n)),e.addEventListener(t,"paste",p("paste",n))}var m=new WeakMap},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.CopyableRangesFactory=void 0,t.normalizeRanges=function(e){var t=[],n=[];return(0,l.arrayEach)(e,(function(e){var r=Math.min(e.startRow,e.endRow),o=Math.max(e.startRow,e.endRow);(0,u.rangeEach)(r,o,(function(e){-1===t.indexOf(e)&&t.push(e)}));var i=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,u.rangeEach)(i,a,(function(e){-1===n.indexOf(e)&&n.push(e)}))})),{rows:t,columns:n}},n(22),n(4),n(1),n(5),n(7),n(6),n(232);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(13),u=n(36);function c(e,t){h(e,t),t.add(e)}function d(e,t,n){h(e,t),t.set(e,n)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var p=new WeakMap,g=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,T=new WeakSet,C=new WeakSet,R=function(){function e(t){var n=t.countRows,r=t.countColumns,i=t.rowsLimit,a=t.columnsLimit,l=t.countColumnHeaders;(0,o.default)(this,e),c(this,C),c(this,T),d(this,p,{writable:!0,value:void 0}),d(this,g,{writable:!0,value:void 0}),d(this,m,{writable:!0,value:void 0}),d(this,v,{writable:!0,value:void 0}),d(this,y,{writable:!0,value:void 0}),d(this,E,{writable:!0,value:void 0}),(0,s.default)(this,g,n),(0,s.default)(this,m,r),(0,s.default)(this,v,i),(0,s.default)(this,y,a),(0,s.default)(this,E,l)}return(0,i.default)(e,[{key:"setSelectedRange",value:function(e){(0,s.default)(this,p,e)}},{key:"getCellsRange",value:function(){if(0===(0,a.default)(this,g).call(this)||0===(0,a.default)(this,m).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner(),t=e.row,n=e.col,r=(0,a.default)(this,p).getBottomEndCorner(),o=r.row,i=r.col,s=f(this,C,S).call(this,t,o),l=f(this,T,w).call(this,n,i);return{isRangeTrimmed:o!==s||i!==l,startRow:t,startCol:n,endRow:s,endCol:l}}},{key:"getMostBottomColumnHeadersRange",value:function(){if(0===(0,a.default)(this,m).call(this)||0===(0,a.default)(this,E).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner().col,t=(0,a.default)(this,p).getBottomEndCorner().col,n=f(this,T,w).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-1,startCol:e,endRow:-1,endCol:n}}},{key:"getAllColumnHeadersRange",value:function(){if(0===(0,a.default)(this,m).call(this)||0===(0,a.default)(this,E).call(this))return null;var e=(0,a.default)(this,p).getTopStartCorner().col,t=(0,a.default)(this,p).getBottomEndCorner().col,n=f(this,T,w).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-(0,a.default)(this,E).call(this),startCol:e,endRow:-1,endCol:n}}}]),e}();function w(e,t){return Math.min(t,Math.max(e+(0,a.default)(this,y).call(this)-1,e))}function S(e,t){return Math.min(t,Math.max(e+(0,a.default)(this,v).call(this)-1,e))}t.CopyableRangesFactory=R},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0;var r=n(946);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CustomBorders=r.CustomBorders},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0,n(20),n(43),n(297),n(22),n(53);var i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8)),f=r(n(26)),p=n(38),g=n(12),m=n(36),v=n(13),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),E=n(947),T=n(154),C=n(295);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}t.PLUGIN_KEY="customBorders";t.PLUGIN_PRIORITY=90;var S=function(e){(0,c.default)(n,e);var t=w(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,f.default)((0,l.default)(e),"savedBorders",[]),e}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("init",(function(){return e.onAfterInit()})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,r=["top","bottom","start","end"],o=null;t&&(this.checkSettingsCohesion([t]),r=Object.keys(t),o=(0,T.normalizeBorder)(t));var a=(0,C.detectSelectionType)(e),s=(0,C.normalizeSelectionFactory)(a);(0,v.arrayEach)(e,(function(e){for(var t=s(e),a=(0,i.default)(t,4),l=a[0],u=a[1],c=a[2],d=a[3],h=function(e){for(var t=function(t){(0,v.arrayEach)(r,(function(r){n.prepareBorderFromCustomAdded(e,t,o,(0,T.toInlinePropName)(r))}))},i=u;i<=d;i+=1)t(i)},f=l;f<=c;f+=1)h(f)})),this.hot.view.render()}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=(0,C.detectSelectionType)(e),r=(0,C.normalizeSelectionFactory)(n),o=[];return(0,v.arrayEach)(e,(function(e){for(var n=r(e),a=(0,i.default)(n,4),s=a[0],l=a[1],u=a[2],c=a[3],d=function(e){for(var n=function(n){(0,v.arrayEach)(t.savedBorders,(function(t){t.row===e&&t.col===n&&o.push((0,T.denormalizeBorder)(t))}))},r=l;r<=c;r+=1)n(r)},h=s;h<=u;h+=1)d(h)})),o}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,v.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=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,r){var o=this.hot.countRows(),i=this.hot.countCols();if(!(e>=o||t>=i)){var a=(0,T.createEmptyBorders)(e,t);n&&(a=(0,T.extendDefaultBorder)(a,n),(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(e){if(a.id===e.settings.id)return Object.assign(e.settings,n),a.id=e.settings.id,a.top=e.settings.top,a.bottom=e.settings.bottom,a.start=e.settings.start,a.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(a)),this.insertBorderIntoSettings(a,r)}}},{key:"prepareBorderFromCustomAddedRange",value:function(e,t){var n=this,r=Math.min(e.to.row,this.hot.countRows()-1),o=Math.min(e.to.col,this.hot.countCols()-1);(0,m.rangeEach)(e.from.row,r,(function(r){(0,m.rangeEach)(e.from.col,o,(function(o){var i=(0,T.createEmptyBorders)(r,o),a=0;r===e.from.row&&(0,g.hasOwnProperty)(t,"top")&&(a+=1,i.top=t.top),r===e.to.row&&(0,g.hasOwnProperty)(t,"bottom")&&(a+=1,i.bottom=t.bottom),o===e.from.col&&(0,g.hasOwnProperty)(t,"start")&&(a+=1,i.start=t.start),o===e.to.col&&(0,g.hasOwnProperty)(t,"end")&&(a+=1,i.end=t.end),a>0&&(n.hot.setCellMeta(r,o,"borders",(0,T.denormalizeBorder)(i)),n.insertBorderIntoSettings(i))}))}))}},{key:"removeAllBorders",value:function(e,t){var n=(0,T.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,r){var o=this.hot.getCellMeta(e,t).borders;(o=o&&void 0!==o.border?(0,T.normalizeBorder)(o):(0,T.createEmptyBorders)(e,t),r)?(o[n]=(0,T.createSingleEmptyBorder)(),4===this.countHide(o)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(o)))):(o[n]=(0,T.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,T.denormalizeBorder)(o)))}},{key:"prepareBorder",value:function(e,t,n){var r=this;(0,v.arrayEach)(e,(function(e){var o=e.start,i=e.end;if(o.row===i.row&&o.col===i.col)"noBorders"===t?r.removeAllBorders(o.row,o.col):r.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":(0,m.rangeEach)(o.col,i.col,(function(e){(0,m.rangeEach)(o.row,i.row,(function(t){r.removeAllBorders(t,e)}))}));break;case"top":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(o.row,e,t,n)}));break;case"bottom":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(i.row,e,t,n)}));break;case"start":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,o.col,t,n)}));break;case"end":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,i.col,t,n)}))}}))}},{key:"createCustomBorders",value:function(e){var t=this;(0,v.arrayEach)(e,(function(e){var n=(0,T.normalizeBorder)(e);e.range?t.prepareBorderFromCustomAddedRange(e.range,n):t.prepareBorderFromCustomAdded(e.row,e.col,n)}))}},{key:"countHide",value:function(e){var t=[e.top,e.bottom,e.start,e.end];return(0,v.arrayReduce)(t,(function(e,t){var n=e;return t&&t.hide&&(n+=1),n}),0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,v.arrayMap)(this.hot.selection.highlight.customSelections,(function(e){return e.settings.id})).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var e=this;(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections[n].destroy(),e.hot.selection.highlight.customSelections.splice(n,1),!1}))}},{key:"hideBorders",value:function(){var e=this;(0,v.arrayEach)(this.savedBorders,(function(t){e.clearBordersFromSelectionSettings(t.id),e.clearNullCellRange()}))}},{key:"spliceBorder",value:function(e){var t=(0,v.arrayMap)(this.savedBorders,(function(e){return e.id})).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):(0,v.arrayEach)(this.savedBorders,(function(r,o){if(e.id===r.id)return t.savedBorders[o]=e,n=!0,!1})),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var r=!1;return(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(o){if(e.id===o.settings.id)return(0,g.objectEach)(o.instanceBorders,(function(e){e.toggleHiddenClass(t,n)})),r=!0,!1})),r}},{key:"checkCustomSelections",value:function(e,t,n){var r=this.countHide(e),o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):(0,v.arrayEach)(this.hot.selection.highlight.customSelections,(function(r){if(e.id===r.settings.id)return r.visualCellRange=t,r.commit(),n&&(0,g.objectEach)(r.instanceBorders,(function(t){t.changeBorderStyle(n,e)})),o=!0,!1})),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;if(Array.isArray(e)){var t=(0,g.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"checkSettingsCohesion",value:function(e){var t=(0,T.hasLeftRightTypeOptions)(e),n=(0,T.hasStartEndTypeOptions)(e);if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}},{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,E.top)(this),(0,E.right)(this),(0,E.bottom)(this),(0,E.left)(this),(0,E.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"customBorders"}},{key:"PLUGIN_PRIORITY",get:function(){return 90}}]),n}(p.BasePlugin);t.CustomBorders=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(948));t.bottom=o.default;var i=r(n(949));t.left=i.default;var a=r(n(950));t.noBorders=a.default;var s=r(n(951));t.right=s.default;var l=r(n(952));t.top=l.default},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,i.checkSelectionBorders)(this,"bottom")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"bottom");e.prepareBorder(n,"bottom",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!(0,i.checkSelectionBorders)(this)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.default=function(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,i.checkSelectionBorders)(this,"top")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(154);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var r=n(954);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DragToScroll=r.DragToScroll},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=r(n(49)),f=n(75),p=n(16);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="dragToScroll";t.PLUGIN_PRIORITY=100;var m=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new h.default((0,a.default)(r)),r.boundaries=null,r.callback=null,r.listening=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",(function(t){return e.setupListening(t)})),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.setupListening(t)})),this.registerEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),(0,s.default)((0,c.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,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=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,r)}},{key:"listen",value:function(){this.listening=!0}},{key:"unlisten",value:function(){this.listening=!1}},{key:"isListening",value:function(){return this.listening}},{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"contextmenu",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mouseup",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mousemove",(function(t){return e.onMouseMove(t)})),t=(0,p.getParentWindow)(t)}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(e){if(!(0,f.isRightClick)(e)){var t=this.hot.view._wt.wtTable.holder;t!==this.hot.rootWindow&&(this.setBoundaries(t.getBoundingClientRect()),this.setCallback((function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)})),this.listen())}}},{key:"onMouseMove",value:function(e){this.isListening()&&this.check(e.clientX,e.clientY)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dragToScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 100}}]),n}(d.BasePlugin);t.DragToScroll=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0;var r=n(956);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DropdownMenu=r.DropdownMenu},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0,n(20),n(22);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(38),h=n(13),f=r(n(614)),p=r(n(49)),g=n(16),m=r(n(615)),v=r(n(305)),y=r(n(59)),E=n(110);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(957),y.default.getSingleton().register("afterDropdownMenuDefaultOptions"),y.default.getSingleton().register("beforeDropdownMenuShow"),y.default.getSingleton().register("afterDropdownMenuShow"),y.default.getSingleton().register("afterDropdownMenuHide"),y.default.getSingleton().register("afterDropdownMenuExecute");t.PLUGIN_KEY="dropdownMenu";t.PLUGIN_PRIORITY=230;var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new p.default((0,a.default)(r)),r.commandExecutor=new f.default(r.hot),r.itemsFactory=null,r.menu=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().dropdownMenu,r={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady((function(){e.hot.runHooks("afterDropdownMenuDefaultOptions",r),e.itemsFactory.setPredefinedItems(r.items);var n=e.itemsFactory.getItems(t);e.menu&&e.menu.destroy(),e.menu=new v.default(e.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||e.hot.rootDocument.body}),e.hot.runHooks("beforeDropdownMenuSetItems",n),e.menu.setMenuItems(n),e.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),e.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),e.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),e.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),(0,h.arrayEach)(n,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}))}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"open",value:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e))}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"setListening",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if(e.stopPropagation(),(0,g.hasClass)(e.target,"changeType")&&!this.menu.isOpened()){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect();t=r.top,n=r.left}var o=e.target.getBoundingClientRect();this.open({left:o.left+n,top:o.top+e.target.offsetHeight+3+t,width:o.width,height:o.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(!(e<0||o!==r.length-1)){var i=t.querySelector(".".concat("changeType"));if(!this.enabled||!i)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className="changeType",a.type="button",a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else i&&i.parentNode.removeChild(i)}}}},{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,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dropdownMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 230}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{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]}}]),n}(d.BasePlugin);t.DropdownMenu=C,C.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0;var r=n(959);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ExportFile=r.ExportFile},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0,n(20),n(67);var i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=r(n(960)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(961));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="exportFile";t.PLUGIN_PRIORITY=240;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}},{key:"exportAsBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}},{key:"downloadFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hot,r=n.rootDocument,o=n.rootWindow,i=this._createTypeFormatter(e,t),a=this._createBlob(i),s=o.URL||o.webkitURL,l=r.createElement("a"),u="".concat(i.options.filename,".").concat(i.options.fileExtension);if(void 0!==l.download){var c=s.createObjectURL(a);l.style.display="none",l.setAttribute("href",c),l.setAttribute("download",u),r.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),r.body.removeChild(l),setTimeout((function(){s.revokeObjectURL(c)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(a,u)}},{key:"_createTypeFormatter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.EXPORT_TYPES[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return(0,h.default)(e,new d.default(this.hot),t)}},{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}}],[{key:"PLUGIN_KEY",get:function(){return"exportFile"}},{key:"PLUGIN_PRIORITY",get:function(){return 240}}]),n}(c.BasePlugin);t.ExportFile=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(36),l=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.options={}}return(0,a.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"getData",value:function(){var e=this,t=this._getDataRange(),n=t.startRow,r=t.startCol,o=t.endRow,i=t.endCol,a=this.options,l=[];return(0,s.rangeEach)(n,o,(function(t){var n=[];!a.exportHiddenRows&&e._isHiddenRow(t)||((0,s.rangeEach)(r,i,(function(r){!a.exportHiddenColumns&&e._isHiddenColumn(r)||n.push(e.hot.getDataAtCell(t,r))})),l.push(n))})),l}},{key:"getRowHeaders",value:function(){var e=this,t=[];if(this.options.rowHeaders){var n=this._getDataRange(),r=n.startRow,o=n.endRow,i=this.hot.getRowHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenRows&&e._isHiddenRow(n)||t.push(i[n])}))}return t}},{key:"getColumnHeaders",value:function(){var e=this,t=[];if(this.options.columnHeaders){var n=this._getDataRange(),r=n.startCol,o=n.endCol,i=this.hot.getColHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenColumns&&e._isHiddenColumn(n)||t.push(i[n])}))}return t}},{key:"_getDataRange",value:function(){var e=this.hot.countCols()-1,t=this.hot.countRows()-1,n=(0,o.default)(this.options.range,4),r=n[0],i=void 0===r?0:r,a=n[1],s=void 0===a?0:a,l=n[2],u=void 0===l?t:l,c=n[3],d=void 0===c?e:c;return{startRow:i=Math.max(i,0),startCol:s=Math.max(s,0),endRow:u=Math.min(u,t),endCol:d=Math.min(d,e)}}},{key:"_isHiddenRow",value:function(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}},{key:"_isHiddenColumn",value:function(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_PDF=t.TYPE_EXCEL=t.TYPE_CSV=t.EXPORT_TYPES=void 0,t.default=function(e,t,n){if("function"==typeof a[e])return new a[e](t,n);return null};var o=r(n(26)),i=r(n(962));t.TYPE_CSV="csv";t.TYPE_EXCEL="excel";t.TYPE_PDF="pdf";var a=(0,o.default)({},"csv",i.default);t.EXPORT_TYPES=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(83),n(65),n(22),n(51),n(82),n(148),n(98);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(24),d=r(n(963));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=String.fromCharCode(13),p=String.fromCharCode(34),g=String.fromCharCode(10),m=function(e){(0,a.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"export",value:function(){var e=this,t=this.options,n=this.dataProvider.getData(),r=this.dataProvider.getColumnHeaders(),o=r.length>0,i=this.dataProvider.getRowHeaders(),a=i.length>0,s=t.bom?String.fromCharCode(65279):"";return o&&(r=(0,u.arrayMap)(r,(function(t){return e._escapeCell(t,!0)})),a&&(s+=t.columnDelimiter),s+=r.join(t.columnDelimiter),s+=t.rowDelimiter),(0,u.arrayEach)(n,(function(n,r){r>0&&(s+=t.rowDelimiter),a&&(s+=e._escapeCell(i[r])+t.columnDelimiter),s+=n.map((function(t){return e._escapeCell(t)})).join(t.columnDelimiter)})),s}},{key:"_escapeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,c.stringify)(e);return""!==n&&(t||n.indexOf(f)>=0||n.indexOf(p)>=0||n.indexOf(g)>=0||n.indexOf(this.options.columnDelimiter)>=0)&&(n=n.replace(new RegExp('"',"g"),'""'),n='"'.concat(n,'"')),n}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),n}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(424);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(84),l=function(){function e(t,n){(0,o.default)(this,e),this.dataProvider=t,this.options=this._mergeOptions(n),this.dataProvider.setOptions(this.options)}return(0,i.default)(e,[{key:"_mergeOptions",value:function(t){var n=(0,a.clone)(this.constructor.DEFAULT_OPTIONS),r=new Date;return n=(0,a.extend)((0,a.clone)(e.DEFAULT_OPTIONS),n),(n=(0,a.extend)(n,t)).filename=(0,s.substitute)(n.filename,{YYYY:r.getFullYear(),MM:"".concat(r.getMonth()+1).padStart(2,"0"),DD:"".concat(r.getDate()).padStart(2,"0")}),n}}],[{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:[]}}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var r=n(965);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Filters=r.Filters},function(e,t,n){"use strict";n(9),n(7),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var i=r(n(64));n(4),n(40),n(1),n(5),n(6),n(23),n(35),n(48),n(85),n(20);var a,s=r(n(21)),l=r(n(2)),u=r(n(3)),c=r(n(33)),d=r(n(19)),h=r(n(10)),f=r(n(11)),p=r(n(8)),g=n(38),m=n(13),v=n(66),y=n(74),E=n(36),T=r(n(49)),C=n(16),R=n(110),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),S=r(n(966)),O=r(n(986)),b=r(n(988)),A=r(n(994)),N=r(n(624)),M=r(n(625)),I=r(n(995)),_=n(191),k=n(306),P=n(76);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.default)(this,n)}}n(996);t.PLUGIN_KEY="filters";t.PLUGIN_PRIORITY=250;var D=function(e){(0,h.default)(n,e);var t=L(n);function n(e){var r;return(0,l.default)(this,n),(r=t.call(this,e)).eventManager=new T.default((0,c.default)(r)),r.dropdownMenuPlugin=null,r.conditionCollection=null,r.conditionUpdateObserver=null,r.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),r.lastSelectedColumn=null,r.filtersRowsMap=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,u.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new P.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var t=this.hot.getSettings().dropdownMenu,r=t&&t.uiContainer||this.hot.rootDocument.body,o=function(t){return t.addLocalHook("accept",(function(){return e.onActionBarSubmit("accept")})),t.addLocalHook("cancel",(function(){return e.onActionBarSubmit("cancel")})),t.addLocalHook("change",(function(n){return e.onComponentChange(t,n)})),t};if(!this.components.get("filter_by_condition")){var i=new S.default(this.hot,{id:"filter_by_condition",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_CONDITION),":")},addSeparator:!1,menuContainer:r});i.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition",o(i))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new O.default(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){var a=new S.default(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:r});a.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition2",o(a))}this.components.get("filter_by_value")||this.components.set("filter_by_value",o(new b.default(this.hot,{id:"filter_by_value",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_VALUE),":")}}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",o(new A.default(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new N.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new I.default(this.hot,this.conditionCollection,(function(t){return e.getDataMapAtColumn(t)})),this.conditionUpdateObserver.addLocalHook("update",(function(t){return e.updateComponents(t)}))),this.components.forEach((function(e){return e.show()})),this.addHook("beforeDropdownMenuSetItems",(function(t){return e.onBeforeDropdownMenuSetItems(t)})),this.addHook("afterDropdownMenuDefaultOptions",(function(t){return e.onAfterDropdownMenuDefaultOptions(t)})),this.addHook("afterDropdownMenuShow",(function(){return e.onAfterDropdownMenuShow()})),this.addHook("afterDropdownMenuHide",(function(){return e.onAfterDropdownMenuHide()})),this.addHook("afterChange",(function(t){return e.onAfterChange(t)})),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),(0,d.default)((0,p.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e,t=this;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((function(e,n){e.destroy(),t.components.set(n,null)})),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));(0,d.default)((0,p.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"addCondition",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k.OPERATION_AND,o=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}},{key:"removeConditions",value:function(e){var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}},{key:"filter",value:function(){var e=this,t=this._createDataFilter(),n=!this.conditionCollection.isEmpty(),r=[],o=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",o))if(n){var i=[];this.hot.batchExecution((function(){e.filtersRowsMap.clear(),r=(0,m.arrayMap)(t.filter(),(function(e){return e.meta.visualRow}));var n=(0,_.createArrayAssertion)(r);(0,E.rangeEach)(e.hot.countSourceRows()-1,(function(e){n(e)||i.push(e)})),(0,m.arrayEach)(i,(function(t){e.filtersRowsMap.setValueAtIndex(t,!0)}))}),!0),r.length||this.hot.deselectCell()}else this.filtersRowsMap.clear();this.hot.runHooks("afterFilter",o),this.hot.view.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection()}},{key:"getSelectedColumn",value:function(){var e,t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}},{key:"clearColumnSelection",value:function(){var e=this.getSelectedColumn();null!==e&&this.hot.selectCell(0,e.visualIndex)}},{key:"getDataMapAtColumn",value:function(e){var t=this,n=this.hot.toVisualColumn(e),r=[];return(0,m.arrayEach)(this.hot.getSourceDataAtCol(n),(function(e,o){var i,a=t.hot.getCellMeta(o,n),s=a.row,l=a.col,u=a.visualCol,c=a.visualRow,d=a.type,h=a.instance,f=a.dateFormat,p=a.locale,g=null!==(i=t.hot.getDataAtCell(t.hot.toVisualRow(o),n))&&void 0!==i?i:e;r.push({meta:{row:s,col:l,visualCol:u,visualRow:c,type:d,instance:h,dateFormat:f,locale:p},value:(0,_.toEmptyString)(g)})})),r}},{key:"onAfterChange",value:function(e){var t=this;e&&(0,m.arrayEach)(e,(function(e){var n=(0,s.default)(e,2)[1],r=t.hot.propToCol(n);t.conditionCollection.hasConditions(r)&&t.updateValueComponentCondition(r)}))}},{key:"updateValueComponentCondition",value:function(e){var t=this.hot.getDataAtCol(e),n=(0,_.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,n)}},{key:"restoreComponents",value:function(e){var t,n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach((function(e){e.isHidden()||e.restoreState(n)})),this.updateDependentComponentsVisibility()}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents(Array.from(this.components.values()))}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(){var e=this;this.dropdownMenuPlugin&&this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",(function(){e.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:!0})}))}},{key:"onAfterDropdownMenuDefaultOptions",value:function(e){e.items.push({name:R.SEPARATOR}),this.components.forEach((function(t){e.items.push(t.getMenuItemDescriptor())}))}},{key:"getOperationBasedOnArguments",value:function(e,t,n,r){var o=e;return o===k.OPERATION_OR&&t.command.key!==k.CONDITION_NONE&&n.command.key!==k.CONDITION_NONE&&r.command.key!==k.CONDITION_NONE?o=k.OPERATION_OR_THEN_VARIABLE:r.command.key!==k.CONDITION_NONE&&(t.command.key!==k.CONDITION_NONE&&n.command.key!==k.CONDITION_NONE||(o=k.OPERATION_AND)),o}},{key:"onActionBarSubmit",value:function(e){var t;if("accept"===e){var n,r=this.getSelectedColumn();if(null===r)return void(null===(n=this.dropdownMenuPlugin)||void 0===n||n.close());var o=r.physicalIndex,i=this.components.get("filter_by_condition").getState(),a=this.components.get("filter_by_condition2").getState(),s=this.components.get("filter_by_value").getState(),l=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),i,a,s);this.conditionUpdateObserver.groupChanges();var u=this.conditionCollection.getColumnStackPosition(o);-1===u&&(u=void 0),this.conditionCollection.removeConditions(o),i.command.key!==k.CONDITION_NONE&&(this.conditionCollection.addCondition(o,i,l,u),a.command.key!==k.CONDITION_NONE&&this.conditionCollection.addCondition(o,a,l,u)),s.command.key!==k.CONDITION_NONE&&this.conditionCollection.addCondition(o,s,l,u),this.conditionUpdateObserver.flush(),this.components.forEach((function(e){return e.saveState(o)})),this.filtersRowsMap.clear(),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}},{key:"onComponentChange",value:function(e,t){this.updateDependentComponentsVisibility(),e.constructor!==S.default||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}},{key:"updateDependentComponentsVisibility",value:function(){var e=this.components.get("filter_by_condition").getState().command,t=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];e.showOperators?this.showComponents.apply(this,t):this.hideComponents.apply(this,t)}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?(0,C.addClass)(t,"htFiltersActive"):(0,C.removeClass)(t,"htFiltersActive")}},{key:"_createDataFilter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new M.default(t,(function(t){return e.getDataMapAtColumn(t)}))}},{key:"updateComponents",value:function(e){var t;if(null!==(t=this.dropdownMenuPlugin)&&void 0!==t&&t.enabled){var n=e.editedConditionStack,r=n.conditions,o=n.column,s=r.filter((function(e){return e.name===k.CONDITION_BY_VALUE})),l=r.filter((function(e){return e.name!==k.CONDITION_BY_VALUE}));if(s.length>=2||l.length>=3)(0,y.warn)((0,v.toSingleLine)(a||(a=(0,i.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."],["The filter conditions have been applied properly, but couldn’t be displayed visually.\\x20\n The overall amount of conditions exceed the capability of the dropdown menu.\\x20\n For more details see the documentation."]))));else{var u=this.conditionCollection.getOperation(o);this.components.get("filter_by_condition").updateState(l[0],o),this.components.get("filter_by_condition2").updateState(l[1],o),this.components.get("filter_operators").updateState(u,o),this.components.get("filter_by_value").updateState(e)}}}},{key:"getIndexesOfComponents",value:function(){var e=[];if(!this.dropdownMenuPlugin)return e;for(var t=this.dropdownMenuPlugin.menu,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(0,m.arrayEach)(r,(function(n){(0,m.arrayEach)(t.menuItems,(function(t,r){t.key===n.getMenuItemDescriptor().key&&e.push(r)}))})),e}},{key:"changeComponentsVisibility",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.dropdownMenuPlugin){for(var t=this.dropdownMenuPlugin.menu,n=t.hotMenu,r=n.getPlugin("hiddenRows"),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=this.getIndexesOfComponents.apply(this,i);e?r.showRows(s):r.hideRows(s),n.render()}}},{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))}},{key:"destroy",value:function(){var e=this;this.enabled&&(this.components.forEach((function(t,n){null!==t&&(t.destroy(),e.components.set(n,null))})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),(0,d.default)((0,p.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"filters"}},{key:"PLUGIN_PRIORITY",get:function(){return 250}},{key:"PLUGIN_DEPS",get:function(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}}]),n}(g.BasePlugin);t.Filters=D},function(e,t,n){"use strict";n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85),n(230),n(67),n(35),n(1);var i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(16),h=n(75),f=n(13),p=n(108),g=n(12),m=w(n(18)),v=r(n(233)),y=w(n(306)),E=r(n(308)),T=r(n(985)),C=n(46);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var O=function(e){(0,l.default)(n,e);var t=S(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.addSeparator=r.addSeparator,o.elements.push(new T.default(o.hot,{menuContainer:r.menuContainer})),o.elements.push(new E.default(o.hot,{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),o.elements.push(new E.default(o.hot,{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getSelectElement().addLocalHook("select",(function(t){return e.onConditionSelect(t)})),this.getSelectElement().addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),(0,f.arrayEach)(this.getInputElements(),(function(t){t.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}))}},{key:"setState",value:function(e){var t=this;if(this.reset(),e){var n=(0,g.clone)(e.command);n.name.startsWith(m.FILTERS_CONDITIONS_NAMESPACE)&&(n.name=this.hot.getTranslatedPhrase(n.name)),this.getSelectElement().setValue(n),(0,f.arrayEach)(e.args,(function(e,r){if(r>n.inputsCount-1)return!1;var o=t.getInputElement(r);o.setValue(e),o[n.inputsCount>r?"show":"hide"](),r||setTimeout((function(){return o.focus()}),10)}))}}},{key:"getState",value:function(){var e=this.getSelectElement().getValue()||(0,C.getConditionDescriptor)(y.CONDITION_NONE),t=[];return(0,f.arrayEach)(this.getInputElements(),(function(n,r){e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}},{key:"updateState",value:function(e,t){var n=e?(0,C.getConditionDescriptor)(e.name):(0,C.getConditionDescriptor)(y.CONDITION_NONE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,f.arrayEach)(this.getInputElements(),(function(e){return e.setValue(null)}))}},{key:"getSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof T.default}))[0]}},{key:"getInputElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}},{key:"getInputElements",value:function(){return this.elements.filter((function(e){return e instanceof E.default}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,d.addClass)(n.parentNode,"htFiltersMenuCondition"),e.addSeparator&&(0,d.addClass)(n.parentNode,"border");var s=e.hot.rootDocument.createElement("div");return(0,d.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,f.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=[(0,C.getConditionDescriptor)(y.CONDITION_NONE)];if(null!==e){var r=e.visualIndex;t=(0,y.default)(this.hot.getDataType(0,r,this.hot.countRows(),r))}(0,f.arrayEach)(this.getInputElements(),(function(e){return e.hide()})),this.getSelectElement().setItems(t),(0,s.default)((0,c.default)(n.prototype),"reset",this).call(this),this.getSelectElement().setValue(t[0])}},{key:"onConditionSelect",value:function(e){(0,f.arrayEach)(this.getInputElements(),(function(t,n){t[e.inputsCount>n?"show":"hide"](),0===n&&setTimeout((function(){return t.focus()}),10)})),this.runLocalHooks("change",e)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){(0,p.isKey)(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),(0,h.stopImmediatePropagation)(e)):(0,p.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,h.stopImmediatePropagation)(e))}}]),n}(v.default);t.default=O},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(){return!0}t.CONDITION_NAME="none",(0,i.registerCondition)("none",s,{name:o.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(616);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_empty",(0,i.registerCondition)("not_empty",l,{name:o.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(617);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="neq",(0,i.registerCondition)("neq",l,{name:o.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}t.CONDITION_NAME="gt",(0,s.registerCondition)("gt",u,{name:a.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}t.CONDITION_NAME="gte",(0,s.registerCondition)("gte",u,{name:a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}t.CONDITION_NAME="lt",(0,s.registerCondition)("lt",u,{name:a.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<=n}t.CONDITION_NAME="lte",(0,s.registerCondition)("lte",u,{name:a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(618);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_between",(0,i.registerCondition)("not_between",l,{name:o.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(230);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(n))}t.CONDITION_NAME="begins_with",(0,l.registerCondition)("begins_with",c,{name:a.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(977);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(n))}t.CONDITION_NAME="ends_with",(0,l.registerCondition)("ends_with",c,{name:a.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r,o=n(25),i=n(178),a=n(116).f,s=n(125),l=n(62),u=n(282),c=n(80),d=n(284),h=n(121),f=i("".endsWith),p=i("".slice),g=Math.min,m=d("endsWith");o({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:g(s(n),r),i=l(e);return f?f(t,i,o):p(t,o-i.length,o)===i}})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(621);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_contains",(0,i.registerCondition)("not_contains",l,{name:o.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(-1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_tomorrow",(0,s.registerCondition)("date_tomorrow",u,{name:a.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().startOf("day"),"d")}t.CONDITION_NAME="date_today",(0,s.registerCondition)("date_today",u,{name:a.FILTERS_CONDITIONS_TODAY,inputsCount:0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var i=r(n(95)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_yesterday",(0,s.registerCondition)("date_yesterday",u,{name:a.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=r(n(21)),i=n(46),a=n(191);function s(e,t){return(0,(0,o.default)(t,1)[0])(e.value)}t.CONDITION_NAME="by_value",(0,i.registerCondition)("by_value",s,{name:"By value",inputsCount:0,inputValuesDecorator:function(e){var t=(0,o.default)(e,1)[0];return[(0,a.createArrayAssertion)(t)]},showOperators:!1})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(46);function o(){return!0}t.CONDITION_NAME="true",(0,r.registerCondition)("true",o,{name:"True"})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(46);function o(){return!1}t.CONDITION_NAME="false",(0,r.registerCondition)("false",o,{name:"False"})},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(85);var h=r(n(305)),f=n(12),p=n(13),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),m=n(110),v=r(n(193));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var T=new WeakMap,C=function(e){(0,u.default)(n,e);var t=E(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,(0,f.extend)(n.DEFAULTS,r)),T.set((0,s.default)(o),{}),o.menu=null,o.items=[],o.registerHooks(),o}return(0,a.default)(n,[{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,p.arrayEach)(e,(function(e){e.name=t.translateIfPossible(e.name)})),e}},{key:"build",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"build",this).call(this),this.menu=new h.default(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer}),this.menu.setMenuItems(this.items);var t=new v.default(this.hot,{className:"htUISelectCaption"}),r=new v.default(this.hot,{className:"htUISelectDropdown"}),o=T.get(this);o.caption=t,o.captionElement=t.element,o.dropdown=r,(0,p.arrayEach)([t,r],(function(t){return e._element.appendChild(t.element)})),this.menu.addLocalHook("select",(function(t){return e.onMenuSelect(t)})),this.menu.addLocalHook("afterClose",(function(){return e.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),T.get(this).captionElement.textContent=e,(0,l.default)((0,d.default)(n.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}},{key:"onMenuSelect",value:function(e){e.name!==m.SEPARATOR&&(this.options.value=e,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=T.get(this),t=e.caption,r=e.dropdown;t&&t.destroy(),r&&r.destroy(),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"DEFAULTS",get:function(){return(0,f.clone)({className:"htUISelect",wrapIt:!1})}}]),n}(v.default);t.default=C},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(64));n(85),n(225),n(1);var i,a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(16),h=n(13),f=n(66),p=r(n(233)),g=n(192),m=n(307),v=n(622),y=n(623),E=r(n(987));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var C=function(e){(0,l.default)(n,e);var t=T(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.buildOperatorsElement(),o}return(0,s.default)(n,[{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,d.addClass)(n.parentNode,"htFiltersMenuOperators"),n.parentNode.hasAttribute("ghost-table")||(0,h.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"buildOperatorsElement",value:function(){var e=this,t=[m.OPERATION_ID,v.OPERATION_ID];(0,h.arrayEach)(t,(function(n){var r=new E.default(e.hot,{name:"operator",label:{htmlFor:n,textContent:(0,g.getOperationName)(n)},value:n,checked:n===t[0],id:n});r.addLocalHook("change",(function(t){return e.onRadioInputChange(t)})),e.elements.push(r)}))}},{key:"setChecked",value:function(e){if(this.elements.length<e)throw Error((0,f.toSingleLine)(i||(i=(0,o.default)(["Radio button with index "," doesn't exist."])),e));(0,h.arrayEach)(this.elements,(function(t,n){t.setChecked(n===e)}))}},{key:"getActiveOperationId",value:function(){var e=this.elements.find((function(e){return e instanceof E.default&&e.isChecked()}));return e?e.getValue():m.OPERATION_ID}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,h.arrayEach)(this.elements,(function(t){t.setChecked(t.getValue()===e)}))}},{key:"updateState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,n=e;n===y.OPERATION_ID&&(n=v.OPERATION_ID),this.state.setValueAtIndex(t,n)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(e){this.setState(e.target.value)}}]),n}(p.default);t.default=C},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(12),h=r(n(193));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=new WeakMap,g=function(e){(0,l.default)(n,e);var t=f(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,d.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=p.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=p.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(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.checked=e,this.update()}},{key:"focus",value:function(){this.isBuilt()&&p.get(this).input.focus()}}],[{key:"DEFAULTS",get:function(){return(0,d.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),n}(h.default);t.default=g},function(e,t,n){"use strict";n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85),n(35),n(1);var i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(16),f=n(75),p=n(13),g=n(108),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),v=n(191),y=r(n(233)),E=r(n(989)),T=n(306),C=n(46);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.elements.push(new E.default(o.hot)),o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getMultipleSelectElement().addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}},{key:"setState",value:function(e){if(this.reset(),e&&e.command.key===T.CONDITION_BY_VALUE){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}},{key:"getState",value:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?T.CONDITION_NONE:T.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}},{key:"updateState",value:function(e){var t=this,n=function(n,r,o,a,s){var l=(0,p.arrayFilter)(r,(function(e){return e.name===T.CONDITION_BY_VALUE})),u=(0,i.default)(l,1)[0],c={},d=t.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS);if(u){var h=(0,v.unifyColumnValues)((0,p.arrayMap)(a(n,s),(function(e){return e.value})));o&&(u.args[0]=o);var f=[],g=(0,v.intersectValues)(h,u.args[0],d,(function(e){e.checked&&f.push(e.value)})),y=e.editedConditionStack.column;c.locale=t.hot.getCellMeta(0,y).locale,c.args=[f],c.command=(0,C.getConditionDescriptor)(T.CONDITION_BY_VALUE),c.itemsSnapshot=g}else c.args=[],c.command=(0,C.getConditionDescriptor)(T.CONDITION_NONE);t.state.setValueAtIndex(n,c)};n(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&n(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 E.default}))[0]}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,h.addClass)(n.parentNode,"htFiltersMenuValue");var s=e.hot.rootDocument.createElement("div");return(0,h.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,p.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS),t=(0,v.unifyColumnValues)(this._getColumnVisibleValues()),r=(0,v.intersectValues)(t,t,e);this.getMultipleSelectElement().setItems(r),(0,l.default)((0,d.default)(n.prototype),"reset",this).call(this),this.getMultipleSelectElement().setValue(t);var o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}},{key:"onInputKeyDown",value:function(e){(0,g.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,f.stopImmediatePropagation)(e))}},{key:"_getColumnVisibleValues",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,p.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(function(e){return(0,v.toEmptyString)(e)}))}}]),n}(y.default);t.default=S},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(33)),u=r(n(19)),c=r(n(10)),d=r(n(11)),h=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var f=n(16),p=n(12),g=n(13),m=n(108),v=n(58),y=n(133),E=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),T=n(75),C=r(n(193)),R=r(n(308)),w=r(n(990)),S=n(191);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var A=new WeakMap,N=function(e){(0,c.default)(n,e);var t=b(n);function n(e,r){var o;return(0,a.default)(this,n),o=t.call(this,e,(0,p.extend)(n.DEFAULTS,r)),A.set((0,l.default)(o),{}),o.searchInput=new R.default(o.hot,{placeholder:E.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"}),o.selectAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"}),o.clearAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"}),o.items=[],o.itemsBox=null,o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.searchInput.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)})),this.searchInput.addLocalHook("input",(function(t){return e.onInput(t)})),this.selectAllUI.addLocalHook("click",(function(t){return e.onSelectAllClick(t)})),this.clearAllUI.addLocalHook("click",(function(t){return e.onClearAllClick(t)}))}},{key:"setItems",value:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getLocale",value:function(){return this.locale}},{key:"getItems",value:function(){return(0,i.default)(this.items)}},{key:"getValue",value:function(){return e=this.items,t=[],(0,g.arrayEach)(e,(function(e){e.checked&&t.push(e.value)})),t;var e,t}},{key:"isSelectedAllValues",value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var e=this;(0,u.default)((0,h.default)(n.prototype),"build",this).call(this);var t=this.hot.rootDocument,r=t.createElement("div"),o=new C.default(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(r);var i=function(n){e._element&&(e.itemsBox&&e.itemsBox.destroy(),(0,f.addClass)(n,"htUIMultipleSelectHot"),e.itemsBox=new e.hot.constructor(n,{data:e.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(e,t,n,r,o,i){e.title=i.instance.getDataAtRowProp(t,i.label.property)},maxCols:1,autoWrapCol:!0,height:110,colWidths:function(){return e.itemsBox.container.scrollWidth-(0,f.getScrollbarWidth)(t)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},layoutDirection:e.hot.isRtl()?"rtl":"ltr"}),e.itemsBox.init(),e.itemsBox.getShortcutManager().getContext("grid").addShortcut({keys:[["Escape"]],callback:function(t){e.runLocalHooks("keydown",t,e)},group:"multipleSelect.itemBox"}))};i(r),setTimeout((function(){return i(r)}),100)}},{key:"reset",value:function(){this.searchInput.reset(),this.selectAllUI.reset(),this.clearAllUI.reset()}},{key:"update",value:function(){var e,t,r;this.isBuilt()&&(this.itemsBox.loadData((e=this.items,t=this.options.value,r=(0,S.createArrayAssertion)(t),(0,g.arrayMap)(e,(function(e){return e.checked=r(e.value),e})))),(0,u.default)((0,h.default)(n.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,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(e){var t,n=this,r=e.target.value.toLocaleLowerCase(this.getLocale());t=""===r?(0,i.default)(this.items):(0,g.arrayFilter)(this.items,(function(e){return"".concat(e.value).toLocaleLowerCase(n.getLocale()).indexOf(r)>=0})),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this),(0,v.partial)(m.isKey,e.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&((0,T.stopImmediatePropagation)(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onSelectAllClick",value:function(e){var t=[];e.preventDefault(),(0,g.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!0,t.push((0,y.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}},{key:"onClearAllClick",value:function(e){var t=[];e.preventDefault(),(0,g.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!1,t.push((0,y.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}}],[{key:"DEFAULTS",get:function(){return(0,p.clone)({className:"htUIMultipleSelect",value:[]})}}]),n}(C.default);t.default=N},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(991);var d=n(12),h=r(n(193));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=new WeakMap,g=function(e){(0,l.default)(n,e);var t=f(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,d.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this),p.get(this).link=this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(p.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}],[{key:"DEFAULTS",get:function(){return(0,d.clone)({href:"#",tagName:"a"})}}]),n}(h.default);t.default=g},function(e,t,n){"use strict";var r=n(25),o=n(992);r({target:"String",proto:!0,forced:n(993)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){var r=n(30),o=n(80),i=n(62),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var l=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(i(r),a,""")+'"'),u+">"+l+"</"+t+">"}},function(e,t,n){var r=n(29);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n(1),n(9),n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(85);var i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(13),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),f=r(n(233)),p=r(n(308));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!0})).name=r.name,o.elements.push(new p.default(o.hot,{type:"button",value:h.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:n.BUTTON_OK})),o.elements.push(new p.default(o.hot,{type:"button",value:h.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:n.BUTTON_CANCEL})),o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;(0,d.arrayEach)(this.elements,(function(t){t.addLocalHook("click",(function(t,n){return e.onButtonClick(t,n)}))}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,c.addClass)(n.parentNode,"htFiltersMenuActionBar"),n.parentNode.hasAttribute("ghost-table")||(0,d.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}},{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(e,t){t.options.identifier===n.BUTTON_OK?this.accept():this.cancel()}}],[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),n}(f.default);t.default=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(22),n(39),n(20),n(35),n(1);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12),l=n(58),u=r(n(86)),c=r(n(624)),d=r(n(625)),h=n(191),f=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return[]};(0,o.default)(this,e),this.hot=t,this.conditionCollection=n,this.columnDataFactory=i,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",(function(e){return r._onConditionBeforeModify(e)})),this.conditionCollection.addLocalHook("afterRemove",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("afterAdd",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("beforeClean",(function(){return r._onConditionBeforeClean()})),this.conditionCollection.addLocalHook("afterClean",(function(){return r._onConditionAfterClean()}))}return(0,i.default)(e,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var e=this;this.grouping=!1,(0,a.arrayEach)(this.changes,(function(t){e.updateStatesAtColumn(t)})),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}},{key:"updateStatesAtColumn",value:function(e,t){var n=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var r=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.getColumnStackPosition(e);-1===o&&(o=this.latestEditedColumnPosition);var i=r.slice(0,o),s=r.slice(o);s.length&&s[0].column===e&&s.shift();var u=(0,l.curry)((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=new c.default(n.hot,!1),i=[].concat(e,r);o.importAllConditions(i);var s,l=n.columnDataFactory(t);s=o.isEmpty()?l:new d.default(o,(function(e){return n.columnDataFactory(e)})).filter(),s=(0,a.arrayMap)(s,(function(e){return e.meta.visualRow}));var u=(0,h.createArrayAssertion)(s);return o.destroy(),(0,a.arrayFilter)(l,(function(e){return u(e.meta.visualRow)}))}))(i),f=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:f},dependentConditionStacks:s,filteredRowsFactory:u,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}},{key:"_onConditionAfterClean",value:function(){var e=this;(0,a.arrayEach)(this.latestOrderStack,(function(t){e.updateStatesAtColumn(t)}))}},{key:"destroy",value:function(){var e=this;this.clearLocalHooks(),(0,s.objectEach)(this,(function(t,n){e[n]=null}))}}]),e}();(0,s.mixin)(f,u.default);var p=f;t.default=p},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0;var r=n(309);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Formulas=r.Formulas},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t,n=c(),r=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(r.map((function(e){return[e.getPlugin("formulas").sheetId,e]})))},t.registerCustomFunctions=f,t.registerEngine=h,t.registerLanguage=p,t.registerNamedExpressions=g,t.setupEngine=function(e){var t,n=e.getSettings(),r=n[l.PLUGIN_KEY],i=null==r?void 0:r.engine;if(!0===r)return null;if((0,a.isUndefined)(i))return null;if("function"==typeof i.hyperformula||"function"==typeof i)return h(null!==(t=i.hyperformula)&&void 0!==t?t:i,n,e);if("object"===(0,o.default)(i)&&(0,a.isUndefined)(i.hyperformula)){var s=c(),f=d().get(i);return s.has(i)||s.set(i,[]),s.get(i).push(e),f&&f.push(e.guid),i.getConfig().licenseKey||i.updateConfig({licenseKey:u.DEFAULT_LICENSE_KEY}),i}return null},t.setupSheet=function(e,t){!(0,a.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){var n=c(),r=n.get(e),o=d(),i=o.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(o.delete(e),e.destroy()))}};var o=r(n(14));n(4),n(40),n(1),n(5),n(6),n(48),n(65),n(31),n(41),n(53),n(22),n(23),n(85);var i=r(n(102)),a=n(24),s=n(74),l=n(309),u=n(626);function c(){var e=(0,i.default)(l.PLUGIN_KEY);return e.hasItem("engine_relationship")||e.register("engine_relationship",new Map),e.getItem("engine_relationship")}function d(){var e=(0,i.default)(l.PLUGIN_KEY);return e.hasItem("shared_engine_usage")||e.register("shared_engine_usage",new Map),e.getItem("shared_engine_usage")}function h(e,t,n){var r=t[l.PLUGIN_KEY],o=(0,u.getEngineSettingsWithDefaultsAndOverrides)(t),i=c(),a=d();f(e,r.functions),p(e,r.language);var s=e.buildEmpty(o);return i.set(s,[n]),a.set(s,[n.guid]),g(s,r.namedExpressions),s.on("sheetAdded",(function(){s.rebuildAndRecalculate()})),s.on("sheetRemoved",(function(){s.rebuildAndRecalculate()})),s}function f(e,t){t&&t.forEach((function(t){var n=t.name,r=t.plugin,o=t.translations;try{e.registerFunction(n,r,o)}catch(e){(0,s.warn)(e.message)}}))}function p(e,t){if(t){var n=t.langCode;try{e.registerLanguage(n,t)}catch(e){(0,s.warn)(e.message)}}}function g(e,t){t&&(e.suspendEvaluation(),t.forEach((function(t){var n=t.name,r=t.expression,o=t.scope,i=t.options;try{e.addNamedExpression(n,r,o,i)}catch(e){(0,s.warn)(e.message)}})),e.resumeEvaluation())}},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}t.__esModule=!0,t.isEscapedFormulaExpression=r,t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0;var r=n(1001);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenColumns=r.HiddenColumns},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0,n(20),n(39),n(65),n(48),n(5),n(4),n(1),n(52),n(6),n(72),n(73),n(22),n(53),n(83),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(78)),h=r(n(79)),f=n(38),p=n(16),g=n(36),m=n(13),v=n(12),y=n(24),E=n(110),T=r(n(59)),C=r(n(1002)),R=r(n(1003)),w=n(76);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1004),T.default.getSingleton().register("beforeHideColumns"),T.default.getSingleton().register("afterHideColumns"),T.default.getSingleton().register("beforeUnhideColumns"),T.default.getSingleton().register("afterUnhideColumns");t.PLUGIN_KEY="hiddenColumns";t.PLUGIN_PRIORITY=310;var b=new WeakMap,A=new WeakMap,N=function(e){(0,l.default)(n,e);var t=S(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),b,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenColumns;(0,v.isObject)(t)&&((0,h.default)(this,b,t),(0,y.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,h.default)(this,A,new w.HidingMap),(0,d.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,(0,d.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("afterGetColHeader",(function(){return e.onAfterGetColHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,h.default)(this,b,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showColumns",value:function(e){var t=this,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n,i=(0,d.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalColumn(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualColumn(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideColumns",n,o,r&&a)&&(r&&a&&(0,d.default)(this,A).setValues(i),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",n,o,r&&a,r&&o.length<n.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,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,d.default)(t,A).setValueAtIndex(t.hot.toPhysicalColumn(e),!0)}))}),!0),this.hot.runHooks("afterHideColumns",n,o,r,r&&o.length>n.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:"getHiddenColumns",value:function(){var e=this;return(0,m.arrayMap)((0,d.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualColumn(t)}))}},{key:"isHidden",value:function(e){return(0,d.default)(this,A).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipColumnOnPaste=!1)}))}},{key:"onModifyColWidth",value:function(e,t){return this.isHidden(t)?0:(0,d.default)(this,b).indicators&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,d.default)(this,b).copyPasteEnabled&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenColumn");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,d.default)(this,b).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,g.rangeEach)(e.startCol,e.endCol,(function(i){t.isHidden(i)?(n||r(e.startRow,e.endRow,o,i-1),n=!0):(n&&(o=i),i===e.endCol&&r(e.startRow,e.endRow,o,i),n=!1)}))})),n}},{key:"onAfterGetColHeader",value:function(e,t){if((0,d.default)(this,b).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,C.default)(this),(0,R.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this,b).columns)&&this.hideColumns((0,d.default)(this,b).columns)}},{key:"destroy",value:function(){(0,h.default)(this,b,null),(0,h.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenColumns"}},{key:"PLUGIN_PRIORITY",get:function(){return 310}}]),n}(f.BasePlugin);t.HiddenColumns=N},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.col,r.col),0),i=Math.max(n.col,r.col),a=[],s=o;s<=i;s+=1)a.push(s);e.hideColumns(a);var l=a[a.length-1],u=this.columnIndexMapper.getNearestNotHiddenIndex(l,1,!0);Number.isInteger(u)&&u>=0?this.selectColumns(u):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},n(72),n(73);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_columns_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countCols()||this.selectColumns(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenColumns(),(function(e){return n.toPhysicalColumn(e)}));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().col,l=o.getBottomEndCorner().col,u=this.columnIndexMapper,c=u.getRenderableFromVisualIndex(s),d=u.getRenderableFromVisualIndex(l),h=u.getNotTrimmedIndexes(),f=[];if(s!==l){if(l-s+1>d-c+1){var p=h.slice(s,l+1);f.push.apply(f,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)f.push.apply(f,(0,i.default)(h.slice(0,s)));else if(null===c)f.push.apply(f,(0,i.default)(h.slice(0,this.countCols())));else{var g=this.countCols()-1;d===u.getRenderableFromVisualIndex(u.getNearestNotHiddenIndex(g,-1))&&g>l&&f.push.apply(f,(0,i.default)(h.slice(l+1)))}return(0,a.arrayEach)(f,(function(e){t.push(n.toVisualColumn(e))})),0===t.length}}};var i=r(n(32));n(39),n(35),n(1),n(31),n(41);var a=n(13),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0;var r=n(1006);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenRows=r.HiddenRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0,n(20),n(39),n(65),n(48),n(5),n(4),n(1),n(52),n(6),n(72),n(73),n(22),n(53),n(83),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(78)),h=r(n(79)),f=n(38),p=n(16),g=n(36),m=n(13),v=n(12),y=n(24),E=n(110),T=r(n(59)),C=r(n(1007)),R=r(n(1008)),w=n(76);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1009),T.default.getSingleton().register("beforeHideRows"),T.default.getSingleton().register("afterHideRows"),T.default.getSingleton().register("beforeUnhideRows"),T.default.getSingleton().register("afterUnhideRows");t.PLUGIN_KEY="hiddenRows";t.PLUGIN_PRIORITY=320;var b=new WeakMap,A=new WeakMap,N=function(e){(0,l.default)(n,e);var t=S(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),b,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenRows;(0,v.isObject)(t)&&((0,h.default)(this,b,t),(0,y.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,h.default)(this,A,new w.HidingMap),(0,d.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,(0,d.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.addHook("afterGetRowHeader",(function(){return e.onAfterGetRowHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,h.default)(this,b,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showRows",value:function(e){var t=this,n=this.getHiddenRows(),r=this.isValidConfig(e),o=n,i=(0,d.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalRow(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualRow(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideRows",n,o,r&&a)&&(r&&a&&(0,d.default)(this,A).setValues(i),this.hot.runHooks("afterUnhideRows",n,o,r&&a,r&&o.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.getHiddenRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideRows",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,d.default)(t,A).setValueAtIndex(t.hot.toPhysicalRow(e),!0)}))}),!0),this.hot.runHooks("afterHideRows",n,o,r,r&&o.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:"getHiddenRows",value:function(){var e=this;return(0,m.arrayMap)((0,d.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualRow(t)}))}},{key:"isHidden",value:function(e){return(0,d.default)(this,A).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipRowOnPaste=!1)}))}},{key:"onModifyRowHeight",value:function(e,t){return this.isHidden(t)?0:e}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,d.default)(this,b).copyPasteEnabled&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenRow");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,d.default)(this,b).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,g.rangeEach)(e.startRow,e.endRow,(function(i){t.isHidden(i)?(n||r(o,i-1,e.startCol,e.endCol),n=!0):(n&&(o=i),i===e.endRow&&r(o,i,e.startCol,e.endCol),n=!1)}))})),n}},{key:"onAfterGetRowHeader",value:function(e,t){if((0,d.default)(this,b).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,C.default)(this),(0,R.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this,b).rows)&&this.hideRows((0,d.default)(this,b).rows)}},{key:"destroy",value:function(){(0,h.default)(this,b,null),(0,h.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 320}}]),n}(f.BasePlugin);t.HiddenRows=N},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.row,r.row),0),i=Math.max(n.row,r.row),a=[],s=o;s<=i;s+=1)a.push(s);e.hideRows(a);var l=a[a.length-1],u=this.rowIndexMapper.getNearestNotHiddenIndex(l,1,!0);Number.isInteger(u)&&u>=0?this.selectRows(u):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},n(72),n(73);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_rows_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.rowIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countRows()||this.selectRows(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenRows(),(function(e){return n.toPhysicalRow(e)}));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().row,l=o.getBottomEndCorner().row,u=this.rowIndexMapper,c=u.getRenderableFromVisualIndex(s),d=u.getRenderableFromVisualIndex(l),h=u.getNotTrimmedIndexes(),f=[];if(s!==l){if(l-s+1>d-c+1){var p=h.slice(s,l+1);f.push.apply(f,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)f.push.apply(f,(0,i.default)(h.slice(0,s)));else if(null===c)f.push.apply(f,(0,i.default)(h.slice(0,this.countRows())));else{var g=this.countRows()-1;d===u.getRenderableFromVisualIndex(u.getNearestNotHiddenIndex(g,-1))&&g>l&&f.push.apply(f,(0,i.default)(h.slice(l+1)))}return(0,a.arrayEach)(f,(function(e){t.push(n.toVisualRow(e))})),0===t.length}}};var i=r(n(32));n(39),n(35),n(1),n(31),n(41);var a=n(13),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var r=n(1011);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnFreeze=r.ManualColumnFreeze},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(38),h=r(n(59)),f=r(n(1012)),p=r(n(1013));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1014),h.default.getSingleton().register("beforeColumnFreeze"),h.default.getSingleton().register("afterColumnFreeze"),h.default.getSingleton().register("beforeColumnUnfreeze"),h.default.getSingleton().register("afterColumnUnfreeze");t.PLUGIN_KEY="manualColumnFreeze";t.PLUGIN_PRIORITY=110;var m=new WeakMap,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),m.set((0,a.default)(r),{afterFirstUse:!1}),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addContextMenuEntry(t)})),this.addHook("beforeColumnMove",(function(t,n){return e.onBeforeColumnMove(t,n)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){m.get(this).afterFirstUse=!1,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings(),r=n.fixedColumnsStart<this.hot.countCols()&&e>n.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0),!1!==this.hot.runHooks("beforeColumnFreeze",e,r)&&(r&&(this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart),n._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,r))}},{key:"unfreezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings(),r=n.fixedColumnsStart>0&&e<=n.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0),!1!==this.hot.runHooks("beforeColumnUnfreeze",e,r)&&(r&&(n._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,r))}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,f.default)(this),(0,p.default)(this))}},{key:"onBeforeColumnMove",value:function(e,t){if(m.get(this).afterFirstUse){var n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some((function(e){return e<n})))return!1}}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnFreeze"}},{key:"PLUGIN_PRIORITY",get:function(){return 110}}]),n}(d.BasePlugin);t.ManualColumnFreeze=v},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.freezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}};var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.unfreezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var r=n(1016);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnMove=r.ManualColumnMove},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var d=n(38),h=r(n(59)),f=n(13),p=n(16),g=n(36),m=r(n(49)),v=r(n(1017)),y=r(n(1018));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1019),h.default.getSingleton().register("beforeColumnMove"),h.default.getSingleton().register("afterColumnMove");var T="manualColumnMove";t.PLUGIN_KEY=T;t.PLUGIN_PRIORITY=120;var C=new WeakMap,R=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),C.set((0,a.default)(r),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new v.default(e),r.guideline=new y.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[T]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollVertically",(function(){return e.onAfterScrollVertically()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualColumnMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){return this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=C.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeColumnMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.columnIndexMapper.moveIndexes(e,t);var a=o&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,r,o,a),a}}},{key:"dragColumn",value:function(e,t){return this.dragColumns([e],t)}},{key:"dragColumns",value:function(e,t){var n=this.countFinalIndex(e,t);return C.get(this).cachedDropIndex=t,this.moveColumns(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isColumnOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,f.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getColumnsWidth",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=0,o=e;o<=t;o+=1){var i=n.getRenderableFromVisualIndex(o);o<0?r+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==i&&(r+=this.hot.view._wt.wtTable.getStretchedColumnWidth(i)||0)}return r}},{key:"moveBySettingsOrLoad",value:function(){var e=this.hot.getSettings()[T];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveColumns(t,0)}}},{key:"isFixedColumnsStart",value:function(e){return e<this.hot.getSettings().fixedColumnsStart}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?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=C.get(this),t=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(e.hoveredColumn)&&t>0&&this.hot.scrollViewportTo(void 0,this.hot.columnIndexMapper.getNearestNotHiddenIndex(t-1,-1));var n=this.hot.view._wt.wtTable,r=this.hot.view._wt.wtOverlays.scrollableElement,o="number"==typeof r.scrollX?r.scrollX:r.scrollLeft,i=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.hoveredColumn-1),a=n.hider.offsetWidth,s=n.TBODY.offsetLeft,l=this.backlight.getOffset().start,u=this.backlight.getSize().width,c=0,d=0;if(this.hot.isRtl()){var h=this.hot.rootWindow,f=(0,p.outerWidth)(this.hot.rootElement),g=h.innerWidth-e.rootElementOffset-f;d=h.innerWidth-e.target.eventPageX-g-(void 0===r.scrollX?o:0)}else d=e.target.eventPageX-(e.rootElementOffset-(void 0===r.scrollX?o:0));if(e.hasRowHeaders&&(c=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(e.hoveredColumn)&&(i+=o),i+=c,e.hoveredColumn<0)e.fixedColumnsStart>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+i<=d){var m=e.hoveredColumn>=e.countCols?e.countCols-1:e.hoveredColumn;e.target.col=m+1,i+=e.target.TD.offsetWidth}else e.target.col=e.hoveredColumn;var v=d,y=i;d+u+l>=a?v=a-u-l:d+l<s+c&&(v=s+c+Math.abs(l)),i>=a-1?y=a-1:0===y?y=1:void 0!==r.scrollX&&e.hoveredColumn<e.fixedColumnsStart&&(y-=e.rootElementOffset<=r.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,v),this.guideline.setPosition(null,y)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=C.get(this),l=(0,p.hasClass)(e.target,"sortAction");if(!a||!i||s.pressed||0!==e.button||l)return s.pressed=!1,s.columnsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var d=a.from,h=a.to,f=Math.min(d.col,h.col),g=Math.max(d.col,h.col);if(t.row<0&&t.col>=f&&t.col<=g){r.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.target.eventOffsetX=e.offsetX,s.hoveredColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(f,g),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumnsStart=this.hot.getSettings().fixedColumnsStart,s.rootElementOffset=(0,p.offset)(this.hot.rootElement).left;var m=s.hasRowHeaders?-1:0,v=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,y=t.col<s.fixedColumnsStart,E=Math.abs(this.hot.view._wt.wtOverlays.inlineStartOverlay.getScrollPosition()),T=Math.abs(e.offsetX-(this.hot.isRtl()?e.target.offsetWidth:0)),R=this.getColumnsWidth(f,t.col-1)+T,w=this.getColumnsWidth(m,f-1)+(y?E:0)+R;this.backlight.setPosition(v,w),this.backlight.setSize(this.getColumnsWidth(f,g),o.hider.offsetHeight-v),this.backlight.setOffset(null,-R),(0,p.addClass)(this.hot.rootElement,"on-moving--columns")}else(0,p.removeClass)(this.hot.rootElement,"after-selection--columns"),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=C.get(this);if(t.pressed){if(e.target===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,r){var o=this.hot.getSelectedRangeLast(),i=C.get(this);o&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.hoveredColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=C.get(this),t=e.target.col,n=e.columnsToMove.length;if(e.hoveredColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--columns"),!(n<1||void 0===t)){var r=e.columnsToMove[0],o=this.hot.toPhysicalColumn(r),i=this.dragColumns(e.columnsToMove,t);if(e.columnsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualColumn(o),s=a+n-1;this.hot.selectColumns(a,s)}}}},{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:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return T}},{key:"PLUGIN_PRIORITY",get:function(){return 120}}]),n}(d.BasePlugin);t.ManualColumnMove=R},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(627)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),n}(c.default);t.default=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(627)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),n}(c.default);t.default=f},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var r=n(1021);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnResize=r.ManualColumnResize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(23),n(31),n(41),n(67);var d=n(38),h=n(16),f=r(n(49)),p=n(13),g=n(36),m=n(76);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y="manualColumnResize";t.PLUGIN_KEY=y;t.PLUGIN_PRIORITY=130;var E=new WeakMap,T=function(e){(0,l.default)(n,e);var t=v(n);function n(e){var r;(0,o.default)(this,n);var i=(r=t.call(this,e)).hot.rootDocument;return r.currentTH=null,r.currentCol=null,r.selectedCols=[],r.currentWidth=null,r.newSize=null,r.startY=null,r.startWidth=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new f.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.columnWidthsMap=void 0,E.set((0,a.default)(r),{config:void 0}),(0,h.addClass)(r.handle,"manualColumnResizer"),(0,h.addClass)(r.guide,"manualColumnResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[y]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnWidthsMap=new m.PhysicalIndexToValueMap,this.columnWidthsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,this.columnWidthsMap),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("beforeStretchingColumnWidth",(function(t,n){return e.onBeforeStretchingColumnWidth(t,n)})),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)})),this.bindEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){E.get(this).config=this.columnWidthsMap.getValues(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.columnWidthsMap.getValues())}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),r=this.hot.toPhysicalColumn(e);return this.columnWidthsMap.setValueAtIndex(r,n),n}},{key:"clearManualSize",value:function(e){var t=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(t,null)}},{key:"onMapInit",value:function(){var e=this,t=E.get(this),n=this.hot.getSettings()[y],r=this.loadManualColumnWidths();void 0!==r?this.hot.batchExecution((function(){r.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0):Array.isArray(n)?(this.hot.batchExecution((function(){n.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0),t.config=n):!0===n&&Array.isArray(t.config)&&this.hot.batchExecution((function(){t.config.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"setupHandlePosition",value:function(e){var t=this;if(e.parentNode){this.currentTH=e;var n=this.hot.view._wt,r=n.wtTable.getCoords(this.currentTH),o=r.col;if(!(o<0)){var i,a=(0,h.outerHeight)(this.currentTH),s=this.currentTH.getBoundingClientRect();o<n.getSetting("fixedColumnsStart")&&(i=n.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),i||(i=n.wtOverlays.topOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),this.currentCol=this.hot.columnIndexMapper.getVisualFromRenderableIndex(o),this.selectedCols=[];var l=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&l){var u=this.hot.getSelectedRange();(0,p.arrayEach)(u,(function(e){var n=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,g.rangeEach)(n,r,(function(e){t.selectedCols.includes(e)||t.selectedCols.push(e)}))}))}this.selectedCols.includes(this.currentCol)||(this.selectedCols=[this.currentCol]),this.startOffset=i.start-6,this.startWidth=parseInt(s.width,10),this.handle.style.top="".concat(i.top,"px"),this.handle.style[this.inlineDir]="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(a,"px"),this.hot.rootElement.appendChild(this.handle)}}}},{key:"refreshHandlePosition",value:function(){this.handle.style[this.inlineDir]="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.refreshGuidePosition(),this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style[this.inlineDir]=this.handle.style[this.inlineDir]}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){return!!(0,h.closest)(e,["THEAD"],this.hot.rootElement)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(!(0,h.isDetached)(e.target)&&this.checkIfColumnHeader(e.target)){var t=this.getClosestTHParent(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeColumnResize",e.newSize,n,!0);void 0!==o&&(e.newSize=o),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!0),r&&t()};this.dblclick>=2&&(this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=e.pageX,this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;if(this.pressed){var n=(e.pageX-this.startX)*this.hot.getDirectionFactor();this.currentWidth=this.startWidth+n,(0,p.arrayEach)(this.selectedCols,(function(e){t.newSize=t.setManualSize(e,t.currentWidth)})),this.refreshHandlePosition(),this.refreshGuidePosition()}}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeColumnResize",e.newSize,n,!1),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootWindow,r=t.rootElement;this.eventManager.addEventListener(r,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(r,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(n,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(n,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalColumn(t),o=this.columnWidthsMap.getValueAtIndex(r);this.hot.getSettings()[y]&&o&&(n=o)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.columnWidthsMap.getValueAtIndex(t);return null===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return y}},{key:"PLUGIN_PRIORITY",get:function(){return 130}}]),n}(d.BasePlugin);t.ManualColumnResize=T},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var r=n(1023);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowMove=r.ManualRowMove},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(67),n(22);var d=n(38),h=r(n(59)),f=n(13),p=n(16),g=n(36),m=r(n(49)),v=r(n(1024)),y=r(n(1025));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}n(1026),h.default.getSingleton().register("beforeRowMove"),h.default.getSingleton().register("afterRowMove");t.PLUGIN_KEY="manualRowMove";t.PLUGIN_PRIORITY=140;var T=new WeakMap,C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),T.set((0,a.default)(r),{rowsToMove:[],pressed:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new v.default(e),r.guideline=new y.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollHorizontally",(function(){return e.onAfterScrollHorizontally()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualRowMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){return this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=T.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeRowMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.rowIndexMapper.moveIndexes(e,t);var a=o&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,r,o,a),a}}},{key:"dragRow",value:function(e,t){return this.dragRows([e],t)}},{key:"dragRows",value:function(e,t){var n=this.countFinalIndex(e,t);return T.get(this).cachedDropIndex=t,this.moveRows(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,f.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getRowsHeight",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=0,o=e;o<=t;o++){var i=n.getRenderableFromVisualIndex(o);null!==i&&(r+=this.hot.view._wt.wtTable.getRowHeight(i)||23)}return r}},{key:"moveBySettingsOrLoad",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.countRows()-1-this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}},{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,r=e.to,o=Math.min(n.row,r.row),i=Math.max(n.row,r.row);return(0,g.rangeEach)(o,i,(function(e){t.push(e)})),t}},{key:"refreshPositions",value:function(){var e=T.get(this),t=e.target.coords,n=this.hot.view.getFirstFullyVisibleRow(),r=this.hot.view.getLastFullyVisibleRow(),o=this.hot.countRows();this.isFixedRowTop(t.row)&&n>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(n-1,-1)),this.isFixedRowBottom(t.row)&&r<o&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(r+1,1),void 0,!0);var i=this.hot.view._wt.wtTable,a=e.target.TD,s=(0,p.offset)(this.hot.rootElement),l=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row-1),u=e.target.eventPageY-s.top+i.holder.scrollTop,c=i.hider.offsetHeight,d=i.TBODY.offsetTop,h=this.backlight.getOffset().top,f=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(l+=i.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:a.offsetHeight/2+l<=u?(e.target.row=t.row+1,l+=0===t.row?a.offsetHeight-1:a.offsetHeight):e.target.row=t.row;var g=u,m=l;u+f+h>=c?g=c-f-h:u+h<d&&(g=d+Math.abs(h)),l>=c-1&&(m=c-1),this.backlight.setPosition(g),this.guideline.setPosition(m)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt,i=o.wtTable,a=o.wtViewport,s=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast(),u=T.get(this);if(!l||!s||u.pressed||0!==e.button)return u.pressed=!1,u.rowsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),d=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&d&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var h=l.from,f=l.to,g=Math.min(h.row,f.row),m=Math.max(h.row,f.row);if(t.col<0&&t.row>=g&&t.row<=m){r.row=!0,u.pressed=!0,u.target.eventPageY=e.pageY,u.target.coords=t,u.target.TD=n,u.rowsToMove=this.prepareRowsToMoving();var v=i.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,v),this.backlight.setSize(i.hider.offsetWidth-v,this.getRowsHeight(g,m)),this.backlight.setOffset(-1*(this.getRowsHeight(g,t.row-1)+e.offsetY),null),(0,p.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}else(0,p.removeClass)(this.hot.rootElement,"after-selection--rows"),u.pressed=!1,u.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=T.get(this);if(t.pressed){if(e.target===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,r){var o=this.hot.getSelectedRangeLast(),i=T.get(this);o&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=T.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--rows"),!(n<1||void 0===t)){var r=e.rowsToMove[0],o=this.hot.toPhysicalRow(r),i=this.dragRows(e.rowsToMove,t);if(e.rowsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualRow(o),s=a+n-1;this.hot.selectRows(a,s)}}}},{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:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualRowMove"}},{key:"PLUGIN_PRIORITY",get:function(){return 140}}]),n}(d.BasePlugin);t.ManualRowMove=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(628)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualRowMove--backlight")}}]),n}(c.default);t.default=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(628)),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"build",value:function(){(0,a.default)((0,u.default)(n.prototype),"build",this).call(this),(0,d.addClass)(this._element,"ht__manualRowMove--guideline")}}]),n}(c.default);t.default=f},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var r=n(1028);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowResize=r.ManualRowResize},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(31),n(41),n(67),n(23);var d=n(38),h=n(16),f=r(n(49)),p=n(13),g=n(36),m=n(76),v=n(130);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var E="manualRowResize";t.PLUGIN_KEY=E;t.PLUGIN_PRIORITY=30;var T=new WeakMap,C=function(e){(0,l.default)(n,e);var t=y(n);function n(e){var r;(0,o.default)(this,n);var i=(r=t.call(this,e)).hot.rootDocument;return r.currentTH=null,r.currentRow=null,r.selectedRows=[],r.currentHeight=null,r.newSize=null,r.startY=null,r.startHeight=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new f.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.rowHeightsMap=void 0,T.set((0,a.default)(r),{config:void 0}),(0,h.addClass)(r.handle,"manualRowResizer"),(0,h.addClass)(r.guide,"manualRowResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[E]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.rowHeightsMap=new m.PhysicalIndexToValueMap,this.rowHeightsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,this.rowHeightsMap),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.bindEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){T.get(this).config=this.rowHeightsMap.getValues(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.rowHeightsMap.getValues())}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setManualSize",value:function(e,t){var n=this.hot.toPhysicalRow(e),r=Math.max(t,v.ViewportRowsCalculator.DEFAULT_HEIGHT);return this.rowHeightsMap.setValueAtIndex(n,r),r}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view,r=n._wt,o=r.wtTable.getCoords(this.currentTH),i=o.row;if(!(i<0)){var a,s=(0,h.outerWidth)(this.currentTH),l=this.currentTH.getBoundingClientRect(),u=i<r.getSetting("fixedRowsTop"),c=i>=n.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");u?a=r.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col):c&&(a=r.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),a||(a=r.wtOverlays.inlineStartOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.selectedRows=[];var d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&d){var f=this.hot.getSelectedRange();(0,p.arrayEach)(f,(function(e){var n=e.getTopStartCorner().row,r=e.getBottomStartCorner().row;(0,g.rangeEach)(n,r,(function(e){t.selectedRows.includes(e)||t.selectedRows.push(e)}))}))}this.selectedRows.includes(this.currentRow)||(this.selectedRows=[this.currentRow]),this.startOffset=a.top-6,this.startHeight=parseInt(l.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style[this.inlineDir]="".concat(a.start,"px"),this.handle.style.width="".concat(s,"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,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style[this.inlineDir],10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style[this.inlineDir]="".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,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){var t,n;return(0,h.closest)(e,["TH"],this.hot.rootElement)&&"TBODY"===(null===(t=e.parentNode)||void 0===t||null===(n=t.parentNode)||void 0===n?void 0:n.tagName)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"getActualRowHeight",value:function(e){var t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&this.newSize<t?t:this.newSize}},{key:"onMouseOver",value:function(e){if(!(0,h.isDetached)(e.target)&&this.checkIfRowHeader(e.target)){var t=this.getClosestTHParent(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!0);void 0!==o&&(e.newSize=o),e.setManualSize(n,e.newSize),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!0),r&&t()};this.dblclick>=2&&(this.selectedRows.length>1?((0,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedRows,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=e.pageY,this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(e.pageY-this.startY),(0,p.arrayEach)(this.selectedRows,(function(e){t.newSize=t.setManualSize(e,t.currentHeight)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!1),r&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)this.selectedRows.length>1?((0,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedRows,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootElement,r=t.rootWindow;this.eventManager.addEventListener(n,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(n,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(r,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(r,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyRowHeight",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalRow(t),o=this.rowHeightsMap.getValueAtIndex(r);this.hot.getSettings()[E]&&o&&(n=o)}return n}},{key:"onMapInit",value:function(){var e=this,t=T.get(this),n=this.hot.getSettings()[E],r=this.loadManualRowHeights();this.hot.batchExecution((function(){void 0!==r?r.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})):Array.isArray(n)?(n.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})),t.config=n):!0===n&&Array.isArray(t.config)&&t.config.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return E}},{key:"PLUGIN_PRIORITY",get:function(){return 30}}]),n}(d.BasePlugin);t.ManualRowResize=C},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var r=n(1030);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MergeCells=r.MergeCells},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(31),n(41);var h=n(38),f=r(n(59)),p=r(n(1031)),g=r(n(310)),m=r(n(1032)),v=r(n(1033)),y=r(n(1034)),E=n(13),T=n(12),C=n(74),R=n(36),w=n(629);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}n(1035),f.default.getSingleton().register("beforeMergeCells"),f.default.getSingleton().register("afterMergeCells"),f.default.getSingleton().register("beforeUnmergeCells"),f.default.getSingleton().register("afterUnmergeCells");t.PLUGIN_KEY="mergeCells";t.PLUGIN_PRIORITY=150;var O=new WeakMap,b=function(e){(0,u.default)(n,e);var t=S(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),O.set((0,s.default)(r),{lastDesiredCoords:null}),r.mergedCellsCollection=null,r.autofillCalculations=null,r.selectionCalculations=null,r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new p.default(this),this.autofillCalculations=new m.default(this),this.selectionCalculations=new v.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.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("beforeSetRangeStart",(function(){return e.onBeforeSetRangeStart.apply(e,arguments)})),this.addHook("beforeSetRangeStartOnly",(function(){return e.onBeforeSetRangeStart.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)})),this.addHook("beforeUndoStackChange",(function(e,t){if("MergeCells"===t)return!1})),this.registerShortcuts(),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),(0,l.default)((0,d.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,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(g.default.containsNegativeValues(e)?((0,C.warn)(g.default.NEGATIVE_VALUES_WARNING(e)),t=!1):g.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,C.warn)(g.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):g.default.isSingleCell(e)?((0,C.warn)(g.default.IS_SINGLE_CELL(e)),t=!1):g.default.containsZeroSpan(e)&&((0,C.warn)(g.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n=[];if((0,E.arrayEach)(e,(function(e){if(t.validateSetting(e)){var r=t.hot._createCellCoords(e.row,e.col),o=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),i=t.hot._createCellRange(r,r,o);t.mergeRange(i,!0,!0),(0,R.rangeEach)(e.row,e.row+e.rowspan-1,(function(t){(0,R.rangeEach)(e.col,e.col+e.colspan-1,(function(r){!1==(t===e.row&&r===e.col)&&n.push([t,r,null])}))}))}})),0===n.length)return;this.hot.setDataAtCell(n)}}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection(this.hot.isRtl()?"NE-SW":"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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.getTopStartCorner(),i=e.getBottomEndCorner(),a={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[],l=null;if(!this.canMergeRange(a,n))return!1;this.hot.runHooks("beforeMergeCells",e,n),(0,R.rangeEach)(0,a.rowspan-1,(function(e){(0,R.rangeEach)(0,a.colspan-1,(function(n){var r=null;s[e]||(s[e]=[]),0===e&&0===n?r=t.hot.getSourceDataAtCell(t.hot.toPhysicalRow(a.row),t.hot.toPhysicalColumn(a.col)):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=r}))})),this.hot.setCellMeta(a.row,a.col,"spanned",!0);var u=this.mergedCellsCollection.add(a);return!u||(r?l=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),l)}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCellsCollection.getWithinRange(e);r&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,E.arrayEach)(r,(function(e){t.mergedCellsCollection.remove(e.row,e.col),(0,R.rangeEach)(0,e.rowspan-1,(function(n){(0,R.rangeEach)(0,e.colspan-1,(function(r){t.hot.removeCellMeta(e.row+n,e.col+r,"hidden")}))})),t.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,n),this.hot.render())}},{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,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.mergeRange(this.hot._createCellRange(o,o,i))}},{key:"unmerge",value:function(e,t,n,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.unmergeRange(this.hot._createCellRange(o,o,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"registerShortcuts",value:function(){var e=this;this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:function(){e.toggleMerge(e.hot.getSelectedRangeLast()),e.hot.render()},runOnlyIf:function(e){return!e.altKey},group:"mergeCells"})}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup("mergeCells")}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),r=0;r<t.length;r+=1)if(n.from.row===t[r].row&&n.from.col===t[r].col&&n.to.row===t[r].row+t[r].rowspan-1&&n.to.col===t[r].col+t[r].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=O.get(this),r=this.hot.getSelectedRangeLast(),o={row:e.row,col:e.col},i=this.hot._createCellCoords(r.highlight.row,r.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),a){var s=this.hot._createCellCoords(a.row,a.col),l=this.hot._createCellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);this.hot._createCellRange(s,s,l).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),o.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-i.row:o.row,o.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-i.col:o.col,e.row>0?o.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(o.row=i.row-a.row+e.row),e.col>0?o.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(o.col=i.col-a.col+e.col)}t=this.hot._createCellCoords(r.highlight.row+o.row,r.highlight.col+o.col);var u=this.mergedCellsCollection.get(t.row,t.col);if(u){var c=this.mergedCellsCollection.getFirstRenderableCoords(u.row,u.col);n.lastDesiredCoords=t,o={row:c.row-i.row,col:c.col-i.col}}0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),r=(0,T.clone)(e),o=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=(0,T.clone)(r),a=this.mergedCellsCollection.getWithinRange(o,!0);do{i=(0,T.clone)(r),this.selectionCalculations.getUpdatedSelectionRange(n,r),(0,E.arrayEach)(a,(function(e){t.selectionCalculations.snapDelta(r,n,e)}))}while(r.row!==i.row||r.col!==i.col);e.row=r.row,e.col=r.col}},{key:"onModifyGetCellCoords",value:function(e,t){if(!(e<0||t<0)){var n=this.mergedCellsCollection.get(e,t);if(n){var r=n.row,o=n.col,i=n.colspan;return[r,o,r+n.rowspan-1,o+i-1]}}}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,y.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var r=this.mergedCellsCollection.get(t,n),i=(0,T.isObject)(r)?(0,T.clone)(r):void 0;if((0,T.isObject)(i)){var a=this.hot,s=a.rowIndexMapper,l=a.columnIndexMapper,u=i.row,c=i.col,d=i.colspan,h=i.rowspan,f=this.translateMergedCellToRenderable(u,h,c,d),p=(0,o.default)(f,2),g=p[0],m=p[1],v=g-s.getRenderableFromVisualIndex(t)+1,y=m-l.getRenderableFromVisualIndex(n)+1;i.row=s.getNearestNotHiddenIndex(i.row,1),i.col=l.getNearestNotHiddenIndex(i.col,1),i.rowspan=Math.min(i.rowspan,v),i.colspan=Math.min(i.colspan,y)}(0,w.applySpanProperties)(e,i,t,n)}},{key:"onBeforeSetRangeStart",value:function(e){if(this.mergedCellsCollection.isFirstRenderableMergedCell(e.row,e.col)){var t=this.mergedCellsCollection.get(e.row,e.col),n=[t.row,t.col];e.row=n[0],e.col=n[1]}}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=this.hot._createCellCoords(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 r=0;r<this.mergedCellsCollection.mergedCells.length;r+=1){var o=this.mergedCellsCollection.mergedCells[r].getRange();t.expandByRange(o)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}},{key:"modifyViewportRowStart",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.startRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.row,1));if(a<e.startRow)return e.startRow=a,void this.modifyViewportRowStart(e,t)}}}},{key:"modifyViewportRowEnd",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.endRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=i.row+i.rowspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(a,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}},{key:"modifyViewportColumnStart",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.col,1));if(a<e.startColumn)return e.startColumn=a,void this.modifyViewportColumnStart(e,t)}}}},{key:"modifyViewportColumnEnd",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.endColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=i.col+i.colspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(a,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}},{key:"translateMergedCellToRenderable",value:function(e,t,n,r){var o,i,a=this.hot,s=a.rowIndexMapper,l=a.columnIndexMapper;return o=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),i=0===r?l.getNearestNotHiddenIndex(n,1):l.getNearestNotHiddenIndex(n+r-1,-1),[e>=0?s.getRenderableFromVisualIndex(o):e,n>=0?l.getRenderableFromVisualIndex(i):n]}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),r=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,r,n))return r=t;var o=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return o?r=this.autofillCalculations.snapDragArea(t,r,n,o):r}},{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(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getWithinRange(n);(0,E.arrayEach)(r,(function(t){n.getBottomEndCorner().row===t.getLastRow()&&n.getBottomEndCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)}))}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var r=this.mergedCellsCollection.get(e.row,e.col);if(r){var o=t>0,i=t<0,a=n<0,s=n>0,l=r.row+r.rowspan-1==this.hot.countRows()-1,u=0===r.row,c=r.col+r.colspan-1==this.hot.countCols()-1,d=0===r.col;(o&&l||i&&u||s&&c||a&&d)&&(e.row=r.row,e.col=r.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}],[{key:"PLUGIN_KEY",get:function(){return"mergeCells"}},{key:"PLUGIN_PRIORITY",get:function(){return 150}}]),n}(h.BasePlugin);t.MergeCells=b},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(64));n(22),n(53);var i,a=r(n(32)),s=r(n(2)),l=r(n(3)),u=r(n(310)),c=n(36),d=n(74),h=n(13),f=n(629),p=n(66),g=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}return(0,l.default)(e,[{key:"get",value:function(e,t){var n=this.mergedCells,r=!1;return(0,h.arrayEach)(n,(function(n){return!(n.row<=e&&n.row+n.rowspan-1>=e&&n.col<=t&&n.col+n.colspan-1>=t)||(r=n,!1)})),r}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return(0,h.arrayEach)(t,(function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t)})),n}},{key:"getWithinRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCells,o=[],i=e;if(!i.includesRange){var a=this.hot._createCellCoords(i.from.row,i.from.col),s=this.hot._createCellCoords(i.to.row,i.to.col);i=this.hot._createCellRange(a,a,s)}return(0,h.arrayEach)(r,(function(e){var r=t.hot._createCellCoords(e.row,e.col),a=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),s=t.hot._createCellRange(r,r,a);n?i.overlaps(s)&&o.push(e):i.includesRange(s)&&o.push(e)})),!!o.length&&o}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,o=t.col,i=t.rowspan,a=t.colspan,s=new u.default(r,o,i,a,this.hot._createCellCoords,this.hot._createCellRange),l=this.get(r,o),c=this.isOverlapping(s);return l||c?((0,d.warn)(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,r=this.get(e,t),o=r?this.mergedCells.indexOf(r):-1;return!(!r||-1===o)&&(n.splice(o,1),r)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];(0,h.arrayEach)(t,(function(t){var r=e.hot.getCell(t.row,t.col);r&&n.push([r,e.get(t.row,t.col),t.row,t.col])})),this.mergedCells.length=0,(0,h.arrayEach)(n,(function(t,o){(0,c.rangeEach)(0,t.rowspan-1,(function(n){(0,c.rangeEach)(0,t.colspan-1,(function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}}))})),n[o][1]=null})),(0,h.arrayEach)(n,(function(e){f.applySpanProperties.apply(void 0,(0,a.default)(e))})),(0,h.arrayEach)(r,(function(e){f.applySpanProperties.apply(void 0,(0,a.default)(e))}))}},{key:"isOverlapping",value:function(e){var t=this,n=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(e.row,e.col),this.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),r=!1;return(0,h.arrayEach)(this.mergedCells,(function(e){return!t.hot._createCellRange(t.hot._createCellCoords(0,0),t.hot._createCellCoords(e.row,e.col),t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(n)||(r=!0,!1)})),r}},{key:"isFirstRenderableMergedCell",value:function(e,t){var n=this.get(e,t);return n&&this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1)===t}},{key:"getFirstRenderableCoords",value:function(e,t){var n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);var r=this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1),o=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1);return this.hot._createCellCoords(r,o)}},{key:"shiftCollections",value:function(e,t,n){var r=this,o=[0,0];switch(e){case"right":o[0]+=n;break;case"left":o[0]-=n;break;case"down":o[1]+=n;break;case"up":o[1]-=n}(0,h.arrayEach)(this.mergedCells,(function(e){e.shift(o,t)})),(0,c.rangeEachReverse)(this.mergedCells.length-1,0,(function(e){var t=r.mergedCells[e];t&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t),1)}))}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,p.toSingleLine)(i||(i=(0,o.default)(["The merged cell declared at [",", ","], overlaps \n with the other declared merged cell. The overlapping merged cell was not added to the table, please \n fix your setup."],["The merged cell declared at [",", ","], overlaps\\x20\n with the other declared merged cell. The overlapping merged cell was not added to the table, please\\x20\n fix your setup."])),e.row,e.col)}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(39),n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(13),u=function(){function e(t){(0,i.default)(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return(0,a.default)(e,[{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,r){var i=t.slice(0),a=this.getAutofillSize(e,t,n),s=(0,o.default)(e,4),l=s[0],u=s[1],c=s[2],d=s[3],h=["up","down"].indexOf(n)>-1?c-l+1:d-u+1,f=a-Math.floor(a/h)*h,p=this.getFarthestCollection(e,t,n,r);if(p)if("down"===n){var g=p.row+p.rowspan-l-f;i[2]+g>=this.plugin.hot.countRows()?i[2]-=f:i[2]+=f?g:0}else if("right"===n){var m=p.col+p.colspan-u-f;i[3]+m>=this.plugin.hot.countCols()?i[3]-=f:i[3]+=f?m:0}else if("up"===n){var v=c-f-p.row+1;i[0]+v<0?i[0]+=f:i[0]-=f?v:0}else if("left"===n){var y=d-f-p.col+1;i[1]+y<0?i[1]+=f:i[1]-=f?y:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:a,dragArea:i,cycleLength:h}),i}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,s.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],l=r[3],u=(0,o.default)(t,4),c=u[0],d=u[1],h=u[2],f=u[3];switch(n){case"up":return i-c;case"down":return h-s;case"left":return a-d;case"right":return f-l;default:return null}}},{key:"getDragArea",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],l=r[3],u=(0,o.default)(t,4),c=u[0],d=u[1],h=u[2],f=u[3];switch(n){case"up":return[c,d,i-1,l];case"down":return[s+1,a,h,l];case"left":return[c,d,s,a-1];case"right":return[i,l+1,h,f];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,r){var i=(0,o.default)(e,4),a=i[0],s=i[1],u=i[2],c=i[3],d=["up","down"].indexOf(n)>-1,h=d?u:c,f=d?a:s,p=this.getAutofillSize(e,t,n),g=d?u-a+1:c-s+1,m=p-Math.floor(p/g)*g,v=null,y=null,E=null;switch(n){case"up":v="includesVertically",E=h-m+1;break;case"left":v="includesHorizontally",E=h-m+1;break;case"down":v="includesVertically",E=f+m-1;break;case"right":v="includesHorizontally",E=f+m-1}return(0,l.arrayEach)(r,(function(e){e[v](E)&&e.isFarther(y,n)&&(y=e)})),y}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=function(e,n){switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}},i=0,a=null,s=1;do{for(var l=0;l<n.length;l+=1){if(o(a=n[l],i=s*this.currentFillData.cycleLength))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,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-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}l===n.length-1&&(s+=1)}}while(o(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t=this,n={min:null,max:null},r={min:null,max:null};return(0,l.arrayEach)(e,(function(e){var o=e[0],i=t.plugin.hot.propToCol(e[1]);(null===n.min||o<n.min)&&(n.min=o),(null===n.max||o>n.max)&&(n.max=o),(null===r.min||i<r.min)&&(r.min=i),(null===r.max||i>r.max)&&(r.max=i)})),{from:{row:n.min,column:r.min},to:{row:n.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var r=this.getDragArea(e,t,n),i=(0,o.default)(r,4),a=i[0],s=i[1],l=i[2],u=i[3],c=this.plugin.hot._createCellCoords(a,s),d=this.plugin.hot._createCellCoords(l,u),h=this.plugin.hot._createCellRange(c,c,d);return!!this.mergedCellsCollection.getWithinRange(h,!0)}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(31),n(41);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.plugin=t,this.hot=t.hot,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return(0,i.default)(e,[{key:"snapDelta",value:function(e,t,n){var r=t.to,o=r.row+e.row,i=r.col+e.col;e.row?this.jumpOverMergedCell(e,n,o):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var r=e.row||e.col,o=null,i=null,a=null;e.row?(o=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(o=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==r&&(r>0?o&&n!==i&&(r+=a-n+1):o&&n!==a&&(r-=n-i+1),e.row?e.row=r:e.col&&(e.col=r))}},{key:"getUpdatedSelectionRange",value:function(e,t){return this.hot._createCellRange(e.highlight,e.from,this.hot._createCellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,r){var o=Math.min(n[0],n[2]),i=Math.min(n[1],n[3]),a=Math.max(n[0],n[2]),s=Math.max(n[1],n[3]);if(void 0!==r&&this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t)){var l=this.plugin.mergedCellsCollection.get(e,t);if(l){var u=l.getLastRow(),c=l.getLastColumn();return o<=l.row&&i<=l.col&&a>=u&&s>=c?"".concat(this.fullySelectedMergedCellClassName,"-").concat(r):this.plugin.selectionCalculations.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?"".concat(this.fullySelectedMergedCellClassName,"-multiple"):void 0}}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;r<e.rowspan;r+=1)for(var o=0;o<e.colspan;o+=1)n.push(this.hot._createCellCoords(e.row+r,e.col+o));for(var i=0;i<n.length;i+=1){for(var a=[],s=0;s<t.length;s+=1)a[s]=t[s].includes(n[i]);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}}]),e}();t.default=a},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name:function(){var t=this.getSelectedLast();if(t){var n=e.mergedCellsCollection.get(t[0],t[1]);if(n.row===t[0]&&n.col===t[1]&&n.row+n.rowspan-1===t[2]&&n.col+n.colspan-1===t[3])return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){e.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 i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),a=r(n(310));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0;var r=n(1037);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultiColumnSorting=r.MultiColumnSorting},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0,n(20),n(89);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(610),d=n(117),h=n(303),f=n(16),p=n(1038),g=n(1039),m=n(1040);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(1041);var y="multiColumnSorting";t.PLUGIN_KEY=y;t.PLUGIN_PRIORITY=170;(0,d.registerRootComparator)(y,p.rootComparator);var E=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).pluginKey=y,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,a.default)((0,u.default)(n.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,g.warnAboutPluginsConflict)(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){(0,a.default)((0,u.default)(n.prototype),"sort",this).call(this,e)}},{key:"clearSort",value:function(){(0,a.default)((0,u.default)(n.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return(0,a.default)((0,u.default)(n.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(e){return(0,a.default)((0,u.default)(n.prototype),"getSortConfig",this).call(this,e)}},{key:"setSortConfig",value:function(e){(0,a.default)((0,u.default)(n.prototype),"setSortConfig",this).call(this,e)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}},{key:"updateHeaderClasses",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(t=(0,a.default)((0,u.default)(n.prototype),"updateHeaderClasses",this)).call.apply(t,[this,e].concat(o)),(0,f.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled&&(0,f.addClass)(e,m.getClassesToAdd.apply(void 0,o))}},{key:"onUpdateSettings",value:function(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,g.warnAboutPluginsConflict)(),(0,a.default)((0,u.default)(n.prototype),"onUpdateSettings",this).call(this,e)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,h.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}],[{key:"PLUGIN_KEY",get:function(){return y}},{key:"PLUGIN_PRIORITY",get:function(){return 170}}]),n}(c.ColumnSorting);t.MultiColumnSorting=E},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a=(0,o.default)(n).slice(1),s=(0,o.default)(r).slice(1);return function n(r){var o=e[r],l=t[r],u=a[r],c=s[r],d=l.multiColumnSorting,h=(d.compareFunctionFactory?d.compareFunctionFactory:(0,i.getCompareFunctionFactory)(l.type))(o,l,d)(u,c);if(h===i.DO_NOT_SWAP){var f=r+1;if(void 0!==t[f])return n(f)}return h}(0)}},n(39);var o=r(n(611)),i=n(117)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,a.warn)((0,s.toSingleLine)(o||(o=(0,i.default)(["Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously. \n Only `multiColumnSorting` will work."],["Plugins \\`columnSorting\\` and \\`multiColumnSorting\\` should not be enabled simultaneously. \n Only \\`multiColumnSorting\\` will work."]))))};var o,i=r(n(64)),a=n(74),s=n(66)},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n){var r=[];if(!1===n)return r;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push("".concat("sort","-").concat(e.getIndexOfColumnInSortQueue(t)+1));return r},t.getClassesToRemove=function(e){var t=e.className.split(" "),n=new RegExp("^".concat("sort","-[0-9]{1,2}$"));return t.filter((function(e){return n.test(e)}))},n(148),n(51),n(98),n(35),n(1)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0;var r=n(1043);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultipleSelectionHandles=r.MultipleSelectionHandles},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0,n(53),n(22),n(39);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(94),h=n(38),f=r(n(49));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="multipleSelectionHandles";t.PLUGIN_PRIORITY=160;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).dragged=[],r.eventManager=null,r.lastSetCell=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,d.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new f.default(this)),this.registerListeners(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this,t=this,n=this.hot.rootElement;function r(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);if(-1===n)return!1;0===n?t.dragged=t.dragged.slice(0,1):1===n&&(t.dragged=t.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",(function(e){var n;return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("top"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("bottom"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchend",(function(e){return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(r.call(t,"top"),t.touchStartRange=void 0,e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(r.call(t,"bottom"),t.touchStartRange=void 0,e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchmove",(function(n){var r,o,i,a,s,l,u=e.hot.rootDocument;if(0!==t.dragged.length){var c=u.elementFromPoint(n.touches[0].clientX,n.touches[0].clientY);c&&c!==t.lastSetCell&&("TD"!==c.nodeName&&"TH"!==c.nodeName||(-1===(r=t.hot.getCoords(c)).col&&(r.col=0),i=(o=t.hot.getSelectedRangeLast()).getWidth(),a=o.getHeight(),s=o.getDirection(),1===i&&1===a&&t.hot.selection.setRangeEnd(r),null!==(l=t.getCurrentRangeCoords(o,r,t.touchStartRange.direction,s,t.dragged[0])).start&&t.hot.selection.setRangeStart(l.start),t.hot.selection.setRangeEnd(l.end),t.lastSetCell=c),n.preventDefault())}}))}},{key:"getCurrentRangeCoords",value:function(e,t,n,r,o){var i=e.getTopStartCorner(),a=e.getBottomEndCorner(),s=e.getBottomStartCorner(),l=e.getTopEndCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(r){case"NE-SW":case"NW-SE":u="top"===o?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SE-NW":"bottom"===o&&(u={start:this.hot._createCellCoords(a.row,t.col),end:this.hot._createCellCoords(t.row,i.col)})}break;case"NW-SE":switch(r){case"NE-SW":"top"===o?u={start:t,end:s}:u.end=t;break;case"NW-SE":"top"===o?u={start:t,end:a}:u.end=t;break;case"SE-NW":"top"===o?u={start:t,end:i}:u.end=t;break;case"SW-NE":"top"===o?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(r){case"NW-SE":u="bottom"===o?{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,a.col)};break;case"SW-NE":u="top"===o?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,a.col)}:{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(i.row,t.col)};break;case"SE-NW":"bottom"===o?u={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(i.row,t.col)}:"top"===o&&(u={start:s,end:t})}break;case"SE-NW":switch(r){case"NW-SE":case"NE-SW":case"SW-NE":"top"===o&&(u.end=t);break;case"SE-NW":"top"===o?u.end=t:u={start:t,end:i}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}],[{key:"PLUGIN_KEY",get:function(){return"multipleSelectionHandles"}},{key:"PLUGIN_PRIORITY",get:function(){return 160}}]),n}(h.BasePlugin);t.MultipleSelectionHandles=g},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var r=n(1045);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedHeaders=r.NestedHeaders},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var o=r(n(64));n(20),n(1),n(23),n(4),n(5),n(7),n(6);var i,a,s=r(n(2)),l=r(n(3)),u=r(n(33)),c=r(n(19)),d=r(n(10)),h=r(n(11)),f=r(n(8)),p=r(n(26)),g=r(n(79)),m=r(n(78)),v=n(16),y=n(36),E=n(75),T=n(66),C=n(74),R=n(295),w=n(38),S=r(n(1046)),O=r(n(1055));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function A(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1056);t.PLUGIN_KEY="nestedHeaders";t.PLUGIN_PRIORITY=280;var N=new WeakMap,M=new WeakMap,I=function(e){(0,d.default)(n,e);var t=b(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),A((0,u.default)(e),N,{writable:!0,value:new S.default}),A((0,u.default)(e),M,{writable:!0,value:null}),(0,p.default)((0,u.default)(e),"ghostTable",new O.default(e.hot,(function(t,n){return e.getHeaderSettings(t,n)}))),(0,p.default)((0,u.default)(e),"detectedOverlappedHeaders",!1),e}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().nestedHeaders;Array.isArray(t)&&Array.isArray(t[0])||(0,C.warn)((0,T.toSingleLine)(i||(i=(0,o.default)(["Your Nested Headers plugin configuration is invalid. The settings has to be \n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"],["Your Nested Headers plugin configuration is invalid. The settings has to be\\x20\n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"])))),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(){return e.onAfterOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterGetColumnHeaderRenderers",(function(t){return e.onAfterGetColumnHeaderRenderers(t)})),this.addHook("modifyColWidth",(function(){return e.onModifyColWidth.apply(e,arguments)})),this.addHook("modifyColumnHeaderValue",(function(){return e.onModifyColumnHeaderValue.apply(e,arguments)})),this.addHook("beforeHighlightingColumnHeader",(function(){return e.onBeforeHighlightingColumnHeader.apply(e,arguments)})),this.addHook("beforeCopy",(function(){return e.onBeforeCopy.apply(e,arguments)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin()}}},{key:"updatePlugin",value:function(){var e=this;if(this.hot.view){var t=this.hot.getSettings().nestedHeaders;(0,m.default)(this,N).setColumnsLimit(this.hot.countCols()),Array.isArray(t)&&(this.detectedOverlappedHeaders=(0,m.default)(this,N).setState(t)),this.detectedOverlappedHeaders&&(0,C.warn)((0,T.toSingleLine)(a||(a=(0,o.default)(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration \n is currently not supported."],["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\\x20\n is currently not supported."])))),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((function(t,n){var r=!0===t?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(r,n)})),!(0,m.default)(this,M)&&this.enabled&&(0,g.default)(this,M,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((function(t){t.forEach((function(t){var n=t.op,r=t.index,o=t.newValue;if("replace"===n){var i=!0===o?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(i,r)}})),e.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.clearColspans(),(0,m.default)(this,N).clear(),(0,m.default)(this,M).unsubscribe(),(0,g.default)(this,M,null),this.ghostTable.clear(),(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getStateManager",value:function(){return(0,m.default)(this,N)}},{key:"getLayersCount",value:function(){return(0,m.default)(this,N).getLayersCount()}},{key:"getHeaderSettings",value:function(e,t){return(0,m.default)(this,N).getHeaderSettings(e,t)}},{key:"clearColspans",value:function(){if(this.hot.view)for(var e=this.hot.view._wt,t=e.getSetting("columnHeaders").length,n=e.wtTable.THEAD,r=e.wtOverlays.topOverlay.clone.wtTable.THEAD,o=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,i=0;i<t;i++){var a=n.childNodes[i];if(!a)break;for(var s=r.childNodes[i],l=o?o.childNodes[i]:null,u=0,c=a.childNodes.length;u<c;u++)a.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(a.childNodes[u],"hiddenHeader"),s&&s.childNodes[u]&&(s.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(s.childNodes[u],"hiddenHeader")),o&&l&&l.childNodes[u]&&(l.childNodes[u].removeAttribute("colspan"),(0,v.removeClass)(l.childNodes[u],"hiddenHeader"))}}},{key:"headerRendererFactory",value:function(e){var t=this,n=this.hot.view._wt.getSetting("fixedColumnsStart");return function(r,o){var i,a=t.hot,s=a.columnIndexMapper,l=a.view,u=s.getVisualFromRenderableIndex(r);null===u&&(u=r),o.removeAttribute("colspan"),(0,v.removeClass)(o,"hiddenHeader");var c=null!==(i=(0,m.default)(t,N).getHeaderSettings(e,u))&&void 0!==i?i:{label:""},d=c.colspan,h=c.isHidden;if(c.isPlaceholder||h)(0,v.addClass)(o,"hiddenHeader");else if(d>1){var f,p,g=l._wt.wtOverlays,y=null===(f=g.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(o),E=null===(p=g.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(o),T=y||E?Math.min(d,n-r):d;T>1&&o.setAttribute("colspan",T)}t.hot.view.appendColHeader(u,o,(function(){return t.getColumnHeaderValue.apply(t,arguments)}),e)}}},{key:"getColumnHeaderValue",value:function(e,t){var n,r=null!==(n=(0,m.default)(this,N).getHeaderSettings(t,e))&&void 0!==n?n:{},o=r.isHidden;return r.isPlaceholder||o?"":this.hot.getColHeader(e,t)}},{key:"onBeforeHighlightingColumnHeader",value:function(e,t,n){var r=(0,m.default)(this,N).getHeaderTreeNodeData(t,e);if(!r)return e;var o=n.classNames,i=n.columnCursor,a=n.selectionType,s=n.selectionWidth,l=(0,m.default)(this,N).getHeaderSettings(t,e),u=l.isRoot,c=l.colspan;if(a===R.HEADER_TYPE){if(!u)return r.columnIndex}else a===R.ACTIVE_HEADER_TYPE&&(c>s-i||!u)&&(o.length=0);return e}},{key:"onBeforeCopy",value:function(e,t,n){if(0!==n.columnHeadersCount)for(var r=0;r<t.length;r++){var o=t[r],i=o.startRow,a=o.startCol,s=o.endRow,l=o.endCol,u=s-i+1;if(i>=0||1===a-l+1)break;for(var c=a;c<=l;c++)for(var d=i;d<=s;d++){var h,f=u+d,p=c-a;if(0!==p)!1===(null===(h=(0,m.default)(this,N).getHeaderTreeNodeData(d,c))||void 0===h?void 0:h.isRoot)&&(e[f][p]="")}}}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){this._getHeaderTreeNodeDataByCoords(t)&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){var n=this._getHeaderTreeNodeDataByCoords(t);if(n){var r=this.hot.selection,o=r.isSelected()?r.getSelectedRange().current():null,i=[],a=n.columnIndex,s=n.origColspan,l=!r.inInSelection(t);e.shiftKey&&o?t.col<o.from.col?i.push(o.getTopEndCorner().col,a,t.row):t.col>o.from.col?i.push(o.getTopStartCorner().col,a+s-1,t.row):i.push(a,a+s-1,t.row):((0,E.isLeftClick)(e)||(0,E.isRightClick)(e)&&l)&&i.push(a,a+s-1,t.row),r.selectColumns.apply(r,i)}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o;if(this.hot.view.isMouseDown()){var i=this._getHeaderTreeNodeDataByCoords(t);if(i){var a=i.columnIndex,s=i.origColspan,l=this.hot.getSelectedRangeLast(),u=l.getTopStartCorner(),c=l.getBottomEndCorner(),d=l.from;r.column=!0,r.cell=!0;var h=[];t.col<d.col?h.push(c.col,a):t.col>d.col?h.push(u.col,a+s-1):h.push(a,a+s-1),(o=this.hot).selectColumns.apply(o,h)}}}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){e.length=0;for(var t=0;t<(0,m.default)(this,N).getLayersCount();t++)e.push(this.headerRendererFactory(t))}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){for(var t=(0,m.default)(this,N).getLayersCount(),n=e.startColumn,r=!!t,o=0;o<t;o++){var i=(0,m.default)(this,N).findLeftMostColumnIndex(o,e.startColumn),a=this.hot.columnIndexMapper.getRenderableFromVisualIndex(i);if(i>=0&&(r=!1),(0,y.isNumeric)(a)&&a<e.startColumn){n=a;break}}e.startColumn=r?(0,m.default)(this,N).getHeaderTreeNodeData(0,n).columnIndex:n}},{key:"onModifyColWidth",value:function(e,t){var n=this.ghostTable.getWidth(t);return e>n?e:n}},{key:"onModifyColumnHeaderValue",value:function(e,t,n){var r;return(null!==(r=(0,m.default)(this,N).getHeaderTreeNodeData(n,t))&&void 0!==r?r:{label:""}).label}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,g.default)(this,N,null),null!==(0,m.default)(this,M)&&((0,m.default)(this,M).unsubscribe(),(0,g.default)(this,M,null)),(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"_getHeaderTreeNodeDataByCoords",value:function(e){if(!(e.row>=0||e.col<0))return(0,m.default)(this,N).getHeaderTreeNodeData(e.row,e.col)}}],[{key:"PLUGIN_KEY",get:function(){return"nestedHeaders"}},{key:"PLUGIN_PRIORITY",get:function(){return 280}}]),n}(w.BasePlugin);t.NestedHeaders=I},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(65),n(4),n(1),n(5),n(7),n(6);var o=r(n(26)),i=r(n(109)),a=r(n(2)),s=r(n(3)),l=r(n(79)),u=r(n(78)),c=n(13),d=r(n(1047)),h=r(n(1049)),f=n(1051),p=n(1054),g=["row"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var E=new WeakMap,T=new WeakMap,C=new WeakMap,R=function(){function e(){(0,a.default)(this,e),y(this,E,{writable:!0,value:new d.default}),y(this,T,{writable:!0,value:new h.default((0,u.default)(this,E))}),y(this,C,{writable:!0,value:[[]]})}return(0,s.default)(e,[{key:"setState",value:function(e){(0,u.default)(this,E).setData(e);var t=!1;try{(0,u.default)(this,T).buildTree()}catch(e){(0,u.default)(this,T).clear(),(0,u.default)(this,E).clear(),t=!0}return(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots())),t}},{key:"setColumnsLimit",value:function(e){(0,u.default)(this,E).setColumnsLimit(e)}},{key:"mergeStateWith",value:function(e){var t=this,n=(0,c.arrayMap)(e,(function(e){var n=e.row,r=(0,i.default)(e,g);return v({row:n<0?t.rowCoordsToLevel(n):n},r)}));(0,u.default)(this,E).mergeWith(n),(0,u.default)(this,T).buildTree(),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))}},{key:"mapState",value:function(e){(0,u.default)(this,E).map(e),(0,u.default)(this,T).buildTree(),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))}},{key:"mapNodes",value:function(e){return(0,c.arrayReduce)((0,u.default)(this,T).getRoots(),(function(t,n){return n.walkDown((function(n){var r=e(n.data);void 0!==r&&t.push(r)})),t}),[])}},{key:"triggerNodeModification",value:function(e,t,n){t<0&&(t=this.rowCoordsToLevel(t));var r,o=(0,u.default)(this,T).getNode(t,n);return o&&(r=(0,f.triggerNodeModification)(e,o,n),(0,l.default)(this,C,(0,p.generateMatrix)((0,u.default)(this,T).getRoots()))),r}},{key:"triggerColumnModification",value:function(e,t){return this.triggerNodeModification(e,-1,t)}},{key:"rowCoordsToLevel",value:function(e){if(e>=0)return null;var t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}},{key:"levelToRowCoords",value:function(e){if(e<0)return null;var t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}},{key:"getHeaderSettings",value:function(e,t){var n,r;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(n=null===(r=(0,u.default)(this,C)[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}},{key:"getHeaderTreeNodeData",value:function(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;var n=(0,u.default)(this,T).getNode(e,t);return n?v({},n.data):null}},{key:"findLeftMostColumnIndex",value:function(e,t){var n;if((null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0}).isRoot)return t;for(var r=t-1;r>=0;){var o;if((null!==(o=this.getHeaderSettings(e,r))&&void 0!==o?o:{isRoot:!0}).isRoot)break;r-=1}return r}},{key:"getLayersCount",value:function(){return(0,u.default)(this,E).getLayersCount()}},{key:"getColumnsCount",value:function(){return(0,u.default)(this,E).getColumnsCount()}},{key:"clear",value:function(){(0,l.default)(this,C,[]),(0,u.default)(this,E).clear(),(0,u.default)(this,T).clear()}}]),e}();t.default=R},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=t.HEADER_CONFIGURABLE_PROPS=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(26)),i=r(n(109)),a=r(n(2)),s=r(n(3)),l=r(n(78)),u=r(n(79)),c=n(12),d=n(13),h=n(1048),f=["row","col"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=["label","collapsible"];t.HEADER_CONFIGURABLE_PROPS=m;var v=new WeakMap,y=new WeakMap,E=new WeakMap,T=function(){function e(){(0,a.default)(this,e),g(this,v,{writable:!0,value:[]}),g(this,y,{writable:!0,value:0}),g(this,E,{writable:!0,value:1/0})}return(0,s.default)(e,[{key:"setColumnsLimit",value:function(e){(0,u.default)(this,E,e)}},{key:"setData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,u.default)(this,v,(0,h.normalizeSettings)(e,(0,l.default)(this,E))),(0,u.default)(this,y,(0,l.default)(this,v).length)}},{key:"getData",value:function(){return(0,l.default)(this,v)}},{key:"mergeWith",value:function(e){var t=this;(0,d.arrayEach)(e,(function(e){var n=e.row,r=e.col,o=(0,i.default)(e,f),a=t.getHeaderSettings(n,r);null!==a&&(0,c.extend)(a,o,m)}))}},{key:"map",value:function(e){(0,d.arrayEach)((0,l.default)(this,v),(function(t){(0,d.arrayEach)(t,(function(t){var n=e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t));(0,c.isObject)(n)&&(0,c.extend)(t,n,m)}))}))}},{key:"getHeaderSettings",value:function(e,t){var n;if(e>=(0,l.default)(this,y)||e<0)return null;var r=(0,l.default)(this,v)[e];return t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}},{key:"getHeadersSettings",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=[];if(e>=(0,l.default)(this,y)||e<0)return r;for(var o=(0,l.default)(this,v)[e],i=0,a=t;a<o.length;a++){var s=o[a];if(s.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=s.colspan,r.push(s),s.colspan>1&&(a+=s.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}},{key:"getLayersCount",value:function(){return(0,l.default)(this,y)}},{key:"getColumnsCount",value:function(){return(0,l.default)(this,y)>0?(0,l.default)(this,v)[0].length:0}},{key:"clear",value:function(){(0,u.default)(this,v,[]),(0,u.default)(this,y,0)}}]),e}();t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.normalizeSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=[];if(0===t)return n;(0,i.arrayEach)(e,(function(e){var r=[],o=0;n.push(r),(0,i.arrayEach)(e,(function(e){var n=(0,l.createDefaultHeaderSettings)();if((0,a.isObject)(e)){var i=e.label,u=e.colspan;n.label=(0,s.stringify)(i),"number"==typeof u&&u>1&&(n.colspan=u,n.origColspan=u)}else n.label=(0,s.stringify)(e);var c=!1;if((o+=n.origColspan)>=t&&(n.colspan=n.origColspan-(o-t),n.origColspan=n.colspan,c=!0),r.push(n),n.colspan>1)for(var d=0;d<n.colspan-1;d++)r.push((0,l.createPlaceholderHeaderSettings)());return!c}))}));var r=Math.max.apply(Math,(0,o.default)((0,i.arrayMap)(n,(function(e){return e.length}))));return(0,i.arrayEach)(n,(function(e){if(e.length<r){var t=(0,i.arrayMap)(new Array(r-e.length),(function(){return(0,l.createDefaultHeaderSettings)()}));e.splice.apply(e,[e.length,0].concat((0,o.default)(t)))}})),n},n(53),n(20);var o=r(n(32)),i=n(13),a=n(12),s=n(24),l=n(630)},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(48),n(7);var o=r(n(26)),i=r(n(21)),a=r(n(2)),s=r(n(3)),l=r(n(78)),u=r(n(79)),c=n(13),d=r(n(1050));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var g=new WeakMap,m=new WeakMap,v=new WeakMap,y=function(){function e(t){(0,a.default)(this,e),p(this,g,{writable:!0,value:new Map}),p(this,m,{writable:!0,value:new Map}),p(this,v,{writable:!0,value:null}),(0,u.default)(this,v,t)}return(0,s.default)(e,[{key:"getRoots",value:function(){return Array.from((0,l.default)(this,g).values())}},{key:"getRootByColumn",value:function(e){var t;return(0,l.default)(this,m).has(e)&&(t=(0,l.default)(this,g).get((0,l.default)(this,m).get(e))),t}},{key:"getNode",value:function(e,t){var n=this.getRootByColumn(t);if(n){var r,o=t-(0,l.default)(this,m).get(t),i=0;return n.walkDown((function(n){var a=n.data,s=a.origColspan,l=a.headerLevel;if(e===l){if(o>=i&&o<=i+s-1)return(r=n).data.isRoot=t===r.data.columnIndex,!1;i+=s}})),r}}},{key:"rebuildTreeIndex",value:function(){var e=this,t=0;(0,l.default)(this,m).clear(),(0,c.arrayEach)((0,l.default)(this,g),(function(n){for(var r=(0,i.default)(n,2)[1].data.colspan,o=t;o<t+r;o++)(0,l.default)(e,m).set(o,t);t+=r}))}},{key:"buildTree",value:function(){this.clear();for(var e=(0,l.default)(this,v).getColumnsCount(),t=0;t<e;){var n=(0,l.default)(this,v).getHeaderSettings(0,t),r=new d.default;(0,l.default)(this,g).set(t,r),this.buildLeaves(r,t,0,n.origColspan),t+=n.origColspan}this.rebuildTreeIndex()}},{key:"buildLeaves",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=(0,l.default)(this,v).getHeadersSettings(n,t,o);n+=1,(0,c.arrayEach)(i,(function(o){var i,a=f(f({},o),{},{headerLevel:n-1,columnIndex:t});1===n?(e.data=a,i=e):(i=new d.default(a),e.addChild(i)),n<(0,l.default)(r,v).getLayersCount()&&r.buildLeaves(i,t,n,o.origColspan),t+=o.origColspan}))}},{key:"clear",value:function(){(0,l.default)(this,g).clear(),(0,l.default)(this,m).clear()}}]),e}();t.default=y},function(e,t,n){"use strict";n(43),n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=t.TRAVERSAL_DF_PRE=t.TRAVERSAL_DF_POST=t.TRAVERSAL_BF=void 0,t.depthFirstPreOrder=c,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=r(n(32));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=e.call(t,this),r=0;r<this.childs.length;r++){if(!1===n)return!1;n=c.call(this.childs[r],e,t)}return n}t.TRAVERSAL_DF_PRE="DF-pre-order";t.TRAVERSAL_DF_POST="DF-post-order";t.TRAVERSAL_BF="BF";var d=new Map([["DF-pre-order",c],["DF-post-order",function e(t,n){for(var r=0;r<this.childs.length;r++){if(!1===e.call(this.childs[r],t,n))return!1}return t.call(n,this)}],["BF",function(e,t){var n=[this];!function r(){if(0!==n.length){var o=n.shift();n.push.apply(n,(0,s.default)(o.childs)),!1!==e.call(t,o)&&r()}}()}]]),h=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"data",{}),(0,a.default)(this,"parent",null),(0,a.default)(this,"childs",[]),this.data=t}return(0,i.default)(e,[{key:"addChild",value:function(e){e.parent=this,this.childs.push(e)}},{key:"cloneTree",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,n=new e(u({},t.data)),r=0;r<t.childs.length;r++)n.addChild(this.cloneTree(t.childs[r]));return n}},{key:"replaceTreeWith",value:function(e){this.data=u({},e.data),this.childs=[];for(var t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}},{key:"walkDown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BF";if(!d.has(t))throw new Error('Traversal strategy "'.concat(t,'" does not exist'));d.get(t).call(this,e,this)}},{key:"walkUp",value:function(e){var t=this;!function n(r){!1!==e.call(t,r)&&null!==r.parent&&n(r.parent)}(this)}}]),e}();t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,n){if(!s.has(e))throw new Error('The node modifier action ("'.concat(e,'") does not exist.'));return s.get(e)(t,n)},n(4),n(40),n(1),n(5),n(6);var r=n(631),o=n(632),i=n(1052),a=n(1053),s=new Map([["collapse",r.collapseNode],["expand",o.expandNode],["hide-column",i.hideColumn],["show-column",a.showColumn]])},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the hide column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the hide column modification can be applied."]))));if(e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0}))};var o=r(n(64));n(72),n(73),n(31),n(41);var i,a=n(66)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the show column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the show column modification can be applied."]))));if(!e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1}))};var o=r(n(64));n(72),n(73),n(31),n(41),n(53),n(22);var i,a=n(66)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.generateMatrix=function(e){var t=[];return(0,i.arrayEach)(e,(function(e){e.walkDown((function(e){for(var n=e.data,r=n.origColspan,o=n.columnIndex,i=n.headerLevel,s=n.crossHiddenColumns,u=function(e,t){var n;Array.isArray(e[t])?n=e[t]:(n=[],e[t]=n);return n}(t,i),c=!1,d=o;d<o+r;d++){if(s.includes(d)||c)u.push((0,a.createPlaceholderHeaderSettings)(n));else{var h=l(n);h.isRoot=!0,u.push(h),c=!0}}}))})),t};var o=r(n(109));n(31),n(41);var i=n(13),a=n(630),s=["crossHiddenColumns"];function l(e){var t=(0,a.createDefaultHeaderSettings)(e);t.crossHiddenColumns;return(0,o.default)(t,s)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"hot",void 0),(0,a.default)(this,"nestedHeaderSettingsGetter",void 0),(0,a.default)(this,"layersCount",0),(0,a.default)(this,"container",void 0),(0,a.default)(this,"widthsMap",void 0),this.hot=t,this.nestedHeaderSettingsGetter=n,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}return(0,i.default)(e,[{key:"setLayersCount",value:function(e){return this.layersCount=e,this}},{key:"getWidth",value:function(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}},{key:"buildWidthsMap",value:function(){this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);var e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length;this.widthsMap.clear();for(var n=0;n<t;n++){var r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),o=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(o,e[n].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}},{key:"_buildGhostTable",value:function(e){for(var t=this.hot,n=t.rootDocument,r=t.columnIndexMapper,o=n.createDocumentFragment(),i=n.createElement("table"),a=!!this.hot.getSettings().dropdownMenu,l=r.getRenderableIndexesLength(),u=0;u<this.layersCount;u++){for(var c=n.createElement("tr"),d=0;d<l;d++){var h=r.getVisualFromRenderableIndex(d);null===h&&(h=d);var f=n.createElement("th"),p=this.nestedHeaderSettingsGetter(u,h);if(p&&(!p.isPlaceholder||p.isHidden)){var g=p.label;a&&(g+='<button class="changeType"></button>'),(0,s.fastInnerHTML)(f,g),f.colSpan=p.colspan,c.appendChild(f)}}i.appendChild(c)}o.appendChild(i),e.appendChild(o)}},{key:"clear",value:function(){this.widthsMap.clear(),this.container=null}}]),e}();t.default=l},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var r=n(1058);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedRows=r.NestedRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8));n(4),n(1),n(5),n(7),n(6),n(39),n(67),n(48),n(221),n(23),n(52);var h=n(38),f=r(n(1059)),p=r(n(1060)),g=r(n(634)),m=r(n(1061)),v=n(74),y=n(133),E=n(76),T=r(n(1062));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}n(1063);t.PLUGIN_KEY="nestedRows";t.PLUGIN_PRIORITY=300;var R=new WeakMap,w=function(e){(0,u.default)(n,e);var t=C(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).dataManager=null,r.headersUI=null,r.collapsedRowsMap=null,R.set((0,s.default)(r),{movedToCollapsed:!1,skipRender:null,skipCoreAPIModifiers:!1}),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new E.TrimmingMap),this.dataManager=new f.default(this,this.hot),this.collapsingUI=new p.default(this,this.hot),this.headersUI=new g.default(this,this.hot),this.contextMenuUI=new m.default(this,this.hot),this.rowMoveController=new T.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("beforeViewRender",(function(){return e.onBeforeViewRender.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("filterData",(function(){return e.onFilterData.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("beforeRemoveRow",(function(){return e.onBeforeRemoveRow.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.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("beforeLoadData",(function(t){return e.onBeforeLoadData(t)})),this.addHook("beforeUpdateData",(function(t){return e.onBeforeLoadData(t)})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();var e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(e,t,n,r){return this.rowMoveController.onBeforeRowMove(e,t,n,r)}},{key:"disableCoreAPIModifiers",value:function(){R.get(this).skipCoreAPIModifiers=!0}},{key:"enableCoreAPIModifiers",value:function(){R.get(this).skipCoreAPIModifiers=!1}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n){this.collapsingUI.toggleState(e,t,n)}},{key:"onModifyRowData",value:function(e){if(!R.get(this).skipCoreAPIModifiers)return this.dataManager.getDataObject(e)}},{key:"onModifySourceLength",value:function(){if(!R.get(this).skipCoreAPIModifiers)return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice",value:function(e,t,n){return!(!R.get(this).skipCoreAPIModifiers&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,n),!1)}},{key:"onFilterData",value:function(e,t,n){var r=R.get(this);return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(n[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(n[0],null,-1*t),this.dataManager.filterData(e,t,n),r.skipRender=!0,this.dataManager.getData().slice()}},{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,r){var o=this;if(r!==this.pluginName){var i=R.get(this);setTimeout((function(){i.skipRender=null,o.headersUI.updateRowHeaderWidth(),o.collapsingUI.collapsedRowsStash.applyStash()}),0)}}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this,o=Array.from(n.reduce((function(e,t){if(r.dataManager.isParent(t)){var n=r.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(n)&&n.forEach((function(t){return e.add(r.dataManager.getRowIndex(t))})),e}return e.add(t)}),new Set));n.length=0,n.push.apply(n,o)}},{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,n){this.collapsingUI.collapsedRowsStash.shiftStash(n,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(){this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){var e=Math.max.apply(Math,(0,o.default)(this.dataManager.cache.levels));e>0&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeViewRender",value:function(e,t){R.get(this).skipRender&&(t.skipRender=!0)}},{key:"destroy",value:function(){(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}},{key:"onBeforeLoadData",value:function(e){if(!(0,y.isArrayOfObjects)(e))return(0,v.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings().nestedRows=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}}],[{key:"PLUGIN_KEY",get:function(){return"nestedRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 300}}]),n}(h.BasePlugin);t.NestedRows=w},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6),n(22),n(53),n(48),n(20),n(39);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(36),u=n(12),c=n(13),d=function(){function e(t,n){(0,a.default)(this,e),this.hot=n,this.data=null,this.plugin=t,this.parentReference=new WeakMap,this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}}return(0,s.default)(e,[{key:"setData",value:function(e){this.data=e}},{key:"getData",value:function(){return this.data}},{key:"getRawSourceData",value:function(){var e;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}},{key:"updateWithData",value:function(e){this.setData(e),this.rewriteCache()}},{key:"rewriteCache",value:function(){var e=this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,l.rangeEach)(0,this.data.length-1,(function(t){e.cacheNode(e.data[t],0,null)}))}},{key:"cacheNode",value:function(e,t,n){var r=this;this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,c.arrayEach)(e.__children,(function(n){r.cacheNode(n,t+1,e)}))}},{key:"getDataObject",value:function(e){return null==e?null:this.cache.rows[e]}},{key:"readTreeNodes",value:function(e,t,n,r){var o=this,i=!1,a=t;if(isNaN(a)&&a.end)return a;var s=e;return s||(s={__children:this.data},i=!0,a-=1),null!=n&&a===n?{result:s,end:!0}:null!=r&&s===r?{result:a,end:!0}:(a+=1,s.__children&&(0,c.arrayEach)(s.__children,(function(e){if(o.parentReference.set(e,i?null:s),a=o.readTreeNodes(e,a,n,r),isNaN(a)&&a.end)return!1})),a)}},{key:"mockParent",value:function(){var e=this.mockNode();return e.__children=this.data,e}},{key:"mockNode",value:function(){var e={};return(0,u.objectEach)(this.data[0],(function(t,n){e[n]=null})),e}},{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,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?((0,c.arrayEach)(r.__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 e&&"object"===(0,i.default)(e)?this.cache.nodeInfo.get(e).parent:null}},{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:"isChild",value:function(e){return null!==this.getRowParent(e)}},{key:"getChild",value:function(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}},{key:"isRowHighestLevel",value:function(e){return!this.isChild(e)}},{key:"isParent",value:function(e){var t,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}},{key:"addChild",value:function(e,t){var n=t;this.hot.runHooks("beforeAddChild",e,n);var r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);var o=e;e||(o=this.mockParent()),o.__children||(o.__children=[]),n||(n=this.mockNode()),o.__children.push(n),this.rewriteCache();var i=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(i,1),this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}},{key:"addChildAtIndex",value:function(e,t,n){var r,o=n;if(o||(o=this.mockNode()),this.hot.runHooks("beforeAddChild",e,o,t),e){var i=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",i,1),e.__children.splice(t,null,o),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(i,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",i,1),r=i}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),r=this.getRowIndex(this.data[t]);o=this.getDataObject(r),this.hot.runHooks("afterAddChild",e,o,t)}},{key:"addSibling",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below",n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null);break;case"above":this.addChildAtIndex(r,o,null)}}},{key:"detachFromParent",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=[];Array.isArray(e)?((0,l.rangeEach)(e[0],e[2],(function(e){var n=t.translateTrimmedRow(e);o.push(t.getDataObject(n))})),(0,l.rangeEach)(0,o.length-2,(function(e){t.detachFromParent(o[e],!1)})),r=o[o.length-1]):r=e;var i=this.getRowIndex(r),a=this.countChildren(r),s=this.getRowIndexWithinParent(r),u=this.getRowParent(r),c=this.getRowParent(u),d=this.getRowIndex(c),h=null;if(this.hot.runHooks("beforeDetachChild",u,r),null!=s){var f=Array.from(new Array(i+a+1).keys()).splice(-1*(a+1));if(this.hot.runHooks("beforeRemoveRow",i,a+1,f,this.plugin.pluginName),u.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,a+1,f,this.plugin.pluginName),c){h=d+this.countChildren(c);var p=this.getChild(c,this.countChildren(c)-1),g=this.getRowIndex(p);this.hot.runHooks("beforeCreateRow",g+1,a+1,this.plugin.pluginName),c.__children.push(r)}else h=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",h-2,a+1,this.plugin.pluginName),this.data.push(r)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",h-2,a+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",u,r,this.getRowIndex(r)),n&&this.hot.render()}},{key:"filterData",value:function(e,t,n){var r=this,o=[];(0,c.arrayEach)(n,(function(e){o.push(r.getDataObject(e))})),(0,c.arrayEach)(o,(function(e){var t=r.getRowIndexWithinParent(e),n=r.getRowParent(e);null===n?r.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var r,i=this.getDataObject(e-1),a=null,s=e;if(i&&i.__children&&0===i.__children.length?(a=i,s=0):e<this.countAllRows()&&(a=this.getRowParent(e),s=this.getRowIndexWithinParent(e)),a)n?(r=a.__children).splice.apply(r,[s,t].concat((0,o.default)(n))):a.__children.splice(s,t);else if(n){var l;(l=this.data).splice.apply(l,[s,t].concat((0,o.default)(n)))}else this.data.splice(s,t);this.rewriteCache()}},{key:"syncRowWithRawSource",value:function(e){var t=e,n=null;do{null!==(n=this.getRowParent(n))&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndex(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}},{key:"moveRow",value:function(e,t,n,r){var o=t===this.hot.countRows(),i=this.getRowParent(e),a=this.getRowIndexWithinParent(e),s=i.__children.slice(a,a+1),l=e>t,u=o?this.getRowParent(t-1):this.getRowParent(t);null==u&&(u=this.getRowParent(t-1)),null==u&&(u=this.getDataObject(t-1)),u?u.__children||(u.__children=[]):(u=this.getDataObject(t)).__children=[];var c=o||n||r?u.__children.length:this.getRowIndexWithinParent(t),d=i===u;u.__children.splice(c,0,s[0]),i.__children.splice(a+(l&&d?1:0),1),this.syncRowWithRawSource(i),d||this.syncRowWithRawSource(u)}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}},{key:"untranslateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}]),e}();t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(39),n(22),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(75),d=n(13),h=n(36),f=n(16),p=r(n(311)),g=r(n(634));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,r)).dataManager=o.plugin.dataManager,o.collapsedRows=[],o.collapsedRowsStash={stash:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,d.arrayEach)(o.lastCollapsedRows,(function(r,i){r>=e&&r<t&&(o.lastCollapsedRows[i]=r+n)}))},applyStash:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:function(e,t){(0,h.rangeEach)(e,e+t-1,(function(e){var t=o.lastCollapsedRows.indexOf(e);t>-1&&o.lastCollapsedRows.splice(t,1)}))}},o}return(0,a.default)(n,[{key:"collapseChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),a=e),this.dataManager.hasChildren(i)&&(0,d.arrayEach)(i.__children,(function(e){o.push(t.dataManager.getRowIndex(e))})),s=this.collapseRows(o,!0,!1),r&&this.trimRows(s),n&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(a)&&this.collapsedRows.push(a),s}},{key:"collapseMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,d.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.collapseChildren(e,!1,!1)))})),r&&this.trimRows(i),n&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}},{key:"collapseRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,d.arrayEach)(e,(function(e){o.push(e),n&&t.collapseChildRows(e,o)})),r&&this.trimRows(o),o}},{key:"collapseChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,d.arrayEach)(o.__children,(function(e){var r=t.dataManager.getRowIndex(e);n.push(r),t.collapseChildRows(r,n)}))}r&&this.trimRows(n)}},{key:"expandRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}},{key:"expandRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,d.arrayEach)(e,(function(e){o.push(e),n&&t.expandChildRows(e,o)})),r&&this.untrimRows(o),o}},{key:"expandChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,d.arrayEach)(o.__children,(function(e){if(!t.isAnyParentCollapsed(e)){var r=t.dataManager.getRowIndex(e);n.push(r),t.expandChildRows(r,n)}}))}r&&this.untrimRows(n)}},{key:"expandChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),a=e),this.collapsedRows.splice(this.collapsedRows.indexOf(a),1),this.dataManager.hasChildren(i)&&(0,d.arrayEach)(i.__children,(function(e){var n=t.dataManager.getRowIndex(e);o.push(n)})),s=this.expandRows(o,!0,!1),r&&this.untrimRows(s),n&&this.renderAndAdjust(),s}},{key:"expandMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,d.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.expandChildren(e,!1,!1)))})),r&&this.untrimRows(i),n&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,d.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,d.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"trimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,d.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}},{key:"untrimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,d.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}},{key:"areChildrenCollapsed",value:function(e){var t=this,n=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===n&&(n={__children:this.dataManager.data}),this.dataManager.hasChildren(n)&&(0,d.arrayEach)(n.__children,(function(e){var n=t.dataManager.getRowIndex(e);if(!t.plugin.collapsedRowsMap.getValueAtIndex(n))return r=!1,!1})),r}},{key:"isAnyParentCollapsed",value:function(e){for(var t=e;null!==t;){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(n)>-1)return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(t.col>=0)){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.hot.toPhysicalRow(e)}},{key:"untranslateTrimmedRow",value:function(e){return this.hot.toVisualRow(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.adjustElementsSize()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6),n(53);var d=n(36),h=n(13),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),p=r(n(311));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=new WeakMap,y=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,r),v.set((0,s.default)(o),{row_above:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"above")},row_below:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"below")}}),o.dataManager=o.plugin.dataManager,o}return(0,a.default)(n,[{key:"appendOptions",value:function(e){var t=this,n=[{key:"add_child",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:function(){var e=t.dataManager.translateTrimmedRow(t.hot.getSelectedLast()[0]),n=t.dataManager.getDataObject(e);t.dataManager.addChild(n)},disabled:function(){var e=t.hot.getSelectedLast();return!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(f.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var e=t.hot.getSelectedLast(),n=t.dataManager.translateTrimmedRow(e[0]);return!t.dataManager.getRowParent(n)||!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return(0,d.rangeEach)(0,e.items.length-1,(function(t){if(0===t)return(0,h.arrayEach)(n,(function(n,r){e.items.splice(t+r,0,n)})),!1})),this.modifyRowInsertingOptions(e)}},{key:"modifyRowInsertingOptions",value:function(e){var t=v.get(this);return(0,d.rangeEach)(0,e.items.length-1,(function(n){var r=t[e.items[n].key];null!=r&&(e.items[n].callback=r)})),e}}]),n}(p.default);t.default=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(64));n(65),n(22),n(1),n(23),n(20);var a,s=r(n(2)),l=r(n(3)),u=n(24),c=n(74),d=n(66),h=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.hot=t.hot,this.dataManager=t.dataManager,this.collapsingUI=t.collapsingUI}return(0,l.default)(e,[{key:"onBeforeRowMove",value:function(e,t,n,r){var o=this;if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:n,movePossible:r}))return!1;this.movedToCollapsed=!1;var i=n===this.hot.countRows(),a=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(n),s=!0,l=e.map((function(e){if(!s)return!1;var t=o.dataManager.translateTrimmedRow(e);return s=o.shouldAllowMoving(t,a),t})),u=-1===l.indexOf(a);if(!s||!u)return!1;var c=this.getBaseParent(l),d=this.getTargetParent(i,a),h=c===d;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(d),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(l,a,h),this.moveRows(l,a,d),this.dataManager.rewriteCache(),this.moveCellsMeta(l,a),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,n,r,r&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,n),!1}},{key:"displayAPICompatibilityWarning",value:function(e){var t=e.rows,n=e.finalIndex,r=e.dropIndex,o=e.movePossible,s=!1;return(0,u.isUndefined)(r)&&((0,c.warn)((0,d.toSingleLine)(a||(a=(0,i.default)(["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows \n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."],["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\\x20\n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."])))),this.hot.runHooks("afterRowMove",t,n,r,o,!1),s=!0),s}},{key:"shouldAllowMoving",value:function(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}},{key:"getBaseParent",value:function(e){return this.dataManager.getRowParent(e[0])}},{key:"getTargetParent",value:function(e,t){var n=this.dataManager.getRowParent(e?t-1:t);return null==n&&(n=this.dataManager.getRowParent(t-1)),n}},{key:"shiftCollapsibleParentsLocations",value:function(e,t,n){n||(Math.max.apply(Math,(0,o.default)(e))<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}},{key:"moveRows",value:function(e,t,n){var r=this,o=t===this.dataManager.getRowIndex(n)+this.dataManager.countChildren(n)+1;this.hot.batchRender((function(){e.forEach((function(e){r.dataManager.moveRow(e,t,r.movedToCollapsed,o)}))}))}},{key:"moveCellsMeta",value:function(e,t){var n,r=this,i=[],a=Math.max.apply(Math,(0,o.default)(e))<t;e.forEach((function(e){i.push(r.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),(n=this.hot).spliceCellsMeta.apply(n,[t-(a?i.length:0),0].concat(i))}},{key:"selectCells",value:function(e,t){var n,r=e.length,o=0,i=0,a=null;if(this.movedToCollapsed){var s=null;s=e[r-1]<t?this.dataManager.translateTrimmedRow(t-r):this.dataManager.translateTrimmedRow(t);var l=this.dataManager.getRowParent(null===s?this.hot.countSourceRows()-1:s-1),u=this.dataManager.getRowIndex(l);i=o=this.dataManager.untranslateTrimmedRow(u)}else e[r-1]<t?o=(i=t-1)-r+1:i=(o=t)+r-1;a=this.hot.selection,n=this.hot.countCols()-1,a.setRangeStart(this.hot._createCellCoords(o,0)),a.setRangeEnd(this.hot._createCellCoords(i,n),!0)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}}]),e}();t.default=h},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1065);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.PersistentState=r.PersistentState},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=r(n(1066)),h=r(n(59));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}h.default.getSingleton().register("persistentStateSave"),h.default.getSingleton().register("persistentStateLoad"),h.default.getSingleton().register("persistentStateReset");t.PLUGIN_KEY="persistentState";t.PLUGIN_PRIORITY=0;var p=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).storage=void 0,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new d.default(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(function(t,n){return e.saveValue(t,n)})),this.addHook("persistentStateLoad",(function(t,n){return e.loadValue(t,n)})),this.addHook("persistentStateReset",(function(){return e.resetValue()})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,a.default)((0,u.default)(n.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,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"persistentState"}},{key:"PLUGIN_PRIORITY",get:function(){return 0}}]),n}(c.BasePlugin);t.PersistentState=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(22);var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,o.default)(this,e),this.rootWindow=n,this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return(0,i.default)(e,[{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,r=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===r?void 0:JSON.parse(r)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;(0,a.arrayEach)(this.savedKeys,(function(t,n){e.rootWindow.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))})),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()}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1068);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Search=r.Search},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(22),n(1),n(98),n(51),n(605),n(31),n(41),n(53),n(83);var d=n(38),h=n(12),f=n(36),p=n(24);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="search";t.PLUGIN_PRIORITY=190;var m=function(e,t,n,r,o){e.getCellMeta(t,n).isSearchResult=o},v=function(e,t,n){return!((0,p.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,p.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))},y=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).callback=m,r.queryMethod=v,r.searchResultClass="htSearchResult",r}return(0,a.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,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,t=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(function(){e.hot.removeHook("beforeRenderer",t)})),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),o=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return(0,f.rangeEach)(0,o-1,(function(o){(0,f.rangeEach)(0,i-1,(function(i){var l=t.hot.getDataAtCell(o,i),u=t.hot.getCellMeta(o,i),c=u.search.callback||n,d=(u.search.queryMethod||r)(e,l,u);if(d){var h={row:o,col:i,data:l};a.push(h)}c&&c(s,o,i,l,d)}))})),a}},{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,h.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,r,i,a){var s,l=a.className||[],u=[];"string"==typeof l?u=l.split(" "):(s=u).push.apply(s,(0,o.default)(l));this.isEnabled()&&a.isSearchResult?u.includes(this.searchResultClass)||u.push("".concat(this.searchResultClass)):u.includes(this.searchResultClass)&&u.splice(u.indexOf(this.searchResultClass),1),a.className=u.join(" ")}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"search"}},{key:"PLUGIN_PRIORITY",get:function(){return 190}}]),n}(d.BasePlugin);t.Search=y},function(e,t,n){"use strict";t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1070);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TouchScroll=r.TouchScroll},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=n(13),h=n(38),f=n(107);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="touchScroll";t.PLUGIN_PRIORITY=200;var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).scrollbars=[],r.clones=[],r.lockedCollection=!1,r.freezeOverlays=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,f.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterViewRender",(function(){return e.onAfterViewRender()})),this.registerEvents(),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,(0,a.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,u.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:"onAfterViewRender",value:function(){if(!this.lockedCollection){var e=this.hot.view._wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,r=e.inlineStartOverlay,o=e.topInlineStartCornerOverlay,i=e.bottomInlineStartCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(r),o&&this.scrollbars.push(o),i&&i.clone&&this.scrollbars.push(i),this.clones=[],t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,d.arrayEach)(this.clones,(function(e){(0,c.addClass)(e,"hide-tween")}))}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,d.arrayEach)(this.clones,(function(e){(0,c.removeClass)(e,"hide-tween"),(0,c.addClass)(e,"show-tween")})),this.hot._registerTimeout((function(){(0,d.arrayEach)(e.clones,(function(e){(0,c.removeClass)(e,"show-tween")}))}),400),(0,d.arrayEach)(this.scrollbars,(function(e){e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}}],[{key:"PLUGIN_KEY",get:function(){return"touchScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 200}},{key:"SETTING_KEYS",get:function(){return!0}}]),n}(h.BasePlugin);t.TouchScroll=g},function(e,t,n){"use strict";t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1072);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TrimRows=r.TrimRows},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(48),n(5),n(4),n(1),n(52),n(6),n(20),n(39),n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(38),d=n(76),h=n(13);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.PLUGIN_KEY="trimRows";t.PLUGIN_PRIORITY=330;var p=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).trimmedRowsMap=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new d.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",(function(){return e.onMapInit()})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){e.trimmedRowsMap.clear(),(0,h.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0),(0,a.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("trimRows"),(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getTrimmedRows",value:function(){return this.trimmedRowsMap.getTrimmedIndexes()}},{key:"trimRows",value:function(e){var t=this,n=this.getTrimmedRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,h.arrayEach)(e,(function(e){t.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",n,o,r,r&&o.length>n.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(e){var t=this.getTrimmedRows(),n=this.isValidConfig(e),r=t,o=this.trimmedRowsMap.getValues().slice(),i=e.length>0;n&&i&&((0,h.arrayEach)(e,(function(e){o[e]=!1})),r=(0,h.arrayReduce)(o,(function(e,t,n){return t&&e.push(n),e}),[])),!1!==this.hot.runHooks("beforeUntrimRow",t,r,n&&i)&&(n&&i&&this.trimmedRowsMap.setValues(o),this.hot.runHooks("afterUntrimRow",t,r,n&&i,n&&r.length<t.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.trimmedRowsMap.getValueAtIndex(e)||!1}},{key:"untrimAll",value:function(){this.untrimRows(this.getTrimmedRows())}},{key:"isValidConfig",value:function(e){var t=this.hot.countSourceRows();return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"onMapInit",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){(0,h.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0)}},{key:"destroy",value:function(){(0,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"trimRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 330}}]),n}(c.BasePlugin);t.TrimRows=p},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(1074));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.UndoRedo=o.default,t.PLUGIN_KEY=o.PLUGIN_KEY},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=t.PLUGIN_KEY=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(32)),c=r(n(21));n(225),n(1),n(221),n(39),n(53),n(23),n(43),n(89),n(22),n(35),n(20);var d=r(n(59)),h=n(13),f=n(36),p=n(12),g=n(96);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function v(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,this.enabled=!1,e.addHook("afterChange",(function(n,r){var o=this,i=n&&n.length;if(i&&n.find((function(e){var t=(0,c.default)(e,4);return t[2]!==t[3]}))){t.done((function(){var t=n.reduce((function(e,t){return e.push((0,u.default)(t)),e}),[]);(0,h.arrayEach)(t,(function(t){t[1]=e.propToCol(t[1])}));var r=i>1?o.getSelected():[[t[0][0],t[0][1]]];return new v.ChangeAction(t,r)}),r)}})),e.addHook("afterCreateRow",(function(e,n,r){t.done((function(){return new v.CreateRowAction(e,n)}),r)})),e.addHook("beforeRemoveRow",(function(n,r,o,i){t.done((function(){var o=e.toPhysicalRow(n),i=(0,p.deepClone)(t.instance.getSourceData(o,0,o+r-1,t.instance.countSourceCols()-1));return new v.RemoveRowAction(o,i,e.getSettings().fixedRowsBottom,e.getSettings().fixedRowsTop,e.rowIndexMapper.getIndexesSequence())}),i)})),e.addHook("afterCreateCol",(function(e,n,r){t.done((function(){return new v.CreateColumnAction(e,n)}),r)})),e.addHook("beforeRemoveCol",(function(n,r,o,i){t.done((function(){var o=t.instance.getSourceDataArray(),i=(t.instance.countCols()+n)%t.instance.countCols(),a=[],s=[],l=[];(0,f.rangeEach)(o.length-1,(function(t){var n=[],s=o[t];(0,f.rangeEach)(i,i+(r-1),(function(t){n.push(s[e.toPhysicalColumn(t)])})),a.push(n)})),(0,f.rangeEach)(r-1,(function(t){l.push(e.toPhysicalColumn(i+t))})),Array.isArray(e.getSettings().colHeaders)&&(0,f.rangeEach)(r-1,(function(t){s.push(e.getSettings().colHeaders[e.toPhysicalColumn(i+t)]||null)}));var u=e.columnIndexMapper.getIndexesSequence(),c=e.rowIndexMapper.getIndexesSequence();return new v.RemoveColumnAction(i,l,a,s,u,c,e.getSettings().fixedColumnsStart)}),i)})),e.addHook("beforeCellAlignment",(function(e,n,r,o){t.done((function(){return new v.CellAlignmentAction(e,n,r,o)}))})),e.addHook("beforeFilter",(function(e){t.done((function(){return new v.FiltersAction(e)}))})),e.addHook("beforeRowMove",(function(e,n){!1!==e&&t.done((function(){return new v.RowMoveAction(e,n)}))})),e.addHook("beforeMergeCells",(function(n,r){r||t.done((function(){return new v.MergeCellsAction(e,n)}))})),e.addHook("afterUnmergeCells",(function(n,r){r||t.done((function(){return new v.UnmergeCellsAction(e,n)}))})),e.addHook("afterInit",(function(){t.init()}))}t.PLUGIN_KEY="undoRedo",v.prototype.done=function(e,t){if(!this.ignoreNewActions&&!("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)){var n=this.doneActions.slice();if(!1!==this.instance.runHooks("beforeUndoStackChange",n,t)){var r=e(),o=this.undoneActions.slice();this.doneActions.push(r),this.instance.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.instance.runHooks("beforeRedoStackChange",o),this.undoneActions.length=0,this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice())}}},v.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",e);var t=this.doneActions.pop();this.instance.runHooks("afterUndoStackChange",e,this.doneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeUndo",n))return;this.ignoreNewActions=!0;var r=this,o=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",o),t.undo(this.instance,(function(){r.ignoreNewActions=!1,r.undoneActions.push(t)})),this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice()),this.instance.runHooks("afterUndo",n)}},v.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",e);var t=this.undoneActions.pop();this.instance.runHooks("afterRedoStackChange",e,this.undoneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeRedo",n))return;this.ignoreNewActions=!0;var r=this,o=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",o),t.redo(this.instance,(function(){r.ignoreNewActions=!1,r.doneActions.push(t)})),this.instance.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.instance.runHooks("afterRedo",n)}},v.prototype.isUndoAvailable=function(){return this.doneActions.length>0},v.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},v.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},v.prototype.isEnabled=function(){return this.enabled},v.prototype.enable=function(){if(!this.isEnabled()){var e,t=this.instance;this.enabled=!0,(e=t).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()},this.registerShortcuts(),t.addHook("afterChange",T)}},v.prototype.disable=function(){if(this.isEnabled()){var e,t=this.instance;this.enabled=!1,delete(e=t).undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo,this.unregisterShortcuts(),t.removeHook("afterChange",T)}},v.prototype.destroy=function(){this.clear(),this.instance=null,this.doneActions=null,this.undoneActions=null},v.Action=function(){},v.Action.prototype.undo=function(){},v.Action.prototype.redo=function(){},v.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},(0,p.inherit)(v.ChangeAction,v.Action),v.ChangeAction.prototype.undo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=e.countEmptyRows(!0),o=e.countEmptyCols(!0),i=0,a=n.length;i<a;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");for(var s=0,l=n.length;s<l;s++){var u=(0,c.default)(n[s],2),d=u[0],h=u[1];e.getSettings().minSpareRows&&d+1+e.getSettings().minSpareRows===e.countRows()&&r===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(d+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&h+1+e.getSettings().minSpareCols===e.countCols()&&o===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(h+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())}e.selectCells(this.selected,!1,!1)},v.ChangeAction.prototype.redo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=0,o=n.length;r<o;r++)n[r].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)},v.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,p.inherit)(v.CreateRowAction,v.Action),v.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},v.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")},v.RemoveRowAction=function(e,t,n,r,o){this.index=e,this.data=t,this.actionType="remove_row",this.fixedRowsBottom=n,this.fixedRowsTop=r,this.rowIndexesSequence=o},(0,p.inherit)(v.RemoveRowAction,v.Action),v.RemoveRowAction.prototype.undo=function(e,t){var n=this,r=e.getSettings(),o=[];r.fixedRowsBottom=this.fixedRowsBottom,r.fixedRowsTop=this.fixedRowsTop,this.data.forEach((function(e,t){Object.keys(e).forEach((function(r){var i=parseInt(r,10);o.push([n.index+t,isNaN(i)?r:i,e[r]])}))})),e.alter("insert_row_above",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(o,null,null,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence)},v.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},v.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,p.inherit)(v.CreateColumnAction,v.Action),v.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},v.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")},v.RemoveColumnAction=function(e,t,n,r,o,i,a){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=r,this.columnPositions=o.slice(0),this.rowPositions=i.slice(0),this.actionType="remove_col",this.fixedColumnsStart=a},(0,p.inherit)(v.RemoveColumnAction,v.Action),v.RemoveColumnAction.prototype.undo=function(e,t){var n=this;e.getSettings().fixedColumnsStart=this.fixedColumnsStart;for(var r=this.indexes.slice(0).sort(),o=function(e,t,o){return o[n.indexes.indexOf(r[t])]},i=this.data.length,a=[],s=0;s<i;s++)a.push((0,h.arrayMap)(this.data[s],o));var l=(0,h.arrayMap)(this.headers,o),u=[];e.alter("insert_col_start",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,h.arrayEach)(e.getSourceDataArray(),(function(e,t){(0,h.arrayEach)(r,(function(n,r){e[n]=a[t][r],u.push([t,n,e[n]])}))})),e.setSourceDataAtCell(u,void 0,void 0,"UndoRedo.undo"),e.columnIndexMapper.insertIndexes(r[0],r.length),void 0!==this.headers&&(0,h.arrayEach)(l,(function(t,n){e.getSettings().colHeaders[r[n]]=t})),e.batchExecution((function(){e.rowIndexMapper.setIndexesSequence(n.rowPositions),e.columnIndexMapper.setIndexesSequence(n.columnPositions)}),!0),e.addHookOnce("afterViewRender",t),e.render()},v.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},v.CellAlignmentAction=function(e,t,n,r){this.stateBefore=e,this.range=t,this.type=n,this.alignment=r},v.CellAlignmentAction.prototype.undo=function(e,t){var n=this;(0,h.arrayEach)(this.range,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"className",n.stateBefore[t][r]||" htLeft")}))})),e.addHookOnce("afterViewRender",t),e.render()},v.CellAlignmentAction.prototype.redo=function(e,t){(0,g.align)(this.range,this.type,this.alignment,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),e.addHookOnce("afterViewRender",t),e.render()},v.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,p.inherit)(v.FiltersAction,v.Action),v.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},v.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var y=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;(0,o.default)(this,n),(i=t.call(this)).cellRange=r;var a=i.cellRange.getTopStartCorner(),s=i.cellRange.getBottomEndCorner();return i.rangeData=e.getData(a.row,a.col,s.row,s.col),i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);var r=this.cellRange.getTopStartCorner();e.populateFromArray(r.row,r.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}]),n}(v.Action);v.MergeCellsAction=y;var E=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).cellRange=r,i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),n}(v.Action);function T(e,t){if("loadData"===t)return this.undoRedo.clear()}v.UnmergeCellsAction=E,v.RowMoveAction=function(e,t){this.rows=e.slice(),this.finalIndex=t,this.actionType="row_move"},(0,p.inherit)(v.RowMoveAction,v.Action),v.RowMoveAction.prototype.undo=function(e,t){var n=this,r=e.getPlugin("manualRowMove"),o=[].concat(this.rows),i=o.filter((function(e){return e>n.finalIndex})),a=o.filter((function(e){return e<=n.finalIndex})),s=i.sort((function(e,t){return t-e})).concat(a.sort((function(e,t){return e-t})));e.addHookOnce("afterViewRender",t);for(var l=0;l<s.length;l+=1){var u=e.toVisualRow(s[l]);r.moveRow(u,s[l])}e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)},v.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),n.moveRows(this.rows.slice(),this.finalIndex),e.render(),e.deselectCell(),e.selectRows(this.finalIndex,this.finalIndex+this.rows.length-1)},v.prototype.init=function(){var e=this.instance.getSettings().undo,t=void 0===e||e;this.instance.undoRedo||(this.instance.undoRedo=this),t?this.instance.undoRedo.enable():this.instance.undoRedo.disable()},v.prototype.registerShortcuts=function(){var e=this,t={runOnlyIf:function(e){return!e.altKey},group:"undoRedo"};this.instance.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Control/Meta","z"]],callback:function(){e.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:function(){e.redo()}}],t)},v.prototype.unregisterShortcuts=function(){this.instance.getShortcutManager().getContext("grid").removeShortcutsByGroup("undoRedo")};var C=d.default.getSingleton();C.add("afterUpdateSettings",(function(){var e;null===(e=this.getPlugin("undoRedo"))||void 0===e||e.init()})),C.register("beforeUndo"),C.register("afterUndo"),C.register("beforeRedo"),C.register("afterRedo"),v.PLUGIN_KEY="undoRedo",v.SETTING_KEYS=!0;var R=v;t.default=R},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){var n,r=this.first(),o=r.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(r[0],i),r.data("handsontable",o),o.init()),r}if(o){if(void 0===o[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];n=(a=o[t]).call.apply(a,[o].concat(l)),"destroy"===t&&r.removeData()}return n}},n(20)}]).default}));
|