handsontable 0.34.1 → 0.34.5
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/.travis.yml +2 -0
- package/README.md +127 -96
- package/commonjs/core.js +11 -6
- package/commonjs/helpers/dom/element.js +4 -3
- package/commonjs/helpers/mixed.js +8 -4
- package/commonjs/index.js +5 -4
- package/commonjs/pluginHooks.js +18 -2
- package/commonjs/plugins/copyPaste/clipboardData.js +31 -0
- package/commonjs/plugins/copyPaste/contextMenuItem/copy.js +1 -2
- package/commonjs/plugins/copyPaste/contextMenuItem/cut.js +1 -2
- package/commonjs/plugins/copyPaste/copyPaste.js +127 -134
- package/commonjs/plugins/copyPaste/pasteEvent.js +19 -0
- package/commonjs/plugins/copyPaste/test/copyPaste.e2e.js +90 -189
- package/commonjs/plugins/copyPaste/test/textarea.unit.js +2 -2
- package/commonjs/plugins/copyPaste/textarea.js +2 -1
- package/commonjs/plugins/manualColumnMove/manualColumnMove.js +8 -11
- package/commonjs/plugins/manualColumnMove/test/manualColumnMoveUI.e2e.js +35 -0
- package/commonjs/plugins/manualRowMove/manualRowMove.js +9 -12
- package/commonjs/plugins/manualRowMove/test/manualRowMove.e2e.js +256 -60
- package/commonjs/plugins/manualRowMove/test/manualRowMoveUI.e2e.js +40 -182
- package/commonjs/plugins/manualRowMove/ui/_base.js +2 -2
- package/commonjs/tableView.js +1 -0
- package/dist/handsontable.css +6 -5
- package/dist/handsontable.css.map +1 -1
- package/dist/handsontable.full.css +6 -5
- package/dist/handsontable.full.js +37721 -42290
- package/dist/handsontable.full.min.css +4 -4
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +28732 -28433
- package/dist/handsontable.js.map +1 -1
- package/dist/handsontable.min.css +4 -4
- package/dist/handsontable.min.js +3 -3
- package/es/core.js +11 -6
- package/es/helpers/dom/element.js +4 -3
- package/es/helpers/mixed.js +4 -4
- package/es/index.js +3 -4
- package/es/pluginHooks.js +18 -2
- package/es/plugins/copyPaste/clipboardData.js +27 -0
- package/es/plugins/copyPaste/contextMenuItem/copy.js +1 -2
- package/es/plugins/copyPaste/contextMenuItem/cut.js +1 -2
- package/es/plugins/copyPaste/copyPaste.js +124 -132
- package/es/plugins/copyPaste/pasteEvent.js +11 -0
- package/es/plugins/copyPaste/test/copyPaste.e2e.js +90 -189
- package/es/plugins/copyPaste/test/textarea.unit.js +2 -2
- package/es/plugins/copyPaste/textarea.js +2 -1
- package/es/plugins/manualColumnMove/manualColumnMove.js +8 -11
- package/es/plugins/manualColumnMove/test/manualColumnMoveUI.e2e.js +35 -0
- package/es/plugins/manualRowMove/manualRowMove.js +9 -12
- package/es/plugins/manualRowMove/test/manualRowMove.e2e.js +256 -60
- package/es/plugins/manualRowMove/test/manualRowMoveUI.e2e.js +40 -182
- package/es/plugins/manualRowMove/ui/_base.js +2 -2
- package/es/tableView.js +1 -0
- package/handsontable.jquery.json +1 -1
- package/hot.config.js +1 -1
- package/package.json +5 -5
- package/src/3rdparty/walkontable/dist/walkontable.js +27234 -11175
- package/src/3rdparty/walkontable/dist/walkontable.js.map +1 -1
- package/src/3rdparty/walkontable/test/dist/helpers.entry.js +32 -36
- package/src/3rdparty/walkontable/test/dist/helpers.entry.js.map +1 -1
- package/src/3rdparty/walkontable/test/dist/specs.entry.js +36 -39
- package/src/3rdparty/walkontable/test/dist/specs.entry.js.map +1 -1
- package/src/core.js +11 -6
- package/src/css/handsontable.css +1 -2
- package/src/helpers/dom/element.js +4 -3
- package/src/helpers/mixed.js +3 -3
- package/src/index.js +1 -2
- package/src/pluginHooks.js +18 -2
- package/src/plugins/copyPaste/clipboardData.js +11 -0
- package/src/plugins/copyPaste/contextMenuItem/copy.js +1 -2
- package/src/plugins/copyPaste/contextMenuItem/cut.js +1 -2
- package/src/plugins/copyPaste/copyPaste.css +3 -1
- package/src/plugins/copyPaste/copyPaste.js +120 -127
- package/src/plugins/copyPaste/pasteEvent.js +7 -0
- package/src/plugins/copyPaste/test/copyPaste.e2e.js +75 -193
- package/src/plugins/copyPaste/test/textarea.unit.js +2 -2
- package/src/plugins/copyPaste/textarea.js +2 -1
- package/src/plugins/manualColumnMove/manualColumnMove.js +6 -9
- package/src/plugins/manualColumnMove/test/manualColumnMoveUI.e2e.js +35 -0
- package/src/plugins/manualRowMove/manualRowMove.js +7 -10
- package/src/plugins/manualRowMove/test/manualRowMove.e2e.js +282 -86
- package/src/plugins/manualRowMove/test/manualRowMoveUI.e2e.js +51 -190
- package/src/plugins/manualRowMove/ui/_base.js +2 -2
- package/test/dist/e2e.entry.js +31381 -31131
- package/test/dist/e2e.entry.js.map +1 -1
- package/test/dist/helpers.entry.js +16 -19
- package/test/dist/helpers.entry.js.map +1 -1
- package/test/e2e/Core_listen.spec.js +32 -0
- package/test/e2e/Core_selection.spec.js +1 -1
- package/test/e2e/Core_validate.spec.js +29 -0
- package/test/e2e/renderers/checkboxRenderer.spec.js +20 -7
- package/test/e2e/settings/fragmentSelection.spec.js +12 -9
- package/test/scripts/trigger-pro-tests.sh +41 -0
- package/yarn.lock +260 -208
- package/.npmignore +0 -19
- package/demo/bower_components/numbro/package.json +0 -63
@@ -23,19 +23,19 @@
|
|
23
23
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
24
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
25
|
*
|
26
|
-
* Version: 0.34.
|
27
|
-
* Release date:
|
26
|
+
* Version: 0.34.5
|
27
|
+
* Release date: 12/10/2017 (built at 12/10/2017 10:04:52)
|
28
28
|
*/
|
29
|
-
!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()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=427)}([function(e,t,n){"use strict";function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=e;){if(n===t){o=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return o}function i(e,t,n){for(;null!=e&&e!==n;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function r(e,t,n){for(var o=[];e&&(e=i(e,t,n))&&(!n||n.contains(e));)o.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var r=o.length;return r?o[r-1]:null}function s(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function a(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===o.toUpperCase()}var n,o="hot-table",i=!1;for(n=l(e);null!=n;){if(t(n)){i=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=t(n.host))break;n=n.host}n=n.parentNode}return i}function l(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function c(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function h(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function d(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}function f(e,t){return q(e,t)}function p(e,t){return $(e,t)}function g(e,t){return Z(e,t)}function m(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,o=n.length-1;o>=0;o--)m(n[o],e)}function v(e){for(var t;t=e.lastChild;)e.removeChild(t)}function y(e,t){ie.test(t)?e.innerHTML=t:w(e,t)}function w(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?re?n.textContent=t:n.data=t:(v(e),e.appendChild(document.createTextNode(t)))}function C(e){for(var t=e;u(t)!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t.host){if(t.host.impl)return C(t.host.impl);if(t.host)return C(t.host);throw Error("Lost in Web Components world")}return!1}if("none"===t.style.display)return!1;t=t.parentNode}return!0}function b(e){var t,n,o,i,r;if(i=document.documentElement,(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return r=e.getBoundingClientRect(),{top:r.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,o=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,o=e;return o&&"fixed"===o.style.position&&(t+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop),{left:t,top:n}}function _(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function S(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function k(e){return e===window?_():e.scrollTop}function O(e){return e===window?S():e.scrollLeft}function R(e){for(var t,n,o,i=e.parentNode,r=["auto","scroll"],s="",a="",l="",u="";i&&i.style&&document.body!==i;){if(t=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return i;if(window.getComputedStyle&&(s=window.getComputedStyle(i),a=s.getPropertyValue("overflow"),l=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===a||"scroll"===u||"scroll"===l))return i;if(i.scrollHeight>=i.clientHeight&&(-1!==r.indexOf(o)||-1!==r.indexOf(t)||-1!==r.indexOf(a)||-1!==r.indexOf(l)))return i;if(i.scrollWidth>=i.clientWidth&&(-1!==r.indexOf(n)||-1!==r.indexOf(t)||-1!==r.indexOf(a)||-1!==r.indexOf(u)))return i;i=i.parentNode}return window}function E(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function T(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=M(e),""!==n[t]&&void 0!==n[t]?n[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function M(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function D(e){return e.offsetWidth}function P(e){return(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function H(e){return e.clientHeight||e.innerHeight}function x(e){return e.clientWidth||e.innerWidth}function A(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function L(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function N(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function j(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;return e.createTextRange().text.indexOf(t.text)+t.text.length}return 0}function I(){var e="";return window.getSelection?e=""+window.getSelection():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function W(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){var o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=i}}else if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r.select()}}function F(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}function V(){return void 0===oe&&(oe=F()),oe}function Y(e){return e.offsetWidth!==e.clientWidth}function B(e){return e.offsetHeight!==e.clientHeight}function z(e,t,n){(0,J.isIE8)()||(0,J.isIE9)()?(e.style.top=n,e.style.left=t):(0,J.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function U(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function G(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function K(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function X(e){return K(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")}t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=o,t.closest=i,t.closestDown=r,t.isChildOf=s,t.isChildOfWebComponentTable=a,t.polymerWrap=l,t.polymerUnwrap=u,t.index=c,t.overlayContainsElement=h,t.hasClass=f,t.addClass=p,t.removeClass=g,t.removeTextNodes=m,t.empty=v,t.fastInnerHTML=y,t.fastInnerText=w,t.isVisible=C,t.offset=b,t.getWindowScrollTop=_,t.getWindowScrollLeft=S,t.getScrollTop=k,t.getScrollLeft=O,t.getScrollableElement=R,t.getTrimmingContainer=E,t.getStyle=T,t.getComputedStyle=M,t.outerWidth=D,t.outerHeight=P,t.innerHeight=H,t.innerWidth=x,t.addEvent=A,t.removeEvent=L,t.getCaretPosition=N,t.getSelectionEndPosition=j,t.getSelectionText=I,t.setCaretPosition=W,t.getScrollbarWidth=V,t.hasVerticalScrollbar=Y,t.hasHorizontalScrollbar=B,t.setOverlayPosition=z,t.getCssTransform=U,t.resetCssTransform=G,t.isInput=K,t.isOutsideInput=X;var q,$,Z,J=n(25),Q=n(34),ee=!!document.documentElement.classList;if(ee){var te=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();q=function(e,t){return void 0!==e.classList&&""!==t&&e.classList.contains(t)},$=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},Z=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var ne=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};q=function(e,t){return void 0!==e.className&&e.className.test(ne(t))},$=function(e,t){var n=0,o=e.className;if("string"==typeof t&&(t=t.split(" ")),""===o)o=t.join(" ");else for(;t&&t[n];)ne(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},Z=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(ne(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}var oe,ie=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,re=!!document.createTextNode("test").textContent},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){"__children"!==n&&(t[n]=e&&"object"===(void 0===e?"undefined":w(e))&&!Array.isArray(e)?i(e):Array.isArray(e)?e.length&&"object"===w(e[0])&&!Array.isArray(e[0])?[i(e[0])]:[]:null)})),t}function r(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function s(e,t){return p(t,function(t,n){e[n]=t}),e}function a(e,t){p(t,function(n,o){t[o]&&"object"===w(t[o])?(e[o]||(e[o]=Array.isArray(t[o])?[]:"[object Date]"===Object.prototype.toString.call(t[o])?t[o]:{}),a(e[o],t[o])):e[o]=t[o]})}function l(e){return"object"===(void 0===e?"undefined":w(e))?JSON.parse(JSON.stringify(e)):e}function u(e){var t={};return p(e,function(e,n){t[n]=e}),t}function c(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,C.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:function(e,t){e="_"+e;var n=function(e){return(Array.isArray(e)||d(e))&&(e=l(e)),e};return function(){return void 0===this[e]&&(this[e]=n(t)),this[e]}}(n,t),set:function(e){return e="_"+e,function(t){this[e]=t}}(n),configurable:!0})}})}),e}function h(e,t){return JSON.stringify(e)===JSON.stringify(t)}function d(e){return"[object Object]"==Object.prototype.toString.call(e)}function f(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function p(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 g(e,t){var n=t.split("."),o=e;return p(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o}function m(e){if(!d(e))return 0;return function e(t){var n=0;return d(t)?p(t,function(t){n+=e(t)}):n++,n}(e)}function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i="_"+n,r=(t={_touched:!1},o(t,i,e),o(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(r,n,{get:function(){return this[i]},set:function(e){this._touched=!0,this[i]=e},enumerable:!0,configurable:!0}),r}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.__esModule=!0;var w="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};t.duckSchema=i,t.inherit=r,t.extend=s,t.deepExtend=a,t.deepClone=l,t.clone=u,t.mixin=c,t.isObjectEquals=h,t.isObject=d,t.defineGetter=f,t.objectEach=p,t.getProperty=g,t.deepObjectSize=m,t.createObjectPropListener=v,t.hasOwnProperty=y;var C=n(2)},function(e,t,n){"use strict";function o(e){for(var t=0,n=e.length;n>t;)e[t]=[e[t]],t++}function i(e,t){for(var n=0,o=t.length;o>n;)e.push(t[n]),n++}function r(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,i=0;n>i;i++)for(var r=0;o>r;r++)t[r]||(t[r]=[]),t[r][i]=e[i][r];return t}function s(e,t,n,o){var i=-1,r=e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}function a(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];t(s,n,e)&&(r[++i]=s)}return r}function l(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];r[++i]=t(s,n,e)}return r}function u(e,t){for(var n=-1,o=e.length;++n<o&&!1!==t(e[n],n,e););return e}function c(e){return s(e,function(e,t){return e+t},0)}function h(e){return s(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function d(e){return s(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?c(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function g(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}t.__esModule=!0,t.to2dArray=o,t.extendArray=i,t.pivot=r,t.arrayReduce=s,t.arrayFilter=a,t.arrayMap=l,t.arrayEach=u,t.arraySum=c,t.arrayMax=h,t.arrayMin=d,t.arrayAvg=f,t.arrayFlatten=p,t.arrayUnique=g},function(e,t,n){var o=n(13),i=n(45),r=n(32),s=n(33),a=n(29),l=function(e,t,n){var u,c,h,d,f=e&l.F,p=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,y=p?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,w=p?i:i[t]||(i[t]={}),C=w.prototype||(w.prototype={});p&&(n=t);for(u in n)c=!f&&y&&void 0!==y[u],h=(c?y:n)[u],d=v&&c?a(h,o):m&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,e&l.U),w[u]!=h&&r(w,u,d),m&&C[u]!=h&&(C[u]=h)};o.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=void 0,o=void 0,i=void 0,r=void 0,s=void 0,h=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,h=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){h.apply(this),(0,c.stopImmediatePropagation)(this)},!d.isHotTableEnv)return t;for(t=(0,a.polymerWrap)(t),s=t.path?t.path.length:0;s--;){if("HOT-TABLE"===t.path[s].nodeName)n=!0;else if(n&&t.path[s].shadowRoot){r=t.path[s];break}0!==s||r||(r=t.path[s])}return r||(r=t.target),t.isTargetWebComponent=!0,(0,u.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:((0,l.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&((0,l.hasOwnProperty)(e,"hot")?o=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?o=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(o=e.wtTable.TABLE.parentNode.parentNode),i=(0,a.closest)(t.target,["HOT-TABLE"],o),t.realTarget=i?o.querySelector("HOT-TABLE")||t.target:t.target),Object.defineProperty(t,"target",{get:function(){return(0,a.polymerWrap)(r)},enumerable:!0,configurable:!0}),t}function r(){return h}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.getListenersCounter=r;var a=n(0),l=n(1),u=n(34),c=n(7),h=0,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return s(e,[{key:"addEventListener",value:function(e,t,n){function o(e){e=i(s,e),n.call(this,e)}var r=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:o}),window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),h++,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o=this.context.eventListeners.length,i=void 0;o--;)if(i=this.context.eventListeners[o],i.event==t&&i.element==e){if(n&&n!=i.callback)continue;this.context.eventListeners.splice(o,1),i.element.removeEventListener?i.element.removeEventListener(i.event,i.callbackProxy,!1):i.element.detachEvent("on"+i.event,i.callbackProxy),h--}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n,o={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents"),n.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}}]),e}();t.default=d},function(e,t,n){"use strict";function o(e,t){e=(0,c.toUpperCaseFirst)(e),l.default.getSingleton().add("construct",function(){var n=void 0;h.has(this)||h.set(this,{}),n=h.get(this),n[e]||(n[e]=new t(this))}),l.default.getSingleton().add("afterDestroy",function(){if(h.has(this)){var e=h.get(this);(0,u.objectEach)(e,function(e){return e.destroy()}),h.delete(this)}})}function i(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,c.toUpperCaseFirst)(t);if(h.has(e)&&h.get(e)[n])return h.get(e)[n]}function r(e){return h.has(e)?Object.keys(h.get(e)):[]}function s(e,t){var n=null;return h.has(e)&&(0,u.objectEach)(h.get(e),function(e,o){e===t&&(n=o)}),n}t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var a=n(8),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(1),c=n(27),h=new WeakMap;t.registerPlugin=o,t.getPlugin=i,t.getRegistredPluginNames=r,t.getPluginName=s},function(e,t,n){"use strict";function o(e){var t=void 0===e?"undefined":a(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function i(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););}function r(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););}function s(e,t){return t=parseInt((""+t).replace("%",""),10),t=parseInt(e*t/100,10)}t.__esModule=!0;var a="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};t.isNumeric=o,t.rangeEach=i,t.rangeEachReverse=r,t.valueAccordingPercent=s},function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function i(e){return!1===e.isImmediatePropagationEnabled}function r(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+(0,c.getWindowScrollLeft)()}function a(e){return e.pageY?e.pageY:e.clientY+(0,c.getWindowScrollTop)()}function l(e){return 2===e.button}function u(e){return 0===e.button}t.__esModule=!0,t.stopImmediatePropagation=o,t.isImmediatePropagationStopped=i,t.stopPropagation=r,t.pageX=s,t.pageY=a,t.isRightClick=l,t.isLeftClick=u;var c=n(0)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(2),s=n(1),a=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing"],l=function(){function e(){o(this,e),this.globalBucket=this.createEmptyBucket()}return i(e,null,[{key:"getSingleton",value:function(){return u}}]),i(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,r.arrayEach)(a,function(t){return e[t]=[]}),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,r.arrayEach)(t,function(t){return n.add(e,t,o)});else{var i=this.getBucket(o);if(void 0===i[e]&&(this.register(e),i[e]=[]),t.skip=!1,-1===i[e].indexOf(t)){var s=!1;t.initialHook&&(0,r.arrayEach)(i[e],function(n,o){if(n.initialHook)return i[e][o]=t,s=!0,!1}),s||i[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,r.arrayEach)(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,o,i,r,s,a){var l=this.globalBucket[t],u=-1,c=l?l.length:0;if(c)for(;++u<c;)if(l[u]&&!l[u].skip){var h=l[u].call(e,n,o,i,r,s,a);void 0!==h&&(n=h),l[u]&&l[u].runOnce&&this.remove(t,l[u])}var d=this.getBucket(e)[t],f=-1,p=d?d.length:0;if(p)for(;++f<p;)if(d[f]&&!d[f].skip){var g=d[f].call(e,n,o,i,r,s,a);void 0!==g&&(n=g),d[f]&&d[f].runOnce&&this.remove(t,d[f],e)}return n}},{key:"destroy",value:function(){(0,s.objectEach)(this.getBucket(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||a.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&a.splice(a.indexOf(e),1)}},{key:"isRegistered",value:function(e){return a.indexOf(e)>=0}},{key:"getRegistered",value:function(){return a}}]),e}(),u=new l;t.default=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"==typeof e)return e;if(!k(e))throw Error('No registered renderer found under "'+e+'" name');return S(e)}t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var r=n(52),s=o(r),a=n(481),l=o(a),u=n(482),c=o(u),h=n(483),d=o(h),f=n(484),p=o(f),g=n(485),m=o(g),v=n(486),y=o(v),w=n(487),C=o(w),b=(0,s.default)("renderers"),_=b.register,S=b.getItem,k=b.hasItem,O=b.getNames,R=b.getValues;_("base",l.default),_("autocomplete",c.default),_("checkbox",d.default),_("html",p.default),_("numeric",m.default),_("password",y.default),_("text",C.default),t.registerRenderer=_,t.getRenderer=i,t.hasRenderer=k,t.getRegisteredRendererNames=O,t.getRegisteredRenderers=R},function(e,t,n){var o=n(84)("wks"),i=n(50),r=n(13).Symbol,s="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=s&&r[e]||(s?r:i)("Symbol."+e))}).store=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.ViewportColumnsCalculator=void 0,n(98),n(115),n(124),n(125),n(109),n(123),n(106),n(107),n(108),n(97),n(120),n(118),n(116),n(121),n(122),n(117),n(119),n(110),n(111),n(112),n(114),n(113),n(95),n(96),n(91),n(94),n(93),n(92),n(68),n(100),n(101),n(103),n(102),n(99),n(105),n(104),n(126),n(129),n(127),n(128),n(131),n(130),n(133),n(132);var i=n(352),r=o(i),s=n(353),a=o(s),l=n(43),u=o(l),c=n(69),h=o(c),d=n(356),f=o(d),p=n(357),g=o(p),m=n(402),v=o(m),y=n(403),w=o(y),C=n(404),b=o(C),_=n(405),S=o(_),k=n(351),O=o(k),R=n(354),E=o(R),T=n(355),M=o(T),D=n(358),P=o(D),H=n(359),x=o(H),A=n(406),L=o(A),N=n(360),j=o(N),I=n(361),W=o(I),F=n(362),V=o(F),Y=n(363),B=o(Y);t.ViewportColumnsCalculator=r.default,t.ViewportRowsCalculator=a.default,t.CellCoords=u.default,t.CellRange=h.default,t.ColumnFilter=f.default,t.RowFilter=g.default,t.DebugOverlay=v.default,t.LeftOverlay=w.default,t.TopOverlay=b.default,t.TopLeftCornerOverlay=S.default,t.Border=O.default,t.default=E.default,t.Core=E.default,t.Event=M.default,t.Overlays=P.default,t.Scroll=x.default,t.Selection=L.default,t.Settings=j.default,t.Table=W.default,t.TableRenderer=V.default,t.Viewport=B.default},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1),s=n(2),a=n(369),l=n(5),u=new WeakMap,c=null;t.default=function(){function e(t){var n=this;o(this,e),(0,r.defineGetter)(this,"hot",t,{writable:!1}),(0,r.defineGetter)(this,"t",(0,a.getTranslator)(t),{writable:!1}),u.set(this,{hooks:{}}),c=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(){return n.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return n.init()})}return i(e,[{key:"init",value:function(){this.pluginName=(0,l.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),c||(c=(0,l.getRegistredPluginNames)(this.hot)),0>c.indexOf(this.pluginName)||c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){u.get(this).hooks[e]=u.get(this).hooks[e]||[];var n=u.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),u.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,s.arrayEach)(u.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=u.get(this).hooks;(0,r.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,s.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,r.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}()},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},h.default.getSingleton().add("afterDestroy",function(){t={}})}function r(e,t){var n=void 0;if("function"==typeof e)A.get(e)||a(null,e),n=A.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=j(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function s(e){if(!I(e))throw Error('No registered editor found under "'+e+'" name');return j(e).getConstructor()}function a(e,t){var n=new i(t);"string"==typeof e&&N(e,n),A.set(t,n)}t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=i,t._getEditorInstance=r;var l=n(52),u=o(l),c=n(8),h=o(c),d=n(36),f=o(d),p=n(364),g=o(p),m=n(419),v=o(m),y=n(420),w=o(y),C=n(421),b=o(C),_=n(365),S=o(_),k=n(422),O=o(k),R=n(423),E=o(R),T=n(424),M=o(T),D=n(425),P=o(D),H=n(44),x=o(H),A=new WeakMap,L=(0,u.default)("editors"),N=L.register,j=L.getItem,I=L.hasItem,W=L.getNames,F=L.getValues;a("base",f.default),a("autocomplete",g.default),a("checkbox",v.default),a("date",w.default),a("dropdown",b.default),a("handsontable",S.default),a("mobile",O.default),a("numeric",E.default),a("password",M.default),a("select",P.default),a("text",x.default),t.registerEditor=a,t.getEditor=s,t.getEditorInstance=r,t.hasEditor=I,t.getRegisteredEditorNames=W,t.getRegisteredEditors=F},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function o(e){return 32==e||e>=48&&57>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e||e>=226||e>=65&&90>=e}function i(e){return-1!==[l.ARROW_DOWN,l.ARROW_UP,l.ARROW_LEFT,l.ARROW_RIGHT,l.HOME,l.END,l.DELETE,l.BACKSPACE,l.F1,l.F2,l.F3,l.F4,l.F5,l.F6,l.F7,l.F8,l.F9,l.F10,l.F11,l.F12,l.TAB,l.PAGE_DOWN,l.PAGE_UP,l.ENTER,l.ESCAPE,l.SHIFT,l.CAPS_LOCK,l.ALT].indexOf(e)}function r(e){return-1!==[l.CONTROL_LEFT,224,l.COMMAND_LEFT,l.COMMAND_RIGHT].indexOf(e)}function s(e,t){var n=t.split("|"),o=!1;return(0,a.arrayEach)(n,function(t){if(e===l[t])return o=!0,!1}),o}t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=o,t.isMetaKey=i,t.isCtrlKey=r,t.isKey=s;var a=n(2),l=t.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(e,t,n){"use strict";function o(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function i(e){return(0,_.hasClass)(e,"htSeparator")}function r(e){return(0,_.hasClass)(e,"htSubmenu")}function s(e){return(0,_.hasClass)(e,"htDisabled")}function a(e){return(0,_.hasClass)(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?0>t[0]?null:t:null}function u(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function c(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function h(e,t){for(var n={},o=e.from.row;e.to.row>=o;o++)for(var i=e.from.col;e.to.col>=i;i++)n[o]||(n[o]=[]),n[o][i]=t(o,i);return n}function d(e,t,n,o,i){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,n,o,i);else for(var r=e.from.row;e.to.row>=r;r++)for(var s=e.from.col;e.to.col>=s;s++)f(r,s,t,n,o,i)}function f(e,t,n,o,i,r){var s=i(e,t),a=o;s.className&&(a="vertical"===n?u(s.className,o):c(s.className,o)),r(e,t,"className",a)}function p(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}function g(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function m(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function v(e,t){for(var n=e.slice(0);n.length>0&&n[0].name===t;)n.shift();return n}function y(e,t){var n=e.slice(0);return n.reverse(),n=v(n,t),n.reverse(),n}function w(e){var t=[];return(0,b.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.KEY,n=e.slice(0);return n=v(n,t),n=y(n,t),n=w(n)}t.__esModule=!0,t.normalizeSelection=o,t.isSeparator=i,t.hasSubMenu=r,t.isDisabled=s,t.isSelectionDisabled=a,t.getValidSelection=l,t.prepareVerticalAlignClass=u,t.prepareHorizontalAlignClass=c,t.getAlignmentClasses=h,t.align=d,t.checkSelectionConsistency=p,t.markLabelAsSelected=g,t.isItemHidden=m,t.filterSeparators=C;var b=n(2),_=n(0),S=n(72)},function(e,t,n){var o=n(15);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var o=n(18),i=n(376),r=n(87),s=Object.defineProperty;t.f=n(21)?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function o(e){var t=void 0;switch(void 0===e?"undefined":c(e)){case"string":case"number":t=""+e;break;case"object":t=null===e?"":""+e;break;case"undefined":t="";break;default:t=""+e}return t}function i(e){return void 0!==e}function r(e){return void 0===e}function s(e){return null===e||""===e||r(e)}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){e=w(e||"");var n="",o=!0,i=u(e),r=b(),a=s(e)||"trial"===e;if(a||i)if(i){var l=Math.floor(moment("06/09/2017","DD/MM/YYYY").toDate().getTime()/864e5),c=C(e);(c>45e3||c!==parseInt(c,10))&&(n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly."),n||(l>c+1&&(n=(0,f.toSingleLine)(h)),o=l>c+15)}else n="Evaluation version of Handsontable Pro. Not licensed for use in a production environment.";else n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.";if(r&&(n=!1,o=!1),n&&!_&&(console[a?"info":"warn"](n),_=!0),o&&t.parentNode){var p=document.createElement("div");(0,d.addClass)(p,"display-license-info"),p.appendChild(document.createTextNode("Evaluation version of Handsontable Pro.")),p.appendChild(document.createElement("br")),p.appendChild(document.createTextNode("Not licensed for production use.")),t.parentNode.insertBefore(p,t.nextSibling)}}function u(e){var t=[][p],n=t;if(e[p]!==y("Z"))return!1;for(var o="",i="B<H4P+".split(""),r=y(i.shift());r;r=y(i.shift()||"A"))--r<""[p]?n|=(m(""+m(g(o)+(g(v(e,Math.abs(r),2))+[]).padStart(2,"0")))%y("¢")||2)>>1:o=v(e,r,r?1===i[p]?9:8:6);return n===t}t.__esModule=!0;var c="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},h=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n Your license key of Handsontable Pro has expired. \n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "],["\n Your license key of Handsontable Pro has expired.\\x20\n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "]);t.stringify=o,t.isDefined=i,t.isUndefined=r,t.isEmpty=s,t.isRegExp=a,t._injectProductInfo=l;var d=n(0),f=n(426),p="length",g=function(e){return parseInt(e,16)},m=function(e){return parseInt(e,10)},v=function(e,t,n){return e.substr(t,n)},y=function(e){return e.codePointAt(0)-65},w=function(e){return e.replace(/\-/g,"")},C=function(e){return g(v(w(e),g("12"),y("F")))/(g(v(w(e),y("B"),~~![][p]))||9)},b=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},_=!1},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(78),i=n(30);e.exports=function(e){return o(i(e))}},function(e,t,n){var o=n(62),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},function(e,t,n){"use strict";function o(){return l}function i(){return u}function r(){return c}function s(){return h}function a(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}t.__esModule=!0,t.isIE8=o,t.isIE9=i,t.isSafari=r,t.isChrome=s,t.isMobileBrowser=a;var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),h=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"==typeof e)return e;if(!y(e))throw Error('No registered validator found under "'+e+'" name');return v(e)}t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var r=n(52),s=o(r),a=n(492),l=o(a),u=n(493),c=o(u),h=n(494),d=o(h),f=n(495),p=o(f),g=(0,s.default)("validators"),m=g.register,v=g.getItem,y=g.hasItem,w=g.getNames,C=g.getValues;m("autocomplete",l.default),m("date",c.default),m("numeric",d.default),m("time",p.default),t.registerValidator=m,t.getValidator=i,t.hasValidator=y,t.getRegisteredValidatorNames=w,t.getRegisteredValidators=C},function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function i(){for(var e=[],t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];for(var i=n.length;i--;){var r=(0,u.stringify)(n[i]).toLowerCase();-1===e.indexOf(r)&&e.push(r)}return 1===e.length}function r(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function s(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})}function l(e){return e+="",e.replace(c,"")}t.__esModule=!0,t.toUpperCaseFirst=o,t.equalsIgnoreCase=i,t.randomString=r,t.isPercentValue=s,t.substitute=a,t.stripTags=l;var u=n(20),c=(n(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(2),u=n(4),c=o(u),h=n(354),d=o(h),f={};t.default=function(){function e(t){i(this,e),(0,a.defineGetter)(this,"wot",t,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return r(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw Error("Unsupported overlay ("+t+").");f[t]=n}},{key:"createOverlay",value:function(e,t){return new f[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==f[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),r(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw Error('Clone type "'+t+'" is not supported.');var n=document.createElement("DIV"),o=document.createElement("TABLE");n.className="ht_clone_"+t+" handsontable",n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",o.className=this.wot.wtTable.TABLE.className,n.appendChild(o),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var i=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=!0===i||"horizontal"===i&&this.type===e.CLONE_TOP||"vertical"===i&&this.type===e.CLONE_LEFT?window:(0,s.getScrollableElement)(this.wot.wtTable.TABLE),new d.default({cloneSource:this.wot,cloneOverlay:this,table:o})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder;(0,l.arrayEach)([e.style,this.clone.wtTable.hider.style,e.parentNode.style],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),e}()},function(e,t,n){var o=n(73);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(19),i=n(40);e.exports=n(21)?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(13),i=n(32),r=n(22),s=n(50)("src"),a=Function.toString,l=(""+a).split("toString");n(45).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(r(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(r(n,s)||i(n,s,e[t]?""+e[t]:l.join(t+""))),e===o?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t,n){"use strict";function o(e){return f.call(window,e)}function i(e){p.call(window,e)}function r(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!(""+e.createShadowRoot).match(/\[native code\]/))}function a(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),m=2*e.lastChild.offsetHeight>e.offsetHeight,document.body.removeChild(e)}function l(){return void 0===m&&a(),m}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v||(v="object"===("undefined"==typeof Intl?"undefined":c(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(""+e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}t.__esModule=!0;var c="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};t.requestAnimationFrame=o,t.cancelAnimationFrame=i,t.isTouchSupported=r,t.isWebComponentSupportedNatively=s,t.hasCaptionProblem=l,t.getComparisonFunction=u;for(var h=0,d=["ms","moz","webkit","o"],f=window.requestAnimationFrame,p=window.cancelAnimationFrame,g=0;4>g&&!f;++g)f=window[d[g]+"RequestAnimationFrame"],p=window[d[g]+"CancelAnimationFrame"]||window[d[g]+"CancelRequestAnimationFrame"];f||(f=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout(function(){e(t+n)},n);return h=t+n,o}),p||(p=function(e){clearTimeout(e)});var m,v=void 0},function(e,t,n){"use strict";function o(e){return"function"==typeof e}function i(e){function t(){var t=this,s=arguments,a=Date.now(),l=!1;i.lastCallThrottled=!0,o||(o=a,l=!0);var u=n-(a-o);return l?(i.lastCallThrottled=!1,e.apply(this,s)):(r&&clearTimeout(r),r=setTimeout(function(){i.lastCallThrottled=!1,e.apply(t,s),o=0,r=void 0},u)),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0,i={lastCallThrottled:!0},r=null;return t}function r(e){function t(){a=r}function n(){return a?(a--,e.apply(this,arguments)):s.apply(this,arguments)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=i(e,o),a=r;return n.clearHits=t,n}function s(e){function t(){var t=this,r=arguments;return o&&clearTimeout(o),o=setTimeout(function(){i=e.apply(t,r)},n),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,i=void 0;return t}function a(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){return(0,h.arrayReduce)(i,function(e,t){return t(e)},o.apply(this,arguments))}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),i=0;t>i;i++)o[i]=arguments[i];return e.apply(this,n.concat(o))}}function u(e){function t(o){return function(){for(var i=arguments.length,r=Array(i),s=0;i>s;s++)r[s]=arguments[s];var a=o.concat(r);return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}function c(e){function t(o){return function(){for(var i=arguments.length,r=Array(i),s=0;i>s;s++)r[s]=arguments[s];var a=o.concat(r.reverse());return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}t.__esModule=!0,t.isFunction=o,t.throttle=i,t.throttleAfterHits=r,t.debounce=s,t.pipe=a,t.partial=l,t.curry=u,t.curryRight=c;var h=n(2)},function(e,t,n){"use strict";function o(e){this.instance=e,this.state=s.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}t.__esModule=!0,t.EditorState=void 0;var i=n(11),r=n(20),s=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};o.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(e,t,n,o,i,r){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=i,this.cellProperties=r,this.state=s.VIRGIN},o.prototype.extend=function(){function e(){t.apply(this,arguments)}var t=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}(e,t)},o.prototype.saveValue=function(e,t){var n=void 0,o=void 0;t?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},o.prototype.beginEditing=function(e,t){this.state==s.VIRGIN&&(this.instance.view.scrollViewport(new i.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=s.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,r.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(e,t,n){var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(e){r&&r(e),n(e),i.instance.view.render()}}if(!this.isWaiting()){if(this.state==s.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){i._fireCallbacks(!0)},0));if(this.state==s.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var a=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=s.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){i.state=s.FINISHED,i.discardEditor(e)}):(this.state=s.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=s.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===s.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=s.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=s.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===s.WAITING},o.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t},t.default=o},function(e,t,n){var o=n(10)("unscopables"),i=Array.prototype;void 0==i[o]&&n(32)(i,o,{}),e.exports=function(e){i[o][e]=!0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(385),i=n(76);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(30);e.exports=function(e){return Object(o(e))}},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return bo.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function s(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return wt(e,t,n,o,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=So.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function m(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}function v(e,t){var n,o,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),ko.length>0)for(n=0;ko.length>n;n++)o=ko[n],i=t[o],s(i)||(e[o]=i);return e}function y(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Oo&&(Oo=!0,t.updateOffset(this),Oo=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function _(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;i>o;o++)(n&&e[o]!==t[o]||!n&&b(e[o])!==b(t[o]))&&s++;return s+r}function S(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var o=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var i,r=[],s=0;arguments.length>s;s++){if(i="","object"==typeof arguments[s]){i+="\n["+s+"] ";for(var a in arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];r.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+Error().stack),o=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Ro[e]||(S(n),Ro[e]=!0)}function R(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)t=e[n],R(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,o=h({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function M(e){null!=e&&this.set(e)}function D(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return R(o)?o.call(t,n):o}function P(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)})}function H(){return this._invalidDate}function x(e){return this._ordinal.replace("%d",e)}function A(e,t,n,o){var i=this._relativeTime[n];return R(i)?i(e,t,n,o):i.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Ao[n]=Ao[n+"s"]=Ao[t]=e}function j(e){return"string"==typeof e?Ao[e]||Ao[e.toLowerCase()]:void 0}function I(e){var t,n,o={};for(n in e)c(e,n)&&(t=j(n))&&(o[t]=e[n]);return o}function W(e,t){Lo[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:Lo[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,n){return function(o){return null!=o?(B(this,e,o),t.updateOffset(this,n),this):Y(this,e)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e){return e=j(e),R(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=I(e);for(var n=F(e),o=0;n.length>o;o++)this[n[o].unit](e[n[o].unit])}else if(e=j(e),R(this[e]))return this[e](t);return this}function G(e,t,n){var o=""+Math.abs(e),i=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,i))).substr(1)+o}function K(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(Wo[e]=i),t&&(Wo[t[0]]=function(){return G(i.apply(this,arguments),t[1],t[2])}),n&&(Wo[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function X(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,o=e.match(No);for(t=0,n=o.length;n>t;t++)o[t]=Wo[o[t]]?Wo[o[t]]:X(o[t]);return function(t){var i,r="";for(i=0;n>i;i++)r+=R(o[i])?o[i].call(t,e):o[i];return r}}function $(e,t){return e.isValid()?(t=Z(t,e.localeData()),(Io[t]=Io[t]||q(t))(e)):e.localeData().invalidDate()}function Z(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(jo.lastIndex=0;o>=0&&jo.test(e);)e=e.replace(jo,n),jo.lastIndex=0,o-=1;return e}function J(e,t,n){oi[e]=R(t)?t:function(e,o){return e&&n?n:t}}function Q(e,t){return c(oi,e)?oi[e](t._strict,t._locale):RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),a(t)&&(o=function(e,n){n[t]=b(e)}),n=0;e.length>n;n++)ii[e[n]]=o}function oe(e,t){ne(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function ie(e,t,n){null!=t&&c(ii,e)&&ii[e](t,n._a,n,e)}function re(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function se(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||gi).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ae(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[gi.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=pi.call(this._shortMonthsParse,s),-1!==i?i:null):(i=pi.call(this._longMonthsParse,s),-1!==i?i:null):"MMM"===t?-1!==(i=pi.call(this._shortMonthsParse,s))?i:(i=pi.call(this._longMonthsParse,s),-1!==i?i:null):-1!==(i=pi.call(this._longMonthsParse,s))?i:(i=pi.call(this._shortMonthsParse,s),-1!==i?i:null)}function ue(e,t,n){var o,i,r;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!a(t))return e;return n=Math.min(e.date(),re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function he(e){return null!=e?(ce(this,e),t.updateOffset(this,!0),this):Y(this,"Month")}function de(){return re(this.year(),this.month())}function fe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=yi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=wi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,o=[],i=[],r=[];for(t=0;12>t;t++)n=d([2e3,t]),o.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),i.sort(e),r.sort(e),t=0;12>t;t++)o[t]=te(o[t]),i[t]=te(i[t]);for(t=0;24>t;t++)r[t]=te(r[t]);this._monthsRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function me(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}function ye(){return ve(this.year())}function we(e,t,n,o,i,r,s){var a=new Date(e,t,n,o,i,r,s);return 100>e&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Ce(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var o=7+t-n;return-(7+Ce(e,0,o).getUTCDay()-t)%7+o-1}function _e(e,t,n,o,i){var r,s,a=(7+n-o)%7,l=be(e,o,i),u=1+7*(t-1)+a+l;return u>0?u>me(e)?(r=e+1,s=u-me(e)):(r=e,s=u):(r=e-1,s=me(r)+u),{year:r,dayOfYear:s}}function Se(e,t,n){var o,i,r=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>s?(i=e.year()-1,o=s+ke(i,t,n)):s>ke(e.year(),t,n)?(o=s-ke(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function ke(e,t,n){var o=be(e,t,n),i=be(e+1,t,n);return(me(e)-o+i)/7}function Oe(e){return Se(e,this._week.dow,this._week.doy).week}function Re(){return this._week.dow}function Ee(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Me(e){var t=Se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Pe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone}function xe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ae(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Le(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=pi.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=pi.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=pi.call(this._weekdaysParse,s))?i:-1!==(i=pi.call(this._shortWeekdaysParse,s))?i:(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=pi.call(this._shortWeekdaysParse,s))?i:-1!==(i=pi.call(this._weekdaysParse,s))?i:(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=pi.call(this._minWeekdaysParse,s))?i:-1!==(i=pi.call(this._weekdaysParse,s))?i:(i=pi.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function Ne(e,t,n){var o,i,r;if(this._weekdaysParseExact)return Le.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Oi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ri),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ye(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ei),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Be(){function e(e,t){return t.length-e.length}var t,n,o,i,r,s=[],a=[],l=[],u=[];for(t=0;7>t;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),a.push(i),l.push(r),u.push(o),u.push(i),u.push(r);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;7>t;t++)a[t]=te(a[t]),l[t]=te(l[t]),u[t]=te(u[t]);this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+s.join("|")+")","i")}function ze(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ge(e,t){K(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,o,i,r=0;e.length>r;){for(i=$e(e[r]).split("-"),t=i.length,n=$e(e[r+1]),n=n?n.split("-"):null;t>0;){if(o=Je(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&_(i,n,!0)>=t-1)break;t--}r++}return null}function Je(t){var o=null;if(!Hi[t]&&void 0!==e&&e&&e.exports)try{o=Ti._abbr,n(522)("./"+t),Qe(o)}catch(e){}return Hi[t]}function Qe(e,t){var n;return e&&(n=s(t)?nt(e):et(e,t))&&(Ti=n),Ti._abbr}function et(e,t){if(null!==t){var n=Pi;if(t.abbr=e,null!=Hi[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Hi[e]._config;else if(null!=t.parentLocale){if(null==Hi[t.parentLocale])return xi[t.parentLocale]||(xi[t.parentLocale]=[]),xi[t.parentLocale].push({name:e,config:t}),null;n=Hi[t.parentLocale]._config}return Hi[e]=new M(T(n,t)),xi[e]&&xi[e].forEach(function(e){et(e.name,e.config)}),Qe(e),Hi[e]}return delete Hi[e],null}function tt(e,t){if(null!=t){var n,o=Pi;null!=Hi[e]&&(o=Hi[e]._config),t=T(o,t),n=new M(t),n.parentLocale=Hi[e],Hi[e]=n,Qe(e)}else null!=Hi[e]&&(null!=Hi[e].parentLocale?Hi[e]=Hi[e].parentLocale:null!=Hi[e]&&delete Hi[e]);return Hi[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ti;if(!o(e)){if(t=Je(e))return t;e=[e]}return Ze(e)}function ot(){return Mo(Hi)}function it(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=0>n[si]||n[si]>11?si:1>n[ai]||n[ai]>re(n[ri],n[si])?ai:0>n[li]||n[li]>24||24===n[li]&&(0!==n[ui]||0!==n[ci]||0!==n[hi])?li:0>n[ui]||n[ui]>59?ui:0>n[ci]||n[ci]>59?ci:0>n[hi]||n[hi]>999?hi:-1,p(e)._overflowDayOfYear&&(ri>t||t>ai)&&(t=ai),p(e)._overflowWeeks&&-1===t&&(t=di),p(e)._overflowWeekday&&-1===t&&(t=fi),p(e).overflow=t),e}function rt(e){var t,n,o,i,r,s,a=e._i,l=Ai.exec(a)||Li.exec(a);if(l){for(p(e).iso=!0,t=0,n=ji.length;n>t;t++)if(ji[t][1].exec(l[1])){i=ji[t][0],o=!1!==ji[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ii.length;n>t;t++)if(Ii[t][1].exec(l[3])){r=(l[2]||" ")+Ii[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!Ni.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),dt(e)}else e._isValid=!1}function st(e){var t,n,o,i,r,s,a,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},c="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Fi.exec(t)){if(o=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==d)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===l?a=" +0000":(l=c.indexOf(n[5][1].toUpperCase())-12,a=(0>l?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=u[n[5]];break;default:a=" +0000"}n[5]=a,e._i=n.splice(1).join(""),s=" ZZ",e._f=o+i+r+s,dt(e),p(e).rfc2822=!0}else e._isValid=!1}function at(e){var n=Wi.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));rt(e),!1===e._isValid&&(delete e._isValid,st(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function lt(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,o,i,r=[];if(!e._d){for(o=ut(e),e._w&&null==e._a[ai]&&null==e._a[si]&&ht(e),null!=e._dayOfYear&&(i=lt(e._a[ri],o[ri]),(e._dayOfYear>me(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ce(i,0,e._dayOfYear),e._a[si]=n.getUTCMonth(),e._a[ai]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=o[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[li]&&0===e._a[ui]&&0===e._a[ci]&&0===e._a[hi]&&(e._nextDay=!0,e._a[li]=0),e._d=(e._useUTC?Ce:we).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[li]=24)}}function ht(e){var t,n,o,i,r,s,a,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,s=4,n=lt(t.GG,e._a[ri],Se(Ct(),1,4).year),o=lt(t.W,1),(1>(i=lt(t.E,1))||i>7)&&(l=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var u=Se(Ct(),r,s);n=lt(t.gg,e._a[ri],u.year),o=lt(t.w,u.week),null!=t.d?(0>(i=t.d)||i>6)&&(l=!0):null!=t.e?(i=t.e+r,(0>t.e||t.e>6)&&(l=!0)):i=r}1>o||o>ke(n,r,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(a=_e(n,o,i,r,s),e._a[ri]=a.year,e._dayOfYear=a.dayOfYear)}function dt(e){if(e._f===t.ISO_8601)return void rt(e);if(e._f===t.RFC_2822)return void st(e);e._a=[],p(e).empty=!0;var n,o,i,r,s,a=""+e._i,l=a.length,u=0;for(i=Z(e._f,e._locale).match(No)||[],n=0;i.length>n;n++)r=i[n],o=(a.match(Q(r,e))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),Wo[r]?(o?p(e).empty=!1:p(e).unusedTokens.push(r),ie(r,o,e)):e._strict&&!o&&p(e).unusedTokens.push(r);p(e).charsLeftOver=l-u,a.length>0&&p(e).unusedInput.push(a),12>=e._a[li]&&!0===p(e).bigHour&&e._a[li]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[li]=ft(e._locale,e._a[li],e._meridiem),ct(e),it(e)}function ft(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function pt(e){var t,n,o,i,r;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;e._f.length>i;i++)r=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],dt(t),g(t)&&(r+=p(t).charsLeftOver,r+=10*p(t).unusedTokens.length,p(t).score=r,(null==o||o>r)&&(o=r,n=t));h(e,n||t)}function gt(e){if(!e._d){var t=I(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function mt(e){var t=new y(it(vt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function vt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new y(it(t)):(l(t)?e._d=t:o(n)?pt(e):n?dt(e):yt(e),g(e)||(e._d=null),e))}function yt(e){var n=e._i;s(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?at(e):o(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),ct(e)):i(n)?gt(e):a(n)?e._d=new Date(n):t.createFromInputFallback(e)}function wt(e,t,n,s,a){var l={};return!0!==n&&!1!==n||(s=n,n=void 0),(i(e)&&r(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=s,mt(l)}function Ct(e,t,n,o){return wt(e,t,n,o,!1)}function bt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],i=1;t.length>i;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function _t(){return bt("isBefore",[].slice.call(arguments,0))}function St(){return bt("isAfter",[].slice.call(arguments,0))}function kt(e){for(var t in e)if(-1===zi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;zi.length>o;++o)if(e[zi[o]]){if(n)return!1;parseFloat(e[zi[o]])!==b(e[zi[o]])&&(n=!0)}return!0}function Ot(){return this._isValid}function Rt(){return Ut(NaN)}function Et(e){var t=I(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=kt(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=nt(),this._bubble()}function Tt(e){return e instanceof Et}function Mt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function Dt(e,t){K(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+G(~~(e/60),2)+t+G(~~e%60,2)})}function Pt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],i=(o+"").match(Ui)||["-",0,0],r=60*i[1]+b(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Ht(e,n){var o,i;return n._isUTC?(o=n.clone(),i=(w(e)||l(e)?e.valueOf():Ct(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+i),t.updateOffset(o,!1),o):Ct(e).local()}function xt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function At(e,n,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ei,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&n&&(i=xt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?$t(this,Ut(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:xt(this)}function Lt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Nt(e){return this.utcOffset(0,e)}function jt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(xt(this),"m")),this}function It(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(Qo,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Wt(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ft(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=vt(e),e._a){var t=e._isUTC?d(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yt(){return!!this.isValid()&&!this._isUTC}function Bt(){return!!this.isValid()&&this._isUTC}function zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ut(e,t){var n,o,i,r=e,s=null;return Tt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(r={},t?r[t]=e:r.milliseconds=e):(s=Gi.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:b(s[ai])*n,h:b(s[li])*n,m:b(s[ui])*n,s:b(s[ci])*n,ms:b(Mt(1e3*s[hi]))*n}):(s=Ki.exec(e))?(n="-"===s[1]?-1:1,r={y:Gt(s[2],n),M:Gt(s[3],n),w:Gt(s[4],n),d:Gt(s[5],n),h:Gt(s[6],n),m:Gt(s[7],n),s:Gt(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=Xt(Ct(r.from),Ct(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new Et(r),Tt(e)&&c(e,"_locale")&&(o._locale=e._locale),o}function Gt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ht(t,e),e.isBefore(t)?n=Kt(e,t):(n=Kt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qt(e,t){return function(n,o){var i,r;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),n="string"==typeof n?+n:n,i=Ut(n,o),$t(this,i,e),this}}function $t(e,n,o,i){var r=n._milliseconds,s=Mt(n._days),a=Mt(n._months);e.isValid()&&(i=null==i||i,r&&e._d.setTime(e._d.valueOf()+r*o),s&&B(e,"Date",Y(e,"Date")+s*o),a&&ce(e,Y(e,"Month")+a*o),i&&t.updateOffset(e,s||a))}function Zt(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function Jt(e,n){var o=e||Ct(),i=Ht(o,this).startOf("day"),r=t.calendarFormat(this,i)||"sameElse";return this.format(n&&(R(n[r])?n[r].call(this,o):n[r])||this.localeData().calendar(r,this,Ct(o)))}function Qt(){return new y(this)}function en(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&(t=j(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function tn(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&(t=j(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function nn(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function on(e,t){var n,o=w(e)?e:Ct(e);return!(!this.isValid()||!o.isValid())&&(t=j(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function rn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function an(e,t,n){var o,i,r,s;return this.isValid()?(o=Ht(e,this),o.isValid()?(i=6e4*(o.utcOffset()-this.utcOffset()),t=j(t),"year"===t||"month"===t||"quarter"===t?(s=ln(this,o),"quarter"===t?s/=3:"year"===t&&(s/=12)):(r=this-o,s="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?s:C(s)):NaN):NaN}function ln(e,t){var n,o,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return 0>t-r?(n=e.clone().add(i-1,"months"),o=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),o=(t-r)/(n-r)),-(i+o)||0}function un(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cn(){if(!this.isValid())return null;var e=this.clone().utc();return 0>e.year()||e.year()>9999?$(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):R(Date.prototype.toISOString)?this.toDate().toISOString():$(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function hn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");return this.format("["+e+'("]'+(0>this.year()||this.year()>9999?"YYYYYY":"YYYY")+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')}function dn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=$(this,e);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(Ct(),e)}function gn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(Ct(),e)}function vn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function yn(){return this._locale}function wn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Cn(e){return void 0===(e=j(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function Sn(){return new Date(this.valueOf())}function kn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Rn(){return this.isValid()?this.toISOString():null}function En(){return g(this)}function Tn(){return h({},p(this))}function Mn(){return p(this).overflow}function Dn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pn(e,t){K(0,[e,e.length],0,t)}function Hn(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function xn(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function An(){return ke(this.year(),1,4)}function Ln(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Nn(e,t,n,o,i){var r;return null==e?Se(this,o,i).year:(r=ke(e,o,i),t>r&&(t=r),jn.call(this,e,t,n,o,i))}function jn(e,t,n,o,i){var r=_e(e,t,n,o,i),s=Ce(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function In(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Wn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Fn(e,t){t[hi]=b(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Yn(){return this._isUTC?"Coordinated Universal Time":""}function Bn(e){return Ct(1e3*e)}function zn(){return Ct.apply(null,arguments).parseZone()}function Un(e){return e}function Gn(e,t,n,o){return nt()[n](d().set(o,t),e)}function Kn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return Gn(e,t,n,"month");var o,i=[];for(o=0;12>o;o++)i[o]=Gn(e,o,n,"month");return i}function Xn(e,t,n,o){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var i=nt(),r=e?i._week.dow:0;if(null!=n)return Gn(t,(n+r)%7,o,"day");var s,l=[];for(s=0;7>s;s++)l[s]=Gn(t,(s+r)%7,o,"day");return l}function qn(e,t){return Kn(e,t,"months")}function $n(e,t){return Kn(e,t,"monthsShort")}function Zn(e,t,n){return Xn(e,t,n,"weekdays")}function Jn(e,t,n){return Xn(e,t,n,"weekdaysShort")}function Qn(e,t,n){return Xn(e,t,n,"weekdaysMin")}function eo(){var e=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),e.milliseconds=ir(e.milliseconds),e.seconds=ir(e.seconds),e.minutes=ir(e.minutes),e.hours=ir(e.hours),e.months=ir(e.months),e.years=ir(e.years),this}function to(e,t,n,o){var i=Ut(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function no(e,t){return to(this,e,t,1)}function oo(e,t){return to(this,e,t,-1)}function io(e){return 0>e?Math.floor(e):Math.ceil(e)}function ro(){var e,t,n,o,i,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return(0>r||0>s||0>a)&&(r>0||s>0||a>0)&&(r+=864e5*io(ao(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=C(r/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,s+=C(n/24),i=C(so(s)),a+=i,s-=io(ao(i)),o=C(a/12),a%=12,l.days=s,l.months=a,l.years=o,this}function so(e){return 4800*e/146097}function ao(e){return 146097*e/4800}function lo(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+o/864e5,n=this._months+so(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ao(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}}function uo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function co(e){return function(){return this.as(e)}}function ho(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function fo(e){return function(){return this.isValid()?this._data[e]:NaN}}function po(){return C(this.days()/7)}function go(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}function mo(e,t,n){var o=Ut(e).abs(),i=Cr(o.as("s")),r=Cr(o.as("m")),s=Cr(o.as("h")),a=Cr(o.as("d")),l=Cr(o.as("M")),u=Cr(o.as("y")),c=br.ss>=i&&["s",i]||br.s>i&&["ss",i]||1>=r&&["m"]||br.m>r&&["mm",r]||1>=s&&["h"]||br.h>s&&["hh",s]||1>=a&&["d"]||br.d>a&&["dd",a]||1>=l&&["M"]||br.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,go.apply(null,c)}function vo(e){return void 0===e?Cr:"function"==typeof e&&(Cr=e,!0)}function yo(e,t){return void 0!==br[e]&&(void 0===t?br[e]:(br[e]=t,"s"===e&&(br.ss=t-1),!0))}function wo(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=mo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Co(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o=_r(this._milliseconds)/1e3,i=_r(this._days),r=_r(this._months);e=C(o/60),t=C(e/60),o%=60,e%=60,n=C(r/12),r%=12;var s=n,a=r,l=i,u=t,c=e,h=o,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var bo,_o;_o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var So=_o,ko=t.momentProperties=[],Oo=!1,Ro={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Eo;Eo=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var To,Mo=Eo,Do={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Po={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ho=/\d{1,2}/,xo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ao={},Lo={},No=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,jo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Io={},Wo={},Fo=/\d/,Vo=/\d\d/,Yo=/\d{3}/,Bo=/\d{4}/,zo=/[+-]?\d{6}/,Uo=/\d\d?/,Go=/\d\d\d\d?/,Ko=/\d\d\d\d\d\d?/,Xo=/\d{1,3}/,qo=/\d{1,4}/,$o=/[+-]?\d{1,6}/,Zo=/\d+/,Jo=/[+-]?\d+/,Qo=/Z|[+-]\d\d:?\d\d/gi,ei=/Z|[+-]\d\d(?::?\d\d)?/gi,ti=/[+-]?\d+(\.\d{1,3})?/,ni=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,oi={},ii={},ri=0,si=1,ai=2,li=3,ui=4,ci=5,hi=6,di=7,fi=8;To=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1};var pi=To;K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),K("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),W("month",8),J("M",Uo),J("MM",Uo,Vo),J("MMM",function(e,t){return t.monthsShortRegex(e)}),J("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[si]=b(e)-1}),ne(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[si]=i:p(n).invalidMonth=e});var gi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yi=ni,wi=ni;K("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),K(0,["YY",2],0,function(){return this.year()%100}),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),N("year","y"),W("year",1),J("Y",Jo),J("YY",Uo,Vo),J("YYYY",qo,Bo),J("YYYYY",$o,zo),J("YYYYYY",$o,zo),ne(["YYYYY","YYYYYY"],ri),ne("YYYY",function(e,n){n[ri]=2===e.length?t.parseTwoDigitYear(e):b(e)}),ne("YY",function(e,n){n[ri]=t.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[ri]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Ci=V("FullYear",!0);K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),W("week",5),W("isoWeek",5),J("w",Uo),J("ww",Uo,Vo),J("W",Uo),J("WW",Uo,Vo),oe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)});var bi={dow:0,doy:6};K("d",0,"do","day"),K("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),K("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),K("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),J("d",Uo),J("e",Uo),J("E",Uo),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),oe(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),oe(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var _i="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Si="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ki="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Oi=ni,Ri=ni,Ei=ni;K("H",["HH",2],0,"hour"),K("h",["hh",2],0,ze),K("k",["kk",2],0,Ue),K("hmm",0,0,function(){return""+ze.apply(this)+G(this.minutes(),2)}),K("hmmss",0,0,function(){return""+ze.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),N("hour","h"),W("hour",13),J("a",Ke),J("A",Ke),J("H",Uo),J("h",Uo),J("k",Uo),J("HH",Uo,Vo),J("hh",Uo,Vo),J("kk",Uo,Vo),J("hmm",Go),J("hmmss",Ko),J("Hmm",Go),J("Hmmss",Ko),ne(["H","HH"],li),ne(["k","kk"],function(e,t,n){var o=b(e);t[li]=24===o?0:o}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[li]=b(e),p(n).bigHour=!0}),ne("hmm",function(e,t,n){var o=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o)),p(n).bigHour=!0}),ne("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o,2)),t[ci]=b(e.substr(i)),p(n).bigHour=!0}),ne("Hmm",function(e,t,n){var o=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o))}),ne("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o,2)),t[ci]=b(e.substr(i))});var Ti,Mi=/[ap]\.?m?\.?/i,Di=V("Hours",!0),Pi={calendar:Do,longDateFormat:Po,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Ho,relativeTime:xo,months:mi,monthsShort:vi,week:bi,weekdays:_i,weekdaysMin:ki,weekdaysShort:Si,meridiemParse:Mi},Hi={},xi={},Ai=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Li=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/Z|[+-]\d\d(?::?\d\d)?/,ji=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ii=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wi=/^\/?Date\((\-?\d+)/i,Fi=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Vi=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:m()}),Yi=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Bi=function(){return Date.now?Date.now():+new Date},zi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Dt("Z",":"),Dt("ZZ",""),J("Z",ei),J("ZZ",ei),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Pt(ei,e)});var Ui=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Gi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ki=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=Et.prototype,Ut.invalid=Rt;var Xi=qt(1,"add"),qi=qt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $i=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});K(0,["gg",2],0,function(){return this.weekYear()%100}),K(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pn("gggg","weekYear"),Pn("ggggg","weekYear"),Pn("GGGG","isoWeekYear"),Pn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),J("G",Jo),J("g",Jo),J("GG",Uo,Vo),J("gg",Uo,Vo),J("GGGG",qo,Bo),J("gggg",qo,Bo),J("GGGGG",$o,zo),J("ggggg",$o,zo),oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),oe(["gg","GG"],function(e,n,o,i){n[i]=t.parseTwoDigitYear(e)}),K("Q",0,"Qo","quarter"),N("quarter","Q"),W("quarter",7),J("Q",Fo),ne("Q",function(e,t){t[si]=3*(b(e)-1)}),K("D",["DD",2],"Do","date"),N("date","D"),W("date",9),J("D",Uo),J("DD",Uo,Vo),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ai),ne("Do",function(e,t){t[ai]=b(e.match(Uo)[0],10)});var Zi=V("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),W("dayOfYear",4),J("DDD",Xo),J("DDDD",Yo),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),K("m",["mm",2],0,"minute"),N("minute","m"),W("minute",14),J("m",Uo),J("mm",Uo,Vo),ne(["m","mm"],ui);var Ji=V("Minutes",!1);K("s",["ss",2],0,"second"),N("second","s"),W("second",15),J("s",Uo),J("ss",Uo,Vo),ne(["s","ss"],ci);var Qi=V("Seconds",!1);K("S",0,0,function(){return~~(this.millisecond()/100)}),K(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,function(){return 10*this.millisecond()}),K(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),K(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),K(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),K(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),K(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),W("millisecond",16),J("S",Xo,Fo),J("SS",Xo,Vo),J("SSS",Xo,Yo);var er;for(er="SSSS";9>=er.length;er+="S")J(er,Zo);for(er="S";9>=er.length;er+="S")ne(er,Fn);var tr=V("Milliseconds",!1);K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");var nr=y.prototype;nr.add=Xi,nr.calendar=Jt,nr.clone=Qt,nr.diff=an,nr.endOf=Cn,nr.format=dn,nr.from=fn,nr.fromNow=pn,nr.to=gn,nr.toNow=mn,nr.get=z,nr.invalidAt=Mn,nr.isAfter=en,nr.isBefore=tn,nr.isBetween=nn,nr.isSame=on,nr.isSameOrAfter=rn,nr.isSameOrBefore=sn,nr.isValid=En,nr.lang=$i,nr.locale=vn,nr.localeData=yn,nr.max=Yi,nr.min=Vi,nr.parsingFlags=Tn,nr.set=U,nr.startOf=wn,nr.subtract=qi,nr.toArray=kn,nr.toObject=On,nr.toDate=Sn,nr.toISOString=cn,nr.inspect=hn,nr.toJSON=Rn,nr.toString=un,nr.unix=_n,nr.valueOf=bn,nr.creationData=Dn,nr.year=Ci,nr.isLeapYear=ye,nr.weekYear=Hn,nr.isoWeekYear=xn,nr.quarter=nr.quarters=In,nr.month=he,nr.daysInMonth=de,nr.week=nr.weeks=Te,nr.isoWeek=nr.isoWeeks=Me,nr.weeksInYear=Ln,nr.isoWeeksInYear=An,nr.date=Zi,nr.day=nr.days=je,nr.weekday=Ie,nr.isoWeekday=We,nr.dayOfYear=Wn,nr.hour=nr.hours=Di,nr.minute=nr.minutes=Ji,nr.second=nr.seconds=Qi,nr.millisecond=nr.milliseconds=tr,nr.utcOffset=At,nr.utc=Nt,nr.local=jt,nr.parseZone=It,nr.hasAlignedHourOffset=Wt,nr.isDST=Ft,nr.isLocal=Yt,nr.isUtcOffset=Bt,nr.isUtc=zt,nr.isUTC=zt,nr.zoneAbbr=Vn,nr.zoneName=Yn,nr.dates=k("dates accessor is deprecated. Use date instead.",Zi),nr.months=k("months accessor is deprecated. Use month instead",he),nr.years=k("years accessor is deprecated. Use year instead",Ci),nr.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Lt),nr.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var or=M.prototype;or.calendar=D,or.longDateFormat=P,or.invalidDate=H,or.ordinal=x,or.preparse=Un,or.postformat=Un,or.relativeTime=A,or.pastFuture=L,or.set=E,or.months=se,or.monthsShort=ae,or.monthsParse=ue,or.monthsRegex=pe,or.monthsShortRegex=fe,or.week=Oe,or.firstDayOfYear=Ee,or.firstDayOfWeek=Re,or.weekdays=He,or.weekdaysMin=Ae,or.weekdaysShort=xe,or.weekdaysParse=Ne,or.weekdaysRegex=Fe,or.weekdaysShortRegex=Ve,or.weekdaysMinRegex=Ye,or.isPM=Xe,or.meridiem=qe,Qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",Qe),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",nt);var ir=Math.abs,rr=co("ms"),sr=co("s"),ar=co("m"),lr=co("h"),ur=co("d"),cr=co("w"),hr=co("M"),dr=co("y"),fr=fo("milliseconds"),pr=fo("seconds"),gr=fo("minutes"),mr=fo("hours"),vr=fo("days"),yr=fo("months"),wr=fo("years"),Cr=Math.round,br={ss:44,s:45,m:45,h:22,d:26,M:11},_r=Math.abs,Sr=Et.prototype;return Sr.isValid=Ot,Sr.abs=eo,Sr.add=no,Sr.subtract=oo,Sr.as=lo,Sr.asMilliseconds=rr,Sr.asSeconds=sr,Sr.asMinutes=ar,Sr.asHours=lr,Sr.asDays=ur,Sr.asWeeks=cr,Sr.asMonths=hr,Sr.asYears=dr,Sr.valueOf=uo,Sr._bubble=ro,Sr.get=ho,Sr.milliseconds=fr,Sr.seconds=pr,Sr.minutes=gr,Sr.hours=mr,Sr.days=vr,Sr.weeks=po,Sr.months=yr,Sr.years=wr,Sr.humanize=wo,Sr.toISOString=Co,Sr.toString=Co,Sr.toJSON=Co,Sr.locale=vn,Sr.localeData=yn,Sr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Co),Sr.lang=$i,K("X",0,0,"unix"),K("x",0,0,"valueOf"),J("x",Jo),J("X",ti),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.18.1",function(e){bo=e}(Ct),t.fn=nr,t.min=_t,t.max=St,t.now=Bi,t.utc=d,t.unix=Bn,t.months=qn,t.isDate=l,t.locale=Qe,t.invalid=m,t.duration=Ut,t.isMoment=w,t.weekdays=Zn,t.parseZone=zn,t.localeData=nt,t.isDuration=Tt,t.monthsShort=$n,t.weekdaysMin=Qn,t.defineLocale=et,t.updateLocale=tt,t.locales=ot,t.weekdaysShort=Jn,t.normalizeUnits=j,t.relativeTimeRounding=vo,t.relativeTimeThreshold=yo,t.calendarFormat=Zt,t.prototype=nr,t}),window.moment=n(42)}).call(t,n(393)(e))},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n){o(this,e),void 0!==t&&void 0!==n?(this.row=t,this.col=n):(this.row=null,this.col=null)}return i(e,[{key:"isValid",value:function(e){return this.row>=0&&this.col>=0&&(this.row<e.getSetting("totalRows")&&this.col<e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return e.row>=this.row&&e.col>=this.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&e.col>=this.col}},{key:"isNorthEastOf",value:function(e){return e.row>=this.row&&this.col>=e.col}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(0),r=n(401),s=o(r),a=n(36),l=o(a),u=n(4),c=o(u),h=n(16),d=n(7),f=l.default.prototype.extend();f.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,s.default)(),this.instance.addHook("afterDestroy",function(){e.destroy()})},f.prototype.getValue=function(){return this.TEXTAREA.value},f.prototype.setValue=function(e){this.TEXTAREA.value=e};var p=function(e){var t,n=this,o=n.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===o.TEXTAREA&&!(0,d.isImmediatePropagationStopped)(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void(0,d.stopImmediatePropagation)(e);switch(e.keyCode){case h.KEY_CODES.ARROW_RIGHT:case h.KEY_CODES.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ARROW_UP:case h.KEY_CODES.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ENTER:var r=o.instance.getSelected(),s=!(r[0]===r[2]&&r[1]===r[3]);if(t&&!s||e.altKey){if(o.isOpened()){var a=(0,i.getCaretPosition)(o.TEXTAREA),l=o.getValue();o.setValue(l.slice(0,a)+"\n"+l.slice(a)),(0,i.setCaretPosition)(o.TEXTAREA,a+1)}else o.beginEditing(o.originalValue+"\n");(0,d.stopImmediatePropagation)(e)}e.preventDefault();break;case h.KEY_CODES.A:case h.KEY_CODES.X:case h.KEY_CODES.C:case h.KEY_CODES.V:t&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.BACKSPACE:case h.KEY_CODES.DELETE:case h.KEY_CODES.HOME:case h.KEY_CODES.END:(0,d.stopImmediatePropagation)(e)}-1===[h.KEY_CODES.ARROW_UP,h.KEY_CODES.ARROW_RIGHT,h.KEY_CODES.ARROW_DOWN,h.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&o.autoResize.resize(String.fromCharCode(e.keyCode))}};f.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",p)},f.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",p)},f.prototype.focus=function(){this.TEXTAREA.focus(),(0,i.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},f.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,i.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,i.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},f.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},f.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},f.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close(!0);var e,t=(0,i.offset)(this.TD),n=(0,i.offset)(this.instance.rootElement),o=(0,i.getScrollableElement)(this.TD),r=this.instance.countRows(),s=t.top===n.top?0:1,l=t.top-n.top-s-(o.scrollTop||0),u=t.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),h=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),d=this.checkEditorSection(),f=this.TD.style.backgroundColor;switch(d){case"top":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(h&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===r-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,i.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var p=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,g=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,m=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),v=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,i.getScrollbarWidth)(),w=this.TD.offsetTop+p-v,C=this.TD.offsetLeft+g-m,b=(0,i.innerWidth)(this.TD)-8,_=(0,i.hasVerticalScrollbar)(o)?y:0,S=(0,i.hasHorizontalScrollbar)(o)?y:0,k=this.instance.view.maximumVisibleElementWidth(C)-9-_,O=this.TD.scrollHeight+1,R=Math.max(this.instance.view.maximumVisibleElementHeight(w)-S,23),E=(0,i.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=E.fontSize,this.TEXTAREA.style.fontFamily=E.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,i.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(O,R),maxHeight:R,minWidth:Math.min(b,k),maxWidth:k},!0),this.textareaParentStyle.display="block"}},f.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,d.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,d.stopPropagation)(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},f.prototype.destroy=function(){this.eventManager.destroy()},t.default=f},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports={}},function(e,t,n){var o=n(50)("meta"),i=n(15),r=n(22),s=n(19).f,a=0,l=Object.isExtensible||function(){return!0},u=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(e){s(e,o,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},d=function(e,t){if(!r(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&p.NEED&&l(e)&&!r(e,o)&&c(e),e},p=e.exports={KEY:o,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(19).f,i=n(22),r=n(10)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){var o,i;/*!
|
29
|
+
!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()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=295)}([function(e,t,n){"use strict";function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=e;){if(n===t){o=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return o}function i(e,t,n){for(;null!=e&&e!==n;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function r(e,t,n){for(var o=[];e&&(e=i(e,t,n))&&(!n||n.contains(e));)o.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var r=o.length;return r?o[r-1]:null}function s(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function a(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===o.toUpperCase()}var n,o="hot-table",i=!1;for(n=l(e);null!=n;){if(t(n)){i=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=t(n.host))break;n=n.host}n=n.parentNode}return i}function l(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function c(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function h(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function d(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}function f(e,t){return q(e,t)}function p(e,t){return $(e,t)}function g(e,t){return J(e,t)}function v(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,o=n.length-1;o>=0;o--)v(n[o],e)}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}function y(e,t){ie.test(t)?e.innerHTML=t:w(e,t)}function w(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?re?n.textContent=t:n.data=t:(m(e),e.appendChild(document.createTextNode(t)))}function C(e){for(var t=e;u(t)!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t.host){if(t.host.impl)return C(t.host.impl);if(t.host)return C(t.host);throw Error("Lost in Web Components world")}return!1}if("none"===t.style.display)return!1;t=t.parentNode}return!0}function b(e){var t,n,o,i,r;if(i=document.documentElement,(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return r=e.getBoundingClientRect(),{top:r.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,o=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,o=e;return o&&"fixed"===o.style.position&&(t+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop),{left:t,top:n}}function S(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function O(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function _(e){return e===window?S():e.scrollTop}function R(e){return e===window?O():e.scrollLeft}function E(e){for(var t,n,o,i=e.parentNode,r=["auto","scroll"],s="",a="",l="",u="";i&&i.style&&document.body!==i;){if(t=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return i;if(window.getComputedStyle&&(s=window.getComputedStyle(i),a=s.getPropertyValue("overflow"),l=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===a||"scroll"===u||"scroll"===l))return i;if(i.scrollHeight+1>=i.clientHeight&&(-1!==r.indexOf(o)||-1!==r.indexOf(t)||-1!==r.indexOf(a)||-1!==r.indexOf(l)))return i;if(i.scrollWidth+1>=i.clientWidth&&(-1!==r.indexOf(n)||-1!==r.indexOf(t)||-1!==r.indexOf(a)||-1!==r.indexOf(u)))return i;i=i.parentNode}return window}function k(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function T(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=M(e),""!==n[t]&&void 0!==n[t]?n[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function M(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function H(e){return e.offsetWidth}function P(e){return(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function D(e){return e.clientHeight||e.innerHeight}function A(e){return e.clientWidth||e.innerWidth}function x(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function L(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function N(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function j(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;return e.createTextRange().text.indexOf(t.text)+t.text.length}return 0}function I(){var e="";return window.getSelection?e=""+window.getSelection():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function W(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){var o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=i}}else if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r.select()}}function F(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}function V(){return void 0===oe&&(oe=F()),oe}function B(e){return e.offsetWidth!==e.clientWidth}function Y(e){return e.offsetHeight!==e.clientHeight}function z(e,t,n){(0,Z.isIE8)()||(0,Z.isIE9)()?(e.style.top=n,e.style.left=t):(0,Z.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function U(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function K(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function G(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function X(e){return G(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")}t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=o,t.closest=i,t.closestDown=r,t.isChildOf=s,t.isChildOfWebComponentTable=a,t.polymerWrap=l,t.polymerUnwrap=u,t.index=c,t.overlayContainsElement=h,t.hasClass=f,t.addClass=p,t.removeClass=g,t.removeTextNodes=v,t.empty=m,t.fastInnerHTML=y,t.fastInnerText=w,t.isVisible=C,t.offset=b,t.getWindowScrollTop=S,t.getWindowScrollLeft=O,t.getScrollTop=_,t.getScrollLeft=R,t.getScrollableElement=E,t.getTrimmingContainer=k,t.getStyle=T,t.getComputedStyle=M,t.outerWidth=H,t.outerHeight=P,t.innerHeight=D,t.innerWidth=A,t.addEvent=x,t.removeEvent=L,t.getCaretPosition=N,t.getSelectionEndPosition=j,t.getSelectionText=I,t.setCaretPosition=W,t.getScrollbarWidth=V,t.hasVerticalScrollbar=B,t.hasHorizontalScrollbar=Y,t.setOverlayPosition=z,t.getCssTransform=U,t.resetCssTransform=K,t.isInput=G,t.isOutsideInput=X;var q,$,J,Z=n(26),Q=n(34),ee=!!document.documentElement.classList;if(ee){var te=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();q=function(e,t){return void 0!==e.classList&&""!==t&&e.classList.contains(t)},$=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},J=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var ne=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};q=function(e,t){return void 0!==e.className&&ne(t).test(e.className)},$=function(e,t){var n=0,o=e.className;if("string"==typeof t&&(t=t.split(" ")),""===o)o=t.join(" ");else for(;t&&t[n];)ne(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},J=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(ne(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}var oe,ie=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,re=!!document.createTextNode("test").textContent},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){"__children"!==n&&(t[n]=e&&"object"===(void 0===e?"undefined":w(e))&&!Array.isArray(e)?i(e):Array.isArray(e)?e.length&&"object"===w(e[0])&&!Array.isArray(e[0])?[i(e[0])]:[]:null)})),t}function r(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function s(e,t){return p(t,function(t,n){e[n]=t}),e}function a(e,t){p(t,function(n,o){t[o]&&"object"===w(t[o])?(e[o]||(e[o]=Array.isArray(t[o])?[]:"[object Date]"===Object.prototype.toString.call(t[o])?t[o]:{}),a(e[o],t[o])):e[o]=t[o]})}function l(e){return"object"===(void 0===e?"undefined":w(e))?JSON.parse(JSON.stringify(e)):e}function u(e){var t={};return p(e,function(e,n){t[n]=e}),t}function c(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,C.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:function(e,t){e="_"+e;var n=function(e){return(Array.isArray(e)||d(e))&&(e=l(e)),e};return function(){return void 0===this[e]&&(this[e]=n(t)),this[e]}}(n,t),set:function(e){return e="_"+e,function(t){this[e]=t}}(n),configurable:!0})}})}),e}function h(e,t){return JSON.stringify(e)===JSON.stringify(t)}function d(e){return"[object Object]"==Object.prototype.toString.call(e)}function f(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function p(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 g(e,t){var n=t.split("."),o=e;return p(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o}function v(e){if(!d(e))return 0;return function e(t){var n=0;return d(t)?p(t,function(t){n+=e(t)}):n++,n}(e)}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i="_"+n,r=(t={_touched:!1},o(t,i,e),o(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(r,n,{get:function(){return this[i]},set:function(e){this._touched=!0,this[i]=e},enumerable:!0,configurable:!0}),r}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.__esModule=!0;var w="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};t.duckSchema=i,t.inherit=r,t.extend=s,t.deepExtend=a,t.deepClone=l,t.clone=u,t.mixin=c,t.isObjectEquals=h,t.isObject=d,t.defineGetter=f,t.objectEach=p,t.getProperty=g,t.deepObjectSize=v,t.createObjectPropListener=m,t.hasOwnProperty=y;var C=n(2)},function(e,t,n){"use strict";function o(e){for(var t=0,n=e.length;n>t;)e[t]=[e[t]],t++}function i(e,t){for(var n=0,o=t.length;o>n;)e.push(t[n]),n++}function r(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,i=0;n>i;i++)for(var r=0;o>r;r++)t[r]||(t[r]=[]),t[r][i]=e[i][r];return t}function s(e,t,n,o){var i=-1,r=e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}function a(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];t(s,n,e)&&(r[++i]=s)}return r}function l(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];r[++i]=t(s,n,e)}return r}function u(e,t){for(var n=-1,o=e.length;++n<o&&!1!==t(e[n],n,e););return e}function c(e){return s(e,function(e,t){return e+t},0)}function h(e){return s(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function d(e){return s(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?c(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function g(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}t.__esModule=!0,t.to2dArray=o,t.extendArray=i,t.pivot=r,t.arrayReduce=s,t.arrayFilter=a,t.arrayMap=l,t.arrayEach=u,t.arraySum=c,t.arrayMax=h,t.arrayMin=d,t.arrayAvg=f,t.arrayFlatten=p,t.arrayUnique=g},function(e,t,n){var o=n(11),i=n(45),r=n(29),s=n(28),a=n(30),l=function(e,t,n){var u,c,h,d,f=e&l.F,p=e&l.G,g=e&l.S,v=e&l.P,m=e&l.B,y=p?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,w=p?i:i[t]||(i[t]={}),C=w.prototype||(w.prototype={});p&&(n=t);for(u in n)c=!f&&y&&void 0!==y[u],h=(c?y:n)[u],d=m&&c?a(h,o):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,e&l.U),w[u]!=h&&r(w,u,d),v&&C[u]!=h&&(C[u]=h)};o.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=void 0,o=void 0,i=void 0,r=void 0,s=void 0,h=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,h=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){h.apply(this),(0,c.stopImmediatePropagation)(this)},!d.isHotTableEnv)return t;for(t=(0,a.polymerWrap)(t),s=t.path?t.path.length:0;s--;){if("HOT-TABLE"===t.path[s].nodeName)n=!0;else if(n&&t.path[s].shadowRoot){r=t.path[s];break}0!==s||r||(r=t.path[s])}return r||(r=t.target),t.isTargetWebComponent=!0,(0,u.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:((0,l.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&((0,l.hasOwnProperty)(e,"hot")?o=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?o=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(o=e.wtTable.TABLE.parentNode.parentNode),i=(0,a.closest)(t.target,["HOT-TABLE"],o),t.realTarget=i?o.querySelector("HOT-TABLE")||t.target:t.target),Object.defineProperty(t,"target",{get:function(){return(0,a.polymerWrap)(r)},enumerable:!0,configurable:!0}),t}function r(){return h}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.getListenersCounter=r;var a=n(0),l=n(1),u=n(34),c=n(10),h=0,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return s(e,[{key:"addEventListener",value:function(e,t,n){function o(e){e=i(s,e),n.call(this,e)}var r=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:o}),window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),h++,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o=this.context.eventListeners.length,i=void 0;o--;)if(i=this.context.eventListeners[o],i.event==t&&i.element==e){if(n&&n!=i.callback)continue;this.context.eventListeners.splice(o,1),i.element.removeEventListener?i.element.removeEventListener(i.event,i.callbackProxy,!1):i.element.detachEvent("on"+i.event,i.callbackProxy),h--}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n,o={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents"),n.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}}]),e}();t.default=d},function(e,t,n){"use strict";function o(e,t){e=(0,c.toUpperCaseFirst)(e),l.default.getSingleton().add("construct",function(){var n=void 0;h.has(this)||h.set(this,{}),n=h.get(this),n[e]||(n[e]=new t(this))}),l.default.getSingleton().add("afterDestroy",function(){if(h.has(this)){var e=h.get(this);(0,u.objectEach)(e,function(e){return e.destroy()}),h.delete(this)}})}function i(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,c.toUpperCaseFirst)(t);if(h.has(e)&&h.get(e)[n])return h.get(e)[n]}function r(e){return h.has(e)?Object.keys(h.get(e)):[]}function s(e,t){var n=null;return h.has(e)&&(0,u.objectEach)(h.get(e),function(e,o){e===t&&(n=o)}),n}t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var a=n(7),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(1),c=n(32),h=new WeakMap;t.registerPlugin=o,t.getPlugin=i,t.getRegistredPluginNames=r,t.getPluginName=s},function(e,t,n){"use strict";function o(e){var t=void 0===e?"undefined":a(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function i(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););}function r(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););}function s(e,t){return t=parseInt((""+t).replace("%",""),10),t=parseInt(e*t/100,10)}t.__esModule=!0;var a="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};t.isNumeric=o,t.rangeEach=i,t.rangeEachReverse=r,t.valueAccordingPercent=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(2),s=n(1),a=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","afterListen","afterUnlisten"],l=function(){function e(){o(this,e),this.globalBucket=this.createEmptyBucket()}return i(e,null,[{key:"getSingleton",value:function(){return u}}]),i(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,r.arrayEach)(a,function(t){return e[t]=[]}),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,r.arrayEach)(t,function(t){return n.add(e,t,o)});else{var i=this.getBucket(o);if(void 0===i[e]&&(this.register(e),i[e]=[]),t.skip=!1,-1===i[e].indexOf(t)){var s=!1;t.initialHook&&(0,r.arrayEach)(i[e],function(n,o){if(n.initialHook)return i[e][o]=t,s=!0,!1}),s||i[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,r.arrayEach)(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,o,i,r,s,a){var l=this.globalBucket[t],u=-1,c=l?l.length:0;if(c)for(;++u<c;)if(l[u]&&!l[u].skip){var h=l[u].call(e,n,o,i,r,s,a);void 0!==h&&(n=h),l[u]&&l[u].runOnce&&this.remove(t,l[u])}var d=this.getBucket(e)[t],f=-1,p=d?d.length:0;if(p)for(;++f<p;)if(d[f]&&!d[f].skip){var g=d[f].call(e,n,o,i,r,s,a);void 0!==g&&(n=g),d[f]&&d[f].runOnce&&this.remove(t,d[f],e)}return n}},{key:"destroy",value:function(){(0,s.objectEach)(this.getBucket(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||a.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&a.splice(a.indexOf(e),1)}},{key:"isRegistered",value:function(e){return a.indexOf(e)>=0}},{key:"getRegistered",value:function(){return a}}]),e}(),u=new l;t.default=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"==typeof e)return e;if(!_(e))throw Error('No registered renderer found under "'+e+'" name');return O(e)}t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var r=n(63),s=o(r),a=n(338),l=o(a),u=n(339),c=o(u),h=n(340),d=o(h),f=n(341),p=o(f),g=n(342),v=o(g),m=n(343),y=o(m),w=n(344),C=o(w),b=(0,s.default)("renderers"),S=b.register,O=b.getItem,_=b.hasItem,R=b.getNames,E=b.getValues;S("base",l.default),S("autocomplete",c.default),S("checkbox",d.default),S("html",p.default),S("numeric",v.default),S("password",y.default),S("text",C.default),t.registerRenderer=S,t.getRenderer=i,t.hasRenderer=_,t.getRegisteredRendererNames=R,t.getRegisteredRenderers=E},function(e,t,n){var o=n(70)("wks"),i=n(43),r=n(11).Symbol,s="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=s&&r[e]||(s?r:i)("Symbol."+e))}).store=o},function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function i(e){return!1===e.isImmediatePropagationEnabled}function r(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+(0,c.getWindowScrollLeft)()}function a(e){return e.pageY?e.pageY:e.clientY+(0,c.getWindowScrollTop)()}function l(e){return 2===e.button}function u(e){return 0===e.button}t.__esModule=!0,t.stopImmediatePropagation=o,t.isImmediatePropagationStopped=i,t.stopPropagation=r,t.pageX=s,t.pageY=a,t.isRightClick=l,t.isLeftClick=u;var c=n(0)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.ViewportColumnsCalculator=void 0,n(89),n(103),n(104),n(108),n(109),n(111),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(122),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(79),n(137),n(138),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(148),n(149),n(150),n(152),n(153),n(154);var i=n(155),r=o(i),s=n(156),a=o(s),l=n(50),u=o(l),c=n(80),h=o(c),d=n(157),f=o(d),p=n(158),g=o(p),v=n(319),m=o(v),y=n(323),w=o(y),C=n(324),b=o(C),S=n(325),O=o(S),_=n(282),R=o(_),E=n(159),k=o(E),T=n(275),M=o(T),H=n(276),P=o(H),D=n(277),A=o(D),x=n(326),L=o(x),N=n(278),j=o(N),I=n(279),W=o(I),F=n(280),V=o(F),B=n(281),Y=o(B);t.ViewportColumnsCalculator=r.default,t.ViewportRowsCalculator=a.default,t.CellCoords=u.default,t.CellRange=h.default,t.ColumnFilter=f.default,t.RowFilter=g.default,t.DebugOverlay=m.default,t.LeftOverlay=w.default,t.TopOverlay=b.default,t.TopLeftCornerOverlay=O.default,t.Border=R.default,t.default=k.default,t.Core=k.default,t.Event=M.default,t.Overlays=P.default,t.Scroll=A.default,t.Selection=L.default,t.Settings=j.default,t.Table=W.default,t.TableRenderer=V.default,t.Viewport=Y.default},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1),s=n(2),a=n(287),l=n(5),u=new WeakMap,c=null;t.default=function(){function e(t){var n=this;o(this,e),(0,r.defineGetter)(this,"hot",t,{writable:!1}),(0,r.defineGetter)(this,"t",(0,a.getTranslator)(t),{writable:!1}),u.set(this,{hooks:{}}),c=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(){return n.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return n.init()})}return i(e,[{key:"init",value:function(){this.pluginName=(0,l.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),c||(c=(0,l.getRegistredPluginNames)(this.hot)),0>c.indexOf(this.pluginName)||c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){u.get(this).hooks[e]=u.get(this).hooks[e]||[];var n=u.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),u.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,s.arrayEach)(u.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=u.get(this).hooks;(0,r.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,s.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,r.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}()},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},h.default.getSingleton().add("afterDestroy",function(){t={}})}function r(e,t){var n=void 0;if("function"==typeof e)x.get(e)||a(null,e),n=x.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=j(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function s(e){if(!I(e))throw Error('No registered editor found under "'+e+'" name');return j(e).getConstructor()}function a(e,t){var n=new i(t);"string"==typeof e&&N(e,n),x.set(t,n)}t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=i,t._getEditorInstance=r;var l=n(63),u=o(l),c=n(7),h=o(c),d=n(42),f=o(d),p=n(283),g=o(p),v=n(328),m=o(v),y=n(329),w=o(y),C=n(332),b=o(C),S=n(284),O=o(S),_=n(333),R=o(_),E=n(334),k=o(E),T=n(336),M=o(T),H=n(337),P=o(H),D=n(51),A=o(D),x=new WeakMap,L=(0,u.default)("editors"),N=L.register,j=L.getItem,I=L.hasItem,W=L.getNames,F=L.getValues;a("base",f.default),a("autocomplete",g.default),a("checkbox",m.default),a("date",w.default),a("dropdown",b.default),a("handsontable",O.default),a("mobile",R.default),a("numeric",k.default),a("password",M.default),a("select",P.default),a("text",A.default),t.registerEditor=a,t.getEditor=s,t.getEditorInstance=r,t.hasEditor=I,t.getRegisteredEditorNames=W,t.getRegisteredEditors=F},function(e,t,n){var o=n(14);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var o=n(16),i=n(91),r=n(66),s=Object.defineProperty;t.f=n(20)?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function o(e){return 32==e||e>=48&&57>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e||e>=226||e>=65&&90>=e}function i(e){return-1!==[l.ARROW_DOWN,l.ARROW_UP,l.ARROW_LEFT,l.ARROW_RIGHT,l.HOME,l.END,l.DELETE,l.BACKSPACE,l.F1,l.F2,l.F3,l.F4,l.F5,l.F6,l.F7,l.F8,l.F9,l.F10,l.F11,l.F12,l.TAB,l.PAGE_DOWN,l.PAGE_UP,l.ENTER,l.ESCAPE,l.SHIFT,l.CAPS_LOCK,l.ALT].indexOf(e)}function r(e){return-1!==[l.CONTROL_LEFT,224,l.COMMAND_LEFT,l.COMMAND_RIGHT].indexOf(e)}function s(e,t){var n=t.split("|"),o=!1;return(0,a.arrayEach)(n,function(t){if(e===l[t])return o=!0,!1}),o}t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=o,t.isMetaKey=i,t.isCtrlKey=r,t.isKey=s;var a=n(2),l=t.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(e,t,n){"use strict";function o(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function i(e){return(0,S.hasClass)(e,"htSeparator")}function r(e){return(0,S.hasClass)(e,"htSubmenu")}function s(e){return(0,S.hasClass)(e,"htDisabled")}function a(e){return(0,S.hasClass)(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?0>t[0]?null:t:null}function u(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function c(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function h(e,t){for(var n={},o=e.from.row;e.to.row>=o;o++)for(var i=e.from.col;e.to.col>=i;i++)n[o]||(n[o]=[]),n[o][i]=t(o,i);return n}function d(e,t,n,o,i){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,n,o,i);else for(var r=e.from.row;e.to.row>=r;r++)for(var s=e.from.col;e.to.col>=s;s++)f(r,s,t,n,o,i)}function f(e,t,n,o,i,r){var s=i(e,t),a=o;s.className&&(a="vertical"===n?u(s.className,o):c(s.className,o)),r(e,t,"className",a)}function p(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}function g(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function v(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function m(e,t){for(var n=e.slice(0);n.length>0&&n[0].name===t;)n.shift();return n}function y(e,t){var n=e.slice(0);return n.reverse(),n=m(n,t),n.reverse(),n}function w(e){var t=[];return(0,b.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.KEY,n=e.slice(0);return n=m(n,t),n=y(n,t),n=w(n)}t.__esModule=!0,t.normalizeSelection=o,t.isSeparator=i,t.hasSubMenu=r,t.isDisabled=s,t.isSelectionDisabled=a,t.getValidSelection=l,t.prepareVerticalAlignClass=u,t.prepareHorizontalAlignClass=c,t.getAlignmentClasses=h,t.align=d,t.checkSelectionConsistency=p,t.markLabelAsSelected=g,t.isItemHidden=v,t.filterSeparators=C;var b=n(2),S=n(0),O=n(86)},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(52),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},function(e,t,n){"use strict";function o(e){var t=void 0;switch(void 0===e?"undefined":c(e)){case"string":case"number":t=""+e;break;case"object":t=null===e?"":""+e;break;case"undefined":t="";break;default:t=""+e}return t}function i(e){return void 0!==e}function r(e){return void 0===e}function s(e){return null===e||""===e||r(e)}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){e=C(e||"");var n="",o=!0,i=u(e),r=S(),a=s(e)||"trial"===e;if(a||i)if(i){var l=Math.floor((0,f.default)("12/10/2017","DD/MM/YYYY").toDate().getTime()/864e5),c=b(e);(c>45e3||c!==parseInt(c,10))&&(n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly."),n||(l>c+1&&(n=(0,p.toSingleLine)(h)),o=l>c+15)}else n="Evaluation version of Handsontable Pro. Not licensed for use in a production environment.";else n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.";if(r&&(n=!1,o=!1),n&&!O&&(console[a?"info":"warn"](n),O=!0),o&&t.parentNode){var d=document.createElement("div");d.id="hot-display-license-info",d.appendChild(document.createTextNode("Evaluation version of Handsontable Pro.")),d.appendChild(document.createElement("br")),d.appendChild(document.createTextNode("Not licensed for production use.")),t.parentNode.insertBefore(d,t.nextSibling)}}function u(e){var t=[][g],n=t;if(e[g]!==w("Z"))return!1;for(var o="",i="B<H4P+".split(""),r=w(i.shift());r;r=w(i.shift()||"A"))--r<""[g]?n|=(m(""+m(v(o)+(v(y(e,Math.abs(r),2))+[]).padStart(2,"0")))%w("¢")||2)>>1:o=y(e,r,r?1===i[g]?9:8:6);return n===t}t.__esModule=!0;var c="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},h=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n Your license key of Handsontable Pro has expired. \n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "],["\n Your license key of Handsontable Pro has expired.\\x20\n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "]);t.stringify=o,t.isDefined=i,t.isUndefined=r,t.isEmpty=s,t.isRegExp=a,t._injectProductInfo=l;var d=n(35),f=function(e){return e&&e.__esModule?e:{default:e}}(d),p=n(322),g="length",v=function(e){return parseInt(e,16)},m=function(e){return parseInt(e,10)},y=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},C=function(e){return(""+e).replace(/\-/g,"")},b=function(e){return v(y(C(e),v("12"),w("F")))/(v(y(C(e),w("B"),~~![][g]))||9)},S=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},O=!1},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(68),i=n(33);e.exports=function(e){return o(i(e))}},function(e,t,n){"use strict";function o(){return l}function i(){return u}function r(){return c}function s(){return h}function a(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}t.__esModule=!0,t.isIE8=o,t.isIE9=i,t.isSafari=r,t.isChrome=s,t.isMobileBrowser=a;var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),h=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"==typeof e)return e;if(!y(e))throw Error('No registered validator found under "'+e+'" name');return m(e)}t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var r=n(63),s=o(r),a=n(345),l=o(a),u=n(346),c=o(u),h=n(347),d=o(h),f=n(348),p=o(f),g=(0,s.default)("validators"),v=g.register,m=g.getItem,y=g.hasItem,w=g.getNames,C=g.getValues;v("autocomplete",l.default),v("date",c.default),v("numeric",d.default),v("time",p.default),t.registerValidator=v,t.getValidator=i,t.hasValidator=y,t.getRegisteredValidatorNames=w,t.getRegisteredValidators=C},function(e,t,n){var o=n(11),i=n(29),r=n(24),s=n(43)("src"),a=Function.toString,l=(""+a).split("toString");n(45).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(r(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(r(n,s)||i(n,s,e[t]?""+e[t]:l.join(t+""))),e===o?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t,n){var o=n(17),i=n(44);e.exports=n(20)?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(55);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(2),u=n(4),c=o(u),h=n(159),d=o(h),f={};t.default=function(){function e(t){i(this,e),(0,a.defineGetter)(this,"wot",t,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return r(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw Error("Unsupported overlay ("+t+").");f[t]=n}},{key:"createOverlay",value:function(e,t){return new f[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==f[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),r(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw Error('Clone type "'+t+'" is not supported.');var n=document.createElement("DIV"),o=document.createElement("TABLE");n.className="ht_clone_"+t+" handsontable",n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",o.className=this.wot.wtTable.TABLE.className,n.appendChild(o),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var i=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=!0===i||"horizontal"===i&&this.type===e.CLONE_TOP||"vertical"===i&&this.type===e.CLONE_LEFT?window:(0,s.getScrollableElement)(this.wot.wtTable.TABLE),new d.default({cloneSource:this.wot,cloneOverlay:this,table:o})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder;(0,l.arrayEach)([e.style,this.clone.wtTable.hider.style,e.parentNode.style],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),e}()},function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function i(){for(var e=[],t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];for(var i=n.length;i--;){var r=(0,u.stringify)(n[i]).toLowerCase();-1===e.indexOf(r)&&e.push(r)}return 1===e.length}function r(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function s(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})}function l(e){return e+="",e.replace(c,"")}t.__esModule=!0,t.toUpperCaseFirst=o,t.equalsIgnoreCase=i,t.randomString=r,t.isPercentValue=s,t.substitute=a,t.stripTags=l;var u=n(22),c=(n(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";function o(e){return f.call(window,e)}function i(e){p.call(window,e)}function r(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!(""+e.createShadowRoot).match(/\[native code\]/))}function a(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),v=2*e.lastChild.offsetHeight>e.offsetHeight,document.body.removeChild(e)}function l(){return void 0===v&&a(),v}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m||(m="object"===("undefined"==typeof Intl?"undefined":c(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(""+e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}t.__esModule=!0;var c="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};t.requestAnimationFrame=o,t.cancelAnimationFrame=i,t.isTouchSupported=r,t.isWebComponentSupportedNatively=s,t.hasCaptionProblem=l,t.getComparisonFunction=u;for(var h=0,d=["ms","moz","webkit","o"],f=window.requestAnimationFrame,p=window.cancelAnimationFrame,g=0;4>g&&!f;++g)f=window[d[g]+"RequestAnimationFrame"],p=window[d[g]+"CancelAnimationFrame"]||window[d[g]+"CancelRequestAnimationFrame"];f||(f=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout(function(){e(t+n)},n);return h=t+n,o}),p||(p=function(e){clearTimeout(e)});var v,m=void 0},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return bo.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function s(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return wt(e,t,n,o,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=Oo.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}function m(e,t){var n,o,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),_o.length>0)for(n=0;_o.length>n;n++)o=_o[n],i=t[o],s(i)||(e[o]=i);return e}function y(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ro&&(Ro=!0,t.updateOffset(this),Ro=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function S(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;i>o;o++)(n&&e[o]!==t[o]||!n&&b(e[o])!==b(t[o]))&&s++;return s+r}function O(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,n){var o=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var i,r=[],s=0;arguments.length>s;s++){if(i="","object"==typeof arguments[s]){i+="\n["+s+"] ";for(var a in arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];r.push(i)}O(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+Error().stack),o=!1}return n.apply(this,arguments)},n)}function R(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Eo[e]||(O(n),Eo[e]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,n;for(n in e)t=e[n],E(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,o=h({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function M(e){null!=e&&this.set(e)}function H(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return E(o)?o.call(t,n):o}function P(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)})}function D(){return this._invalidDate}function A(e){return this._ordinal.replace("%d",e)}function x(e,t,n,o){var i=this._relativeTime[n];return E(i)?i(e,t,n,o):i.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();xo[n]=xo[n+"s"]=xo[t]=e}function j(e){return"string"==typeof e?xo[e]||xo[e.toLowerCase()]:void 0}function I(e){var t,n,o={};for(n in e)c(e,n)&&(t=j(n))&&(o[t]=e[n]);return o}function W(e,t){Lo[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:Lo[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,n){return function(o){return null!=o?(Y(this,e,o),t.updateOffset(this,n),this):B(this,e)}}function B(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e){return e=j(e),E(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=I(e);for(var n=F(e),o=0;n.length>o;o++)this[n[o].unit](e[n[o].unit])}else if(e=j(e),E(this[e]))return this[e](t);return this}function K(e,t,n){var o=""+Math.abs(e),i=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,i))).substr(1)+o}function G(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(Wo[e]=i),t&&(Wo[t[0]]=function(){return K(i.apply(this,arguments),t[1],t[2])}),n&&(Wo[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function X(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,o=e.match(No);for(t=0,n=o.length;n>t;t++)o[t]=Wo[o[t]]?Wo[o[t]]:X(o[t]);return function(t){var i,r="";for(i=0;n>i;i++)r+=E(o[i])?o[i].call(t,e):o[i];return r}}function $(e,t){return e.isValid()?(t=J(t,e.localeData()),(Io[t]=Io[t]||q(t))(e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(jo.lastIndex=0;o>=0&&jo.test(e);)e=e.replace(jo,n),jo.lastIndex=0,o-=1;return e}function Z(e,t,n){oi[e]=E(t)?t:function(e,o){return e&&n?n:t}}function Q(e,t){return c(oi,e)?oi[e](t._strict,t._locale):RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),a(t)&&(o=function(e,n){n[t]=b(e)}),n=0;e.length>n;n++)ii[e[n]]=o}function oe(e,t){ne(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function ie(e,t,n){null!=t&&c(ii,e)&&ii[e](t,n._a,n,e)}function re(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function se(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||gi).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ae(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[gi.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=pi.call(this._shortMonthsParse,s),-1!==i?i:null):(i=pi.call(this._longMonthsParse,s),-1!==i?i:null):"MMM"===t?-1!==(i=pi.call(this._shortMonthsParse,s))?i:(i=pi.call(this._longMonthsParse,s),-1!==i?i:null):-1!==(i=pi.call(this._longMonthsParse,s))?i:(i=pi.call(this._shortMonthsParse,s),-1!==i?i:null)}function ue(e,t,n){var o,i,r;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!a(t))return e;return n=Math.min(e.date(),re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function he(e){return null!=e?(ce(this,e),t.updateOffset(this,!0),this):B(this,"Month")}function de(){return re(this.year(),this.month())}function fe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=yi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=wi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,o=[],i=[],r=[];for(t=0;12>t;t++)n=d([2e3,t]),o.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),i.sort(e),r.sort(e),t=0;12>t;t++)o[t]=te(o[t]),i[t]=te(i[t]);for(t=0;24>t;t++)r[t]=te(r[t]);this._monthsRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function ve(e){return me(e)?366:365}function me(e){return e%4==0&&e%100!=0||e%400==0}function ye(){return me(this.year())}function we(e,t,n,o,i,r,s){var a=new Date(e,t,n,o,i,r,s);return 100>e&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Ce(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var o=7+t-n;return-(7+Ce(e,0,o).getUTCDay()-t)%7+o-1}function Se(e,t,n,o,i){var r,s,a=(7+n-o)%7,l=be(e,o,i),u=1+7*(t-1)+a+l;return u>0?u>ve(e)?(r=e+1,s=u-ve(e)):(r=e,s=u):(r=e-1,s=ve(r)+u),{year:r,dayOfYear:s}}function Oe(e,t,n){var o,i,r=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>s?(i=e.year()-1,o=s+_e(i,t,n)):s>_e(e.year(),t,n)?(o=s-_e(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function _e(e,t,n){var o=be(e,t,n),i=be(e+1,t,n);return(ve(e)-o+i)/7}function Re(e){return Oe(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function ke(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Me(e){var t=Oe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function He(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Pe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ae(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Le(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=pi.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=pi.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=pi.call(this._weekdaysParse,s))?i:-1!==(i=pi.call(this._shortWeekdaysParse,s))?i:(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=pi.call(this._shortWeekdaysParse,s))?i:-1!==(i=pi.call(this._weekdaysParse,s))?i:(i=pi.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=pi.call(this._minWeekdaysParse,s))?i:-1!==(i=pi.call(this._weekdaysParse,s))?i:(i=pi.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function Ne(e,t,n){var o,i,r;if(this._weekdaysParseExact)return Le.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=He(e,this.localeData()),this.add(e-t,"d")):t}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ri),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ei),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ki),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ye(){function e(e,t){return t.length-e.length}var t,n,o,i,r,s=[],a=[],l=[],u=[];for(t=0;7>t;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),a.push(i),l.push(r),u.push(o),u.push(i),u.push(r);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;7>t;t++)a[t]=te(a[t]),l[t]=te(l[t]),u[t]=te(u[t]);this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+s.join("|")+")","i")}function ze(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ke(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,o,i,r=0;e.length>r;){for(i=$e(e[r]).split("-"),t=i.length,n=$e(e[r+1]),n=n?n.split("-"):null;t>0;){if(o=Ze(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&S(i,n,!0)>=t-1)break;t--}r++}return null}function Ze(t){var o=null;if(!Di[t]&&void 0!==e&&e&&e.exports)try{o=Ti._abbr,n(321)("./"+t),Qe(o)}catch(e){}return Di[t]}function Qe(e,t){var n;return e&&(n=s(t)?nt(e):et(e,t))&&(Ti=n),Ti._abbr}function et(e,t){if(null!==t){var n=Pi;if(t.abbr=e,null!=Di[e])R("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Di[e]._config;else if(null!=t.parentLocale){if(null==Di[t.parentLocale])return Ai[t.parentLocale]||(Ai[t.parentLocale]=[]),Ai[t.parentLocale].push({name:e,config:t}),null;n=Di[t.parentLocale]._config}return Di[e]=new M(T(n,t)),Ai[e]&&Ai[e].forEach(function(e){et(e.name,e.config)}),Qe(e),Di[e]}return delete Di[e],null}function tt(e,t){if(null!=t){var n,o=Pi;null!=Di[e]&&(o=Di[e]._config),t=T(o,t),n=new M(t),n.parentLocale=Di[e],Di[e]=n,Qe(e)}else null!=Di[e]&&(null!=Di[e].parentLocale?Di[e]=Di[e].parentLocale:null!=Di[e]&&delete Di[e]);return Di[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ti;if(!o(e)){if(t=Ze(e))return t;e=[e]}return Je(e)}function ot(){return Mo(Di)}function it(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=0>n[si]||n[si]>11?si:1>n[ai]||n[ai]>re(n[ri],n[si])?ai:0>n[li]||n[li]>24||24===n[li]&&(0!==n[ui]||0!==n[ci]||0!==n[hi])?li:0>n[ui]||n[ui]>59?ui:0>n[ci]||n[ci]>59?ci:0>n[hi]||n[hi]>999?hi:-1,p(e)._overflowDayOfYear&&(ri>t||t>ai)&&(t=ai),p(e)._overflowWeeks&&-1===t&&(t=di),p(e)._overflowWeekday&&-1===t&&(t=fi),p(e).overflow=t),e}function rt(e){var t,n,o,i,r,s,a=e._i,l=xi.exec(a)||Li.exec(a);if(l){for(p(e).iso=!0,t=0,n=ji.length;n>t;t++)if(ji[t][1].exec(l[1])){i=ji[t][0],o=!1!==ji[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ii.length;n>t;t++)if(Ii[t][1].exec(l[3])){r=(l[2]||" ")+Ii[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!Ni.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),dt(e)}else e._isValid=!1}function st(e){var t,n,o,i,r,s,a,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},c="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Fi.exec(t)){if(o=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==d)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===l?a=" +0000":(l=c.indexOf(n[5][1].toUpperCase())-12,a=(0>l?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=u[n[5]];break;default:a=" +0000"}n[5]=a,e._i=n.splice(1).join(""),s=" ZZ",e._f=o+i+r+s,dt(e),p(e).rfc2822=!0}else e._isValid=!1}function at(e){var n=Wi.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));rt(e),!1===e._isValid&&(delete e._isValid,st(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function lt(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,o,i,r=[];if(!e._d){for(o=ut(e),e._w&&null==e._a[ai]&&null==e._a[si]&&ht(e),null!=e._dayOfYear&&(i=lt(e._a[ri],o[ri]),(e._dayOfYear>ve(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ce(i,0,e._dayOfYear),e._a[si]=n.getUTCMonth(),e._a[ai]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=o[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[li]&&0===e._a[ui]&&0===e._a[ci]&&0===e._a[hi]&&(e._nextDay=!0,e._a[li]=0),e._d=(e._useUTC?Ce:we).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[li]=24)}}function ht(e){var t,n,o,i,r,s,a,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,s=4,n=lt(t.GG,e._a[ri],Oe(Ct(),1,4).year),o=lt(t.W,1),(1>(i=lt(t.E,1))||i>7)&&(l=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var u=Oe(Ct(),r,s);n=lt(t.gg,e._a[ri],u.year),o=lt(t.w,u.week),null!=t.d?(0>(i=t.d)||i>6)&&(l=!0):null!=t.e?(i=t.e+r,(0>t.e||t.e>6)&&(l=!0)):i=r}1>o||o>_e(n,r,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(a=Se(n,o,i,r,s),e._a[ri]=a.year,e._dayOfYear=a.dayOfYear)}function dt(e){if(e._f===t.ISO_8601)return void rt(e);if(e._f===t.RFC_2822)return void st(e);e._a=[],p(e).empty=!0;var n,o,i,r,s,a=""+e._i,l=a.length,u=0;for(i=J(e._f,e._locale).match(No)||[],n=0;i.length>n;n++)r=i[n],o=(a.match(Q(r,e))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),Wo[r]?(o?p(e).empty=!1:p(e).unusedTokens.push(r),ie(r,o,e)):e._strict&&!o&&p(e).unusedTokens.push(r);p(e).charsLeftOver=l-u,a.length>0&&p(e).unusedInput.push(a),12>=e._a[li]&&!0===p(e).bigHour&&e._a[li]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[li]=ft(e._locale,e._a[li],e._meridiem),ct(e),it(e)}function ft(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function pt(e){var t,n,o,i,r;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;e._f.length>i;i++)r=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],dt(t),g(t)&&(r+=p(t).charsLeftOver,r+=10*p(t).unusedTokens.length,p(t).score=r,(null==o||o>r)&&(o=r,n=t));h(e,n||t)}function gt(e){if(!e._d){var t=I(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function vt(e){var t=new y(it(mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new y(it(t)):(l(t)?e._d=t:o(n)?pt(e):n?dt(e):yt(e),g(e)||(e._d=null),e))}function yt(e){var n=e._i;s(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?at(e):o(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),ct(e)):i(n)?gt(e):a(n)?e._d=new Date(n):t.createFromInputFallback(e)}function wt(e,t,n,s,a){var l={};return!0!==n&&!1!==n||(s=n,n=void 0),(i(e)&&r(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=s,vt(l)}function Ct(e,t,n,o){return wt(e,t,n,o,!1)}function bt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],i=1;t.length>i;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function St(){return bt("isBefore",[].slice.call(arguments,0))}function Ot(){return bt("isAfter",[].slice.call(arguments,0))}function _t(e){for(var t in e)if(-1===zi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;zi.length>o;++o)if(e[zi[o]]){if(n)return!1;parseFloat(e[zi[o]])!==b(e[zi[o]])&&(n=!0)}return!0}function Rt(){return this._isValid}function Et(){return Ut(NaN)}function kt(e){var t=I(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=_t(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=nt(),this._bubble()}function Tt(e){return e instanceof kt}function Mt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function Ht(e,t){G(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+K(~~(e/60),2)+t+K(~~e%60,2)})}function Pt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],i=(o+"").match(Ui)||["-",0,0],r=60*i[1]+b(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Dt(e,n){var o,i;return n._isUTC?(o=n.clone(),i=(w(e)||l(e)?e.valueOf():Ct(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+i),t.updateOffset(o,!1),o):Ct(e).local()}function At(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function xt(e,n,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ei,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&n&&(i=At(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?$t(this,Ut(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:At(this)}function Lt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Nt(e){return this.utcOffset(0,e)}function jt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this}function It(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(Qo,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Wt(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ft(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=mt(e),e._a){var t=e._isUTC?d(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Bt(){return!!this.isValid()&&!this._isUTC}function Yt(){return!!this.isValid()&&this._isUTC}function zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ut(e,t){var n,o,i,r=e,s=null;return Tt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(r={},t?r[t]=e:r.milliseconds=e):(s=Ki.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:b(s[ai])*n,h:b(s[li])*n,m:b(s[ui])*n,s:b(s[ci])*n,ms:b(Mt(1e3*s[hi]))*n}):(s=Gi.exec(e))?(n="-"===s[1]?-1:1,r={y:Kt(s[2],n),M:Kt(s[3],n),w:Kt(s[4],n),d:Kt(s[5],n),h:Kt(s[6],n),m:Kt(s[7],n),s:Kt(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=Xt(Ct(r.from),Ct(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new kt(r),Tt(e)&&c(e,"_locale")&&(o._locale=e._locale),o}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){var n;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?n=Gt(e,t):(n=Gt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qt(e,t){return function(n,o){var i,r;return null===o||isNaN(+o)||(R(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),n="string"==typeof n?+n:n,i=Ut(n,o),$t(this,i,e),this}}function $t(e,n,o,i){var r=n._milliseconds,s=Mt(n._days),a=Mt(n._months);e.isValid()&&(i=null==i||i,r&&e._d.setTime(e._d.valueOf()+r*o),s&&Y(e,"Date",B(e,"Date")+s*o),a&&ce(e,B(e,"Month")+a*o),i&&t.updateOffset(e,s||a))}function Jt(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function Zt(e,n){var o=e||Ct(),i=Dt(o,this).startOf("day"),r=t.calendarFormat(this,i)||"sameElse";return this.format(n&&(E(n[r])?n[r].call(this,o):n[r])||this.localeData().calendar(r,this,Ct(o)))}function Qt(){return new y(this)}function en(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&(t=j(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function tn(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&(t=j(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function nn(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function on(e,t){var n,o=w(e)?e:Ct(e);return!(!this.isValid()||!o.isValid())&&(t=j(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function rn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function an(e,t,n){var o,i,r,s;return this.isValid()?(o=Dt(e,this),o.isValid()?(i=6e4*(o.utcOffset()-this.utcOffset()),t=j(t),"year"===t||"month"===t||"quarter"===t?(s=ln(this,o),"quarter"===t?s/=3:"year"===t&&(s/=12)):(r=this-o,s="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?s:C(s)):NaN):NaN}function ln(e,t){var n,o,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return 0>t-r?(n=e.clone().add(i-1,"months"),o=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),o=(t-r)/(n-r)),-(i+o)||0}function un(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cn(){if(!this.isValid())return null;var e=this.clone().utc();return 0>e.year()||e.year()>9999?$(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(Date.prototype.toISOString)?this.toDate().toISOString():$(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function hn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");return this.format("["+e+'("]'+(0>this.year()||this.year()>9999?"YYYYYY":"YYYY")+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')}function dn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=$(this,e);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(Ct(),e)}function gn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vn(e){return this.to(Ct(),e)}function mn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function yn(){return this._locale}function wn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Cn(e){return void 0===(e=j(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function Sn(){return Math.floor(this.valueOf()/1e3)}function On(){return new Date(this.valueOf())}function _n(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function En(){return this.isValid()?this.toISOString():null}function kn(){return g(this)}function Tn(){return h({},p(this))}function Mn(){return p(this).overflow}function Hn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pn(e,t){G(0,[e,e.length],0,t)}function Dn(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function An(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function xn(){return _e(this.year(),1,4)}function Ln(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Nn(e,t,n,o,i){var r;return null==e?Oe(this,o,i).year:(r=_e(e,o,i),t>r&&(t=r),jn.call(this,e,t,n,o,i))}function jn(e,t,n,o,i){var r=Se(e,t,n,o,i),s=Ce(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function In(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Wn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Fn(e,t){t[hi]=b(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Bn(){return this._isUTC?"Coordinated Universal Time":""}function Yn(e){return Ct(1e3*e)}function zn(){return Ct.apply(null,arguments).parseZone()}function Un(e){return e}function Kn(e,t,n,o){return nt()[n](d().set(o,t),e)}function Gn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return Kn(e,t,n,"month");var o,i=[];for(o=0;12>o;o++)i[o]=Kn(e,o,n,"month");return i}function Xn(e,t,n,o){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var i=nt(),r=e?i._week.dow:0;if(null!=n)return Kn(t,(n+r)%7,o,"day");var s,l=[];for(s=0;7>s;s++)l[s]=Kn(t,(s+r)%7,o,"day");return l}function qn(e,t){return Gn(e,t,"months")}function $n(e,t){return Gn(e,t,"monthsShort")}function Jn(e,t,n){return Xn(e,t,n,"weekdays")}function Zn(e,t,n){return Xn(e,t,n,"weekdaysShort")}function Qn(e,t,n){return Xn(e,t,n,"weekdaysMin")}function eo(){var e=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),e.milliseconds=ir(e.milliseconds),e.seconds=ir(e.seconds),e.minutes=ir(e.minutes),e.hours=ir(e.hours),e.months=ir(e.months),e.years=ir(e.years),this}function to(e,t,n,o){var i=Ut(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function no(e,t){return to(this,e,t,1)}function oo(e,t){return to(this,e,t,-1)}function io(e){return 0>e?Math.floor(e):Math.ceil(e)}function ro(){var e,t,n,o,i,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return(0>r||0>s||0>a)&&(r>0||s>0||a>0)&&(r+=864e5*io(ao(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=C(r/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,s+=C(n/24),i=C(so(s)),a+=i,s-=io(ao(i)),o=C(a/12),a%=12,l.days=s,l.months=a,l.years=o,this}function so(e){return 4800*e/146097}function ao(e){return 146097*e/4800}function lo(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+o/864e5,n=this._months+so(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ao(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}}function uo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function co(e){return function(){return this.as(e)}}function ho(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function fo(e){return function(){return this.isValid()?this._data[e]:NaN}}function po(){return C(this.days()/7)}function go(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}function vo(e,t,n){var o=Ut(e).abs(),i=Cr(o.as("s")),r=Cr(o.as("m")),s=Cr(o.as("h")),a=Cr(o.as("d")),l=Cr(o.as("M")),u=Cr(o.as("y")),c=br.ss>=i&&["s",i]||br.s>i&&["ss",i]||1>=r&&["m"]||br.m>r&&["mm",r]||1>=s&&["h"]||br.h>s&&["hh",s]||1>=a&&["d"]||br.d>a&&["dd",a]||1>=l&&["M"]||br.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,go.apply(null,c)}function mo(e){return void 0===e?Cr:"function"==typeof e&&(Cr=e,!0)}function yo(e,t){return void 0!==br[e]&&(void 0===t?br[e]:(br[e]=t,"s"===e&&(br.ss=t-1),!0))}function wo(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=vo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Co(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o=Sr(this._milliseconds)/1e3,i=Sr(this._days),r=Sr(this._months);e=C(o/60),t=C(e/60),o%=60,e%=60,n=C(r/12),r%=12;var s=n,a=r,l=i,u=t,c=e,h=o,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var bo,So;So=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var Oo=So,_o=t.momentProperties=[],Ro=!1,Eo={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var ko;ko=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var To,Mo=ko,Ho={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Po={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Do=/\d{1,2}/,Ao={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},xo={},Lo={},No=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,jo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Io={},Wo={},Fo=/\d/,Vo=/\d\d/,Bo=/\d{3}/,Yo=/\d{4}/,zo=/[+-]?\d{6}/,Uo=/\d\d?/,Ko=/\d\d\d\d?/,Go=/\d\d\d\d\d\d?/,Xo=/\d{1,3}/,qo=/\d{1,4}/,$o=/[+-]?\d{1,6}/,Jo=/\d+/,Zo=/[+-]?\d+/,Qo=/Z|[+-]\d\d:?\d\d/gi,ei=/Z|[+-]\d\d(?::?\d\d)?/gi,ti=/[+-]?\d+(\.\d{1,3})?/,ni=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,oi={},ii={},ri=0,si=1,ai=2,li=3,ui=4,ci=5,hi=6,di=7,fi=8;To=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1};var pi=To;G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),G("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),W("month",8),Z("M",Uo),Z("MM",Uo,Vo),Z("MMM",function(e,t){return t.monthsShortRegex(e)}),Z("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[si]=b(e)-1}),ne(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[si]=i:p(n).invalidMonth=e});var gi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),mi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yi=ni,wi=ni;G("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),N("year","y"),W("year",1),Z("Y",Zo),Z("YY",Uo,Vo),Z("YYYY",qo,Yo),Z("YYYYY",$o,zo),Z("YYYYYY",$o,zo),ne(["YYYYY","YYYYYY"],ri),ne("YYYY",function(e,n){n[ri]=2===e.length?t.parseTwoDigitYear(e):b(e)}),ne("YY",function(e,n){n[ri]=t.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[ri]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Ci=V("FullYear",!0);G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),W("week",5),W("isoWeek",5),Z("w",Uo),Z("ww",Uo,Vo),Z("W",Uo),Z("WW",Uo,Vo),oe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)});var bi={dow:0,doy:6};G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),Z("d",Uo),Z("e",Uo),Z("E",Uo),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),oe(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),oe(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var Si="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Oi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_i="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ri=ni,Ei=ni,ki=ni;G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ze),G("k",["kk",2],0,Ue),G("hmm",0,0,function(){return""+ze.apply(this)+K(this.minutes(),2)}),G("hmmss",0,0,function(){return""+ze.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+K(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),N("hour","h"),W("hour",13),Z("a",Ge),Z("A",Ge),Z("H",Uo),Z("h",Uo),Z("k",Uo),Z("HH",Uo,Vo),Z("hh",Uo,Vo),Z("kk",Uo,Vo),Z("hmm",Ko),Z("hmmss",Go),Z("Hmm",Ko),Z("Hmmss",Go),ne(["H","HH"],li),ne(["k","kk"],function(e,t,n){var o=b(e);t[li]=24===o?0:o}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[li]=b(e),p(n).bigHour=!0}),ne("hmm",function(e,t,n){var o=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o)),p(n).bigHour=!0}),ne("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o,2)),t[ci]=b(e.substr(i)),p(n).bigHour=!0}),ne("Hmm",function(e,t,n){var o=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o))}),ne("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[li]=b(e.substr(0,o)),t[ui]=b(e.substr(o,2)),t[ci]=b(e.substr(i))});var Ti,Mi=/[ap]\.?m?\.?/i,Hi=V("Hours",!0),Pi={calendar:Ho,longDateFormat:Po,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Do,relativeTime:Ao,months:vi,monthsShort:mi,week:bi,weekdays:Si,weekdaysMin:_i,weekdaysShort:Oi,meridiemParse:Mi},Di={},Ai={},xi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Li=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/Z|[+-]\d\d(?::?\d\d)?/,ji=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ii=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wi=/^\/?Date\((\-?\d+)/i,Fi=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Vi=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:v()}),Bi=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),Yi=function(){return Date.now?Date.now():+new Date},zi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ht("Z",":"),Ht("ZZ",""),Z("Z",ei),Z("ZZ",ei),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Pt(ei,e)});var Ui=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ki=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=kt.prototype,Ut.invalid=Et;var Xi=qt(1,"add"),qi=qt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $i=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pn("gggg","weekYear"),Pn("ggggg","weekYear"),Pn("GGGG","isoWeekYear"),Pn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),Z("G",Zo),Z("g",Zo),Z("GG",Uo,Vo),Z("gg",Uo,Vo),Z("GGGG",qo,Yo),Z("gggg",qo,Yo),Z("GGGGG",$o,zo),Z("ggggg",$o,zo),oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),oe(["gg","GG"],function(e,n,o,i){n[i]=t.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),N("quarter","Q"),W("quarter",7),Z("Q",Fo),ne("Q",function(e,t){t[si]=3*(b(e)-1)}),G("D",["DD",2],"Do","date"),N("date","D"),W("date",9),Z("D",Uo),Z("DD",Uo,Vo),Z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ai),ne("Do",function(e,t){t[ai]=b(e.match(Uo)[0],10)});var Ji=V("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),W("dayOfYear",4),Z("DDD",Xo),Z("DDDD",Bo),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),G("m",["mm",2],0,"minute"),N("minute","m"),W("minute",14),Z("m",Uo),Z("mm",Uo,Vo),ne(["m","mm"],ui);var Zi=V("Minutes",!1);G("s",["ss",2],0,"second"),N("second","s"),W("second",15),Z("s",Uo),Z("ss",Uo,Vo),ne(["s","ss"],ci);var Qi=V("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),W("millisecond",16),Z("S",Xo,Fo),Z("SS",Xo,Vo),Z("SSS",Xo,Bo);var er;for(er="SSSS";9>=er.length;er+="S")Z(er,Jo);for(er="S";9>=er.length;er+="S")ne(er,Fn);var tr=V("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var nr=y.prototype;nr.add=Xi,nr.calendar=Zt,nr.clone=Qt,nr.diff=an,nr.endOf=Cn,nr.format=dn,nr.from=fn,nr.fromNow=pn,nr.to=gn,nr.toNow=vn,nr.get=z,nr.invalidAt=Mn,nr.isAfter=en,nr.isBefore=tn,nr.isBetween=nn,nr.isSame=on,nr.isSameOrAfter=rn,nr.isSameOrBefore=sn,nr.isValid=kn,nr.lang=$i,nr.locale=mn,nr.localeData=yn,nr.max=Bi,nr.min=Vi,nr.parsingFlags=Tn,nr.set=U,nr.startOf=wn,nr.subtract=qi,nr.toArray=_n,nr.toObject=Rn,nr.toDate=On,nr.toISOString=cn,nr.inspect=hn,nr.toJSON=En,nr.toString=un,nr.unix=Sn,nr.valueOf=bn,nr.creationData=Hn,nr.year=Ci,nr.isLeapYear=ye,nr.weekYear=Dn,nr.isoWeekYear=An,nr.quarter=nr.quarters=In,nr.month=he,nr.daysInMonth=de,nr.week=nr.weeks=Te,nr.isoWeek=nr.isoWeeks=Me,nr.weeksInYear=Ln,nr.isoWeeksInYear=xn,nr.date=Ji,nr.day=nr.days=je,nr.weekday=Ie,nr.isoWeekday=We,nr.dayOfYear=Wn,nr.hour=nr.hours=Hi,nr.minute=nr.minutes=Zi,nr.second=nr.seconds=Qi,nr.millisecond=nr.milliseconds=tr,nr.utcOffset=xt,nr.utc=Nt,nr.local=jt,nr.parseZone=It,nr.hasAlignedHourOffset=Wt,nr.isDST=Ft,nr.isLocal=Bt,nr.isUtcOffset=Yt,nr.isUtc=zt,nr.isUTC=zt,nr.zoneAbbr=Vn,nr.zoneName=Bn,nr.dates=_("dates accessor is deprecated. Use date instead.",Ji),nr.months=_("months accessor is deprecated. Use month instead",he),nr.years=_("years accessor is deprecated. Use year instead",Ci),nr.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Lt),nr.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var or=M.prototype;or.calendar=H,or.longDateFormat=P,or.invalidDate=D,or.ordinal=A,or.preparse=Un,or.postformat=Un,or.relativeTime=x,or.pastFuture=L,or.set=k,or.months=se,or.monthsShort=ae,or.monthsParse=ue,or.monthsRegex=pe,or.monthsShortRegex=fe,or.week=Re,or.firstDayOfYear=ke,or.firstDayOfWeek=Ee,or.weekdays=De,or.weekdaysMin=xe,or.weekdaysShort=Ae,or.weekdaysParse=Ne,or.weekdaysRegex=Fe,or.weekdaysShortRegex=Ve,or.weekdaysMinRegex=Be,or.isPM=Xe,or.meridiem=qe,Qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",Qe),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",nt);var ir=Math.abs,rr=co("ms"),sr=co("s"),ar=co("m"),lr=co("h"),ur=co("d"),cr=co("w"),hr=co("M"),dr=co("y"),fr=fo("milliseconds"),pr=fo("seconds"),gr=fo("minutes"),vr=fo("hours"),mr=fo("days"),yr=fo("months"),wr=fo("years"),Cr=Math.round,br={ss:44,s:45,m:45,h:22,d:26,M:11},Sr=Math.abs,Or=kt.prototype;return Or.isValid=Rt,Or.abs=eo,Or.add=no,Or.subtract=oo,Or.as=lo,Or.asMilliseconds=rr,Or.asSeconds=sr,Or.asMinutes=ar,Or.asHours=lr,Or.asDays=ur,Or.asWeeks=cr,Or.asMonths=hr,Or.asYears=dr,Or.valueOf=uo,Or._bubble=ro,Or.get=ho,Or.milliseconds=fr,Or.seconds=pr,Or.minutes=gr,Or.hours=vr,Or.days=mr,Or.weeks=po,Or.months=yr,Or.years=wr,Or.humanize=wo,Or.toISOString=Co,Or.toString=Co,Or.toJSON=Co,Or.locale=mn,Or.localeData=yn,Or.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Co),Or.lang=$i,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Z("x",Zo),Z("X",ti),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.18.1",function(e){bo=e}(Ct),t.fn=nr,t.min=St,t.max=Ot,t.now=Yi,t.utc=d,t.unix=Yn,t.months=qn,t.isDate=l,t.locale=Qe,t.invalid=v,t.duration=Ut,t.isMoment=w,t.weekdays=Jn,t.parseZone=zn,t.localeData=nt,t.isDuration=Tt,t.monthsShort=$n,t.weekdaysMin=Qn,t.defineLocale=et,t.updateLocale=tt,t.locales=ot,t.weekdaysShort=Zn,t.normalizeUnits=j,t.relativeTimeRounding=mo,t.relativeTimeThreshold=yo,t.calendarFormat=Jt,t.prototype=nr,t}),window.moment=n(35)}).call(t,n(320)(e))},function(e,t,n){"use strict";function o(e){return"function"==typeof e}function i(e){function t(){var t=this,s=arguments,a=Date.now(),l=!1;i.lastCallThrottled=!0,o||(o=a,l=!0);var u=n-(a-o);return l?(i.lastCallThrottled=!1,e.apply(this,s)):(r&&clearTimeout(r),r=setTimeout(function(){i.lastCallThrottled=!1,e.apply(t,s),o=0,r=void 0},u)),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0,i={lastCallThrottled:!0},r=null;return t}function r(e){function t(){a=r}function n(){return a?(a--,e.apply(this,arguments)):s.apply(this,arguments)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=i(e,o),a=r;return n.clearHits=t,n}function s(e){function t(){var t=this,r=arguments;return o&&clearTimeout(o),o=setTimeout(function(){i=e.apply(t,r)},n),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,i=void 0;return t}function a(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){return(0,h.arrayReduce)(i,function(e,t){return t(e)},o.apply(this,arguments))}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),i=0;t>i;i++)o[i]=arguments[i];return e.apply(this,n.concat(o))}}function u(e){function t(o){return function(){for(var i=arguments.length,r=Array(i),s=0;i>s;s++)r[s]=arguments[s];var a=o.concat(r);return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}function c(e){function t(o){return function(){for(var i=arguments.length,r=Array(i),s=0;i>s;s++)r[s]=arguments[s];var a=o.concat(r.reverse());return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}t.__esModule=!0,t.isFunction=o,t.throttle=i,t.throttleAfterHits=r,t.debounce=s,t.pipe=a,t.partial=l,t.curry=u,t.curryRight=c;var h=n(2)},function(e,t,n){var o=n(92),i=n(71);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(33);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(14);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var o=n(9)("unscopables"),i=Array.prototype;void 0==i[o]&&n(29)(i,o,{}),e.exports=function(e){i[o][e]=!0}},function(e,t,n){"use strict";function o(e){this.instance=e,this.state=s.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}t.__esModule=!0,t.EditorState=void 0;var i=n(12),r=n(22),s=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};o.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(e,t,n,o,i,r){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=i,this.cellProperties=r,this.state=s.VIRGIN},o.prototype.extend=function(){function e(){t.apply(this,arguments)}var t=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}(e,t)},o.prototype.saveValue=function(e,t){var n=void 0,o=void 0;t?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},o.prototype.beginEditing=function(e,t){this.state==s.VIRGIN&&(this.instance.view.scrollViewport(new i.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=s.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,r.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(e,t,n){var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(e){r&&r(e),n(e),i.instance.view.render()}}if(!this.isWaiting()){if(this.state==s.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){i._fireCallbacks(!0)},0));if(this.state==s.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var a=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=s.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){i.state=s.FINISHED,i.discardEditor(e)}):(this.state=s.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=s.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===s.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=s.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=s.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===s.WAITING},o.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t},t.default=o},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports={}},function(e,t,n){var o=n(17).f,i=n(24),r=n(9)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},function(e,t,n){var o=n(43)("meta"),i=n(14),r=n(24),s=n(17).f,a=0,l=Object.isExtensible||function(){return!0},u=!n(23)(function(){return l(Object.preventExtensions({}))}),c=function(e){s(e,o,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},d=function(e,t){if(!r(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&p.NEED&&l(e)&&!r(e,o)&&c(e),e},p=e.exports={KEY:o,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n){o(this,e),void 0!==t&&void 0!==n?(this.row=t,this.col=n):(this.row=null,this.col=null)}return i(e,[{key:"isValid",value:function(e){return this.row>=0&&this.col>=0&&(this.row<e.getSetting("totalRows")&&this.col<e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return e.row>=this.row&&e.col>=this.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&e.col>=this.col}},{key:"isNorthEastOf",value:function(e){return e.row>=this.row&&this.col>=e.col}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(0),r=n(327),s=o(r),a=n(42),l=o(a),u=n(4),c=o(u),h=n(18),d=n(10),f=l.default.prototype.extend();f.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,s.default)(),this.instance.addHook("afterDestroy",function(){e.destroy()})},f.prototype.getValue=function(){return this.TEXTAREA.value},f.prototype.setValue=function(e){this.TEXTAREA.value=e};var p=function(e){var t,n=this,o=n.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===o.TEXTAREA&&!(0,d.isImmediatePropagationStopped)(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void(0,d.stopImmediatePropagation)(e);switch(e.keyCode){case h.KEY_CODES.ARROW_RIGHT:case h.KEY_CODES.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ARROW_UP:case h.KEY_CODES.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ENTER:var r=o.instance.getSelected(),s=!(r[0]===r[2]&&r[1]===r[3]);if(t&&!s||e.altKey){if(o.isOpened()){var a=(0,i.getCaretPosition)(o.TEXTAREA),l=o.getValue();o.setValue(l.slice(0,a)+"\n"+l.slice(a)),(0,i.setCaretPosition)(o.TEXTAREA,a+1)}else o.beginEditing(o.originalValue+"\n");(0,d.stopImmediatePropagation)(e)}e.preventDefault();break;case h.KEY_CODES.A:case h.KEY_CODES.X:case h.KEY_CODES.C:case h.KEY_CODES.V:t&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.BACKSPACE:case h.KEY_CODES.DELETE:case h.KEY_CODES.HOME:case h.KEY_CODES.END:(0,d.stopImmediatePropagation)(e)}-1===[h.KEY_CODES.ARROW_UP,h.KEY_CODES.ARROW_RIGHT,h.KEY_CODES.ARROW_DOWN,h.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&o.autoResize.resize(String.fromCharCode(e.keyCode))}};f.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",p)},f.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",p)},f.prototype.focus=function(){this.TEXTAREA.focus(),(0,i.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},f.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,i.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,i.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},f.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},f.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},f.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close(!0);var e,t=(0,i.offset)(this.TD),n=(0,i.offset)(this.instance.rootElement),o=(0,i.getScrollableElement)(this.TD),r=this.instance.countRows(),s=t.top===n.top?0:1,l=t.top-n.top-s-(o.scrollTop||0),u=t.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),h=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),d=this.checkEditorSection(),f=this.TD.style.backgroundColor;switch(d){case"top":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(h&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===r-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,i.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var p=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,g=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,v=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),m=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,i.getScrollbarWidth)(),w=this.TD.offsetTop+p-m,C=this.TD.offsetLeft+g-v,b=(0,i.innerWidth)(this.TD)-8,S=(0,i.hasVerticalScrollbar)(o)?y:0,O=(0,i.hasHorizontalScrollbar)(o)?y:0,_=this.instance.view.maximumVisibleElementWidth(C)-9-S,R=this.TD.scrollHeight+1,E=Math.max(this.instance.view.maximumVisibleElementHeight(w)-O,23),k=(0,i.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=k.fontSize,this.TEXTAREA.style.fontFamily=k.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,i.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(R,E),maxHeight:E,minWidth:Math.min(b,_),maxWidth:_},!0),this.textareaParentStyle.display="block"}},f.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,d.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,d.stopPropagation)(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},f.prototype.destroy=function(){this.eventManager.destroy()},t.default=f},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(52),i=Math.max,r=Math.min;e.exports=function(e,t){return e=o(e),0>e?i(e+t,0):r(e,t)}},function(e,t,n){var o=n(28);e.exports=function(e,t,n){for(var i in t)o(e,i,t[i],n);return e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(30),i=n(95),r=n(96),s=n(16),a=n(21),l=n(97),u={},c={},t=e.exports=function(e,t,n,h,d){var f,p,g,v,m=d?function(){return e}:l(e),y=o(n,h,t?2:1),w=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(r(m)){for(f=a(e.length);f>w;w++)if((v=t?y(s(p=e[w])[0],p[1]):y(e[w]))===u||v===c)return v}else for(g=m.call(e);!(p=g.next()).done;)if((v=i(g,y,p.value,t))===u||v===c)return v};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!1},function(e,t,n){"use strict";var o=n(11),i=n(3),r=n(28),s=n(54),a=n(48),l=n(57),u=n(56),c=n(14),h=n(23),d=n(72),f=n(47),p=n(299);e.exports=function(e,t,n,g,v,m){var y=o[e],w=y,C=v?"set":"add",b=w&&w.prototype,S={},O=function(e){var t=b[e];r(b,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof w&&(m||b.forEach&&!h(function(){(new w).entries().next()}))){var _=new w,R=_[C](m?{}:-0,1)!=_,E=h(function(){_.has(1)}),k=d(function(e){new w(e)}),T=!m&&h(function(){for(var e=new w,t=5;t--;)e[C](t,t);return!e.has(-0)});k||(w=t(function(t,n){u(t,w,e);var o=p(new y,t,w);return void 0!=n&&l(n,v,o[C],o),o}),w.prototype=b,b.constructor=w),(E||T)&&(O("delete"),O("has"),v&&O("get")),(T||R)&&O(C),m&&b.clear&&delete b.clear}else w=g.getConstructor(t,e,v,C),s(w.prototype,n),a.NEED=!0;return f(w,e),S[e]=w,i(i.G+i.W+i.F*(w!=y),S),m||g.setStrong(w,e,v),w}},function(e,t,n){var o=n(30),i=n(68),r=n(39),s=n(21),a=n(300);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h,f=t||a;return function(t,a,p){for(var g,v,m=r(t),y=i(m),w=o(a,p,3),C=s(y.length),b=0,S=n?f(t,C):l?f(t,0):void 0;C>b;b++)if((d||b in y)&&(g=y[b],v=w(g,b,m),e))if(n)S[b]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return b;case 2:S.push(g)}else if(c)return!1;return h?-1:u||c?c:S}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(29),i=n(28),r=n(23),s=n(33),a=n(9);e.exports=function(e,t,n){var l=a(e),u=n(s,l,""[e]),c=u[0],h=u[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),o(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(){function e(e,t){l.set(e,t)}function t(e){return l.get(e)}function n(e){return l.has(e)}function i(){return[].concat(o(l.keys()))}function s(){return[].concat(o(l.values()))}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(a)||r.set(a,new Map);var l=r.get(a);return{register:e,getItem:t,hasItem:n,getNames:i,getValues:s}}t.__esModule=!0,t.default=i;var r=t.collection=new Map},function(e,t,n){var o,i;/*!
|
30
30
|
* numbro.js
|
31
31
|
* version : 1.11.0
|
32
32
|
* author : Företagsplatsen AB
|
33
33
|
* license : MIT
|
34
34
|
* http://www.foretagsplatsen.se
|
35
35
|
*/
|
36
|
-
(function(){"use strict";function r(e){this._value=e}function s(e){return 0===e?1:Math.floor(Math.log(Math.abs(e))/Math.LN10)+1}function a(e){var t,n="";for(t=0;e>t;t++)n+="0";return n}function l(e,t){var n,o,i,r,s,l,u,c;return c=""+e,n=c.split("e")[0],r=c.split("e")[1],o=n.split(".")[0],i=n.split(".")[1]||"",+r>0?c=o+i+a(r-i.length):(s=0>+o?"-0":"0",t>0&&(s+="."),u=a(-1*r-1),l=(u+Math.abs(o)+i).substr(0,t),c=s+l),+r>0&&t>0&&(c+="."+a(t)),c}function u(e,t,n,o){var i,r,s=Math.pow(10,t);return(""+e).indexOf("e")>-1?(r=l(e,t),"-"!==r.charAt(0)||0>+r||(r=r.substr(1))):r=(n(e+"e+"+t)/s).toFixed(t),o&&(i=RegExp("0{1,"+o+"}$"),r=r.replace(i,"")),r}function c(e,t,n){var o=t.replace(/\{[^\{\}]*\}/g,"");return o.indexOf("$")>-1?d(e,T[D].currency.symbol,t,n):o.indexOf("%")>-1?p(e,t,n):o.indexOf(":")>-1?g(e):y(e._value,t,n)}function h(e,t){var n,o,i,r,s,a=t,l=!1;if(t.indexOf(":")>-1)e._value=m(t);else if(t===P)e._value=0;else{for("."!==T[D].delimiters.decimal&&(t=t.replace(/\./g,"").replace(T[D].delimiters.decimal,".")),n=RegExp("[^a-zA-Z]"+T[D].abbreviations.thousand+"(?:\\)|(\\"+T[D].currency.symbol+")?(?:\\))?)?$"),o=RegExp("[^a-zA-Z]"+T[D].abbreviations.million+"(?:\\)|(\\"+T[D].currency.symbol+")?(?:\\))?)?$"),i=RegExp("[^a-zA-Z]"+T[D].abbreviations.billion+"(?:\\)|(\\"+T[D].currency.symbol+")?(?:\\))?)?$"),r=RegExp("[^a-zA-Z]"+T[D].abbreviations.trillion+"(?:\\)|(\\"+T[D].currency.symbol+")?(?:\\))?)?$"),s=1;k.length>s&&!l;++s)t.indexOf(k[s])>-1?l=Math.pow(1024,s):t.indexOf(O[s])>-1&&(l=Math.pow(1e3,s));var u=t.replace(/[^0-9\.]+/g,"");""===u?e._value=NaN:(e._value=(l||1)*(a.match(n)?Math.pow(10,3):1)*(a.match(o)?Math.pow(10,6):1)*(a.match(i)?Math.pow(10,9):1)*(a.match(r)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*+u,e._value=l?Math.ceil(e._value):e._value)}return e._value}function d(e,t,n,o){var i,r,s=n,a=s.indexOf("$"),l=s.indexOf("("),u=s.indexOf("+"),c=s.indexOf("-"),h="",d="";if(-1===s.indexOf("$")?"infix"===T[D].currency.position?(d=t,T[D].currency.spaceSeparated&&(d=" "+d+" ")):T[D].currency.spaceSeparated&&(h=" "):s.indexOf(" $")>-1?(h=" ",s=s.replace(" $","")):s.indexOf("$ ")>-1?(h=" ",s=s.replace("$ ","")):s=s.replace("$",""),r=y(e._value,s,o,d),-1===n.indexOf("$"))switch(T[D].currency.position){case"postfix":r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,h+t),r=r.join("")):r=r+h+t;break;case"infix":break;case"prefix":r.indexOf("(")>-1||r.indexOf("-")>-1?(r=r.split(""),i=Math.max(l,c)+1,r.splice(i,0,t+h),r=r.join("")):r=t+h+r;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else a>1?r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,h+t),r=r.join("")):r=r+h+t:r.indexOf("(")>-1||r.indexOf("+")>-1||r.indexOf("-")>-1?(r=r.split(""),i=1,(l>a||u>a||c>a)&&(i=0),r.splice(i,0,t+h),r=r.join("")):r=t+h+r;return r}function f(e,t,n,o){return d(e,t,n,o)}function p(e,t,n){var o,i="",r=100*e._value;return t.indexOf(" %")>-1?(i=" ",t=t.replace(" %","")):t=t.replace("%",""),o=y(r,t,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o}function g(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(10>n?"0"+n:n)+":"+(10>o?"0"+o:o)}function m(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*+t[0]*60,n+=60*+t[1],n+=+t[2]):2===t.length&&(n+=60*+t[0],n+=+t[1]),+n}function v(e,t,n){var o,i,r,s=t[0],a=Math.abs(e);if(a>=n){for(o=1;t.length>o;++o)if(i=Math.pow(n,o),r=Math.pow(n,o+1),a>=i&&r>a){s=t[o],e/=i;break}s===t[0]&&(e/=Math.pow(n,t.length-1),s=t[t.length-1])}return{value:e,suffix:s}}function y(e,t,n,o){var i,r,l,c,h,d,f,p,g,m,y,w,C,b,_,S,k=!1,O=!1,R=!1,M="",H=!1,x=!1,A=!1,L=!1,N=!1,j="",I="",W=Math.abs(e),F="",V=!1,Y=!1,B="";if(0===e&&null!==P)return P;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var z=t.indexOf("}");if(-1===z)throw Error('Format should also contain a "}"');m=t.slice(1,z),t=t.slice(z+1)}else m="";if(t.indexOf("}")===t.length-1&&t.length){var U=t.indexOf("{");if(-1===U)throw Error('Format should also contain a "{"');y=t.slice(U+1,-1),t=t.slice(0,U+1)}else y="";var G;for(G=t.match(-1===t.indexOf(".")?/([0-9]+).*/:/([0-9]+)\..*/),_=null===G?-1:G[1].length,-1!==t.indexOf("-")&&(V=!0),t.indexOf("(")>-1?(k=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(O=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(p=t.split(".")[0].match(/[0-9]+/g)||["0"],p=parseInt(p[0],10),H=t.indexOf("aK")>=0,x=t.indexOf("aM")>=0,A=t.indexOf("aB")>=0,L=t.indexOf("aT")>=0,N=H||x||A||L,t.indexOf(" a")>-1?(M=" ",t=t.replace(" a","")):t=t.replace("a",""),l=s(e),h=l%3,h=0===h?3:h,p&&0!==W&&(d=3*~~((Math.min(p,l)-h)/3),W/=Math.pow(10,d)),l!==p&&(W>=Math.pow(10,12)&&!N||L?(M+=T[D].abbreviations.trillion,e/=Math.pow(10,12)):W<Math.pow(10,12)&&W>=Math.pow(10,9)&&!N||A?(M+=T[D].abbreviations.billion,e/=Math.pow(10,9)):W<Math.pow(10,9)&&W>=Math.pow(10,6)&&!N||x?(M+=T[D].abbreviations.million,e/=Math.pow(10,6)):(W<Math.pow(10,6)&&W>=Math.pow(10,3)&&!N||H)&&(M+=T[D].abbreviations.thousand,e/=Math.pow(10,3))),c=s(e),p&&p>c&&-1===t.indexOf(".")&&(t+="[.]",t+=a(p-c))),S=0;E.length>S;++S)if(i=E[S],t.indexOf(i.marker)>-1){t.indexOf(" "+i.marker)>-1&&(j=" "),t=t.replace(j+i.marker,""),r=v(e,i.suffixes,i.scale),e=r.value,j+=r.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(I=" ",t=t.replace(" o","")):t=t.replace("o",""),T[D].ordinal&&(I+=T[D].ordinal(e))),t.indexOf("[.]")>-1&&(R=!0,t=t.replace("[.]",".")),g=t.split(".")[1],w=t.indexOf(","),g){var K=[];if(-1!==g.indexOf("*")?(F=""+e,K=F.split("."),K.length>1&&(F=u(e,K[1].length,n))):g.indexOf("[")>-1?(g=g.replace("]",""),g=g.split("["),F=u(e,g[0].length+g[1].length,n,g[1].length)):F=u(e,g.length,n),K=F.split("."),f=K[0],K.length>1&&K[1].length){F=(o?M+o:T[D].delimiters.decimal)+K[1]}else F="";R&&0==+F.slice(1)&&(F="")}else f=u(e,0,n);return f.indexOf("-")>-1&&(f=f.slice(1),Y=!0),_>f.length&&(f=a(_-f.length)+f),w>-1&&(f=(""+f).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T[D].delimiters.thousands)),0===t.indexOf(".")&&(f=""),C=t.indexOf("("),b=t.indexOf("-"),B=b>C?(k&&Y?"(":"")+(V&&Y||!k&&Y?"-":""):(V&&Y||!k&&Y?"-":"")+(k&&Y?"(":""),m+B+(!Y&&O&&0!==e?"+":"")+f+F+(I||"")+(M&&!o?M:"")+(j||"")+(k&&Y?")":"")+y}function w(e,t){T[e]=t}function C(e){D=e;var t=T[e].defaults;t&&t.format&&S.defaultFormat(t.format),t&&t.currencyFormat&&S.defaultCurrencyFormat(t.currencyFormat)}function b(e){var t=(""+e).split(".");return 2>t.length?1:Math.pow(10,t[1].length)}function _(){return Array.prototype.slice.call(arguments).reduce(function(e,t){var n=b(e),o=b(t);return n>o?n:o},-1/0)}var S,k=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],O=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],R={general:{scale:1024,suffixes:O,marker:"bd"},binary:{scale:1024,suffixes:k,marker:"b"},decimal:{scale:1e3,suffixes:O,marker:"d"}},E=[R.general,R.binary,R.decimal],T={},M=T,D="en-US",P=null,H="0,0",x="0$",A=void 0!==e&&e.exports,L={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};S=function(e){return e=S.isNumbro(e)?e.value():"string"==typeof e||"number"==typeof e?S.fn.unformat(e):NaN,new r(+e)},S.version="1.11.0",S.isNumbro=function(e){return e instanceof r},S.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=e,o=e.split("-")[0],i=null;M[n]||(Object.keys(M).forEach(function(e){i||e.split("-")[0]!==o||(i=e)}),n=i||t||"en-US"),C(n)},S.setCulture=function(e,t){var n=e,o=e.split("-")[1],i=null;T[n]||(o&&Object.keys(T).forEach(function(e){i||e.split("-")[1]!==o||(i=e)}),n=i||t||"en-US"),C(n)},S.language=function(e,t){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return D;if(e&&!t){if(!M[e])throw Error("Unknown language : "+e);C(e)}return!t&&M[e]||w(e,t),S},S.culture=function(e,t){if(!e)return D;if(e&&!t){if(!T[e])throw Error("Unknown culture : "+e);C(e)}return!t&&T[e]||w(e,t),S},S.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return M[D];if(!M[e])throw Error("Unknown language : "+e);return M[e]},S.cultureData=function(e){if(!e)return T[D];if(!T[e])throw Error("Unknown culture : "+e);return T[e]},S.culture("en-US",L),S.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),M},S.cultures=function(){return T},S.zeroFormat=function(e){P="string"==typeof e?e:null},S.defaultFormat=function(e){H="string"==typeof e?e:"0.0"},S.defaultCurrencyFormat=function(e){x="string"==typeof e?e:"0$"},S.validate=function(e,t){var n,o,i,r,s,a,l,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e=e.replace(/^[+-]?/,""),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=S.cultureData(t)}catch(e){l=S.cultureData(S.culture())}return i=l.currency.symbol,s=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(u=e.match(/^[^\d\.\,]+/))||(e=e.substr(1),u[0]===i))&&((null===(u=e.match(/[^\d]+$/))||(e=e.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(a=RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(r=e.split(n),2>=r.length&&(2>r.length?!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a):""===r[0]?!r[0].match(a)&&!!r[1].match(/^\d+$/):1===r[0].length?!!r[0].match(/^\d+$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/):!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/)))))},S.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),S.loadCulturesInNode()},S.loadCulturesInNode=function(){var e=n(400);for(var t in e)t&&S.culture(t,e[t])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null===this||void 0===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,o,i=this.length>>>0,r=!1;for(arguments.length>1&&(o=t,r=!0),n=0;i>n;++n)this.hasOwnProperty(n)&&(r?o=e(o,this[n],n,this):(o=this[n],r=!0));if(!r)throw new TypeError("Reduce of empty array with no initial value");return o}),S.fn=r.prototype={clone:function(){return S(this)},format:function(e,t){return c(this,e||H,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return d(this,T[D].currency.symbol,e||x,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,n){return f(this,e,t||x,void 0!==n?n:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=h(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return v(this._value,R.binary.suffixes,R.binary.scale).suffix},byteUnits:function(){return v(this._value,R.general.suffixes,R.general.scale).suffix},decimalByteUnits:function(){return v(this._value,R.decimal.suffixes,R.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=+e,this},add:function(e){function t(e,t){return e+n*t}var n=_.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t){return e-n*t}var n=_.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t){var n=_(e,t),o=e*n;return o*=t*n,o/=n*n}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t){var n=_(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(S(this._value).subtract(e).value())}},function(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(-1!==process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&!0}()&&S.loadCulturesInNode(),A?e.exports=S:("undefined"==typeof ender&&(this.numbro=S),o=[],void 0!==(i=function(){return S}.apply(t,o))&&(e.exports=i))}).call("undefined"==typeof window?this:window),window.numbro=n(51)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(){function e(e,t){l.set(e,t)}function t(e){return l.get(e)}function n(e){return l.has(e)}function i(){return[].concat(o(l.keys()))}function s(){return[].concat(o(l.values()))}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(a)||r.set(a,new Map);var l=r.get(a);return{register:e,getItem:t,hasItem:n,getNames:i,getValues:s}}t.__esModule=!0,t.default=i;var r=t.collection=new Map},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(29),i=n(78),r=n(41),s=n(24),a=n(499);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h,f=t||a;return function(t,a,p){for(var g,m,v=r(t),y=i(v),w=o(a,p,3),C=s(y.length),b=0,_=n?f(t,C):l?f(t,0):void 0;C>b;b++)if((d||b in y)&&(g=y[b],m=w(g,b,v),e))if(n)_[b]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return b;case 2:_.push(g)}else if(c)return!1;return h?-1:u||c?c:_}}},function(e,t,n){"use strict";var o=n(13),i=n(3),r=n(33),s=n(60),a=n(47),l=n(57),u=n(53),c=n(15),h=n(31),d=n(79),f=n(49),p=n(502);e.exports=function(e,t,n,g,m,v){var y=o[e],w=y,C=m?"set":"add",b=w&&w.prototype,_={},S=function(e){var t=b[e];r(b,e,"delete"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof w&&(v||b.forEach&&!h(function(){(new w).entries().next()}))){var k=new w,O=k[C](v?{}:-0,1)!=k,R=h(function(){k.has(1)}),E=d(function(e){new w(e)}),T=!v&&h(function(){for(var e=new w,t=5;t--;)e[C](t,t);return!e.has(-0)});E||(w=t(function(t,n){u(t,w,e);var o=p(new y,t,w);return void 0!=n&&l(n,m,o[C],o),o}),w.prototype=b,b.constructor=w),(R||T)&&(S("delete"),S("has"),m&&S("get")),(T||O)&&S(C),v&&b.clear&&delete b.clear}else w=g.getConstructor(t,e,m,C),s(w.prototype,n),a.NEED=!0;return f(w,e),_[e]=w,i(i.G+i.W+i.F*(w!=y),_),v||g.setStrong(w,e,m),w}},function(e,t,n){"use strict";var o=n(32),i=n(33),r=n(31),s=n(30),a=n(10);e.exports=function(e,t,n){var l=a(e),u=n(s,l,""[e]),c=u[0],h=u[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),o(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,n){var o=n(29),i=n(381),r=n(377),s=n(18),a=n(24),l=n(392),u={},c={},t=e.exports=function(e,t,n,h,d){var f,p,g,m,v=d?function(){return e}:l(e),y=o(n,h,t?2:1),w=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(f=a(e.length);f>w;w++)if((m=t?y(s(p=e[w])[0],p[1]):y(e[w]))===u||m===c)return m}else for(g=v.call(e);!(p=g.next()).done;)if((m=i(g,y,p.value,t))===u||m===c)return m};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(33);e.exports=function(e,t,n){for(var i in t)o(e,i,t[i],n);return e}},function(e,t,n){var o=n(62),i=Math.max,r=Math.min;e.exports=function(e,t){return e=o(e),0>e?i(e+t,0):r(e,t)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(!H(e))throw Error('You declared cell type "'+e+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return P(e)}function r(e,t){var n=t.editor,o=t.renderer,i=t.validator;n&&(0,l.registerEditor)(e,n),o&&(0,u.registerRenderer)(e,o),i&&(0,c.registerValidator)(e,i),D(e,t)}t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var s=n(52),a=o(s),l=n(14),u=n(9),c=n(26),h=n(407),d=o(h),f=n(408),p=o(f),g=n(409),m=o(g),v=n(410),y=o(v),w=n(411),C=o(w),b=n(412),_=o(b),S=n(413),k=o(S),O=n(414),R=o(O),E=n(415),T=o(E),M=(0,a.default)("cellTypes"),D=M.register,P=M.getItem,H=M.hasItem,x=M.getNames,A=M.getValues;r("autocomplete",d.default),r("checkbox",p.default),r("date",m.default),r("dropdown",y.default),r("handsontable",C.default),r("numeric",_.default),r("password",k.default),r("text",R.default),r("time",T.default),t.registerCellType=r,t.getCellType=i,t.hasCellType=H,t.getRegisteredCellTypeNames=x,t.getRegisteredCellTypes=A},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){function n(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=0>this.validatorsInQueue-1?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function o(e,t,o){function i(){var n;e.length&&(n=z.runHooks("beforeChange",e,t),(0,d.isFunction)(n)?console.warn("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):!1===n&&e.splice(0,e.length)),o()}var r=new n;r.onQueueEmpty=i;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var a=e[s][0],l=T.propToCol(e[s][1]),h=z.getCellMeta(a,l);if("numeric"===h.type&&"string"==typeof e[s][3]&&e[s][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(e[s][3])||h.format)){var p=e[s][3].length;u.default.culture((0,f.isUndefined)(h.language)?"en-US":e[s][3].indexOf(".")===p-3&&-1===e[s][3].indexOf(",")?"en-US":h.language);u.default.cultureData(u.default.culture());e[s][3]=u.default.validate(e[s][3])&&!isNaN(e[s][3])?parseFloat(e[s][3]):(0,u.default)().unformat(e[s][3])||e[s][3]}z.getCellValidator(h)&&(r.addValidatorToQueue(),z.validateCell(e[s][3],h,function(t,n){return function(o){if("boolean"!=typeof o)throw Error("Validation error: result is not boolean");if(!1===o&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var i=z.getCell(n.row,n.col);(0,c.removeClass)(i,z.getSettings().invalidCellClassName),--t}r.removeValidatorFormQueue()}}(s,h),t))}r.checkIfQueueIsEmpty()}function r(e,t){var n=e.length-1;if(n>=0){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!=e[n][2]||null!=e[n][3]){if(w.settings.allowInsertRow)for(;e[n][0]>z.countRows()-1;){var i=T.createRow(void 0,void 0,t);if(0===i){o=!0;break}}if(!o){if("array"===z.dataType&&(!w.settings.columns||0===w.settings.columns.length)&&w.settings.allowInsertColumn)for(;T.propToCol(e[n][1])>z.countCols()-1;)T.createCol(void 0,void 0,t);T.set(e[n][0],e[n][1],e[n][3])}}}else e.splice(n,1)}z.forceFullRender=!0,N.adjustRowsAndCols(),z.runHooks("beforeChangeRender",e,t),I.refreshBorders(null,!0),z.view.wt.wtOverlays.adjustElementsSize(),z.runHooks("afterChange",e,t||"edit");var r=z.getActiveEditor();r&&(0,f.isDefined)(r.refreshValue)&&r.refreshValue()}}function l(e,t,n){return"object"===(void 0===e?"undefined":a(e))?e:[[e,t,n]]}function g(e){if((0,b.hasOwnProperty)(e,"type")){var t,n={};"object"===a(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,F.getCellType)(e.type));for(var o in t)(0,b.hasOwnProperty)(t,o)&&!(0,b.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}function v(){throw Error("This method cannot be called because this Handsontable instance has been destroyed")}var w,T,D,N,I,Y,B=arguments.length>2&&void 0!==arguments[2]&&arguments[2],z=this,U=function(){},G=new C.default(z);(0,b.extend)(U.prototype,W.default.prototype),(0,b.extend)(U.prototype,t),(0,b.extend)(U.prototype,g(t)),(0,A.hasValidParameter)(B)&&(0,A.registerAsRootInstance)(this),this.rootElement=e,this.isHotTableEnv=(0,c.isChildOfWebComponentTable)(this.rootElement),C.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,R.randomString)();var K=(0,x.getTranslator)(z);D=new P.default(z),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),w={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new U,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},N={alter:function(e,t,n,o,r){function s(e,t,n,o){var r=function(){var e=void 0;return"array"===o?e=[]:"object"===o&&(e={}),e},s=(0,_.arrayMap)(Array(n),function(){return r()});s.unshift(t,0),e.splice.apply(e,i(s))}var a;switch(n=n||1,e){case"insert_row":var l=z.countSourceRows();if(z.getSettings().maxRows===l)return;t=(0,f.isDefined)(t)?t:l,a=T.createRow(t,n,o),s(w.cellSettings,t,n,"array"),a&&(I.isSelected()&&w.selRange.from.row>=t?(w.selRange.from.row+=a,I.transformEnd(a,0)):I.refreshBorders());break;case"insert_col":a=T.createCol(t,n,o);for(var u=0,c=z.countSourceRows();c>u;u++)w.cellSettings[u]&&s(w.cellSettings[u],t,n);if(a){if(Array.isArray(z.getSettings().colHeaders)){var h=[t,0];h.length+=a,Array.prototype.splice.apply(z.getSettings().colHeaders,h)}I.isSelected()&&w.selRange.from.col>=t?(w.selRange.from.col+=a,I.transformEnd(0,a)):I.refreshBorders()}break;case"remove_row":T.removeRow(t,n,o),w.cellSettings.splice(t,n);var d=z.countRows(),p=z.getSettings().fixedRowsTop;t+1>p||(z.getSettings().fixedRowsTop-=Math.min(n,p-t));var g=z.getSettings().fixedRowsBottom;g&&t>=d-g&&(z.getSettings().fixedRowsBottom-=Math.min(n,g)),N.adjustRowsAndCols(),I.refreshBorders();break;case"remove_col":var m=K.toPhysicalColumn(t);T.removeCol(t,n,o);for(var v=0,y=z.countSourceRows();y>v;v++)w.cellSettings[v]&&w.cellSettings[v].splice(m,n);var C=z.getSettings().fixedColumnsLeft;t+1>C||(z.getSettings().fixedColumnsLeft-=Math.min(n,C-t)),Array.isArray(z.getSettings().colHeaders)&&(void 0===m&&(m=-1),z.getSettings().colHeaders.splice(m,n)),N.adjustRowsAndCols(),I.refreshBorders();break;default:throw Error('There is no such action "'+e+'"')}r||N.adjustRowsAndCols()},adjustRowsAndCols:function(){if(w.settings.minRows){var e=z.countRows();if(w.settings.minRows>e)for(var t=0,n=w.settings.minRows;n-e>t;t++)T.createRow(z.countRows(),1,"auto")}if(w.settings.minSpareRows){var o=z.countEmptyRows(!0);if(w.settings.minSpareRows>o)for(;w.settings.minSpareRows>o&&z.countSourceRows()<w.settings.maxRows;o++)T.createRow(z.countRows(),1,"auto")}var i=void 0;if((w.settings.minCols||w.settings.minSpareCols)&&(i=z.countEmptyCols(!0)),w.settings.minCols&&!w.settings.columns&&z.countCols()<w.settings.minCols)for(;z.countCols()<w.settings.minCols;i++)T.createCol(z.countCols(),1,"auto");if(w.settings.minSpareCols&&!w.settings.columns&&"array"===z.dataType&&w.settings.minSpareCols>i)for(;w.settings.minSpareCols>i&&z.countCols()<w.settings.maxCols;i++)T.createCol(z.countCols(),1,"auto");var r=z.countRows(),s=z.countCols();if(0!==r&&0!==s||I.deselect(),I.isSelected()){var a=!1,l=w.selRange.from.row,u=w.selRange.from.col,c=w.selRange.to.row,h=w.selRange.to.col;l>r-1?(l=r-1,a=!0,c>l&&(c=l)):c>r-1&&(c=r-1,a=!0,l>c&&(l=c)),u>s-1?(u=s-1,a=!0,h>u&&(h=u)):h>s-1&&(h=s-1,a=!0,u>h&&(u=h)),a&&z.selectCell(l,u,c,h)}z.view&&z.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,r,s,l){var u,c,h,d,p=[],g={};if(0===(c=t.length))return!1;var m,v,y,C;switch(r){case"shift_down":for(m=n?n.col-e.col+1:0,v=n?n.row-e.row+1:0,t=(0,H.translateRowsToColumns)(t),h=0,d=t.length,y=Math.max(d,m);y>h;h++)if(d>h){var _;for(u=0,c=t[h].length;v-c>u;u++)t[h].push(t[h][u%c]);t[h].unshift(e.col+h,e.row,0),(_=z).spliceCol.apply(_,i(t[h]))}else{var S;t[h%d][0]=e.col+h,(S=z).spliceCol.apply(S,i(t[h%d]))}break;case"shift_right":for(m=n?n.col-e.col+1:0,v=n?n.row-e.row+1:0,u=0,c=t.length,C=Math.max(c,v);C>u;u++)if(c>u){var k;for(h=0,d=t[u].length;m-d>h;h++)t[u].push(t[u][h%d]);t[u].unshift(e.row+u,e.col,0),(k=z).spliceRow.apply(k,i(t[u]))}else{var O;t[u%c][0]=e.row+u,(O=z).spliceRow.apply(O,i(t[u%c]))}break;case"overwrite":default:g.row=e.row,g.col=e.col;var R={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},E=0,T=0,M=!0,D=void 0,P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},x=t.length,A=n?n.row-e.row+1:0;for(c=n?A:Math.max(x,A),u=0;c>u&&(!(n&&g.row>n.row&&A>x||!w.settings.allowInsertRow&&g.row>z.countRows()-1)&&g.row<w.settings.maxRows);u++){var L=u-E,N=P(L).length,j=n?n.col-e.col+1:0;if(d=n?j:Math.max(N,j),g.col=e.col,D=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!D.skipRowOnPaste){for(T=0,h=0;d>h&&(!(n&&g.col>n.col&&j>N||!w.settings.allowInsertColumn&&g.col>z.countCols()-1)&&g.col<w.settings.maxCols);h++)if(D=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!D.skipColumnOnPaste)if(D.readOnly)g.col++;else{var I=h-T,W=P(L,I),F=z.getDataAtCell(g.row,g.col),V={row:L,col:I};if("Autofill.fill"===o){var Y=z.runHooks("beforeAutofillInsidePopulate",V,s,t,l,{},R);Y&&(W=(0,f.isUndefined)(Y.value)?W:Y.value)}if(null!==W&&"object"===(void 0===W?"undefined":a(W)))if(null===F||"object"!==(void 0===F?"undefined":a(F)))M=!1;else{var B=(0,b.duckSchema)(F[0]||F),U=(0,b.duckSchema)(W[0]||W);(0,b.isObjectEquals)(B,U)?W=(0,b.deepClone)(W):M=!1}else null!==F&&"object"===(void 0===F?"undefined":a(F))&&(M=!1);M&&p.push([g.row,g.col,W]),M=!0,g.col++}else T++,g.col++,d++;g.row++}else E++,g.row++,c++}z.setDataAtCell(p,null,null,o||"populateFromArray")}}},this.selection=I={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];z.selection.selectedHeader.rows=e,z.selection.selectedHeader.cols=t,z.selection.selectedHeader.corner=n},begin:function(){z.selection.inProgress=!0},finish:function(){var e=z.getSelected();z.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),z.runHooks("afterSelectionEndByProp",e[0],z.colToProp(e[1]),e[2],z.colToProp(e[3])),z.selection.inProgress=!1},isInProgress:function(){return z.selection.inProgress},setRangeStart:function(e,t){z.runHooks("beforeSetRangeStart",e),w.selRange=new L.CellRange(e,e,e),I.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){z.runHooks("beforeSetRangeStartOnly",e),w.selRange=new L.CellRange(e,e,e)},setRangeEnd:function(e,t,n){if(null!==w.selRange){var o,i=!1,r=!0,s=z.view.wt.wtTable.getFirstVisibleRow(),a=z.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};z.runHooks("beforeSetRangeEnd",e),z.selection.begin(),l.row=0>e.row?s:e.row,l.col=0>e.col?a:e.col,w.selRange.to=new L.CellCoords(l.row,l.col),w.settings.multiSelect||(w.selRange.from=e),z.view.wt.selections.current.clear(),o=z.getCellMeta(w.selRange.highlight.row,w.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(!1===o||Array.isArray(o)&&-1===o.indexOf("current"))&&z.view.wt.selections.current.add(w.selRange.highlight),z.view.wt.selections.area.clear(),(!1===o||Array.isArray(o)&&-1===o.indexOf("area"))&&I.isMultiple()&&(z.view.wt.selections.area.add(w.selRange.from),z.view.wt.selections.area.add(w.selRange.to)),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&(z.view.wt.selections.highlight.clear(),z.view.wt.selections.highlight.add(w.selRange.from),z.view.wt.selections.highlight.add(w.selRange.to));var u=(0,b.createObjectPropListener)("value");z.runHooks("afterSelection",w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col,u),z.runHooks("afterSelectionByProp",w.selRange.from.row,T.colToProp(w.selRange.from.col),w.selRange.to.row,T.colToProp(w.selRange.to.col),u),(0===w.selRange.from.row&&w.selRange.to.row===z.countRows()-1&&z.countRows()>1||0===w.selRange.from.col&&w.selRange.to.col===z.countCols()-1&&z.countCols()>1)&&(i=!0),(0>e.row||0>e.col)&&(r=!1),u.isTouched()&&(t=!u.value),!1!==t&&!i&&r&&z.view.scrollViewport(w.selRange.from&&!I.isMultiple()?w.selRange.from:e),I.selectedHeader.rows&&I.selectedHeader.cols?(0,c.addClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]):I.selectedHeader.rows?((0,c.removeClass)(z.rootElement,"ht__selection--columns"),(0,c.addClass)(z.rootElement,"ht__selection--rows")):I.selectedHeader.cols?((0,c.removeClass)(z.rootElement,"ht__selection--rows"),(0,c.addClass)(z.rootElement,"ht__selection--columns")):(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),I.refreshBorders(null,n)}},refreshBorders:function(e,t){t||Y.destroyEditor(e),z.view.render(),I.isSelected()&&!t&&Y.prepareEditor()},isMultiple:function(){var e=!(w.selRange.to.col===w.selRange.from.col&&w.selRange.to.row===w.selRange.from.row),t=z.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,n,o){var i,r,s,a,l=new L.CellCoords(e,t),u=0,c=0;z.runHooks("modifyTransformStart",l),i=z.countRows(),r=z.countCols(),a=z.getSettings().fixedRowsBottom,w.selRange.highlight.row+e>i-1?n&&w.settings.minSpareRows>0&&(!a||i-a-1>w.selRange.highlight.row)?(z.alter("insert_row",i),i=z.countRows()):w.settings.autoWrapCol&&(l.row=1-i,l.col=w.selRange.highlight.col+l.col==r-1?1-r:1):w.settings.autoWrapCol&&0>w.selRange.highlight.row+l.row&&w.selRange.highlight.col+l.col>=0&&(l.row=i-1,l.col=w.selRange.highlight.col+l.col==0?r-1:-1),w.selRange.highlight.col+l.col>r-1?n&&w.settings.minSpareCols>0?(z.alter("insert_col",r),r=z.countCols()):w.settings.autoWrapRow&&(l.row=w.selRange.highlight.row+l.row==i-1?1-i:1,l.col=1-r):w.settings.autoWrapRow&&0>w.selRange.highlight.col+l.col&&w.selRange.highlight.row+l.row>=0&&(l.row=w.selRange.highlight.row+l.row==0?i-1:-1,l.col=r-1),s=new L.CellCoords(w.selRange.highlight.row+l.row,w.selRange.highlight.col+l.col),0>s.row?(u=-1,s.row=0):s.row>0&&s.row>=i&&(u=1,s.row=i-1),0>s.col?(c=-1,s.col=0):s.col>0&&s.col>=r&&(c=1,s.col=r-1),z.runHooks("afterModifyTransformStart",s,u,c),I.setRangeStart(s,o)},transformEnd:function(e,t){var n,o,i,r=new L.CellCoords(e,t),s=0,a=0;z.runHooks("modifyTransformEnd",r),n=z.countRows(),o=z.countCols(),i=new L.CellCoords(w.selRange.to.row+r.row,w.selRange.to.col+r.col),0>i.row?(s=-1,i.row=0):i.row>0&&i.row>=n&&(s=1,i.row=n-1),0>i.col?(a=-1,i.col=0):i.col>0&&i.col>=o&&(a=1,i.col=o-1),z.runHooks("afterModifyTransformEnd",i,s,a),I.setRangeEnd(i,!0)},isSelected:function(){return null!==w.selRange},inInSelection:function(e){return!!I.isSelected()&&w.selRange.includes(e)},deselect:function(){I.isSelected()&&(z.selection.inProgress=!1,w.selRange=null,z.view.wt.selections.current.clear(),z.view.wt.selections.area.clear(),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&z.view.wt.selections.highlight.clear(),Y.destroyEditor(),I.refreshBorders(),(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),z.runHooks("afterDeselect"))},selectAll:function(){w.settings.multiSelect&&(I.setSelectedHeaders(!0,!0,!0),I.setRangeStart(new L.CellCoords(0,0)),I.setRangeEnd(new L.CellCoords(z.countRows()-1,z.countCols()-1),!1))},empty:function(){if(I.isSelected()){var e,t,n=w.selRange.getTopLeftCorner(),o=w.selRange.getBottomRightCorner(),i=[];for(e=n.row;o.row>=e;e++)for(t=n.col;o.col>=t;t++)z.getCellMeta(e,t).readOnly||i.push([e,t,""]);z.setDataAtCell(i)}}},this.init=function(){D.setData(w.settings.data),z.runHooks("beforeInit"),(0,p.isMobileBrowser)()&&(0,c.addClass)(z.rootElement,"mobile"),this.updateSettings(w.settings,!0),this.view=new M.default(this),Y=new y.default(z,w,I,T),this.forceFullRender=!0,z.runHooks("init"),this.view.render(),"object"===a(w.firstRun)&&(z.runHooks("afterChange",w.firstRun[0],w.firstRun[1]),w.firstRun=!1),z.runHooks("afterInit")},this.validateCell=function(e,t,n,o){function i(e){var o=t.visualCol,i=t.visualRow,r=z.getCell(i,o,!0);r&&"TH"!=r.nodeName&&z.view.wt.wtSettings.settings.cellRenderer(i,o,r),n(e)}var r=z.getCellValidator(t);(0,f.isRegExp)(r)&&(r=function(e){return function(t,n){n(e.test(t))}}(r)),(0,d.isFunction)(r)?(e=z.runHooks("beforeValidate",e,t.visualRow,t.prop,o),z._registerTimeout(setTimeout(function(){r.call(t,e,function(n){n=z.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,i(n),z.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):z._registerTimeout(setTimeout(function(){t.valid=!0,i(t.valid)},0))},this.setDataAtCell=function(e,t,n,i){var s,u,c,h=l(e,t,n),d=[];for(s=0,u=h.length;u>s;s++){if("object"!==a(h[s]))throw Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof h[s][1])throw Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");c=T.colToProp(h[s][1]),d.push([h[s][0],c,D.getAtCell(K.toPhysicalRow(h[s][0]),h[s][1]),h[s][2]])}i||"object"!==(void 0===e?"undefined":a(e))||(i=t),z.runHooks("afterSetDataAtCell",d,i),o(d,i,function(){r(d,i)})},this.setDataAtRowProp=function(e,t,n,i){var s,u,c=l(e,t,n),h=[];for(s=0,u=c.length;u>s;s++)h.push([c[s][0],c[s][1],D.getAtCell(K.toPhysicalRow(c[s][0]),c[s][1]),c[s][2]]);i||"object"!==(void 0===e?"undefined":a(e))||(i=t),z.runHooks("afterSetDataAtRowProp",h,i),o(h,i,function(){r(h,i)})},this.listen=function(){var e=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;document.activeElement&&document.activeElement!==document.body&&!e?document.activeElement.blur():e&&document.body.focus(),V=z.guid},this.unlisten=function(){this.isListening()&&(V=null)},this.isListening=function(){return V===z.guid},this.destroyEditor=function(e){I.refreshBorders(e)},this.populateFromArray=function(e,t,n,o,i,r,s,l,u){var c;if("object"!==(void 0===n?"undefined":a(n))||"object"!==a(n[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");return c="number"==typeof o?new L.CellCoords(o,i):null,N.populateFromArray(new L.CellCoords(e,t),n,c,r,s,l,u)},this.spliceCol=function(e,t,n){var o;return(o=T).spliceCol.apply(o,arguments)},this.spliceRow=function(e,t,n){var o;return(o=T).spliceRow.apply(o,arguments)},this.getSelected=function(){if(I.isSelected())return[w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col]},this.getSelectedRange=function(){if(I.isSelected())return w.selRange},this.render=function(){z.view&&(z.renderCall=!0,z.forceFullRender=!0,I.refreshBorders(null,!0))},this.loadData=function(e){if(z.dataType=Array.isArray(w.settings.dataSchema)?"array":(0,d.isFunction)(w.settings.dataSchema)?"function":"object",T&&T.destroy(),T=new m.default(z,w,U),"object"===(void 0===e?"undefined":a(e))&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw Error("loadData only accepts array of objects or array of arrays ("+(void 0===e?"undefined":a(e))+" given)");e=[];var t,n=0,o=0,i=T.getSchema();for(n=0,o=w.settings.startRows;o>n;n++)if("object"!==z.dataType&&"function"!==z.dataType||!w.settings.dataSchema)if("array"===z.dataType)t=(0,b.deepClone)(i[0]),e.push(t);else{t=[];for(var r=0,s=w.settings.startCols;s>r;r++)t.push(null);e.push(t)}else t=(0,b.deepClone)(i),e.push(t)}w.isPopulated=!1,U.prototype.data=e,Array.isArray(e[0])&&(z.dataType="array"),T.dataSource=e,D.data=e,D.dataType=z.dataType,D.colToProp=T.colToProp.bind(T),D.propToCol=T.propToCol.bind(T),function(){w.cellSettings.length=0}(),N.adjustRowsAndCols(),z.runHooks("afterLoadData",w.firstRun),w.firstRun?w.firstRun=[null,"loadData"]:(z.runHooks("afterChange",null,"loadData"),z.render()),w.isPopulated=!0},this.getData=function(e,t,n,o){return(0,f.isUndefined)(e)?T.getAll():T.getRange(new L.CellCoords(e,t),new L.CellCoords(n,o),T.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return T.getCopyableText(new L.CellCoords(e,t),new L.CellCoords(n,o))},this.getCopyableData=function(e,t){return T.getCopyable(e,T.colToProp(t))},this.getSchema=function(){return T.getSchema()},this.updateSettings=function(e,t){var n=!1,o=void 0,i=void 0,r=void 0;if((0,f.isDefined)(e.rows))throw Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,f.isDefined)(e.cols))throw Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(o in e)"data"!==o&&(j.default.getSingleton().getRegistered().indexOf(o)>-1?((0,d.isFunction)(e[o])||Array.isArray(e[o]))&&(e[o].initialHook=!0,z.addHook(o,e[o])):!t&&(0,b.hasOwnProperty)(e,o)&&(U.prototype[o]=e[o]));void 0===e.data&&void 0===w.settings.data?z.loadData(null):void 0!==e.data?z.loadData(e.data):void 0!==e.columns&&T.createMap(),r=z.countCols();var s=e.columns||U.prototype.columns;if(s&&(0,d.isFunction)(s)&&(r=z.countSourceCols(),n=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(w.cellSettings.length=0),r>0){var a=void 0,l=void 0;for(o=0,i=0;r>o;o++)n&&!s(o)||(w.columnSettings[i]=(0,h.columnFactory)(U,w.columnsSettingConflicts),a=w.columnSettings[i].prototype,s&&(l=n?s(o):s[i])&&((0,b.extend)(a,l),(0,b.extend)(a,g(l))),i++)}if((0,f.isDefined)(e.cell))for(var u in e.cell)if((0,b.hasOwnProperty)(e.cell,u)){var p=e.cell[u];z.setCellMetaObject(p.row,p.col,p)}z.runHooks("afterCellMetaReset"),(0,f.isDefined)(e.className)&&(U.prototype.className&&(0,c.removeClass)(z.rootElement,U.prototype.className),e.className&&(0,c.addClass)(z.rootElement,e.className));var m=z.rootElement.style.height;""!==m&&(m=parseInt(z.rootElement.style.height,10));var v=e.height;if((0,d.isFunction)(v)&&(v=v()),t){z.rootElement.getAttribute("style")&&z.rootElement.setAttribute("data-initialstyle",z.rootElement.getAttribute("style"))}if(null===v){var y=z.rootElement.getAttribute("data-initialstyle");y&&(y.indexOf("height")>-1||y.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",y):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==v&&(z.rootElement.style.height=v+"px",z.rootElement.style.overflow="hidden");if(void 0!==e.width){var C=e.width;(0,d.isFunction)(C)&&(C=C()),z.rootElement.style.width=C+"px"}t||(T.clearLengthCache(),z.view&&z.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.runHooks("afterUpdateSettings",e)),N.adjustRowsAndCols(),z.view&&!w.firstRun&&(z.forceFullRender=!0,I.refreshBorders(null,!0)),t||!z.view||""!==m&&""!==v&&void 0!==v||m===v||z.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=z.getSelected();if(U.prototype.getValue){if((0,d.isFunction)(U.prototype.getValue))return U.prototype.getValue.call(z);if(e)return z.getData()[e[0]][U.prototype.getValue]}else if(e)return z.getDataAtCell(e[0],e[1])},this.getSettings=function(){return w.settings},this.clear=function(){I.selectAll(),I.empty()},this.alter=function(e,t,n,o,i){N.alter(e,t,n,o,i)},this.getCell=function(e,t,n){return z.view.getCellAtCoords(new L.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return T.colToProp(e)},this.propToCol=function(e){return T.propToCol(e)},this.toVisualRow=function(e){return K.toVisualRow(e)},this.toVisualColumn=function(e){return K.toVisualColumn(e)},this.toPhysicalRow=function(e){return K.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return K.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return T.get(e,T.colToProp(t))},this.getDataAtRowProp=function(e,t){return T.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,i(T.getRange(new L.CellCoords(0,e),new L.CellCoords(w.settings.data.length-1,e),T.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=[];return t=T.getRange(new L.CellCoords(0,T.propToCol(e)),new L.CellCoords(w.settings.data.length-1,T.propToCol(e)),T.DESTINATION_RENDERER),n.concat.apply(n,i(t))},this.getSourceData=function(e,t,n,o){return void 0===e?D.getData():D.getByRange(new L.CellCoords(e,t),new L.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?D.getData(!0):D.getByRange(new L.CellCoords(e,t),new L.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return D.getAtColumn(e)},this.getSourceDataAtRow=function(e){return D.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return D.getAtCell(e,t)},this.getDataAtRow=function(e){return T.getRange(new L.CellCoords(e,0),new L.CellCoords(e,this.countCols()-1),T.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var i=this,r=null,s=null;void 0===e&&(e=0,n=this.countRows(),t=0,o=this.countCols()),void 0===n&&(n=e),void 0===o&&(o=t);var a="mixed";return(0,E.rangeEach)(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return(0,E.rangeEach)(Math.min(t,o),Math.max(t,o),function(t){var o=i.getCellMeta(e,t);return s=o.type,r?n=r===s:r=s,n}),a=n?s:"mixed",n}),a},this.removeCellMeta=function(e,t,n){var o=K.toPhysical(e,t),i=s(o,2),r=i[0],a=i[1],l=w.cellSettings[r][a][n];!1!==z.runHooks("beforeRemoveCellMeta",e,t,n,l)&&(delete w.cellSettings[r][a][n],z.runHooks("afterRemoveCellMeta",e,t,n,l)),l=null},this.spliceCellsMeta=function(e,t){for(var n,o=arguments.length,i=Array(o>2?o-2:0),r=2;o>r;r++)i[r-2]=arguments[r];(n=w.cellSettings).splice.apply(n,[e,t].concat(i))},this.setCellMetaObject=function(e,t,n){if("object"===(void 0===n?"undefined":a(n)))for(var o in n)if((0,b.hasOwnProperty)(n,o)){var i=n[o];this.setCellMeta(e,t,o,i)}},this.setCellMeta=function(e,t,n,o){var i=K.toPhysical(e,t),r=s(i,2),a=r[0],l=r[1];w.columnSettings[l]||(w.columnSettings[l]=(0,h.columnFactory)(U,w.columnsSettingConflicts)),w.cellSettings[a]||(w.cellSettings[a]=[]),w.cellSettings[a][l]||(w.cellSettings[a][l]=new w.columnSettings[l]),w.cellSettings[a][l][n]=o,z.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return(0,_.arrayFlatten)(w.cellSettings)},this.getCellMeta=function(e,t){var n=T.colToProp(t),o=void 0,i=K.toPhysical(e,t),r=s(i,2),a=r[0],l=r[1];if(w.columnSettings[l]||(w.columnSettings[l]=(0,h.columnFactory)(U,w.columnsSettingConflicts)),w.cellSettings[a]||(w.cellSettings[a]=[]),w.cellSettings[a][l]||(w.cellSettings[a][l]=new w.columnSettings[l]),o=w.cellSettings[a][l],o.row=a,o.col=l,o.visualRow=e,o.visualCol=t,o.prop=n,o.instance=z,z.runHooks("beforeGetCellMeta",e,t,o),(0,b.extend)(o,g(o)),o.cells){var u=o.cells.call(o,a,l,n);u&&((0,b.extend)(o,u),(0,b.extend)(o,g(u)))}return z.runHooks("afterGetCellMeta",e,t,o),o},this.getCellMetaAtRow=function(e){return w.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===z.dataType||z.getSettings().columns)};var X=(0,H.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,k.getRenderer)(X.call(this,e,t))},this.getCellEditor=(0,H.cellMethodLookupFactory)("editor");var q=(0,H.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=q.call(this,e,t);return"string"==typeof n&&(n=(0,O.getValidator)(n)),n},this.validateCells=function(e){var t=new n;e&&(t.onQueueEmpty=e);for(var o=z.countRows()-1;o>=0;){for(var i=z.countCols()-1;i>=0;)t.addValidatorToQueue(),z.validateCell(z.getDataAtCell(o,i),z.getCellMeta(o,i),function(e){if("boolean"!=typeof e)throw Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),i--;o--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=w.settings.rowHeaders;return void 0!==e&&(e=z.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,E.rangeEach)(z.countRows()-1,function(e){t.push(z.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:(0,d.isFunction)(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!w.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==w.settings.colHeaders&&null!==w.settings.colHeaders)return!!w.settings.colHeaders;for(var e=0,t=z.countCols();t>e;e++)if(z.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=w.settings.columns&&(0,d.isFunction)(w.settings.columns),n=w.settings.colHeaders;if(void 0===(e=z.runHooks("modifyColHeader",e))){for(var o=[],i=t?z.countSourceCols():z.countCols(),r=0;i>r;r++)o.push(z.getColHeader(r));n=o}else{var s=e;e=z.runHooks("modifyCol",e);var a=function(e){for(var t=[],n=z.countSourceCols(),o=0;n>o;o++)(0,d.isFunction)(z.getSettings().columns)&&z.getSettings().columns(o)&&t.push(o);return t[e]}(e);w.settings.columns&&(0,d.isFunction)(w.settings.columns)&&w.settings.columns(a)&&w.settings.columns(a).title?n=w.settings.columns(a).title:w.settings.columns&&w.settings.columns[e]&&w.settings.columns[e].title?n=w.settings.columns[e].title:Array.isArray(w.settings.colHeaders)&&void 0!==w.settings.colHeaders[e]?n=w.settings.colHeaders[e]:(0,d.isFunction)(w.settings.colHeaders)?n=w.settings.colHeaders(e):w.settings.colHeaders&&"string"!=typeof w.settings.colHeaders&&"number"!=typeof w.settings.colHeaders&&(n=(0,H.spreadsheetColumnLabel)(s))}return n},this._getColWidthFromSettings=function(e){var t=z.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==w.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(void 0===n?"undefined":a(n)){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=z._getColWidthFromSettings(e);return t=z.runHooks("modifyColWidth",t,e),void 0===t&&(t=L.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=w.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":a(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=z._getRowHeightFromSettings(e);return t=z.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return z.runHooks("modifySourceLength")||(z.getSourceData()?z.getSourceData().length:0)},this.countSourceCols=function(){var e=z.getSourceData()&&z.getSourceData()[0]?z.getSourceData()[0]:[];return(0,b.isObject)(e)?(0,b.deepObjectSize)(e):e.length||0},this.countRows=function(){return T.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,n=0;if("array"===z.dataType&&(t=w.settings.data&&w.settings.data[0]&&w.settings.data[0].length),t&&(n=w.settings.data[0].length),w.settings.columns){if((0,d.isFunction)(w.settings.columns))if("array"===z.dataType){for(var o=0,i=0;n>i;i++)w.settings.columns(i)&&o++;n=o}else"object"!==z.dataType&&"function"!==z.dataType||(n=T.colToPropCache.length);else n=w.settings.columns.length}else"object"!==z.dataType&&"function"!==z.dataType||(n=T.colToPropCache.length);return Math.min(e,n)},this.rowOffset=function(){return z.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return z.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return z.view.wt.drawn?z.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return z.view.wt.drawn?z.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return z.view.wt.drawn?z.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return z.view.wt.drawn?z.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,n=z.countRows()-1,o=0;n>=0;){if(t=z.runHooks("modifyRow",n),z.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(1>z.countRows())return 0;for(var t=z.countCols()-1,n=0;t>=0;){if(z.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return w.settings.isEmptyRow.call(z,e)},this.isEmptyCol=function(e){return w.settings.isEmptyCol.call(z,e)},this.selectCell=function(e,t,n,o,i,r){var s;if(r=(0,f.isUndefined)(r)||!0===r,"number"!=typeof e||0>e||e>=z.countRows())return!1;if("number"!=typeof t||0>t||t>=z.countCols())return!1;if((0,f.isDefined)(n)){if("number"!=typeof n||0>n||n>=z.countRows())return!1;if("number"!=typeof o||0>o||o>=z.countCols())return!1}return s=new L.CellCoords(e,t),w.selRange=new L.CellRange(s,s,s),r&&z.listen(),(0,f.isUndefined)(n)?I.setRangeEnd(w.selRange.from,i):I.setRangeEnd(new L.CellCoords(n,o),i),z.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,i){var r;return arguments[1]=T.propToCol(arguments[1]),(0,f.isDefined)(arguments[3])&&(arguments[3]=T.propToCol(arguments[3])),(r=z).selectCell.apply(r,arguments)},this.deselectCell=function(){I.deselect()},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(0>e||e>=z.countRows()))return!1;if(void 0!==t&&(0>t||t>=z.countCols()))return!1;var i=!1;return void 0!==e&&void 0!==t&&(z.view.wt.wtOverlays.topOverlay.scrollTo(e,n),z.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),i=!0),"number"==typeof e&&"number"!=typeof t&&(z.view.wt.wtOverlays.topOverlay.scrollTo(e,n),i=!0),"number"==typeof t&&"number"!=typeof e&&(z.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),i=!0),i},this.destroy=function(){z._clearTimeouts(),z.view&&z.view.destroy(),D&&D.destroy(),D=null;var e=z.rootElement.nextSibling;(0,A.isRootInstance)(z)&&e&&z.rootElement.parentNode.removeChild(e),(0,c.empty)(z.rootElement),G.destroy(),z.runHooks("afterDestroy"),j.default.getSingleton().destroy(z);for(var t in z)(0,b.hasOwnProperty)(z,t)&&((0,d.isFunction)(z[t])?z[t]=v:"guid"!==t&&(z[t]=null));T&&T.destroy(),T=null,w=null,N=null,I=null,Y=null,z=null,U=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getPlugin=function(e){return(0,S.getPlugin)(this,e)},this.getInstance=function(){return z},this.addHook=function(e,t){j.default.getSingleton().add(e,t,z)},this.hasHook=function(e){return j.default.getSingleton().has(e,z)},this.addHookOnce=function(e,t){j.default.getSingleton().once(e,t,z)},this.removeHook=function(e,t){j.default.getSingleton().remove(e,t,z)},this.runHooks=function(e,t,n,o,i,r,s){return j.default.getSingleton().run(z,e,t,n,o,i,r,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;t>e;e++)clearTimeout(this.timeouts[e])},j.default.getSingleton().run(z,"construct")}t.__esModule=!0;var s=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="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};t.default=r;var l=n(51),u=o(l),c=n(0),h=n(66),d=n(35),f=n(20),p=n(25),g=n(416),m=o(g),v=n(418),y=o(v),w=n(4),C=o(w),b=n(1),_=n(2),S=n(5),k=n(9),O=n(26),R=n(27),E=n(6),T=n(488),M=o(T),D=n(417),P=o(D),H=n(65),x=n(369),A=n(90),L=n(11),N=n(8),j=o(N),I=n(88),W=o(I),F=n(63),V=null},function(e,t,n){"use strict";function o(e){for(var t=e+1,n="",o=void 0;t>0;)o=(t-1)%f,n=String.fromCharCode(65+o)+n,t=parseInt((t-o)/f,10);return n}function i(e){var t=0;if(e)for(var n=0,o=e.length-1;e.length>n;n+=1,o-=1)t+=Math.pow(f,o)*(d.indexOf(e[n])+1);return--t}function r(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;n>e;e++){var s=[];for(t=0;i>t;t++)s.push(o(t)+(e+1));r.push(s)}return r}function s(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;n>e;e++){var s={};for(t=0;i>t;t++)s["prop"+t]=o(t)+(e+1);r.push(s)}return r}function a(e,t){for(var n=[],o=void 0,i=0;e>i;i++){o=[];for(var r=0;t>r;r++)o.push("");n.push(o)}return n}function l(e){var t,n,o,i,r=[],s=0;for(t=0,n=e.length;n>t;t++)for(o=0,i=e[t].length;i>o;o++)o==s&&(r.push([]),s++),r[o].push(e[t][o]);return r}function u(e,t){return t=void 0===t||t,function(n,o){return function n(o){if(o){if((0,h.hasOwnProperty)(o,e)&&void 0!==o[e])return o[e];if((0,h.hasOwnProperty)(o,"type")&&o.type){var i;if("string"!=typeof o.type)throw Error("Cell type must be a string ");if(i=(0,c.getCellType)(o.type),(0,h.hasOwnProperty)(i,e))return i[e];if(t)return}return n(Object.getPrototypeOf(o))}}("number"==typeof n?this.getCellMeta(n,o):n)}}t.__esModule=!0,t.spreadsheetColumnLabel=o,t.spreadsheetColumnIndex=i,t.createSpreadsheetData=r,t.createSpreadsheetObjectData=s,t.createEmptySpreadsheetData=a,t.translateRowsToColumns=l,t.cellMethodLookupFactory=u;var c=n(63),h=n(1),d="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=d.length},function(e,t,n){"use strict";function o(e,t){function n(){}(0,i.inherit)(n,e);for(var o=0,r=t.length;r>o;o++)n.prototype[t[o]]=void 0;return n}t.__esModule=!0,t.columnFactory=o;var i=n(1)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(2);t.default=function(){function e(t){o(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return i(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,function(t){e(t.row,(0,r.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,function(t){e(t.col,(0,r.outerWidth)(t.table))})}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=document,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){(0,s.arrayEach)(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n}},{key:"createRow",value:function(e){var t=this,n=document,o=n.createDocumentFragment(),i=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(function(i){(0,s.arrayEach)(i.strings,function(i){var r=i.col,s=t.hot.getCellMeta(e,r);s.col=r,s.row=e;var a=t.hot.getCellRenderer(s),l=n.createElement("td");a(t.hot,l,e,r,t.hot.colToProp(r),i.value,s),o.appendChild(l)})}),o}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){(0,s.arrayEach)(o.strings,function(o){var i=o.col,r=t.createElement("th");e.hot.view.appendColHeader(i,r),n.appendChild(r)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(i){(0,s.arrayEach)(i.strings,function(i){var r=i.row,s=t.hot.getCellMeta(r,e);s.col=e,s.row=r;var a=t.hot.getCellRenderer(s),l=n.createElement("td"),u=n.createElement("tr");a(t.hot,l,r,e,t.hot.colToProp(e),i.value,s),u.appendChild(l),o.appendChild(u)})}),o}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=document,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),i=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&o.appendChild(a),this.isHorizontal()&&(l.appendChild(u),i.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(i),this.isVertical()&&s.appendChild(l),o.appendChild(s),(0,r.addClass)(o,e),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:s,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,r.addClass)(o,e),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}()},function(e,t,n){"use strict";var o=n(37),i=n(383),r=n(46),s=n(23);e.exports=n(382)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]]):(this._t=void 0,i(1))},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(43),s=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(t,n,i){o(this,e),this.highlight=t,this.from=n,this.to=i}return i(e,[{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),i=this.getBottomRightCorner();return!(o.row>t||t>i.row||o.col>n||n>i.col)}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)==Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.row>e.row||t.col>e.col||e.row>n.row||e.col>n.col)&&(this.from=new s.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new s.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),i=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),r=t.getBottomRightCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),u=Math.max(o.row,r.row),c=Math.max(o.col,r.col),h=new s.default(a,l),d=new s.default(u,c),f=new e(h,h,d).isCorner(this.from,t),p=t.isEqual(new e(h,h,d));return f&&!p&&(this.from.col>h.col&&(h.col=c,d.col=l),this.from.row>h.row&&(h.row=u,d.row=a)),this.from=h,this.to=d,!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var i=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=i[0],this.to=i[1]}}},{key:"getTopLeftCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new s.default(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof s.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new s.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},o=[];return t.top==n.top&&o.push("top"),t.right==n.right&&o.push("right"),t.bottom==n.bottom&&o.push("bottom"),t.left==n.left&&o.push("left"),o}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var i=e.col;t.col>=i;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new s.default(o,i));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var i=e.col;t.col>=i;i++)n.push(e.row===o&&e.col===i?e:t.row===o&&t.col===i?t:new s.default(o,i));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;n.row>=o;o++)for(var i=t.col;n.col>=i;i++){var r=e(o,i);if(!1===r)return}}}]),e}()},function(e,t,n){"use strict";t.__esModule=!0;var o=n(2),i=n(1),r={_localHooks:Object.create(null),addLocalHook:function(e,t){this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t)},runLocalHooks:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;n>r;r++)i[r-1]=arguments[r];this._localHooks[e]&&(0,o.arrayEach)(this._localHooks[e],function(e){return e.apply(t,i)})},clearLocalHooks:function(){this._localHooks={}}};(0,i.defineGetter)(r,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1}),t.default=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){var e={};return(0,C.objectEach)(A,function(t,n){e[n]=t()}),e}function s(e,t){-1===x.indexOf(e)&&(A[e]=t)}t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var a,l=n(442);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(443);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(444);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var h=n(445);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return h.KEY}});var d=n(446);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return d.KEY}});var f=n(447);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return f.KEY}});var p=n(448);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return p.KEY}});var g=n(449);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var m=n(450);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return m.KEY}});var v=n(451);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return v.KEY}});var y=n(72);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var w=n(452);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return w.KEY}}),t.predefinedItems=r,t.addItem=s;var C=n(1),b=o(l),_=o(u),S=o(c),k=o(h),O=o(d),R=o(f),E=o(p),T=o(g),M=o(m),D=o(v),P=o(y),H=o(w),x=t.ITEMS=[m.KEY,v.KEY,c.KEY,h.KEY,u.KEY,g.KEY,p.KEY,w.KEY,f.KEY,d.KEY,l.KEY,y.KEY],A=(a={},i(a,y.KEY,P.default),i(a,m.KEY,M.default),i(a,v.KEY,D.default),i(a,c.KEY,S.default),i(a,h.KEY,k.default),i(a,u.KEY,_.default),i(a,g.KEY,T.default),i(a,p.KEY,E.default),i(a,w.KEY,H.default),i(a,f.KEY,R.default),i(a,d.KEY,O.default),i(a,l.KEY,b.default),a)},function(e,t,n){"use strict";function o(){return{name:i}}t.__esModule=!0,t.default=o;var i=t.KEY="---------"},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var o=n(19),i=n(40);e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var o=n(15),i=n(13).document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(10)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],s=r[o]();s.next=function(){return{done:n=!0}},r[o]=function(){return s},e(r)}catch(e){}return n}},function(e,t,n){var o=n(18),i=n(507),r=n(76),s=n(83)("IE_PROTO"),a=function(){},l=function(){var e,t=n(75)("iframe"),o=r.length;for(t.style.display="none",n(375).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;o--;)delete l.prototype[r[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=o(e),n=new a,a.prototype=null,n[s]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(48),i=n(40),r=n(23),s=n(87),a=n(22),l=n(376),u=Object.getOwnPropertyDescriptor;t.f=n(21)?u:function(e,t){if(e=r(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(a(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(385),i=n(76).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t,n){var o=n(84)("keys"),i=n(50);e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var o=n(13),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var o=n(380),i=n(30);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return i(e)+""}},function(e,t,n){var o,i,r,s=n(29),a=n(503),l=n(375),u=n(75),c=n(13),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},y=function(e){v.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){a("function"==typeof e?e:Function(e),t)},o(g),g},f=function(e){delete m[e]},"process"==n(38)(h)?o=function(e){h.nextTick(s(v,e,1))}:p?(i=new p,r=i.port2,i.port1.onmessage=y,o=s(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):o="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(s(v,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){var o=n(15);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";function o(){}t.__esModule=!0;var i="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},r=n(20),s=n(1);o.prototype={licenseKey:"trial",data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,o,a;for(t=0,n=this.countCols();n>t;t++)if(""!==(o=this.getDataAtCell(e,t))&&null!==o&&(0,r.isDefined)(o))return"object"===(void 0===o?"undefined":i(o))&&(a=this.getCellMeta(e,t),(0,s.isObjectEquals)(this.getSchema()[a.prop],o));return!0},isEmptyCol:function(e){var t,n,o;for(t=0,n=this.countRows();n>t;t++)if(""!==(o=this.getDataAtCell(t,e))&&null!==o&&(0,r.isDefined)(o))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:!1,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,autoComplete:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,sortIndicator:void 0,manualColumnFreeze:void 0,trimWhitespace:!0,settings:void 0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,format:void 0,language:void 0,selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:void 0,correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortFunction:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1},t.default=o},function(e,t,n){"use strict";function o(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}t.__esModule=!0,t.getNormalizedDate=o},function(e,t,n){"use strict";function o(e){s.set(e,!0)}function i(e){return e===a}function r(e){return s.has(e)}t.__esModule=!0,t.registerAsRootInstance=o,t.hasValidParameter=i,t.isRootInstance=r;var s=t.holder=new WeakMap,a=t.rootInstanceSymbol=Symbol("rootInstance")},function(e,t,n){var o=n(3);o(o.P,"Array",{copyWithin:n(496)}),n(37)("copyWithin")},function(e,t,n){var o=n(3);o(o.P,"Array",{fill:n(497)}),n(37)("fill")},function(e,t,n){"use strict";var o=n(3),i=n(54)(6),r="findIndex",s=!0;r in[]&&Array(1)[r](function(){s=!1}),o(o.P+o.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)(r)},function(e,t,n){"use strict";var o=n(3),i=n(54)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),o(o.P+o.F*r,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(e,t,n){"use strict";var o=n(29),i=n(3),r=n(41),s=n(381),a=n(377),l=n(24),u=n(74),c=n(392);i(i.S+i.F*!n(79)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,d=r(e),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(d);if(m&&(g=o(g,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=l(d.length),n=new f(t);t>v;v++)u(n,v,m?g(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(i=h.next()).done;v++)u(n,v,m?s(h,g,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){"use strict";var o=n(3),i=n(74);o(o.S+o.F*n(31)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var o=n(19).f,i=n(40),r=n(22),s=Function.prototype,a=/^\s*function ([^ (]*)/,l=Object.isExtensible||function(){return!0};"name"in s||n(21)&&o(s,"name",{configurable:!0,get:function(){try{var e=this,t=(""+e).match(a)[1];return r(e,"name")||!l(e)||o(e,"name",i(5,t)),t}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(373);e.exports=n(55)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(this,e);return t&&t.v},set:function(e,t){return o.def(this,0===e?0:e,t)}},o,!0)},function(e,t,n){var o=n(3);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var o=n(3),i=n(13).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{isInteger:n(379)})},function(e,t,n){var o=n(3);o(o.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var o=n(3),i=n(379),r=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return i(e)&&9007199254740991>=r(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var o=n(3);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var o=n(3);o(o.S+o.F,"Object",{assign:n(384)})},function(e,t,n){var o=n(3);o(o.S,"Object",{is:n(511)})},function(e,t,n){var o=n(3);o(o.S,"Object",{setPrototypeOf:n(387).set})},function(e,t,n){"use strict";var o,i,r,s=n(58),a=n(13),l=n(29),u=n(372),c=n(3),h=n(15),d=n(73),f=n(53),p=n(57),g=n(512),m=n(86).set,v=n(506)(),y=a.TypeError,w=a.process,C=a.Promise,w=a.process,b="process"==u(w),_=function(){},S=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(_,_)};return(b||"function"==typeof PromiseRejectionEvent)&&e.then(_)instanceof t}catch(e){}}(),k=function(e,t){return e===t||e===C&&t===r},O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},R=function(e){return k(C,e)?new E(e):new i(e)},E=i=function(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw y("Bad Promise constructor");t=e,n=o}),this.resolve=d(t),this.reject=d(n)},T=function(e){try{e()}catch(e){return{error:e}}},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var o=e._v,i=1==e._s,r=0;n.length>r;)!function(t){var n,r,s=i?t.ok:t.fail,a=t.resolve,l=t.reject,u=t.domain;try{s?(i||(2==e._h&&H(e),e._h=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&u.exit()),n===t.promise?l(y("Promise-chain cycle")):(r=O(n))?r.call(n,a,l):a(n)):l(o)}catch(e){l(e)}}(n[r++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){m.call(a,function(){var t,n,o,i=e._v;if(P(e)&&(t=T(function(){b?w.emit("unhandledRejection",i,e):(n=a.onunhandledrejection)?n({promise:e,reason:i}):(o=a.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=b||P(e)?2:1),e._a=void 0,t)throw t.error})},P=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,o=0;n.length>o;)if(t=n[o++],t.fail||!P(t.promise))return!1;return!0},H=function(e){m.call(a,function(){var t;b?w.emit("rejectionHandled",e):(t=a.onrejectionhandled)&&t({promise:e,reason:e._v})})},x=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},A=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw y("Promise can't be resolved itself");(t=O(e))?v(function(){var o={_w:n,_d:!1};try{t.call(e,l(A,o,1),l(x,o,1))}catch(e){x.call(o,e)}}):(n._v=e,n._s=1,M(n,!1))}catch(e){x.call({_w:n,_d:!1},e)}}};S||(C=function(e){f(this,C,"Promise","_h"),d(e),o.call(this);try{e(l(A,this,1),l(x,this,1))}catch(e){x.call(this,e)}},o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n(60)(C.prototype,{then:function(e,t){var n=R(g(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=b?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),E=function(){var e=new o;this.promise=e,this.resolve=l(A,e,1),this.reject=l(x,e,1)}),c(c.G+c.W+c.F*!S,{Promise:C}),n(49)(C,"Promise"),n(388)("Promise"),r=n(45).Promise,c(c.S+c.F*!S,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(s||!S),"Promise",{resolve:function(e){if(e instanceof C&&k(e.constructor,this))return e;var t=R(this);return(0,t.resolve)(e),t.promise}}),c(c.S+c.F*!(S&&n(79)(function(e){C.all(e).catch(_)})),"Promise",{all:function(e){var t=this,n=R(t),o=n.resolve,i=n.reject,r=T(function(){var n=[],r=0,s=1;p(e,!1,function(e){var a=r++,l=!1;n.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,n[a]=e,--s||o(n))},i)}),--s||o(n)});return r&&i(r.error),n.promise},race:function(e){var t=this,n=R(t),o=n.reject,i=T(function(){p(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return i&&o(i.error),n.promise}})},function(e,t,n){n(21)&&"g"!=/./g.flags&&n(19).f(RegExp.prototype,"flags",{configurable:!0,get:n(501)})},function(e,t,n){n(56)("match",1,function(e,t,n){return[function(n){"use strict";var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){n(56)("replace",2,function(e,t,n){return[function(o,i){"use strict";var r=e(this),s=void 0==o?void 0:o[t];return void 0!==s?s.call(o,r,i):n.call(r+"",o,i)},n]})},function(e,t,n){n(56)("search",1,function(e,t,n){return[function(n){"use strict";var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){n(56)("split",2,function(e,t,o){"use strict";var i=n(380),r=o,s=[].push,a="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[a]||2!="ab".split(/(?:ab)*/)[a]||4!=".".split(/(.?)(.?)/)[a]||".".split(/()()/)[a]>1||"".split(/.?/)[a]){var l=void 0===/()??/.exec("")[1];o=function(e,t){var n=this+"";if(void 0===e&&0===t)return[];if(!i(e))return r.call(n,e,t);var o,u,c,h,d,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,m=void 0===t?4294967295:t>>>0,v=RegExp(e.source,p+"g");for(l||(o=RegExp("^"+v.source+"$(?!\\s)",p));(u=v.exec(n))&&((c=u.index+u[0][a])<=g||(f.push(n.slice(g,u.index)),!l&&u[a]>1&&u[0].replace(o,function(){for(d=1;arguments[a]-2>d;d++)void 0===arguments[d]&&(u[d]=void 0)}),u[a]>1&&n[a]>u.index&&s.apply(f,u.slice(1)),h=u[0][a],g=c,m>f[a]));)v.lastIndex===u.index&&v.lastIndex++;return g===n[a]?!h&&v.test("")||f.push(""):f.push(n.slice(g)),f[a]>m?f.slice(0,m):f}}else"0".split(void 0,0)[a]&&(o=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(n,i){var r=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,r,i):o.call(r+"",n,i)},o]})},function(e,t,n){"use strict";var o=n(373);e.exports=n(55)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(this,e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o=n(3),i=n(513)(!1);o(o.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var o=n(3),i=n(24),r=n(85),s="".endsWith;o(o.P+o.F*n(77)("endsWith"),"String",{endsWith:function(e){var t=r(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,o=i(t.length),a=void 0===n?o:Math.min(i(n),o),l=e+"";return s?s.call(t,l,a):t.slice(a-l.length,a)===l}})},function(e,t,n){var o=n(3),i=n(61),r=String.fromCharCode,s=String.fromCodePoint;o(o.S+o.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,s=0;o>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(3),i=n(85);o(o.P+o.F*n(77)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(3),i=n(23),r=n(24);o(o.S,"String",{raw:function(e){for(var t=i(e.raw),n=r(t.length),o=arguments.length,s=[],a=0;n>a;)s.push(t[a++]+""),o>a&&s.push(arguments[a]+"");return s.join("")}})},function(e,t,n){var o=n(3);o(o.P,"String",{repeat:n(390)})},function(e,t,n){"use strict";var o=n(3),i=n(24),r=n(85),s="".startsWith;o(o.P+o.F*n(77)("startsWith"),"String",{startsWith:function(e){var t=r(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=e+"";return s?s.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var o=n(13),i=n(22),r=n(21),s=n(3),a=n(33),l=n(47).KEY,u=n(31),c=n(84),h=n(49),d=n(50),f=n(10),p=n(391),g=n(514),m=n(505),v=n(500),y=n(378),w=n(18),C=n(23),b=n(87),_=n(40),S=n(80),k=n(508),O=n(81),R=n(19),E=n(39),T=O.f,M=R.f,D=k.f,P=o.Symbol,H=o.JSON,x=H&&H.stringify,A=f("_hidden"),L=f("toPrimitive"),N={}.propertyIsEnumerable,j=c("symbol-registry"),I=c("symbols"),W=c("op-symbols"),F=Object.prototype,V="function"==typeof P,Y=o.QObject,B=!Y||!Y.prototype||!Y.prototype.findChild,z=r&&u(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=T(F,t);o&&delete F[t],M(e,t,n),o&&e!==F&&M(F,t,o)}:M,U=function(e){var t=I[e]=S(P.prototype);return t._k=e,t},G=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},K=function(e,t,n){return e===F&&K(W,t,n),w(e),t=b(t,!0),w(n),i(I,t)?(n.enumerable?(i(e,A)&&e[A][t]&&(e[A][t]=!1),n=S(n,{enumerable:_(0,!1)})):(i(e,A)||M(e,A,_(1,{})),e[A][t]=!0),z(e,t,n)):M(e,t,n)},X=function(e,t){w(e);for(var n,o=v(t=C(t)),i=0,r=o.length;r>i;)K(e,n=o[i++],t[n]);return e},q=function(e,t){return void 0===t?S(e):X(S(e),t)},$=function(e){var t=N.call(this,e=b(e,!0));return!(this===F&&i(I,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(I,e)||i(this,A)&&this[A][e])||t)},Z=function(e,t){if(e=C(e),t=b(t,!0),e!==F||!i(I,t)||i(W,t)){var n=T(e,t);return!n||!i(I,t)||i(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=D(C(e)),o=[],r=0;n.length>r;)i(I,t=n[r++])||t==A||t==l||o.push(t);return o},Q=function(e){for(var t,n=e===F,o=D(n?W:C(e)),r=[],s=0;o.length>s;)!i(I,t=o[s++])||n&&!i(F,t)||r.push(I[t]);return r};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(W,n),i(this,A)&&i(this[A],e)&&(this[A][e]=!1),z(this,e,_(1,n))};return r&&B&&z(F,e,{configurable:!0,set:t}),U(e)},a(P.prototype,"toString",function(){return this._k}),O.f=Z,R.f=K,n(82).f=k.f=J,n(48).f=$,n(59).f=Q,r&&!n(58)&&a(F,"propertyIsEnumerable",$,!0),p.f=function(e){return U(f(e))}),s(s.G+s.W+s.F*!V,{Symbol:P});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)f(ee[te++]);for(var ee=E(f.store),te=0;ee.length>te;)g(ee[te++]);s(s.S+s.F*!V,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=P(e)},keyFor:function(e){if(G(e))return m(j,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!V,"Object",{create:q,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),H&&s(s.S+s.F*(!V||u(function(){var e=P();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);return t=o[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!G(t))return t}),o[1]=t,x.apply(H,o)}}}),P.prototype[L]||n(32)(P.prototype,L,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var o,i=n(54)(0),r=n(33),s=n(47),a=n(384),l=n(374),u=n(15),c=s.getWeak,h=Object.isExtensible,d=l.ufstore,f={},p=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(e){if(u(e)){var t=c(e);return!0===t?d(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(this,e,t)}},m=e.exports=n(55)("WeakMap",p,g,l,!0,!0);7!=(new m).set((Object.freeze||Object)(f),7).get(f)&&(o=l.getConstructor(p),a(o.prototype,g),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];r(t,e,function(t,i){if(u(t)&&!h(t)){this._f||(this._f=new o);var r=this._f[e](t,i);return"set"==e?this:r}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var o=n(374);n(55)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(this,e,!0)}},o,!1,!0)},function(e,t,n){"use strict";var o=n(3),i=n(371)(!0);o(o.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(e,t,n){var o=n(3),i=n(386)(!0);o(o.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var o=n(3),i=n(510),r=n(23),s=n(81),a=n(74);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n=r(e),o=s.f,l=i(n),u={},c=0;l.length>c;)a(u,t=l[c++],o(n,t));return u}})},function(e,t,n){var o=n(3),i=n(386)(!1);o(o.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){"use strict";var o=n(3),i=n(389);o(o.P,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var o=n(3),i=n(389);o(o.P,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){for(var o=n(68),i=n(33),r=n(13),s=n(32),a=n(46),l=n(10),u=l("iterator"),c=l("toStringTag"),h=a.Array,d=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;5>f;f++){var p,g=d[f],m=r[g],v=m&&m.prototype;if(v){v[u]||s(v,u,h),v[c]||s(v,c,g),a[g]=h;for(p in o)v[p]||i(v,p,o[p],!0)}}},function(e,t,n){var o=n(3),i=n(86);o(o.G+o.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";!function(e){function n(e){return e.split('"').length-1}var o={parse:function(e){var t,o,i,r,s,a,l,u=[],c=0;for(i=e.split("\n"),i.length>1&&""===i[i.length-1]&&i.pop(),t=0,o=i.length;o>t;t+=1){for(i[t]=i[t].split("\t"),r=0,s=i[t].length;s>r;r+=1)u[c]||(u[c]=[]),a&&0===r?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+i[t][0],a&&1&n(i[t][0])&&(a=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):r===s-1&&0===i[t][r].indexOf('"')&&1&n(i[t][r])?(u[c].push(i[t][r].substring(1).replace(/""/g,'"')),a=!0):(u[c].push(i[t][r].replace(/""/g,'"')),a=!1);a||(c+=1)}return u},stringify:function(e){var t,n,o,i,r,s="";for(t=0,n=e.length;n>t;t+=1){for(i=e[t].length,o=0;i>o;o+=1)o>0&&(s+="\t"),r=e[t][o],"string"==typeof r?r.indexOf("\n")>-1?s+='"'+r.replace(/"/g,'""')+'"':s+=r:s+=null===r||void 0===r?"":r;t!==n-1&&(s+="\n")}return s}};t.parse=o.parse,t.stringify=o.stringify}(window)},function(e,t,n){"use strict";var o,i="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},r=function(e,t){function n(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=Error;!function(e){function t(e,n){switch(void 0===e?"undefined":i(e)){case"undefined":case"boolean":case"string":case"number":return e===n;case"object":if(null===e)return null===n;if(E(e)){if(!E(n)||e.length!==n.length)return!1;for(var o=0,r=e.length;r>o;o++)if(!t(e[o],n[o]))return!1;return!0}var s=C(n),a=s.length;if(C(e).length!==a)return!1;for(var o=0;a>o;o++)if(!t(e[o],n[o]))return!1;return!0;default:return!1}}function n(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){for(var t=0,n=k.length;n>t;t++)if(k[t].obj===e)return k[t]}function a(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].callback===t)return e.observers[n].observer}function l(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}function u(e,t){t.unobserve()}function c(e){return"object"===(void 0===e?"undefined":i(e))?JSON.parse(JSON.stringify(e)):e}function h(e,t){var n,i=[],r=o(e);if(r?n=a(r,t):(r=new O(e),k.push(r)),n)return n;if(n={},r.value=c(e),t){n.callback=t,n.next=null;var u=this.intervals||[100,1e3,1e4,6e4];if(void 0===u.push)throw new s("jsonpatch.intervals must be an array");var h=0,f=function(){d(n)},p=function(){clearTimeout(n.next),n.next=setTimeout(function(){f(),h=0,n.next=setTimeout(g,u[h++])},0)},g=function e(){f(),h==u.length&&(h=u.length-1),n.next=setTimeout(e,u[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",p),window.addEventListener("mouseup",p),window.addEventListener("keydown",p)):(document.documentElement.attachEvent("onmousedown",p),document.documentElement.attachEvent("onmouseup",p),document.documentElement.attachEvent("onkeydown",p))),n.next=setTimeout(g,u[h++])}return n.patches=i,n.object=e,n.unobserve=function(){d(n),clearTimeout(n.next),l(r,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",p),window.removeEventListener("keydown",p)):(document.documentElement.detachEvent("onmousedown",p),document.documentElement.detachEvent("onmouseup",p),document.documentElement.detachEvent("onkeydown",p)))},r.observers.push(new R(t,n)),n}function d(e){for(var t,n=0,o=k.length;o>n;n++)if(k[n].obj===e.object){t=k[n];break}f(t.value,e.object,e.patches,""),e.patches.length&&g(t.value,e.patches);var i=e.patches;return i.length>0&&(e.patches=[],e.callback&&e.callback(i)),i}function f(e,t,o,r){for(var s=C(t),a=C(e),l=!1,u=a.length-1;u>=0;u--){var h=a[u],d=e[h];if(t.hasOwnProperty(h)){var p=t[h];"object"==(void 0===d?"undefined":i(d))&&null!=d&&"object"==(void 0===p?"undefined":i(p))&&null!=p?f(d,p,o,r+"/"+n(h)):d!=p&&(!0,o.push({op:"replace",path:r+"/"+n(h),value:c(p)}))}else o.push({op:"remove",path:r+"/"+n(h)}),l=!0}if(l||s.length!=a.length)for(var u=0;s.length>u;u++){var h=s[u];e.hasOwnProperty(h)||o.push({op:"add",path:r+"/"+n(h),value:c(t[h])})}}function p(e){for(var t,n=0,o=e.length;o>n;){t=e.charCodeAt(n);{if(48>t||t>57)return!1;n++}}return!0}function g(e,t,n){for(var o,i,r=!1,s=0,a=t.length;a>s;){o=t[s],s++;for(var l=o.path||"",u=l.split("/"),c=e,h=1,d=u.length,f=void 0;;){if(i=u[h],n&&void 0===f&&(void 0===c[i]?f=u.slice(0,h).join("/"):h==d-1&&(f=o.path),void 0!==f&&this.validator(o,s-1,e,f)),h++,void 0===i&&h>=d){r=S[o.op].call(o,c,i,e);break}if(E(c)){if("-"===i)i=c.length;else{if(n&&!p(i))throw new T("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s-1,o.path,o);i=parseInt(i,10)}if(h>=d){if(n&&"add"===o.op&&i>c.length)throw new T("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s-1,o.path,o);r=_[o.op].call(o,c,i,e);break}}else if(i&&-1!=i.indexOf("~")&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),h>=d){r=b[o.op].call(o,c,i,e);break}c=c[i]}}return r}function m(e,t){var n=[];return f(e,t,n,""),n}function v(e){if(void 0===e)return!0;if("array"==typeof e||"object"==(void 0===e?"undefined":i(e)))for(var t in e)if(v(e[t]))return!0;return!1}function y(t,n,o,r){if("object"!==(void 0===t?"undefined":i(t))||null===t||E(t))throw new T("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!b[t.op])throw new T("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!=typeof t.path)throw new T("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new T("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new T("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&v(t.value))throw new T("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var s=t.path.split("/").length,a=r.split("/").length;if(s!==a+1&&s!==a)throw new T("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==r)throw new T("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var l={op:"_get",path:t.from,value:void 0},u=e.validate([l],o);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new T("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function w(e,t){try{if(!E(e))throw new T("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),g.call(this,t,e,!0);else for(var n=0;e.length>n;n++)this.validator(e[n],n)}catch(e){if(e instanceof T)return e;throw e}}var C=function(e){if(E(e)){for(var t=Array(e.length),n=0;t.length>n;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t},b={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"remove",path:this.from}]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return t(e[n],this.value)},_get:function(e,t){this.value=e[t]}},_={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:b.move,copy:b.copy,test:b.test,_get:b._get},S={add:function(e){S.remove.call(this,e);for(var t in this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&b.remove.call(this,e,t);return!0},replace:function(e){return g(e,[{op:"remove",path:this.path}]),g(e,[{op:"add",path:this.path,value:this.value}]),!0},move:b.move,copy:b.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},k=[],O=function(){function e(e){this.observers=[],this.obj=e}return e}(),R=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=u,e.observe=h,e.generate=d;var E;E=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=g,e.compare=m;var T=function(e){function t(t,n,o,i,r){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=i,this.tree=r}return r(t,e),t}(s);e.JsonPatchError=T,e.Error=T,e.validator=y,e.validate=w}(o||(o={})),t.apply=o.apply,t.observe=o.observe,t.unobserve=o.unobserve,t.generate=o.generate,t.compare=o.compare,t.validate=o.validate,t.validator=o.validator,t.JsonPatchError=o.JsonPatchError,t.Error=o.Error},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(7),l=n(1),u=n(25),c=n(4),h=o(c),d=n(43),f=o(d),p=n(28);o(p);t.default=function(){function e(t,n){i(this,e),n&&(this.eventManager=new h.default(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"5px",height:"5px",borderWidth:"2px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return r(e,[{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=0,n=this.main.childNodes.length;n>t;t++)!function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",function(n){return e.onMouseEnter(n,e.main.childNodes[t])})}(t)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){function n(e){return e.clientY<Math.floor(r.top)||(e.clientY>Math.ceil(r.top+r.height)||(e.clientX<Math.floor(r.left)||(e.clientX>Math.ceil(r.left+r.width)||void 0)))}function o(e){n(e)&&(i.eventManager.removeEventListener(document.body,"mousemove",o),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,a.stopImmediatePropagation)(e);var i=this,r=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}}},{key:"createBorders",value:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;5>o;o++){var i=t[o],r=document.createElement("div");r.className="wtBorder "+(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(r.className+=" hidden"),n=r.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",n.width=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",this.main.appendChild(r)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,u.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)}},{key:"createMultipleSelectorHandles",value:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var e={position:"absolute",height:"40px",width:"40px","border-radius":parseInt(40/1.5,10)+"px"};for(var t in e)(0,l.hasOwnProperty)(e,t)&&(this.selectionHandles.styles.bottomRightHitArea[t]=e[t],this.selectionHandles.styles.topLeftHitArea[t]=e[t]);var n={position:"absolute",height:"10px",width:"10px","border-radius":parseInt(10/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var o in n)(0,l.hasOwnProperty)(n,o)&&(this.selectionHandles.styles.bottomRight[o]=n[o],this.selectionHandles.styles.topLeft[o]=n[o]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){return!(!this.wot.selections.area.cellRange||e==this.wot.selections.area.cellRange.to.row&&t==this.wot.selections.area.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,o,i,r){var s=parseInt(this.selectionHandles.styles.topLeft.width,10),a=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-s,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-s,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-a/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-a/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+i,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+r-a/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+i-a/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e==this.wot.wtSettings.getSetting("fixedRowsTop")||t==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){var t,n,o,i,r,a,l,c,h,d,p,g,m,v,y,w,C,b;b=this.wot.wtTable.getRenderedRowsCount();for(var _=0;b>_;_++){var S=this.wot.wtTable.rowFilter.renderedToSource(_);if(S>=e[0]&&e[2]>=S){m=S;break}}for(var k=b-1;k>=0;k--){var O=this.wot.wtTable.rowFilter.renderedToSource(k);if(O>=e[0]&&e[2]>=O){y=O;break}}b=this.wot.wtTable.getRenderedColumnsCount();for(var R=0;b>R;R++){var E=this.wot.wtTable.columnFilter.renderedToSource(R);if(E>=e[1]&&e[3]>=E){v=E;break}}for(var T=b-1;T>=0;T--){var M=this.wot.wtTable.columnFilter.renderedToSource(T);if(M>=e[1]&&e[3]>=M){w=M;break}}if(void 0===m||void 0===v)return void this.disappear();t=m!==y||v!==w,n=this.wot.wtTable.getCell(new f.default(m,v)),o=t?this.wot.wtTable.getCell(new f.default(y,w)):n,i=(0,s.offset)(n),r=t?(0,s.offset)(o):i,a=(0,s.offset)(this.wot.wtTable.TABLE),c=i.top,p=r.top+(0,s.outerHeight)(o)-c,d=i.left,g=r.left+(0,s.outerWidth)(o)-d,l=c-a.top-1,h=d-a.left-1;var D=(0,s.getComputedStyle)(n);parseInt(D.borderTopWidth,10)>0&&(l+=1,p=p>0?p-1:0),parseInt(D.borderLeftWidth,10)>0&&(h+=1,g=g>0?g-1:0),this.topStyle.top=l+"px",this.topStyle.left=h+"px",this.topStyle.width=g+"px",this.topStyle.display="block",this.leftStyle.top=l+"px",this.leftStyle.left=h+"px",this.leftStyle.height=p+"px",this.leftStyle.display="block";var P=Math.floor(this.settings.border.width/2);this.bottomStyle.top=l+p-P+"px",this.bottomStyle.left=h+"px",this.bottomStyle.width=g+"px",this.bottomStyle.display="block",this.rightStyle.top=l+"px",this.rightStyle.left=h+g-P+"px",this.rightStyle.height=p+1+"px",this.rightStyle.display="block",(0,u.isMobileBrowser)()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(y,w)?this.cornerStyle.display="none":(this.cornerStyle.top=l+p-4+"px",this.cornerStyle.left=h+g-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none",C=(0,s.getTrimmingContainer)(this.wot.wtTable.TABLE),w===this.wot.getSetting("totalColumns")-1&&o.offsetLeft+(0,s.outerWidth)(o)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(C)&&(this.cornerStyle.left=Math.floor(h+g-3-parseInt(this.cornerDefaultStyle.width,10)/2)+"px",this.cornerStyle.borderRightWidth=0),y===this.wot.getSetting("totalRows")-1&&o.offsetTop+(0,s.outerHeight)(o)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(C)&&(this.cornerStyle.top=Math.floor(l+p-3-parseInt(this.cornerDefaultStyle.height,10)/2)+"px",this.cornerStyle.borderBottomWidth=0),this.cornerStyle.display="block"),(0,u.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(m,v,l,h,g,p)}}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,u.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"hasSetting",value:function(e){return"function"==typeof e?e():!!e}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=new WeakMap;t.default=function(){function e(t,n,i,s,a,l,u){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:function(e){return e};o(this,e),r.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:i,columnWidthFn:s,overrideFn:a,onlyFullyVisible:l,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=u,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return i(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),i(e,[{key:"calculate",value:function(){for(var e=0,t=!0,n=[],o=void 0,i=r.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.scrollOffset,u=i.totalColumns,c=i.viewportWidth,h=0;u>h;h++){o=this._getColumnWidth(h),e>l||s||(this.startColumn=h);var d=l>0?c+1:c;if(l>e||e+o>l+d||(null==this.startColumn&&(this.startColumn=h),this.endColumn=h),n.push(e),e+=o,s||(this.endColumn=h),e>=l+c){t=!1;break}}if(this.endColumn===u-1&&t)for(this.startColumn=this.endColumn;this.startColumn>0;){var f=n[this.endColumn]+o-n[this.startColumn-1];if(f>c&&s||this.startColumn--,f>c)break}null!==this.startColumn&&a&&a(this),this.startPosition=n[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){this.totalTargetWidth=e;for(var t=r.get(this),n=t.totalColumns,o=0,i=0;n>i;i++){var s=this._getColumnWidth(i),a=t.stretchingColumnWidthFn(void 0,i);"number"==typeof a?e-=a:o+=s}var l=e-o;if("all"===this.stretch&&l>0)this.stretchAllRatio=e/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var u=this._getColumnWidth(n-1),c=l+u;this.stretchLastWidth=0>c?u:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,o=r.get(this),i=o.totalColumns;if(!this.stretchAllColumnsWidth[e]){var s=Math.round(t*this.stretchAllRatio),a=o.stretchingColumnWidthFn(s,e);this.stretchAllColumnsWidth[e]=void 0===a?s:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;this.stretchAllColumnsWidth.length>l;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===r.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=r.get(this).columnWidthFn(t);return void 0===n&&(n=e.DEFAULT_WIDTH),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=new WeakMap;t.default=function(){function e(t,n,i,s,a,l,u){o(this,e),r.set(this,{viewportHeight:t,scrollOffset:n,totalRows:i,rowHeightFn:s,overrideFn:a,onlyFullyVisible:l,horizontalScrollbarHeight:u}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return i(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),i(e,[{key:"calculate",value:function(){for(var t=0,n=!0,o=[],i=r.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.rowHeightFn,u=i.scrollOffset,c=i.totalRows,h=i.viewportHeight,d=i.horizontalScrollbarHeight||0,f=void 0,p=0;c>p;p++)if(f=l(p),void 0===f&&(f=e.DEFAULT_HEIGHT),t>u||s||(this.startRow=p),u>t||t+f>u+h-d||(null===this.startRow&&(this.startRow=p),this.endRow=p),o.push(t),t+=f,s||(this.endRow=p),t>=u+h-d){n=!1;break}if(this.endRow===c-1&&n)for(this.startRow=this.endRow;this.startRow>0;){var g=o[this.endRow]+f-o[this.startRow-1];if(g>h-d&&s||this.startRow--,g>=h-d)break}null!==this.startRow&&a&&a(this),this.startPosition=o[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(27),u=n(355),c=o(u),h=n(358),d=o(h),f=n(359),p=o(f),g=n(360),m=o(g),v=n(361),y=o(v),w=n(363),C=o(w);t.default=function(){function e(t){i(this,e);var n=[];if(this.guid="wt_"+(0,l.randomString)(),t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new y.default(this,t.table,t.wtRootElement),this.wtScroll=new p.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new c.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new m.default(this,t),this.wtTable=new y.default(this,t.table),this.wtScroll=new p.default(this),this.wtViewport=new C.default(this),this.wtEvent=new c.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new d.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var o=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;r>o;o++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[o].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,s.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return r(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||(0,s.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(1>=arguments.length||void 0===arguments[1]||!arguments[1])return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(n>e.row&&i>e.col)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(n>e.row)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(i>e.col&&e.row>=t-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(i>e.col)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(t>e.row&&e.row>t-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollVertical",value:function(e){return this.wtOverlays.topOverlay.scrollTo(e),this.getSetting("onScrollVertically"),this}},{key:"scrollHorizontal",value:function(e){return this.wtOverlays.leftOverlay.scrollTo(e),this.getSetting("onScrollHorizontally"),this}},{key:"scrollViewport",value:function(e){return this.wtScroll.scrollViewport(e),this}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];(0,a.objectEach)(t,function(t,i){t.indexOf("array")>-1&&e.getSetting(i).length&&o.push("ht"+(0,l.toUpperCaseFirst)(i)),n.push("ht"+(0,l.toUpperCaseFirst)(i))}),(0,s.removeClass)(this.wtTable.wtRootElement.parentNode,n),(0,s.addClass)(this.wtTable.wtRootElement.parentNode,o)}},{key:"getSetting",value:function(e,t,n,o,i){return this.wtSettings.getSetting(e,t,n,o,i)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}()},function(e,t,n){"use strict";function o(e){var t=this,n=new l.default(e);this.instance=e;var o=[null,null];this.dblClickTimeout=[null,null];var a=function(e){var n=document.activeElement,s=(0,r.partial)(i.getParent,e.realTarget),a=e.realTarget;if(a!==n&&s(0)!==n&&s(1)!==n){var l=t.parentCell(a);(0,i.hasClass)(a,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,a):l.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,l.coords,l.TD,t.instance),2!==e.button&&l.TD&&(o[0]=l.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))}},u=function(e){t.instance.touchMoving=!0},c=function(e){n.addEventListener(this,"touchmove",u),t.checkIfTouchMove=setTimeout(function(){!0===t.instance.touchMoving&&(t.instance.touchMoving=void 0,n.removeEventListener("touchmove",u,!1)),a(e)},30)},h=function(e){var n,o,r;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,o=(0,i.closestDown)(e.realTarget,["TD","TH"],n),r=t.instance.cloneSource||t.instance,o&&o!==r.lastMouseOver&&(0,i.isChildOf)(o,n)&&(r.lastMouseOver=o,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(o),o,t.instance)))},d=function(e){var n=void 0,o=void 0,r=void 0;t.instance.hasSetting("onCellMouseOut")&&(n=t.instance.wtTable.TABLE,o=(0,i.closestDown)(e.realTarget,["TD","TH"],n),r=(0,i.closestDown)(e.relatedTarget,["TD","TH"],n),o&&o!==r&&(0,i.isChildOf)(o,n)&&t.instance.getSetting("onCellMouseOut",e,t.instance.wtTable.getCoords(o),o,t.instance))},f=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===o[0]&&n.TD===o[1]?((0,i.hasClass)(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),o[0]=null,o[1]=null):n.TD===o[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),o[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}},p=function(e){clearTimeout(void 0),e.preventDefault(),f(e)};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",a),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",h),n.addEventListener(this.instance.wtTable.TABLE,"mouseout",d),n.addEventListener(this.instance.wtTable.holder,"mouseup",f),this.instance.wtTable.holder.parentNode.parentNode&&(0,s.isMobileBrowser)()&&!t.instance.wtTable.isWorkingOnClone()){var g="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,(0,i.isChildOf)(e.target,g)&&c.call(e.target,e)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,(0,i.isChildOf)(e.target,g)&&p.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(e){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}t.__esModule=!0;var i=n(0),r=n(35),s=n(25),a=n(4),l=function(e){return e&&e.__esModule?e:{default:e}}(a);o.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,o=(0,i.closestDown)(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"current")?(t.coords=this.instance.selections.current.cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"area")&&this.instance.selections.area.cellRange&&(t.coords=this.instance.selections.area.cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,i){o(this,e),this.offset=t,this.total=n,this.countTH=i}return i(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}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,i){o(this,e),this.offset=t,this.total=n,this.countTH=i}return i(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}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(2),l=n(16),u=n(25),c=n(4),h=o(c),d=n(28),f=o(d);t.default=function(){function e(t){i(this,e),this.wot=t,this.instance=this.wot,this.eventManager=new h.default(this.wot),this.wot.update("scrollbarWidth",(0,s.getScrollbarWidth)()),this.wot.update("scrollbarHeight",(0,s.getScrollbarWidth)()),this.scrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.registerListeners()}return r(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=f.default.createOverlay(f.default.CLONE_TOP,this.wot),f.default.hasOverlay(f.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),f.default.hasOverlay(f.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=f.default.createOverlay(f.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=f.default.createOverlay(f.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=f.default.createOverlay(f.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=f.default.createOverlay(f.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=f.default.createOverlay(f.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}}},{key:"registerListeners",value:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,o=[];for(o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(o.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(o.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(o.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&o.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&o.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n=void 0,o=t.wheelDeltaY||t.deltaY,i=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"==n&&0!==o||"left"==n&&0!==i||"bottom"==n&&0!==o||("topLeft"===n||"bottomLeft"===n)&&(0!==o||0!==i))&&t.preventDefault()}]);o.length;){var i=o.pop();this.eventManager.addEventListener(i[0],i[1],i[2]),this.registeredListeners.push(i)}}},{key:"deregisterListeners",value:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}}},{key:"onTableScroll",value:function(e){if(!(0,u.isMobileBrowser)()){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.topOverlay.clone.wtTable.holder,n=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,o=this.leftOverlay.clone.wtTable.holder,i=this.topLeftCornerOverlay&&this.topLeftCornerOverlay.clone?this.topLeftCornerOverlay.clone.wtTable.holder:null,r=this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone?this.bottomLeftCornerOverlay.clone.wtTable.holder:null,s=e.wheelDeltaY||-1*e.deltaY,a=e.wheelDeltaX||-1*e.deltaX,l=null,u={type:"wheel"},c=e.target,h=null;for(1===e.deltaMode&&(s*=120,a*=120);c!=document&&null!=c;){if(c.className.indexOf("wtHolder")>-1){l=c;break}c=c.parentNode}return u.target=l,l===i||l===r?(this.syncScrollPositions(u,-.2*a,"x"),this.syncScrollPositions(u,-.2*s,"y")):(l===t||l===n?h=s:l===o&&(h=a),this.syncScrollPositions(u,-.2*h)),!1}},{key:"syncScrollPositions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var o=this.leftOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,a=0,l=!1,u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=!1,g=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(u=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(f=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(c=this.leftOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.topOverlay.needFullRender&&(h=this.topLeftCornerOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.bottomOverlay.needFullRender&&(d=this.bottomLeftCornerOverlay.clone.wtTable.holder),r===document&&(r=window),r===o||r===i?(a=(0,s.getScrollLeft)(g?this.scrollableElement:r),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=a,l=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(u&&u.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=a,p=o!==window),f&&f.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=a,p=o!==window)),a=(0,s.getScrollTop)(r),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=a,l=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:c&&c.scrollTop!==a&&(null==t&&this.pendingScrollCallbacks.left.top++,c.scrollTop=a,p=i!==window)):r===f?(a=(0,s.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=a,l=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=a,u&&u.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=a,p=i!==window)),null!==t&&(l=!0,i.scrollTop+=t)):r===u?(a=(0,s.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=a,l=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=a),null!==t&&(l=!0,i.scrollTop+=t),f&&f.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=a,p=i!==window)):r===c?(a=(0,s.getScrollTop)(r),this.overlayScrollPositions.left.top!==a&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=a,l=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,i.scrollTop=a)),null!==t&&(l=!0,i.scrollLeft+=t)):r!==h&&r!==d||null!==t&&(l=!0,"x"===n?i.scrollLeft+=t:"y"===n&&(i.scrollTop+=t)),!this.keyPressed&&l&&"scroll"===e.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),p&&(this.delegatedScrollCallback=!0))}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),i=this.wot.wtViewport.getColumnHeaderHeight(),r=this.wot.wtTable.hider.style;r.width=o+this.leftOverlay.sumCellSizes(0,t)+"px",r.height=i+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,a.arrayEach)(t,function(t,o){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(6);t.default=function(){function e(t){o(this,e),this.wot=t,this.instance=t}return i(e,[{key:"scrollViewport",value:function(e){if(this.wot.drawn){var t=this._getVariables(),n=t.topOverlay,o=t.leftOverlay,i=t.totalRows,r=t.totalColumns,s=t.fixedRowsTop,a=t.fixedRowsBottom,l=t.fixedColumnsLeft;if(0>e.row||e.row>Math.max(i-1,0))throw Error("row "+e.row+" does not exist");if(0>e.col||e.col>Math.max(r-1,0))throw Error("column "+e.col+" does not exist");e.row>=s&&e.row<this.getFirstVisibleRow()?n.scrollTo(e.row):e.row>this.getLastVisibleRow()&&i-a>e.row&&n.scrollTo(e.row,!0),e.col>=l&&e.col<this.getFirstVisibleColumn()?o.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&o.scrollTo(e.col,!0)}}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,a=e.fixedRowsTop,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var u=(0,r.offset)(n.wtRootElement),c=(0,r.innerHeight)(n.hider),h=(0,r.innerHeight)(window),d=(0,r.getScrollTop)(window);if(d>=u.top+c-h){var f=o.getColumnHeaderHeight();f+=t.sumCellSizes(0,a),(0,s.rangeEachReverse)(i,1,function(e){if(f+=t.sumCellSizes(e-1,e),d>=u.top+c-f)return l=e,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerHeight)(window),c=(0,r.getScrollTop)(window);if(l.top>c){var h=o.getColumnHeaderHeight();(0,s.rangeEach)(1,i,function(e){if(h+=t.sumCellSizes(e-1,e),l.top+h-c>=u)return a=e-2,!1})}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(n.hider),c=(0,r.innerWidth)(window),h=(0,r.getScrollLeft)(window);if(h>=l.left+u-c){var d=o.getRowHeaderWidth();(0,s.rangeEachReverse)(i,1,function(e){if(d+=t.sumCellSizes(e-1,e),h>=l.left+u-d)return a=e,!1})}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(window),c=(0,r.getScrollLeft)(window);if(l.left>c){var h=o.getRowHeaderWidth();(0,s.rangeEach)(1,i,function(e){if(h+=t.sumCellSizes(e-1,e),l.left+h-c>=u)return a=e-2,!1})}}return a}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(1);t.default=function(){function e(t,n){var i=this;o(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=i.getSetting("data",e,t);(0,r.fastInnerText)(n,void 0===o||null===o?"":o)},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={};for(var a in this.defaults)if((0,s.hasOwnProperty)(this.defaults,a))if(void 0!==n[a])this.settings[a]=n[a];else{if(void 0===this.defaults[a])throw Error('A required setting "'+a+'" was not provided');this.settings[a]=this.defaults[a]}}return i(e,[{key:"update",value:function(e,t){if(void 0===t)for(var n in e)(0,s.hasOwnProperty)(e,n)&&(this.settings[n]=e[n]);else this.settings[e]=t;return this.wot}},{key:"getSetting",value:function(e,t,n,o,i){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,i):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var s="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},a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),u=n(35),c=n(43),h=o(c),d=n(69),f=(o(d),n(356)),p=o(f),g=n(357),m=o(g),v=n(362),y=o(v),w=n(28),C=o(w);t.default=function(){function e(t,n){var o=this;r(this,e),this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,(0,l.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var i=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return o._modifyRowHeaderWidth(i)}}return a(e,[{key:"fixTableDomTree",value:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))}},{key:"createSpreader",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",n}},{key:"createHider",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),n}},{key:"createHolder",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.style.position="relative",n.className="wtHolder",t&&t.insertBefore(n,e),this.isWorkingOnClone()||(n.parentNode.className+="ht_master handsontable"),n.appendChild(e)),n}},{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,l.getTrimmingContainer)(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",e===window){var t=this.wot.getSetting("preventOverflow");t||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=(0,l.getStyle)(e,"width"),this.holder.style.height=(0,l.getStyle)(e,"height"),this.holder.style.overflow=""}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t=this.wot,n=t.wtOverlays,o=t.wtViewport,i=this.instance.getSetting("totalRows"),r=this.wot.getSetting("rowHeaders").length,s=this.wot.getSetting("columnHeaders").length,a=!1;if(!this.isWorkingOnClone()&&(this.holderOffset=(0,l.offset)(this.holder),e=o.createRenderCalculators(e),r&&!this.wot.getSetting("fixedColumnsLeft"))){var u=n.leftOverlay.getScrollPosition(),c=this.correctHeaderWidth;this.correctHeaderWidth=u>0,c!==this.correctHeaderWidth&&(e=!1)}if(this.isWorkingOnClone()||(a=n.prepareOverlays()),e)this.isWorkingOnClone()||o.createVisibleCalculators(),n&&n.refresh(!0);else{this.tableOffset=this.isWorkingOnClone()?this.wot.cloneSource.wtTable.tableOffset:(0,l.offset)(this.TABLE);var h=void 0;h=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)?0:C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM)||C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(i-this.wot.getSetting("fixedRowsBottom"),0):o.rowsRenderCalculator.startRow;var d=void 0;d=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_LEFT)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?0:o.columnsRenderCalculator.startColumn,this.rowFilter=new m.default(h,i,s),this.columnFilter=new p.default(d,this.wot.getSetting("totalColumns"),r),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(e),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),a&&n.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){new y.default(this).render()}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,o=t.length;o>n;n++)(0,l.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var n=0;t>n;n++)this.wot.selections[n].settings.className&&this.removeClassFromCells(this.wot.selections[n].settings.className),this.wot.selections[n].settings.highlightHeaderClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightHeaderClassName),this.wot.selections[n].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightRowClassName),this.wot.selections[n].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightColumnClassName);for(var o=0;t>o;o++)this.wot.selections[o].draw(this.wot,e)}}},{key:"getCell",value:function(e){if(this.isRowBeforeRenderedRows(e.row))return-1;if(this.isRowAfterRenderedRows(e.row))return-2;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e.row)];return t?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e.col)]:void 0}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){if("TD"!==e.nodeName&&"TH"!==e.nodeName&&(e=(0,l.closest)(e,["TD","TH"])),null===e)return null;var t=e.parentNode,n=t.parentNode,o=(0,l.index)(t),i=e.cellIndex;return(0,l.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,e)||(0,l.overlayContainsElement)(C.default.CLONE_TOP,e)?"THEAD"===n.nodeName&&(o-=n.childNodes.length):o=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),i=(0,l.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,e)||(0,l.overlayContainsElement)(C.default.CLONE_LEFT,e)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new h.default(o,i)}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&0>this.rowFilter.sourceToRendered(e)&&e>=0}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&0>this.columnFilter.sourceToRendered(e)&&e>=0}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(C.default.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(C.default.CLONE_LEFT)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(C.default.CLONE_DEBUG)?e=t:this.wot.isOverlayName(C.default.CLONE_TOP)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(C.default.CLONE_BOTTOM)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}},{key:"getColumnHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(void 0===t?"undefined":s(t))&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getColumnWidth(e),n=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var i=o.getStretchedColumnWidth(e,n);i&&(n=i)}return n}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,u.isFunction)(e)?e():null;return Array.isArray(t)?(t=[].concat(i(t)),t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){return"number"!=typeof e&&(e=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&e++,e}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function r(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(28),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=!1;t.default=function(){function e(t){o(this,e),this.wtTable=t,this.wot=t.instance,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0}return s(e,[{key:"render",value:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),!0===e.skipRender)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t=this.wtTable.getRenderedColumnsCount(),n=this.wtTable.getRenderedRowsCount(),o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),r=void 0,s=!1;if((u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),0>o||(this.adjustAvailableNodes(),s=!0,this.renderColumnHeaders(),this.renderRows(i,n,t),this.wtTable.isWorkingOnClone()||(r=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),s||this.adjustAvailableNodes(),this.removeRedundantRows(n),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(u.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var l=(0,a.outerWidth)(this.wtTable.hider),c=(0,a.outerWidth)(this.wtTable.TABLE);if(0!==l&&c!==l&&this.adjustColumnWidths(t),r!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var h=this.wtTable.getFirstRenderedColumn(),d=this.wtTable.getLastRenderedColumn(),f=this.wot.getSetting("defaultColumnWidth"),p=this.wot.getSetting("rowHeaderWidth");if(null!=(p=this.instance.getSetting("onModifyRowHeaderWidth",p)))for(var g=0;this.rowHeaderCount>g;g++){var m=Array.isArray(p)?p[g]:p;m=null==m?f:m,this.COLGROUP.childNodes[g].style.width=m+"px"}for(var v=h;d>v;v++){var y=this.wtTable.getStretchedColumnWidth(v);this.COLGROUP.childNodes[this.columnFilter.sourceToRendered(v)+this.rowHeaderCount].style.width=y+"px"}}this.wot.getSetting("onDraw",!0)}}},{key:"removeRedundantRows",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{key:"renderRows",value:function(e,t,n){for(var o=void 0,i=0,r=this.rowFilter.renderedToSource(i),s=this.wtTable.isWorkingOnClone();e>r&&r>=0&&(!c&&i>1e3&&(c=!0,console.warn('Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.')),void 0===t||i!==t);){if(o=this.getOrCreateTrForRow(i,o),this.renderRowHeaders(r,o),this.adjustColumns(o,n+this.rowHeaderCount),this.renderCells(r,o,n),s&&!this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.resetOversizedRow(r),o.firstChild){var a=this.wot.wtTable.getRowHeight(r);a?(a--,o.firstChild.style.height=a+"px"):o.firstChild.style.height=""}i++,r=this.rowFilter.renderedToSource(i)}}},{key:"resetOversizedRow",value:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e=this.instance.wtTable.TBODY.childNodes.length,t=e*this.instance.wtSettings.settings.defaultRowHeight,n=(0,a.innerHeight)(this.instance.wtTable.TBODY)-1,o=void 0,i=void 0,r=void 0,s=void 0,l=void 0;this.instance.getSetting("totalRows");if(t!==n||this.instance.getSetting("fixedRowsBottom"))for(;e;)e--,r=this.instance.wtTable.rowFilter.renderedToSource(e),o=this.instance.wtTable.getRowHeight(r),s=this.instance.wtTable.getTrForRow(r),l=s.querySelector("th"),i=l?(0,a.innerHeight)(l):(0,a.innerHeight)(s)-1,(!o&&i>this.instance.wtSettings.settings.defaultRowHeight||i>o)&&(this.instance.wtViewport.oversizedRows[r]=++i)}}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;this.columnHeaderCount>n;n++)for(var o=-1*this.rowHeaderCount;t>o;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,i=e.length;i>o;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=n[o]+"px"}}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t=this.wot.wtTable.columnFilter.renderedToSource(e),n=this.columnHeaderCount,o=this.wot.wtSettings.settings.defaultRowHeight,i=void 0,r=void 0,s=void 0,l=this.wot.getSetting("columnHeaderHeight")||[];n;)n--,i=this.wot.wtTable.getColumnHeaderHeight(n),(r=this.wot.wtTable.getColumnHeader(t,n))&&(s=(0,a.innerHeight)(r),(!i&&s>o||s>i)&&(this.wot.wtViewport.oversizedColumnHeaders[n]=s),Array.isArray(l)?null!=l[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.wot.wtViewport.oversizedColumnHeaders[n]=l),(l[n]||l)>this.wot.wtViewport.oversizedColumnHeaders[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}},{key:"renderCells",value:function(e,t,n){for(var o=void 0,i=void 0,s=0;n>s;s++)i=this.columnFilter.renderedToSource(s),o=0===s?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(i)]:o.nextSibling,"TH"==o.nodeName&&(o=r(o,t)),(0,a.hasClass)(o,"hide")||(o.className=""),o.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,i,o);return o}},{key:"adjustColumnWidths",value:function(e){var t=0,n=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=n.wtTable.holder,i=this.wot.getSetting("defaultColumnWidth"),r=this.wot.getSetting("rowHeaderWidth");if(o.scrollHeight>o.offsetHeight&&(t=(0,a.getScrollbarWidth)()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),null!=(r=this.instance.getSetting("onModifyRowHeaderWidth",r)))for(var s=0;this.rowHeaderCount>s;s++){var l=Array.isArray(r)?r[s]:r;l=null==l?i:l,this.COLGROUP.childNodes[s].style.width=l+"px"}for(var u=0;e>u;u++){this.COLGROUP.childNodes[u+this.rowHeaderCount].style.width=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(u))+"px"}}},{key:"appendToTbody",value:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++}},{key:"getOrCreateTrForRow",value:function(e,t){var n=void 0;return this.wtTable.tbodyChildrenLength>e?n=0===e?this.TBODY.firstChild:t.nextSibling:(n=this.createRow(),this.appendToTbody(n)),n.className&&n.removeAttribute("class"),n}},{key:"createRow",value:function(){for(var e=document.createElement("TR"),t=0;this.rowHeaderCount>t;t++)e.appendChild(document.createElement("TH"));return e}},{key:"renderRowHeader",value:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)}},{key:"renderRowHeaders",value:function(e,t){for(var n=t.firstChild,o=0;this.rowHeaderCount>o;o++)n?"TD"==n.nodeName&&(n=i(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,o,n),n=n.nextSibling}},{key:"adjustAvailableNodes",value:function(){this.adjustColGroups(),this.adjustThead()}},{key:"renderColumnHeaders",value:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;this.columnHeaderCount>t;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;e>o;o++){var i=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,i,n.childNodes[o+this.rowHeaderCount])}}},{key:"adjustColGroups",value:function(){for(var e=this.wtTable.getRenderedColumnsCount();e+this.rowHeaderCount>this.wtTable.colgroupChildrenLength;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&(0,a.addClass)(this.COLGROUP.childNodes[0],"rowHeader")}},{key:"adjustThead",value:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,o=this.columnHeaders.length;o>n;n++){for(t=this.THEAD.childNodes[n],t||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;e+this.rowHeaderCount>this.theadChildrenLength;)t.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength--}var i=this.THEAD.childNodes.length;if(i>this.columnHeaders.length)for(var r=this.columnHeaders.length;i>r;r++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&(0,a.empty)(t)}},{key:"getTrForColumnHeaders",value:function(e){return this.THEAD.childNodes[e]}},{key:"renderColumnHeader",value:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)}},{key:"adjustColumns",value:function(e,t){for(var n=e.childNodes.length;t>n;){e.appendChild(document.createElement("TD")),n++}for(;n>t;)e.removeChild(e.lastChild),n--}},{key:"removeRedundantColumns",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(4),u=o(l),c=n(352),h=o(c),d=n(353),f=o(d);t.default=function(){function e(t){var n=this;i(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new u.default(this.wot),this.eventManager.addEventListener(window,"resize",function(){n.clientHeight=n.getWorkspaceHeight()})}return r(e,[{key:"getWorkspaceHeight",value:function(){var e=this.instance.wtOverlays.topOverlay.trimmingContainer,t=void 0,n=0;return e===window?n=document.documentElement.clientHeight:(t=(0,s.outerHeight)(e),n=t>0&&e.clientHeight>0?e.clientHeight:1/0),n}},{key:"getWorkspaceWidth",value:function(){var e=void 0,t=this.wot.getSetting("totalColumns"),n=this.instance.wtOverlays.leftOverlay.trimmingContainer,o=void 0,i=this.wot.getSetting("stretchH"),r=document.documentElement.offsetWidth;return this.wot.getSetting("preventOverflow")?(0,s.outerWidth)(this.instance.wtTable.wtRootElement):(e=this.wot.getSetting("freezeOverlays")?Math.min(r-this.getWorkspaceOffset().left,r):Math.min(this.getContainerFillWidth(),r-this.getWorkspaceOffset().left,r),n===window&&t>0&&this.sumColumnWidths(0,t-1)>e?document.documentElement.clientWidth:n===window||"scroll"!=(o=(0,s.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"))&&"hidden"!=o&&"auto"!=o?"none"!==i&&i?e:Math.max(e,(0,s.outerWidth)(this.instance.wtTable.TABLE)):Math.max(e,n.clientWidth))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0;t>e;)n+=this.wot.wtTable.getColumnWidth(e),e++;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=void 0,n=void 0;return n=document.createElement("div"),n.style.width="100%",n.style.height="1px",e.appendChild(n),t=n.offsetWidth,this.containerWidth=t,e.removeChild(n),t}},{key:"getWorkspaceOffset",value:function(){return(0,s.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,s.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,s.outerWidth)(this.wot.wtTable.TABLE)||(0,s.outerWidth)(this.wot.wtTable.TBODY)||(0,s.outerWidth)(this.wot.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,s.outerHeight)(this.wot.wtTable.THEAD)),this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight(),t=void 0;return e===1/0?e:(t=this.getColumnHeaderHeight(),t>0&&(e-=t),e)}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,o=t.length;o>n;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var i=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var r=0,a=t.length;a>r;r++)i?(this.rowHeaderWidth+=(0,s.outerWidth)(i),i=i.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth(),t=void 0;return e===1/0?e:(t=this.getRowHeaderWidth(),t>0?e-t:e)}},{key:"createRowsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=void 0,o=void 0,i=void 0,r=void 0,a=void 0,l=void 0,u=void 0;return this.rowHeaderWidth=NaN,n=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),o=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset(),0>o&&(o=0),i=this.wot.getSetting("fixedRowsTop"),a=this.wot.getSetting("fixedRowsBottom"),u=this.wot.getSetting("totalRows"),i&&(l=this.wot.wtOverlays.topOverlay.sumCellSizes(0,i),o+=l,n-=l),a&&this.wot.wtOverlays.bottomOverlay.clone&&(l=this.wot.wtOverlays.bottomOverlay.sumCellSizes(u-a,u),n-=l),r=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:(0,s.getScrollbarWidth)(),new f.default(n,o,this.wot.getSetting("totalRows"),function(t){return e.wot.wtTable.getRowHeight(t)},t?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,t,r)}},{key:"createColumnsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getViewportWidth(),o=void 0,i=void 0;if(this.columnHeaderHeight=NaN,o=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),0>o&&(o=0),i=this.wot.getSetting("fixedColumnsLeft")){var r=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,i);o+=r,n-=r}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(n-=(0,s.getScrollbarWidth)()),new h.default(n,o,this.wot.getSetting("totalColumns"),function(t){return e.wot.wtTable.getColumnWidth(t)},t?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,t,this.wot.getSetting("stretchH"),function(t,n){return e.wot.getSetting("onBeforeStretchingColumnWidth",t,n)})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){return!!this.rowsVisibleCalculator&&(!(this.rowsRenderCalculator.startRow>e.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){return!!this.columnsVisibleCalculator&&(!(this.columnsRenderCalculator.startColumn>e.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,a.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),e}()},function(e,t,n){"use strict";function o(e){d=!1;var t=this.getActiveEditor();if((0,i.isPrintableChar)(e.keyCode)||e.keyCode===i.KEY_CODES.BACKSPACE||e.keyCode===i.KEY_CODES.DELETE||e.keyCode===i.KEY_CODES.INSERT){var n=0;if(e.keyCode===i.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),d=!0},n))}}t.__esModule=!0;var i=n(16),r=n(20),s=n(27),a=n(2),l=n(0),u=n(365),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=c.default.prototype.extend();h.prototype.init=function(){c.default.prototype.init.apply(this,arguments),this.query=null,this.strippedChoices=[],this.rawChoices=[]},h.prototype.getValue=function(){var e=this,t=this.rawChoices.find(function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value});return(0,r.isDefined)(t)?t:this.TEXTAREA.value},h.prototype.createElements=function(){c.default.prototype.createElements.apply(this,arguments),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var d=!1;h.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",o),c.default.prototype.prepare.apply(this,arguments)},h.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",c.default.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,n=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:n?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,width:n?(0,l.outerWidth)(this.TEXTAREA)+(0,l.getScrollbarWidth)()+2:void 0,afterRenderer:function(e,n,o,i,s,a){var l=t.cellProperties,u=l.filteringCaseSensitive,c=l.allowHtml,h=void 0,d=void 0;s=(0,r.stringify)(s),s&&!c&&-1!==(h=!0===u?s.indexOf(this.query):s.toLowerCase().indexOf(t.query.toLowerCase()))&&(d=s.substr(h,t.query.length),s=s.replace(d,"<strong>"+d+"</strong>")),e.innerHTML=s},autoColumnSize:!0,modifyColWidth:function(e,t){var o=this.getPlugin("autoColumnSize").widths;return o[t]&&(e=o[t]),n?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=(0,l.getScrollbarWidth)()+2+"px",d&&(d=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},h.prototype.close=function(){c.default.prototype.close.apply(this,arguments)},h.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties.source;"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([])},h.prototype.updateChoicesList=function(e){var t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,r=null,s=null;o&&(r=h.sortByRelevance(this.stripValueIfNeeded(this.getValue()),e,this.cellProperties.filteringCaseSensitive));var u=Array.isArray(r)?r.length:0;if(!1===i)u&&(s=r[0]);else{for(var c=[],d=0,f=e.length;f>d&&(!o||d<u);d++)c.push(u?e[r[d]]:e[d]);s=0,e=c}this.strippedChoices=e,this.htEditor.loadData((0,a.pivot)([e])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(s),this.instance.listen(),this.TEXTAREA.focus(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)},h.prototype.flipDropdownIfNeeded=function(){var e=(0,l.offset)(this.TEXTAREA),t=(0,l.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),o=(0,l.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE),i=o.scrollTop,r=(0,l.outerHeight)(this.instance.view.wt.wtTable.THEAD),s={row:0,col:0};o!==window&&(s=(0,l.offset)(o));var a=e.top-s.top-r+i,u=o.scrollHeight-a-r-t,c=n>u&&a>u;return c?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(c?a:u,n),c},h.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n=0,o=0,i=0,r=null;do{i=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=i,o++}while(e>n);r=n-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-r+"px"),this.setDropdownHeight(n-i)}},h.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},h.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},h.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+(0,l.getScrollbarWidth)()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},h.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},h.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",o),c.default.prototype.finishEditing.apply(this,arguments)},h.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},h.sortByRelevance=function(e,t,n){var o=[],i=void 0,a=e.length,l=void 0,u=void 0,c=[],h=void 0,d=t.length;if(0===a){for(h=0;d>h;h++)c.push(h);return c}for(h=0;d>h;h++)i=(0,s.stripTags)((0,r.stringify)(t[h])),-1!==(l=n?i.indexOf(e):i.toLowerCase().indexOf(e.toLowerCase()))&&(u=i.length-l-a,o.push({baseIndex:h,index:l,charsLeft:u,value:i}));for(o.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(t.index>e.index)return-1;if(e.index>t.index)return 1;if(e.index===t.index){if(t.charsLeft>e.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),h=0,d=o.length;d>h;h++)c.push(o[h].baseIndex);return c},h.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return t>this.strippedChoices.length?this.strippedChoices.length*e+8:t*e},h.prototype.stripValueIfNeeded=function(e){return this.stripValuesIfNeeded([e])[0]},h.prototype.stripValuesIfNeeded=function(e){var t=this.cellProperties.allowHtml,n=(0,a.arrayMap)(e,function(e){return(0,r.stringify)(e)});return(0,a.arrayMap)(n,function(e){return t?e:(0,s.stripTags)(e)})},h.prototype.allowKeyEventPropagation=function(e){var t={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},n=!1;return e===i.KEY_CODES.ARROW_DOWN&&t.row>0&&t.row<this.htEditor.countRows()-1&&(n=!0),e===i.KEY_CODES.ARROW_UP&&t.row>-1&&(n=!0),n},h.prototype.discardEditor=function(e){c.default.prototype.discardEditor.apply(this,arguments),this.instance.view.render()},t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var o=n(16),i=n(1),r=n(0),s=n(7),a=n(44),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=l.default.prototype.extend();u.prototype.createElements=function(){l.default.prototype.createElements.apply(this,arguments);var e=document.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()},u.prototype.prepare=function(e,t,n,o,r,s){l.default.prototype.prepare.apply(this,arguments);var a=this,u={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&a.setValue(n),a.instance.destroyEditor()}};this.cellProperties.handsontable&&(0,i.extend)(u,s.handsontable),this.htOptions=u};var c=function(e){if(!(0,s.isImmediatePropagationStopped)(e)){var t,n,i=this.getActiveEditor(),r=i.htEditor.getInstance();if(e.keyCode==o.KEY_CODES.ARROW_DOWN)if(r.getSelected()||r.flipped){if(r.getSelected())if(r.flipped)t=r.getSelected()[0]+1;else if(!r.flipped){n=r.getSelected()[0];var a=r.countRows()-1;t=Math.min(a,n+1)}}else t=0;else e.keyCode==o.KEY_CODES.ARROW_UP&&(!r.getSelected()&&r.flipped?t=r.countRows()-1:r.getSelected()&&(r.flipped?(n=r.getSelected()[0],t=Math.max(0,n-1)):(n=r.getSelected()[0],t=n-1)));void 0!==t&&(0>t||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length&&(e.preventDefault(),(0,s.stopImmediatePropagation)(e),i.instance.listen(),i.TEXTAREA.focus()))}};u.prototype.open=function(){this.instance.addHook("beforeKeyDown",c),l.default.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new this.instance.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.TEXTAREA.style.visibility="hidden"):(this.htEditor.deselectCell(),this.TEXTAREA.style.visibility="visible"),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)},u.prototype.close=function(){this.instance.removeHook("beforeKeyDown",c),this.instance.listen(),l.default.prototype.close.apply(this,arguments)},u.prototype.focus=function(){this.instance.listen(),l.default.prototype.focus.apply(this,arguments)},u.prototype.beginEditing=function(e){var t=this.instance.getSettings().onBeginEditing;t&&!1===t()||l.default.prototype.beginEditing.apply(this,arguments)},u.prototype.finishEditing=function(e,t){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var n=this.htEditor.getInstance().getValue();void 0!==n&&this.setValue(n)}return l.default.prototype.finishEditing.apply(this,arguments)},u.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var o=n(2),i=n(1),r=n(6),s={_arrayMap:[],getValueByIndex:function(e){var t=void 0;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t=void 0;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=(0,o.arrayMax)(this._arrayMap)+1,s=[];return(0,r.rangeEach)(n-1,function(n){s.push(t._arrayMap.splice(e+n,0,i+n))}),s},removeItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),i=(0,o.arrayReduce)(e,function(e,n){return t._arrayMap.splice(n,1),e.concat(r.slice(n,n+1))},[])}else i=this._arrayMap.splice(e,n);return i},unshiftItems:function(e){function t(e){return(0,o.arrayReduce)(i,function(t,n){return e>n&&t++,t},0)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.removeItems(e,n);this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(e,n){var o=t(e);return o&&(e-=o),e})},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(t){return e>t||(t+=n),t}),(0,r.rangeEach)(n-1,function(n){t._arrayMap.splice(e+n,0,e+n)})},clearMap:function(){this._arrayMap.length=0}};(0,i.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(6),s=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=s}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=s}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=r}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=r}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){e&&(this._element.style.top=e+"px"),t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){h.set(e,t)}function r(e){var t=void 0;if(!(e instanceof l.default)){if(!h.has(e))throw Error("Record translator was not registered for this object identity");e=h.get(e)}return d.has(e)?t=d.get(e):(t=new c(e),d.set(e,t)),t}t.__esModule=!0,t.RecordTranslator=void 0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.registerIdentity=i,t.getTranslator=r;var a=n(64),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(1),c=function(){function e(t){o(this,e),this.hot=t}return s(e,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,u.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,u.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),e}();t.RecordTranslator=c;var h=new WeakMap,d=new WeakMap},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(1),a=n(6),l=n(20);t.default=function(){function e(t){i(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return r(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),r(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var o=this,i=new Map;return"number"==typeof n&&(n={from:n,to:n}),(0,a.rangeEach)(n.from,n.to,function(n){var r=o.generateSample(e,t,n);i.set(n,r)}),i}},{key:"generateSample",value:function(e,t,n){var i=this,r=new Map,u=[],c=void 0;return(0,a.rangeEach)(t.from,t.to,function(t){var a=void 0;if("row"===e)a=i.dataFactory(n,t);else{if("col"!==e)throw Error("Unsupported sample type");a=i.dataFactory(t,n)}c=(0,s.isObject)(a)?Object.keys(a).length:Array.isArray(a)?a.length:(0,l.stringify)(a).length,r.has(c)||r.set(c,{needed:i.getSampleCount(),strings:[]});var h=r.get(c);if(h.needed){if(!(u.indexOf(a)>-1)||i.allowDuplicates){h.strings.push(o({value:a},"row"===e?"col":"row",t)),u.push(a),h.needed--}}}),r}}]),e}()},function(e,t,n){var o=n(23),i=n(24),r=n(61);e.exports=function(e){return function(t,n,s){var a,l=o(t),u=i(l.length),c=r(s,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(38),i=n(10)("toStringTag"),r="Arguments"==o(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var o=n(19).f,i=n(80),r=n(60),s=n(29),a=n(53),l=n(30),u=n(57),c=n(382),h=n(383),d=n(388),f=n(21),p=n(47).fastKey,g=f?"_s":"size",m=function(e,t){var n,o=p(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var h=e(function(e,o){a(e,h,t,"_i"),e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=o&&u(o,n,e[c],e)});return r(h.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var t=this,n=m(t,e);if(n){var o=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),t._f==n&&(t._f=o),t._l==n&&(t._l=i),t[g]--}return!!n},forEach:function(e){a(this,h,"forEach");for(var t,n=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!m(this,e)}}),f&&o(h.prototype,"size",{get:function(){return l(this[g])}}),h},def:function(e,t,n){var o,i,r=m(e,t);return r?r.v=n:(e._l=r={i:i=p(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=r),o&&(o.n=r),e[g]++,"F"!==i&&(e._i[i]=r)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?h(0,n.k):"values"==t?h(0,n.v):h(0,[n.k,n.v]):(e._t=void 0,h(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=n(60),i=n(47).getWeak,r=n(18),s=n(15),a=n(53),l=n(57),u=n(54),c=n(22),h=u(5),d=u(6),f=0,p=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return h(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var u=e(function(e,o){a(e,u,t,"_i"),e._i=f++,e._l=void 0,void 0!=o&&l(o,n,e[r],e)});return o(u.prototype,{delete:function(e){if(!s(e))return!1;var t=i(e);return!0===t?p(this).delete(e):t&&c(t,this._i)&&delete t[this._i]},has:function(e){if(!s(e))return!1;var t=i(e);return!0===t?p(this).has(e):t&&c(t,this._i)}}),u},def:function(e,t,n){var o=i(r(t),!0);return!0===o?p(e).set(t,n):o[e._i]=n,e},ufstore:p}},function(e,t,n){e.exports=n(13).document&&document.documentElement},function(e,t,n){e.exports=!n(21)&&!n(31)(function(){return 7!=Object.defineProperty(n(75)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(46),i=n(10)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},function(e,t,n){var o=n(38);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(15),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(15),i=n(38),r=n(10)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},function(e,t,n){var o=n(18);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(e,t,n){"use strict";var o=n(58),i=n(3),r=n(33),s=n(32),a=n(22),l=n(46),u=n(504),c=n(49),h=n(509),d=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,g,m,v,y){u(n,t,g);var w,C,b,_=function(e){if(!f&&e in R)return R[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",k="values"==m,O=!1,R=e.prototype,E=R[d]||R["@@iterator"]||m&&R[m],T=E||_(m),M=m?k?_("entries"):T:void 0,D="Array"==t?R.entries||E:E;if(D&&(b=h(D.call(new e)))!==Object.prototype&&(c(b,S,!0),o||a(b,d)||s(b,d,p)),k&&E&&"values"!==E.name&&(O=!0,T=function(){return E.call(this)}),o&&!y||!f&&!O&&R[d]||s(R,d,T),l[t]=T,l[S]=p,m)if(w={values:k?T:_("values"),keys:v?T:_("keys"),entries:M},y)for(C in w)C in R||r(R,C,w[C]);else i(i.P+i.F*(f||O),t,w);return w}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(39),i=n(59),r=n(48),s=n(41),a=n(78),l=Object.assign;e.exports=!l||n(31)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=s(e),l=arguments.length,u=1,c=i.f,h=r.f;l>u;)for(var d,f=a(arguments[u++]),p=c?o(f).concat(c(f)):o(f),g=p.length,m=0;g>m;)h.call(f,d=p[m++])&&(n[d]=f[d]);return n}:l},function(e,t,n){var o=n(22),i=n(23),r=n(371)(!1),s=n(83)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,u=[];for(n in a)n!=s&&o(a,n)&&u.push(n);for(;t.length>l;)o(a,n=t[l++])&&(~r(u,n)||u.push(n));return u}},function(e,t,n){var o=n(39),i=n(23),r=n(48).f;e.exports=function(e){return function(t){for(var n,s=i(t),a=o(s),l=a.length,u=0,c=[];l>u;)r.call(s,n=a[u++])&&c.push(e?[n,s[n]]:s[n]);return c}}},function(e,t,n){var o=n(15),i=n(18),r=function(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(29)(Function.call,n(81).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){"use strict";var o=n(13),i=n(19),r=n(21),s=n(10)("species");e.exports=function(e){var t=o[e];r&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(24),i=n(390),r=n(30);e.exports=function(e,t,n,s){var a=r(e)+"",l=a.length,u=void 0===n?" ":n+"",c=o(t);if(l>=c||""==u)return a;var h=c-l,d=i.call(u,Math.ceil(h/u.length));return d.length>h&&(d=d.slice(0,h)),s?d+a:a+d}},function(e,t,n){"use strict";var o=n(62),i=n(30);e.exports=function(e){var t=i(this)+"",n="",r=o(e);if(0>r||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t,n){t.f=n(10)},function(e,t,n){var o=n(372),i=n(10)("iterator"),r=n(46);e.exports=n(45).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[o(e)]}},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){"use strict";function o(e){var t="undefined"!=typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n=this.first(),o=n.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(n[0],i),n.data("handsontable",o),o.init()),n}var r=[],s=void 0;if(arguments.length>1)for(var a=1,l=arguments.length;l>a;a++)r.push(arguments[a]);if(o){if(void 0===o[t])throw Error("Handsontable do not provide action: "+t);s=o[t].apply(o,r),"destroy"===t&&n.removeData()}return s})}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Base=t.UndoRedo=t.TouchScroll=t.Search=t.PersistentState=t.ObserveChanges=t.MultipleSelectionHandles=t.MergeCells=t.ManualRowResize=t.ManualRowMove=t.ManualColumnResize=t.ManualColumnMove=t.ManualColumnFreeze=t.DragToScroll=t.CustomBorders=t.CopyPaste=t.ContextMenu=t.Comments=t.ColumnSorting=t.AutoRowSize=t.AutoFill=t.AutoColumnSize=void 0;var i=n(429),r=o(i),s=n(431),a=o(s),l=n(430),u=o(l),c=n(433),h=o(c),d=n(435),f=o(d),p=n(438),g=o(p),m=n(455),v=o(m),y=n(457),w=o(y),C=n(458),b=o(C),_=n(461),S=o(_),k=n(463),O=o(k),R=n(466),E=o(R),T=n(467),M=o(T),D=n(471),P=o(D),H=n(472),x=o(H),A=n(473),L=o(A),N=n(475),j=o(N),I=n(477),W=o(I),F=n(478),V=o(F),Y=n(479),B=o(Y),z=n(480),U=o(z),G=n(12),K=o(G);t.AutoColumnSize=r.default,t.AutoFill=a.default,t.AutoRowSize=u.default,t.ColumnSorting=h.default,t.Comments=f.default,t.ContextMenu=g.default,t.CopyPaste=v.default,t.CustomBorders=w.default,t.DragToScroll=b.default,t.ManualColumnFreeze=S.default,t.ManualColumnMove=O.default,t.ManualColumnResize=E.default,t.ManualRowMove=M.default,t.ManualRowResize=P.default,t.MergeCells=x.default,t.MultipleSelectionHandles=L.default,t.ObserveChanges=j.default,t.PersistentState=W.default,t.Search=V.default,t.TouchScroll=B.default,t.UndoRedo=U.default,t.Base=K.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return ao.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,o){return Ne(e,t,n,o,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function c(e){return null==e._pf&&(e._pf=u()),e._pf}function h(e){if(null==e._isValid){var t=c(e),n=lo.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function d(e){var t=l(NaN);return null!=e?a(c(t),e):c(t).userInvalidated=!0,t}function f(e){return void 0===e}function p(e,t){var n,o,i;if(f(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),f(t._i)||(e._i=t._i),f(t._f)||(e._f=t._f),f(t._l)||(e._l=t._l),f(t._strict)||(e._strict=t._strict),f(t._tzm)||(e._tzm=t._tzm),f(t._isUTC)||(e._isUTC=t._isUTC),f(t._offset)||(e._offset=t._offset),f(t._pf)||(e._pf=c(t)),f(t._locale)||(e._locale=t._locale),uo.length>0)for(n in uo)o=uo[n],i=t[o],f(i)||(e[o]=i);return e}function g(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===co&&(co=!0,t.updateOffset(this),co=!1)}function m(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function v(e){return 0>e?Math.ceil(e):Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function w(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;i>o;o++)(n&&e[o]!==t[o]||!n&&y(e[o])!==y(t[o]))&&s++;return s+r}function C(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function b(e,n){var o=!0;return a(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),o&&(C(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+Error().stack),o=!1),n.apply(this,arguments)},n)}function _(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),ho[e]||(C(n),ho[e]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)t=e[n],S(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function R(e,t){var n,o=a({},e);for(n in t)s(t,n)&&(k(e[n])&&k(t[n])?(o[n]={},a(o[n],e[n]),a(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);return o}function E(e){null!=e&&this.set(e)}function T(e){return e?e.toLowerCase().replace("_","-"):e}function M(e){for(var t,n,o,i,r=0;e.length>r;){for(i=T(e[r]).split("-"),t=i.length,n=T(e[r+1]),n=n?n.split("-"):null;t>0;){if(o=D(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}r++}return null}function D(t){var o=null;if(!mo[t]&&void 0!==e&&e&&e.exports)try{o=po._abbr,n(523)("./"+t),P(o)}catch(e){}return mo[t]}function P(e,t){var n;return e&&(n=f(t)?A(e):H(e,t))&&(po=n),po._abbr}function H(e,t){return null!==t?(t.abbr=e,null!=mo[e]?(_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),t=R(mo[e]._config,t)):null!=t.parentLocale&&(null!=mo[t.parentLocale]?t=R(mo[t.parentLocale]._config,t):_("parentLocaleUndefined","specified parentLocale is not defined yet")),mo[e]=new E(t),P(e),mo[e]):(delete mo[e],null)}function x(e,t){if(null!=t){var n;null!=mo[e]&&(t=R(mo[e]._config,t)),n=new E(t),n.parentLocale=mo[e],mo[e]=n,P(e)}else null!=mo[e]&&(null!=mo[e].parentLocale?mo[e]=mo[e].parentLocale:null!=mo[e]&&delete mo[e]);return mo[e]}function A(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return po;if(!o(e)){if(t=D(e))return t;e=[e]}return M(e)}function L(){return fo(mo)}function N(e,t){var n=e.toLowerCase();vo[n]=vo[n+"s"]=vo[t]=e}function j(e){return"string"==typeof e?vo[e]||vo[e.toLowerCase()]:void 0}function I(e){var t,n,o={};for(n in e)s(e,n)&&(t=j(n))&&(o[t]=e[n]);return o}function W(e,n){return function(o){return null!=o?(V(this,e,o),t.updateOffset(this,n),this):F(this,e)}}function F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Y(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=j(e),S(this[e]))return this[e](t);return this}function B(e,t,n){var o=""+Math.abs(e),i=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,i))).substr(1)+o}function z(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(bo[e]=i),t&&(bo[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(bo[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,o=e.match(yo);for(t=0,n=o.length;n>t;t++)o[t]=bo[o[t]]?bo[o[t]]:U(o[t]);return function(t){var i,r="";for(i=0;n>i;i++)r+=o[i]instanceof Function?o[i].call(t,e):o[i];return r}}function K(e,t){return e.isValid()?(t=X(t,e.localeData()),(Co[t]=Co[t]||G(t))(e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(wo.lastIndex=0;o>=0&&wo.test(e);)e=e.replace(wo,n),wo.lastIndex=0,o-=1;return e}function q(e,t,n){Wo[e]=S(t)?t:function(e,o){return e&&n?n:t}}function $(e,t){return s(Wo,e)?Wo[e](t._strict,t._locale):RegExp(Z(e))}function Z(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(o=function(e,n){n[t]=y(e)}),n=0;e.length>n;n++)Fo[e[n]]=o}function ee(e,t){Q(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function te(e,t,n){null!=t&&s(Fo,e)&&Fo[e](t,n._a,n,e)}function ne(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function oe(e,t){return o(this._months)?this._months[e.month()]:this._months[$o.test(t)?"format":"standalone"][e.month()]}function ie(e,t){return o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$o.test(t)?"format":"standalone"][e.month()]}function re(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)r=l([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=go.call(this._shortMonthsParse,s),-1!==i?i:null):(i=go.call(this._longMonthsParse,s),-1!==i?i:null):"MMM"===t?-1!==(i=go.call(this._shortMonthsParse,s))?i:(i=go.call(this._longMonthsParse,s),-1!==i?i:null):-1!==(i=go.call(this._longMonthsParse,s))?i:(i=go.call(this._shortMonthsParse,s),-1!==i?i:null)}function se(e,t,n){var o,i,r;if(this._monthsParseExact)return re.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(i=l([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function ae(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if("number"!=typeof(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function le(e){return null!=e?(ae(this,e),t.updateOffset(this,!0),this):F(this,"Month")}function ue(){return ne(this.year(),this.month())}function ce(e){return this._monthsParseExact?(s(this,"_monthsRegex")||de.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function he(e){return this._monthsParseExact?(s(this,"_monthsRegex")||de.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function de(){function e(e,t){return t.length-e.length}var t,n,o=[],i=[],r=[];for(t=0;12>t;t++)n=l([2e3,t]),o.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),i.sort(e),r.sort(e),t=0;12>t;t++)o[t]=J(o[t]),i[t]=J(i[t]),r[t]=J(r[t]);this._monthsRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function fe(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=0>n[Yo]||n[Yo]>11?Yo:1>n[Bo]||n[Bo]>ne(n[Vo],n[Yo])?Bo:0>n[zo]||n[zo]>24||24===n[zo]&&(0!==n[Uo]||0!==n[Go]||0!==n[Ko])?zo:0>n[Uo]||n[Uo]>59?Uo:0>n[Go]||n[Go]>59?Go:0>n[Ko]||n[Ko]>999?Ko:-1,c(e)._overflowDayOfYear&&(Vo>t||t>Bo)&&(t=Bo),c(e)._overflowWeeks&&-1===t&&(t=Xo),c(e)._overflowWeekday&&-1===t&&(t=qo),c(e).overflow=t),e}function pe(e){var t,n,o,i,r,s,a=e._i,l=ti.exec(a)||ni.exec(a);if(l){for(c(e).iso=!0,t=0,n=ii.length;n>t;t++)if(ii[t][1].exec(l[1])){i=ii[t][0],o=!1!==ii[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=ri.length;n>t;t++)if(ri[t][1].exec(l[3])){r=(l[2]||" ")+ri[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!oi.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),Me(e)}else e._isValid=!1}function ge(e){var n=si.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));pe(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e))}function me(e,t,n,o,i,r,s){var a=new Date(e,t,n,o,i,r,s);return 100>e&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ye(e){return we(e)?366:365}function we(e){return e%4==0&&e%100!=0||e%400==0}function Ce(){return we(this.year())}function be(e,t,n){var o=7+t-n;return-(7+ve(e,0,o).getUTCDay()-t)%7+o-1}function _e(e,t,n,o,i){var r,s,a=(7+n-o)%7,l=be(e,o,i),u=1+7*(t-1)+a+l;return u>0?u>ye(e)?(r=e+1,s=u-ye(e)):(r=e,s=u):(r=e-1,s=ye(r)+u),{year:r,dayOfYear:s}}function Se(e,t,n){var o,i,r=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>s?(i=e.year()-1,o=s+ke(i,t,n)):s>ke(e.year(),t,n)?(o=s-ke(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function ke(e,t,n){var o=be(e,t,n),i=be(e+1,t,n);return(ye(e)-o+i)/7}function Oe(e,t,n){return null!=e?e:null!=t?t:n}function Re(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Ee(e){var t,n,o,i,r=[];if(!e._d){for(o=Re(e),e._w&&null==e._a[Bo]&&null==e._a[Yo]&&Te(e),e._dayOfYear&&(i=Oe(e._a[Vo],o[Vo]),e._dayOfYear>ye(i)&&(c(e)._overflowDayOfYear=!0),n=ve(i,0,e._dayOfYear),e._a[Yo]=n.getUTCMonth(),e._a[Bo]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=o[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[zo]&&0===e._a[Uo]&&0===e._a[Go]&&0===e._a[Ko]&&(e._nextDay=!0,e._a[zo]=0),e._d=(e._useUTC?ve:me).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[zo]=24)}}function Te(e){var t,n,o,i,r,s,a,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,s=4,n=Oe(t.GG,e._a[Vo],Se(je(),1,4).year),o=Oe(t.W,1),(1>(i=Oe(t.E,1))||i>7)&&(l=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,n=Oe(t.gg,e._a[Vo],Se(je(),r,s).year),o=Oe(t.w,1),null!=t.d?(0>(i=t.d)||i>6)&&(l=!0):null!=t.e?(i=t.e+r,(0>t.e||t.e>6)&&(l=!0)):i=r),1>o||o>ke(n,r,s)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(a=_e(n,o,i,r,s),e._a[Vo]=a.year,e._dayOfYear=a.dayOfYear)}function Me(e){if(e._f===t.ISO_8601)return void pe(e);e._a=[],c(e).empty=!0;var n,o,i,r,s,a=""+e._i,l=a.length,u=0;for(i=X(e._f,e._locale).match(yo)||[],n=0;i.length>n;n++)r=i[n],o=(a.match($(r,e))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&c(e).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),bo[r]?(o?c(e).empty=!1:c(e).unusedTokens.push(r),te(r,o,e)):e._strict&&!o&&c(e).unusedTokens.push(r);c(e).charsLeftOver=l-u,a.length>0&&c(e).unusedInput.push(a),!0===c(e).bigHour&&12>=e._a[zo]&&e._a[zo]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[zo]=De(e._locale,e._a[zo],e._meridiem),Ee(e),fe(e)}function De(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function Pe(e){var t,n,o,i,r;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;e._f.length>i;i++)r=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Me(t),h(t)&&(r+=c(t).charsLeftOver,r+=10*c(t).unusedTokens.length,c(t).score=r,(null==o||o>r)&&(o=r,n=t));a(e,n||t)}function He(e){if(!e._d){var t=I(e._i);e._a=r([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Ee(e)}}function xe(e){var t=new g(fe(Ae(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ae(e){var t=e._i,n=e._f;return e._locale=e._locale||A(e._l),null===t||void 0===n&&""===t?d({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),m(t)?new g(fe(t)):(o(n)?Pe(e):n?Me(e):i(t)?e._d=t:Le(e),h(e)||(e._d=null),e))}function Le(e){var n=e._i;void 0===n?e._d=new Date(t.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?ge(e):o(n)?(e._a=r(n.slice(0),function(e){return parseInt(e,10)}),Ee(e)):"object"==typeof n?He(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function Ne(e,t,n,o,i){var r={};return"boolean"==typeof n&&(o=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=o,xe(r)}function je(e,t,n,o){return Ne(e,t,n,o,!1)}function Ie(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return je();for(n=t[0],i=1;t.length>i;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function We(){return Ie("isBefore",[].slice.call(arguments,0))}function Fe(){return Ie("isAfter",[].slice.call(arguments,0))}function Ve(e){var t=I(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0;this._milliseconds=+(t.millisecond||0)+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=A(),this._bubble()}function Ye(e){return e instanceof Ve}function Be(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function ze(e,t){var n=(t||"").match(e)||[],o=n[n.length-1]||[],i=(o+"").match(hi)||["-",0,0],r=60*i[1]+y(i[2]);return"+"===i[0]?r:-r}function Ue(e,n){var o,r;return n._isUTC?(o=n.clone(),r=(m(e)||i(e)?e.valueOf():je(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),t.updateOffset(o,!1),o):je(e).local()}function Ge(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ke(e,n){var o,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=ze(No,e):16>Math.abs(e)&&(e*=60),!this._isUTC&&n&&(o=Ge(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?ct(this,it(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Ge(this):null!=e?this:NaN}function Xe(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function qe(e){return this.utcOffset(0,e)}function $e(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ge(this),"m")),this}function Ze(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ze(Lo,this._i)),this}function Je(e){return!!this.isValid()&&(e=e?je(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Qe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function et(){if(!f(this._isDSTShifted))return this._isDSTShifted;var e={};if(p(e,this),e=Ae(e),e._a){var t=e._isUTC?l(e._a):je(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function tt(){return!!this.isValid()&&!this._isUTC}function nt(){return!!this.isValid()&&this._isUTC}function ot(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function it(e,t){var n,o,i,r=e,a=null;return Ye(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(a=di.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:y(a[Bo])*n,h:y(a[zo])*n,m:y(a[Uo])*n,s:y(a[Go])*n,ms:y(a[Ko])*n}):(a=fi.exec(e))?(n="-"===a[1]?-1:1,r={y:rt(a[2],n),M:rt(a[3],n),w:rt(a[4],n),d:rt(a[5],n),h:rt(a[6],n),m:rt(a[7],n),s:rt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=at(je(r.from),je(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new Ve(r),Ye(e)&&s(e,"_locale")&&(o._locale=e._locale),o}function rt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function st(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function at(e,t){var n;return e.isValid()&&t.isValid()?(t=Ue(t,e),e.isBefore(t)?n=st(e,t):(n=st(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function lt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function ut(e,t){return function(n,o){var i,r;return null===o||isNaN(+o)||(_(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=o,o=r),n="string"==typeof n?+n:n,i=it(n,o),ct(this,i,e),this}}function ct(e,n,o,i){var r=n._milliseconds,s=lt(n._days),a=lt(n._months);e.isValid()&&(i=null==i||i,r&&e._d.setTime(e._d.valueOf()+r*o),s&&V(e,"Date",F(e,"Date")+s*o),a&&ae(e,F(e,"Month")+a*o),i&&t.updateOffset(e,s||a))}function ht(e,t){var n=e||je(),o=Ue(n,this).startOf("day"),i=this.diff(o,"days",!0),r=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(t&&(S(t[r])?t[r]():t[r])||this.localeData().calendar(r,this,je(n)))}function dt(){return new g(this)}function ft(e,t){var n=m(e)?e:je(e);return!(!this.isValid()||!n.isValid())&&(t=j(f(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function pt(e,t){var n=m(e)?e:je(e);return!(!this.isValid()||!n.isValid())&&(t=j(f(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function gt(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function mt(e,t){var n,o=m(e)?e:je(e);return!(!this.isValid()||!o.isValid())&&(t=j(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function vt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function yt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function wt(e,t,n){var o,i,r,s;return this.isValid()?(o=Ue(e,this),o.isValid()?(i=6e4*(o.utcOffset()-this.utcOffset()),t=j(t),"year"===t||"month"===t||"quarter"===t?(s=Ct(this,o),"quarter"===t?s/=3:"year"===t&&(s/=12)):(r=this-o,s="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?s:v(s)):NaN):NaN}function Ct(e,t){var n,o,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return 0>t-r?(n=e.clone().add(i-1,"months"),o=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),o=(t-r)/(n-r)),-(i+o)||0}function bt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _t(){var e=this.clone().utc();return e.year()>0&&9999>=e.year()?S(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function St(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=K(this,e);return this.localeData().postformat(n)}function kt(e,t){return this.isValid()&&(m(e)&&e.isValid()||je(e).isValid())?it({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ot(e){return this.from(je(),e)}function Rt(e,t){return this.isValid()&&(m(e)&&e.isValid()||je(e).isValid())?it({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Et(e){return this.to(je(),e)}function Tt(e){var t;return void 0===e?this._locale._abbr:(t=A(e),null!=t&&(this._locale=t),this)}function Mt(){return this._locale}function Dt(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Pt(e){return void 0===(e=j(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Ht(){return this._d.valueOf()-6e4*(this._offset||0)}function xt(){return Math.floor(this.valueOf()/1e3)}function At(){return this._offset?new Date(this.valueOf()):this._d}function Lt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function jt(){return this.isValid()?this.toISOString():null}function It(){return h(this)}function Wt(){return a({},c(this))}function Ft(){return c(this).overflow}function Vt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yt(e,t){z(0,[e,e.length],0,t)}function Bt(e){return Kt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zt(e){return Kt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ut(){return ke(this.year(),1,4)}function Gt(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Kt(e,t,n,o,i){var r;return null==e?Se(this,o,i).year:(r=ke(e,o,i),t>r&&(t=r),Xt.call(this,e,t,n,o,i))}function Xt(e,t,n,o,i){var r=_e(e,t,n,o,i),s=ve(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function $t(e){return Se(e,this._week.dow,this._week.doy).week}function Zt(){return this._week.dow}function Jt(){return this._week.doy}function Qt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function en(e){var t=Se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function tn(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function nn(e,t){return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function on(e){return this._weekdaysShort[e.day()]}function rn(e){return this._weekdaysMin[e.day()]}function sn(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)r=l([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=go.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=go.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=go.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=go.call(this._weekdaysParse,s))?i:-1!==(i=go.call(this._shortWeekdaysParse,s))?i:(i=go.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=go.call(this._shortWeekdaysParse,s))?i:-1!==(i=go.call(this._weekdaysParse,s))?i:(i=go.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=go.call(this._minWeekdaysParse,s))?i:-1!==(i=go.call(this._weekdaysParse,s))?i:(i=go.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function an(e,t,n){var o,i,r;if(this._weekdaysParseExact)return sn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(i=l([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function ln(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=tn(e,this.localeData()),this.add(e-t,"d")):t}function un(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function cn(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function hn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}function dn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function fn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function pn(){function e(e,t){return t.length-e.length}var t,n,o,i,r,s=[],a=[],u=[],c=[];for(t=0;7>t;t++)n=l([2e3,1]).day(t),o=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),a.push(i),u.push(r),c.push(o),c.push(i),c.push(r);for(s.sort(e),a.sort(e),u.sort(e),c.sort(e),t=0;7>t;t++)a[t]=J(a[t]),u[t]=J(u[t]),c[t]=J(c[t]);this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+s.join("|")+")","i")}function gn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function mn(){return this.hours()%12||12}function vn(){return this.hours()||24}function yn(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function wn(e,t){return t._meridiemParse}function Cn(e){return"p"===(e+"").toLowerCase().charAt(0)}function bn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function _n(e,t){t[Ko]=y(1e3*("0."+e))}function Sn(){return this._isUTC?"UTC":""}function kn(){return this._isUTC?"Coordinated Universal Time":""}function On(e){return je(1e3*e)}function Rn(){return je.apply(null,arguments).parseZone()}function En(e,t,n){var o=this._calendar[e];return S(o)?o.call(t,n):o}function Tn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)})}function Mn(){return this._invalidDate}function Dn(e){return this._ordinal.replace("%d",e)}function Pn(e){return e}function Hn(e,t,n,o){var i=this._relativeTime[n];return S(i)?i(e,t,n,o):i.replace(/%d/i,e)}function xn(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function An(e,t,n,o){return A()[n](l().set(o,t),e)}function Ln(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return An(e,t,n,"month");var o,i=[];for(o=0;12>o;o++)i[o]=An(e,o,n,"month");return i}function Nn(e,t,n,o){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=A(),r=e?i._week.dow:0;if(null!=n)return An(t,(n+r)%7,o,"day");var s,a=[];for(s=0;7>s;s++)a[s]=An(t,(s+r)%7,o,"day");return a}function jn(e,t){return Ln(e,t,"months")}function In(e,t){return Ln(e,t,"monthsShort")}function Wn(e,t,n){return Nn(e,t,n,"weekdays")}function Fn(e,t,n){return Nn(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Nn(e,t,n,"weekdaysMin")}function Yn(){var e=this._data;return this._milliseconds=Ii(this._milliseconds),this._days=Ii(this._days),this._months=Ii(this._months),e.milliseconds=Ii(e.milliseconds),e.seconds=Ii(e.seconds),e.minutes=Ii(e.minutes),e.hours=Ii(e.hours),e.months=Ii(e.months),e.years=Ii(e.years),this}function Bn(e,t,n,o){var i=it(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function zn(e,t){return Bn(this,e,t,1)}function Un(e,t){return Bn(this,e,t,-1)}function Gn(e){return 0>e?Math.floor(e):Math.ceil(e)}function Kn(){var e,t,n,o,i,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return(0>r||0>s||0>a)&&(r>0||s>0||a>0)&&(r+=864e5*Gn(qn(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=v(r/1e3),l.seconds=e%60,t=v(e/60),l.minutes=t%60,n=v(t/60),l.hours=n%24,s+=v(n/24),i=v(Xn(s)),a+=i,s-=Gn(qn(i)),o=v(a/12),a%=12,l.days=s,l.months=a,l.years=o,this}function Xn(e){return 4800*e/146097}function qn(e){return 146097*e/4800}function $n(e){var t,n,o=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+o/864e5,n=this._months+Xn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(qn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}}function Zn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function Jn(e){return function(){return this.as(e)}}function Qn(e){return e=j(e),this[e+"s"]()}function eo(e){return function(){return this._data[e]}}function to(){return v(this.days()/7)}function no(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}function oo(e,t,n){var o=it(e).abs(),i=er(o.as("s")),r=er(o.as("m")),s=er(o.as("h")),a=er(o.as("d")),l=er(o.as("M")),u=er(o.as("y")),c=tr.s>i&&["s",i]||1>=r&&["m"]||tr.m>r&&["mm",r]||1>=s&&["h"]||tr.h>s&&["hh",s]||1>=a&&["d"]||tr.d>a&&["dd",a]||1>=l&&["M"]||tr.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,no.apply(null,c)}function io(e,t){return void 0!==tr[e]&&(void 0===t?tr[e]:(tr[e]=t,!0))}function ro(e){var t=this.localeData(),n=oo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function so(){var e,t,n,o=nr(this._milliseconds)/1e3,i=nr(this._days),r=nr(this._months);e=v(o/60),t=v(e/60),o%=60,e%=60,n=v(r/12),r%=12;var s=n,a=r,l=i,u=t,c=e,h=o,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var ao,lo;lo=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var uo=t.momentProperties=[],co=!1,ho={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var fo;fo=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var po,go,mo={},vo={},yo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,wo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Co={},bo={},_o=/\d/,So=/\d\d/,ko=/\d{3}/,Oo=/\d{4}/,Ro=/[+-]?\d{6}/,Eo=/\d\d?/,To=/\d\d\d\d?/,Mo=/\d\d\d\d\d\d?/,Do=/\d{1,3}/,Po=/\d{1,4}/,Ho=/[+-]?\d{1,6}/,xo=/\d+/,Ao=/[+-]?\d+/,Lo=/Z|[+-]\d\d:?\d\d/gi,No=/Z|[+-]\d\d(?::?\d\d)?/gi,jo=/[+-]?\d+(\.\d{1,3})?/,Io=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wo={},Fo={},Vo=0,Yo=1,Bo=2,zo=3,Uo=4,Go=5,Ko=6,Xo=7,qo=8;go=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),q("M",Eo),q("MM",Eo,So),q("MMM",function(e,t){return t.monthsShortRegex(e)}),q("MMMM",function(e,t){return t.monthsRegex(e)}),Q(["M","MM"],function(e,t){t[Yo]=y(e)-1}),Q(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[Yo]=i:c(n).invalidMonth=e});var $o=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Zo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qo=Io,ei=Io,ti=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ni=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,oi=/Z|[+-]\d\d(?::?\d\d)?/,ii=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ri=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],si=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=b("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),z("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),N("year","y"),q("Y",Ao),q("YY",Eo,So),q("YYYY",Po,Oo),q("YYYYY",Ho,Ro),q("YYYYYY",Ho,Ro),Q(["YYYYY","YYYYYY"],Vo),Q("YYYY",function(e,n){n[Vo]=2===e.length?t.parseTwoDigitYear(e):y(e)}),Q("YY",function(e,n){n[Vo]=t.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[Vo]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ai=W("FullYear",!0);t.ISO_8601=function(){};var li=b("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=je.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:d()}),ui=b("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=je.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:d()}),ci=function(){return Date.now?Date.now():+new Date};Be("Z",":"),Be("ZZ",""),q("Z",No),q("ZZ",No),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ze(No,e)});var hi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var di=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,fi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;it.fn=Ve.prototype;var pi=ut(1,"add"),gi=ut(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var mi=b("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yt("gggg","weekYear"),Yt("ggggg","weekYear"),Yt("GGGG","isoWeekYear"),Yt("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),q("G",Ao),q("g",Ao),q("GG",Eo,So),q("gg",Eo,So),q("GGGG",Po,Oo),q("gggg",Po,Oo),q("GGGGG",Ho,Ro),q("ggggg",Ho,Ro),ee(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=y(e)}),ee(["gg","GG"],function(e,n,o,i){n[i]=t.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),N("quarter","Q"),q("Q",_o),Q("Q",function(e,t){t[Yo]=3*(y(e)-1)}),z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),q("w",Eo),q("ww",Eo,So),q("W",Eo),q("WW",Eo,So),ee(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=y(e)});var vi={dow:0,doy:6};z("D",["DD",2],"Do","date"),N("date","D"),q("D",Eo),q("DD",Eo,So),q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),Q(["D","DD"],Bo),Q("Do",function(e,t){t[Bo]=y(e.match(Eo)[0],10)});var yi=W("Date",!0);z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),q("d",Eo),q("e",Eo),q("E",Eo),q("dd",function(e,t){return t.weekdaysMinRegex(e)}),q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),q("dddd",function(e,t){return t.weekdaysRegex(e)}),ee(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),ee(["d","e","E"],function(e,t,n,o){t[o]=y(e)});var wi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ci="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),bi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_i=Io,Si=Io,ki=Io;z("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),q("DDD",Do),q("DDDD",ko),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),z("H",["HH",2],0,"hour"),z("h",["hh",2],0,mn),z("k",["kk",2],0,vn),z("hmm",0,0,function(){return""+mn.apply(this)+B(this.minutes(),2)}),z("hmmss",0,0,function(){return""+mn.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),yn("a",!0),yn("A",!1),N("hour","h"),q("a",wn),q("A",wn),q("H",Eo),q("h",Eo),q("HH",Eo,So),q("hh",Eo,So),q("hmm",To),q("hmmss",Mo),q("Hmm",To),q("Hmmss",Mo),Q(["H","HH"],zo),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[zo]=y(e),c(n).bigHour=!0}),Q("hmm",function(e,t,n){var o=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o)),c(n).bigHour=!0}),Q("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o,2)),t[Go]=y(e.substr(i)),c(n).bigHour=!0}),Q("Hmm",function(e,t,n){var o=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o))}),Q("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o,2)),t[Go]=y(e.substr(i))});var Oi=/[ap]\.?m?\.?/i,Ri=W("Hours",!0);z("m",["mm",2],0,"minute"),N("minute","m"),q("m",Eo),q("mm",Eo,So),Q(["m","mm"],Uo);var Ei=W("Minutes",!1);z("s",["ss",2],0,"second"),N("second","s"),q("s",Eo),q("ss",Eo,So),Q(["s","ss"],Go);var Ti=W("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),q("S",Do,_o),q("SS",Do,So),q("SSS",Do,ko);var Mi;for(Mi="SSSS";9>=Mi.length;Mi+="S")q(Mi,xo);for(Mi="S";9>=Mi.length;Mi+="S")Q(Mi,_n);var Di=W("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var Pi=g.prototype;Pi.add=pi,Pi.calendar=ht,Pi.clone=dt,Pi.diff=wt,Pi.endOf=Pt,Pi.format=St,Pi.from=kt,Pi.fromNow=Ot,Pi.to=Rt,Pi.toNow=Et,Pi.get=Y,Pi.invalidAt=Ft,Pi.isAfter=ft,Pi.isBefore=pt,Pi.isBetween=gt,Pi.isSame=mt,Pi.isSameOrAfter=vt,Pi.isSameOrBefore=yt,Pi.isValid=It,Pi.lang=mi,Pi.locale=Tt,Pi.localeData=Mt,Pi.max=ui,Pi.min=li,Pi.parsingFlags=Wt,Pi.set=Y,Pi.startOf=Dt,Pi.subtract=gi,Pi.toArray=Lt,Pi.toObject=Nt,Pi.toDate=At,Pi.toISOString=_t,Pi.toJSON=jt,Pi.toString=bt,Pi.unix=xt,Pi.valueOf=Ht,Pi.creationData=Vt,Pi.year=ai,Pi.isLeapYear=Ce,Pi.weekYear=Bt,Pi.isoWeekYear=zt,Pi.quarter=Pi.quarters=qt,Pi.month=le,Pi.daysInMonth=ue,Pi.week=Pi.weeks=Qt,Pi.isoWeek=Pi.isoWeeks=en,Pi.weeksInYear=Gt,Pi.isoWeeksInYear=Ut,Pi.date=yi,Pi.day=Pi.days=ln,Pi.weekday=un,Pi.isoWeekday=cn,Pi.dayOfYear=gn,Pi.hour=Pi.hours=Ri,Pi.minute=Pi.minutes=Ei,Pi.second=Pi.seconds=Ti,Pi.millisecond=Pi.milliseconds=Di,Pi.utcOffset=Ke,Pi.utc=qe,Pi.local=$e,Pi.parseZone=Ze,Pi.hasAlignedHourOffset=Je,Pi.isDST=Qe,Pi.isDSTShifted=et,Pi.isLocal=tt,Pi.isUtcOffset=nt,Pi.isUtc=ot,Pi.isUTC=ot,Pi.zoneAbbr=Sn,Pi.zoneName=kn,Pi.dates=b("dates accessor is deprecated. Use date instead.",yi),Pi.months=b("months accessor is deprecated. Use month instead",le),Pi.years=b("years accessor is deprecated. Use year instead",ai),Pi.zone=b("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Xe);var Hi=Pi,xi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ai={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Li=/\d{1,2}/,Ni={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ji=E.prototype;ji._calendar=xi,ji.calendar=En,ji._longDateFormat=Ai,ji.longDateFormat=Tn,ji._invalidDate="Invalid date",ji.invalidDate=Mn,ji._ordinal="%d",ji.ordinal=Dn,ji._ordinalParse=Li,ji.preparse=Pn,ji.postformat=Pn,ji._relativeTime=Ni,ji.relativeTime=Hn,ji.pastFuture=xn,ji.set=O,ji.months=oe,ji._months=Zo,ji.monthsShort=ie,ji._monthsShort=Jo,ji.monthsParse=se,ji._monthsRegex=ei,ji.monthsRegex=he,ji._monthsShortRegex=Qo,ji.monthsShortRegex=ce,ji.week=$t,ji._week=vi,ji.firstDayOfYear=Jt,ji.firstDayOfWeek=Zt,ji.weekdays=nn,ji._weekdays=wi,ji.weekdaysMin=rn,ji._weekdaysMin=bi,ji.weekdaysShort=on,ji._weekdaysShort=Ci,ji.weekdaysParse=an,ji._weekdaysRegex=_i,ji.weekdaysRegex=hn,ji._weekdaysShortRegex=Si,ji.weekdaysShortRegex=dn,ji._weekdaysMinRegex=ki,ji.weekdaysMinRegex=fn,ji.isPM=Cn,ji._meridiemParse=Oi,ji.meridiem=bn,P("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=b("moment.lang is deprecated. Use moment.locale instead.",P),t.langData=b("moment.langData is deprecated. Use moment.localeData instead.",A);var Ii=Math.abs,Wi=Jn("ms"),Fi=Jn("s"),Vi=Jn("m"),Yi=Jn("h"),Bi=Jn("d"),zi=Jn("w"),Ui=Jn("M"),Gi=Jn("y"),Ki=eo("milliseconds"),Xi=eo("seconds"),qi=eo("minutes"),$i=eo("hours"),Zi=eo("days"),Ji=eo("months"),Qi=eo("years"),er=Math.round,tr={s:45,m:45,h:22,d:26,M:11},nr=Math.abs,or=Ve.prototype;return or.abs=Yn,or.add=zn,or.subtract=Un,or.as=$n,or.asMilliseconds=Wi,or.asSeconds=Fi,or.asMinutes=Vi,or.asHours=Yi,or.asDays=Bi,or.asWeeks=zi,or.asMonths=Ui,or.asYears=Gi,or.valueOf=Zn,or._bubble=Kn,or.get=Qn,or.milliseconds=Ki,or.seconds=Xi,or.minutes=qi,or.hours=$i,or.days=Zi,or.weeks=to,or.months=Ji,or.years=Qi,or.humanize=ro,or.toISOString=so,or.toString=so,or.toJSON=so,or.locale=Tt,or.localeData=Mt,or.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),or.lang=mi,z("X",0,0,"unix"),z("x",0,0,"valueOf"),q("x",Ao),q("X",jo),Q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Q("x",function(e,t,n){n._d=new Date(y(e))}),t.version="2.13.0",function(e){ao=e}(je),t.fn=Hi,t.min=We,t.max=Fe,t.now=ci,t.utc=l,t.unix=On,t.months=jn,t.isDate=i,t.locale=P,t.invalid=d,t.duration=it,t.isMoment=m,t.weekdays=Wn,t.parseZone=Rn,t.localeData=A,t.isDuration=Ye,t.monthsShort=In,t.weekdaysMin=Vn,t.defineLocale=H,t.updateLocale=x,t.locales=L,t.weekdaysShort=Fn,t.normalizeUnits=j,t.relativeTimeThreshold=io,t.prototype=Hi,t})}).call(t,n(393)(e))},function(e,t){},function(e,t,n){"use strict";function o(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},o=document.body,i=document.createTextNode(""),r=document.createElement("SPAN"),s=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},l=function(s){var a,l;s?/^[a-zA-Z \.,\\\/\|0-9]$/.test(s)||(s="."):s="",void 0!==i.textContent?i.textContent=t.value+s:i.data=t.value+s,r.style.fontSize=e(t).fontSize,r.style.fontFamily=e(t).fontFamily,r.style.whiteSpace="pre",o.appendChild(r),a=r.clientWidth+2,o.removeChild(r),t.style.height=n.minHeight+"px",t.style.width=n.minWidth>a?n.minWidth+"px":a>n.maxWidth?n.maxWidth+"px":a+"px",l=t.scrollHeight?t.scrollHeight-1:0,n.minHeight>l?t.style.height=n.minHeight+"px":l>n.maxHeight?(t.style.height=n.maxHeight+"px",t.style.overflowY="visible"):t.style.height=l+"px"},u=function(){window.setTimeout(l,0)},c=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)n.minHeight=t.clientHeight;else{var o=parseInt(e.minHeight);isNaN(o)||(n.minHeight=o)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)n.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(n.maxHeight=s)}if(e&&e.minWidth)if("inherit"==e.minWidth)n.minWidth=t.clientWidth;else{var a=parseInt(e.minWidth);isNaN(a)||(n.minWidth=a)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}r.firstChild||(r.className="autoResize",r.style.display="inline-block",r.appendChild(i))},h=function(e,o,i){t=e,c(o),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=n.minHeight+"px",t.style.minWidth=n.minWidth+"px",t.style.maxWidth=n.maxWidth+"px",t.style.overflowY="hidden"),i&&(s(t,"change",l),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",l)),l()};return{init:function(e,t,n){h(e,t,n)},unObserve:function(){a(t,"change",l),a(t,"cut",u),a(t,"paste",u),a(t,"drop",u),a(t,"keydown",u),a(t,"focus",l)},resize:l}}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),a=n(28),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(l.default.CLONE_DEBUG),n.clone.wtTable.holder.style.opacity=.4,n.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",(0,s.addClass)(n.clone.wtTable.holder.parentNode,"wtDebugVisible"),n}return r(t,e),t}(l.default);l.default.registerOverlay(l.default.CLONE_DEBUG,u),t.default=u},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(28),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_LEFT),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),(0,a.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(o.left),r=Math.ceil(o.right),s=void 0,l=void 0;l=this.wot.wtTable.hider.style.top,l=""===l?0:l,s=0>i&&r-e.offsetWidth>0?-i:0,t=s,s+="px",(0,a.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo(e,(0,a.getWindowScrollTop)()):this.mainTableScrollableElement.scrollLeft=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,o=this.wot.wtSettings.defaultColumnWidth;t>e;)n+=this.wot.wtTable.getStretchedColumnWidth(e)||o,e++;return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientHeight===e.offsetHeight?0:(0,a.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,i=this.wot.getSetting("preventOverflow"),r=void 0;if(this.trimmingContainer!==window||"vertical"===i){var s=this.wot.wtViewport.getWorkspaceHeight()-t;s=Math.min(s,(0,a.innerHeight)(this.wot.wtTable.wtRootElement)),o.height=s+"px"}else o.height="";this.clone.wtTable.holder.style.height=o.height,r=(0,a.outerWidth)(this.clone.wtTable.TABLE),o.width=(0===r?r:r+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,a.getScrollbarWidth)();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.top="number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;t&&i.offsetWidth!==i.clientWidth&&(r=(0,a.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=r,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==window||(t=this.wot.wtTable.holderOffset.left),t}},{key:"getScrollPosition",value:function(){return(0,a.getScrollLeft)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,a.removeClass)(t,"emptyRows"):(0,a.addClass)(t,"emptyRows"),o&&!n.length)(0,a.addClass)(t,"innerBorderLeft");else if(!o&&n.length){var i=(0,a.hasClass)(t,"innerBorderLeft");e?(0,a.addClass)(t,"innerBorderLeft"):(0,a.removeClass)(t,"innerBorderLeft"),(!i&&e||i&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_LEFT,c),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(28),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_TOP),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),(0,a.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(o.top),r=Math.ceil(o.bottom),s=void 0,l=void 0;s=this.wot.wtTable.hider.style.left,s=""===s?0:s,l=0>i&&r-e.offsetHeight>0?-i:0,t=l,l+="px",(0,a.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo((0,a.getWindowScrollLeft)(),e):this.mainTableScrollableElement.scrollTop=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,o=this.wot.wtSettings.settings.defaultRowHeight;t>e;){var i=this.wot.wtTable.getRowHeight(e);n+=void 0===i?o:i,e++}return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientWidth===e.offsetWidth?0:(0,a.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,i=this.wot.getSetting("preventOverflow"),r=void 0;if(this.trimmingContainer!==window||"horizontal"===i){var s=this.wot.wtViewport.getWorkspaceWidth()-t;s=Math.min(s,(0,a.innerWidth)(this.wot.wtTable.wtRootElement)),o.width=s+"px"}else o.width="";this.clone.wtTable.holder.style.width=o.width,r=(0,a.outerHeight)(this.clone.wtTable.TABLE),o.height=(0===r?r:r+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,a.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.left="number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;if(t&&i.offsetHeight!==i.clientHeight&&(r=(0,a.getScrollbarWidth)()),t){var s=this.wot.getSetting("fixedRowsBottom"),l=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);n+=r,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,a.getScrollTop)(this.mainTableScrollableElement)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot);if(t){var n=e.getCorners();t.disappear(),t.appear(n)}}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this.wot.selections;this.redrawSelectionBorders(e.current),this.redrawSelectionBorders(e.area),this.redrawSelectionBorders(e.fill),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,a.removeClass)(t,"emptyColumns"):(0,a.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=(0,a.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,a.addClass)(t,"innerBorderTop"):(0,a.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var o=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(o)for(var i=0;o.length>i;i++)o[i].style["border-left-width"]=0}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_TOP,c),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(28),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_TOP_LEFT_CORNER),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,a.outerHeight)(this.clone.wtTable.TABLE),n=(0,a.outerWidth)(this.clone.wtTable.TABLE),o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var i=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(i.top),s=Math.ceil(i.left),l=Math.ceil(i.bottom),u=Math.ceil(i.right),c="0",h="0";o&&"vertical"!==o||0>s&&u-e.offsetWidth>0&&(c=-s+"px"),o&&"horizontal"!==o||0>r&&l-e.offsetHeight>0&&(h=-r+"px"),(0,a.setOverlayPosition)(e,c,h)}else(0,a.resetCssTransform)(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_TOP_LEFT_CORNER,c),t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r="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},s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(351),u=o(l),c=n(43),h=o(c),d=n(69),f=o(d);t.default=function(){function e(t,n){i(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={}}return s(e,[{key:"getBorder",value:function(e){if(this.instanceBorders[e.guid])return this.instanceBorders[e.guid];this.instanceBorders[e.guid]=new u.default(e,this.settings)}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){this.isEmpty()?this.cellRange=new f.default(e,e,e):this.cellRange.expand(e)}},{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(){this.cellRange=null}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,o){var i=e.wtTable.getCell(new h.default(t,n));"object"===(void 0===i?"undefined":r(i))&&(0,a.addClass)(i,o)}},{key:"draw",value:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var n=e.wtTable.getRenderedRowsCount(),o=e.wtTable.getRenderedColumnsCount(),i=this.getCorners(),r=void 0,s=void 0,l=void 0,u=0;o>u;u++)if((s=e.wtTable.columnFilter.renderedToSource(u))>=i[1]&&i[3]>=s&&(l=e.wtTable.getColumnHeader(s))){var c=[];this.settings.highlightHeaderClassName&&c.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&c.push(this.settings.highlightColumnClassName),(0,a.addClass)(l,c)}for(var h=0;n>h;h++){if((r=e.wtTable.rowFilter.renderedToSource(h))>=i[0]&&i[2]>=r&&(l=e.wtTable.getRowHeader(r))){var d=[];this.settings.highlightHeaderClassName&&d.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&d.push(this.settings.highlightRowClassName),(0,a.addClass)(l,d)}for(var f=0;o>f;f++)s=e.wtTable.columnFilter.renderedToSource(f),i[0]>r||r>i[2]||i[1]>s||s>i[3]?i[0]>r||r>i[2]?i[1]>s||s>i[3]||this.settings.highlightColumnClassName&&this.addClassAtCoords(e,r,s,this.settings.highlightColumnClassName):this.settings.highlightRowClassName&&this.addClassAtCoords(e,r,s,this.settings.highlightRowClassName):this.settings.className&&this.addClassAtCoords(e,r,s,this.settings.className)}if(e.getSetting("onBeforeDrawBorders",i,this.settings.className),this.settings.border){var p=this.getBorder(e);p&&p.appear(i)}}}}]),e}()},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9),r=n(26);t.default={editor:(0,o.getEditor)("autocomplete"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9);t.default={editor:(0,o.getEditor)("checkbox"),renderer:(0,i.getRenderer)("checkbox")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9),r=n(26);t.default={editor:(0,o.getEditor)("date"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("date")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9),r=n(26);t.default={editor:(0,o.getEditor)("dropdown"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9);t.default={editor:(0,o.getEditor)("handsontable"),renderer:(0,i.getRenderer)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9),r=n(26);t.default={editor:(0,o.getEditor)("numeric"),renderer:(0,i.getRenderer)("numeric"),validator:(0,r.getValidator)("numeric"),dataType:"number"}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9);n(26);t.default={editor:(0,o.getEditor)("password"),renderer:(0,i.getRenderer)("password"),copyable:!1}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(25),i=n(14),r=n(9);t.default={editor:(0,i.getEditor)((0,o.isMobileBrowser)()?"mobile":"text"),renderer:(0,r.getRenderer)("text")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),i=n(9),r=n(26);t.default={editor:(0,o.getEditor)("text"),renderer:(0,i.getRenderer)("text"),validator:(0,r.getValidator)("time")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource&&this.dataSource[0]?this.recursiveDuckSchema(this.dataSource[0]):{},this.createMap(),this.interval=f.default.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}t.__esModule=!0;var r="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},s=n(349),a=o(s),l=n(65),u=n(66),c=n(1),h=n(2),d=n(490),f=o(d),p=n(6),g=n(428),m=o(g),v=n(8);o(v);i.prototype.DESTINATION_RENDERER=1,i.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,i.prototype.recursiveDuckSchema=function(e){return(0,c.duckSchema)(e)},i.prototype.recursiveDuckColumns=function(e,t,n){var o,i;if(void 0===t&&(t=0,n=""),"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e))for(i in e)(0,c.hasOwnProperty)(e,i)&&(null===e[i]?(o=n+i,this.colToPropCache.push(o),this.propToColCache.set(o,t),t++):t=this.recursiveDuckColumns(e[i],t,i+"."));return t},i.prototype.createMap=function(){var e=void 0,t=this.getSchema();if(void 0===t)throw Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new m.default;var n=this.instance.getSettings().columns;if(n){var o=this.instance.getSettings().maxCols,i=Math.min(o,n.length),r=0,s=!1,a=(0,c.deepObjectSize)(t);for("function"==typeof n&&(i=a>0?a:this.instance.countSourceCols(),s=!0),e=0;i>e;e++){var l=s?n(e):n[e];if((0,c.isObject)(l)){if(void 0!==l.data){var u=s?r:e;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}r++}}}else this.recursiveDuckColumns(t)},i.prototype.colToProp=function(e){return e=this.instance.runHooks("modifyCol",e),!isNaN(e)&&this.colToPropCache&&void 0!==this.colToPropCache[e]?this.colToPropCache[e]:e},i.prototype.propToCol=function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),t=this.instance.runHooks("unmodifyCol",t)},i.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},i.prototype.createRow=function(e,t,n){var o,i,r=this.instance.countCols(),s=0;t||(t=1),"number"==typeof e&&e<this.instance.countSourceRows()||(e=this.instance.countSourceRows()),this.instance.runHooks("beforeCreateRow",e,t,n),i=e;for(var a=this.instance.getSettings().maxRows;t>s&&this.instance.countSourceRows()<a;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?o=(0,c.deepClone)(this.getSchema()):(o=[],(0,p.rangeEach)(r-1,function(){return o.push(null)})):"function"===this.instance.dataType?o=this.instance.getSettings().dataSchema(e):(o={},(0,c.deepExtend)(o,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(o):this.spliceData(e,0,o),s++,i++;return this.instance.runHooks("afterCreateRow",e,s,n),this.instance.forceFullRender=!0,s},i.prototype.createCol=function(e,t,n){if(!this.instance.isColumnModificationAllowed())throw Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var o,i,r=this.instance.countSourceRows(),s=this.dataSource,a=0;t||(t=1),"number"==typeof e&&e<this.instance.countCols()||(e=this.instance.countCols()),this.instance.runHooks("beforeCreateCol",e,t,n),i=e;for(var l=this.instance.getSettings().maxCols;t>a&&this.instance.countCols()<l;){if(o=(0,u.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts),"number"==typeof e&&e<this.instance.countCols()){for(var c=0;r>c;c++)s[c].splice(i,0,null);this.priv.columnSettings.splice(i,0,o)}else{if(r>0)for(var h=0;r>h;h++)void 0===s[h]&&(s[h]=[]),s[h].push(null);else s.push([null]);this.priv.columnSettings.push(o)}a++,i++}return this.instance.runHooks("afterCreateCol",e,a,n),this.instance.forceFullRender=!0,a},i.prototype.removeRow=function(e,t,n){t||(t=1),"number"!=typeof e&&(e=-t),t=this.instance.runHooks("modifyRemovedAmount",t,e),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var o=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeRemoveRow",e,t,o,n)){var i=this.dataSource,r=void 0;r=this.filterData(e,t),r&&(i.length=0,Array.prototype.push.apply(i,r)),this.instance.runHooks("afterRemoveRow",e,t,o,n),this.instance.forceFullRender=!0}},i.prototype.removeCol=function(e,t,n){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw Error("cannot remove column with object data source or columns option specified");t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countCols()+e)%this.instance.countCols();var o=this.visualColumnsToPhysical(e,t),i=o.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",e,t,o,n)){for(var r=!0,s=i.length,a=this.dataSource,l=0;s>l;l++)r&&o[0]!==o[l]-l&&(r=!1);if(r)for(var u=0,c=this.instance.countSourceRows();c>u;u++)a[u].splice(o[0],t);else{for(var h=0,d=this.instance.countSourceRows();d>h;h++)for(var f=0;s>f;f++)a[h].splice(i[f],1);for(var p=0;s>p;p++)this.priv.columnSettings.splice(o[p],1)}this.instance.runHooks("afterRemoveCol",e,t,o,n),this.instance.forceFullRender=!0}},i.prototype.spliceCol=function(e,t,n){var o=4>arguments.length?[]:[].slice.call(arguments,3),i=this.instance.getDataAtCol(e),r=i.slice(t,t+n),s=i.slice(t+n);(0,h.extendArray)(o,s);for(var a=0;n>a;)o.push(null),a++;return(0,h.to2dArray)(o),this.instance.populateFromArray(t,e,o,null,null,"spliceCol"),r},i.prototype.spliceRow=function(e,t,n){var o=4>arguments.length?[]:[].slice.call(arguments,3),i=this.instance.getSourceDataAtRow(e),r=i.slice(t,t+n),s=i.slice(t+n);(0,h.extendArray)(o,s);for(var a=0;n>a;)o.push(null),a++;return this.instance.populateFromArray(e,t,[o],null,null,"spliceRow"),r},i.prototype.spliceData=function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)},i.prototype.filterData=function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1==n.indexOf(t)})},i.prototype.get=function(e,t){e=this.instance.runHooks("modifyRow",e);var n=this.dataSource[e],o=this.instance.runHooks("modifyRowData",e);n=isNaN(o)?o:n;var i=null;if(n&&n.hasOwnProperty&&(0,c.hasOwnProperty)(n,t))i=n[t];else if("string"==typeof t&&t.indexOf(".")>-1){var r=t.split("."),s=n;if(!s)return null;for(var a=0,l=r.length;l>a;a++)if(void 0===(s=s[r[a]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(e,e+1)[0]));if(this.instance.hasHook("modifyData")){var u=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",e,this.propToCol(t),u,"get"),u.isTouched()&&(i=u.value)}return i};var y=(0,l.cellMethodLookupFactory)("copyable",!1);i.prototype.getCopyable=function(e,t){return y.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},i.prototype.set=function(e,t,n,o){e=this.instance.runHooks("modifyRow",e,o||"datamapGet");var i=this.dataSource[e],r=this.instance.runHooks("modifyRowData",e);if(i=isNaN(r)?r:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(n);this.instance.runHooks("modifyData",e,this.propToCol(t),s,"set"),s.isTouched()&&(n=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=n;else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),l=i,u=0,h=void 0;for(u=0,h=a.length-1;h>u;u++)void 0===l[a[u]]&&(l[a[u]]={}),l=l[a[u]];l[a[u]]=n}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],n):i[t]=n},i.prototype.visualRowsToPhysical=function(e,t){for(var n,o=this.instance.countSourceRows(),i=(o+e)%o,r=[],s=t;o>i&&s;)n=this.instance.runHooks("modifyRow",i),r.push(n),s--,i++;return r},i.prototype.visualColumnsToPhysical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,i=[],r=t;n>o&&r;){i.push(this.instance.runHooks("modifyCol",o)),r--,o++}return i},i.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},i.prototype.clearLengthCache=function(){this.cachedLength=null},i.prototype.getLength=function(){var e=this,t=void 0,n=this.instance.getSettings().maxRows;t=0>n||0===n?0:n||1/0;var o=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var i=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(i=!0),this.latestSourceRowsCount=o,null===this.cachedLength||i?((0,p.rangeEach)(o-1,function(t){null===(t=e.instance.runHooks("modifyRow",t))&&--o}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,t)},i.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,i.prototype.DESTINATION_RENDERER):[]},i.prototype.getRange=function(e,t,n){var o,i,r,s,a,l=[],u=this.instance.getSettings().maxRows,c=this.instance.getSettings().maxCols;if(0===u||0===c)return[];var h=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(i=Math.min(Math.max(u-1,0),Math.max(e.row,t.row)),s=Math.min(Math.max(c-1,0),Math.max(e.col,t.col)),o=Math.min(e.row,t.row);i>=o;o++){a=[];var d=this.instance.runHooks("modifyRow",o);for(r=Math.min(e.col,t.col);s>=r&&null!==d;r++)a.push(h.call(this,o,this.colToProp(r)));null!==d&&l.push(a)}return l},i.prototype.getText=function(e,t){return a.default.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},i.prototype.getCopyableText=function(e,t){return a.default.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},i.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},i.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null},t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1),s=n(2),a=n(6);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return i(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,s.arrayEach)(this.data,function(o){var i=t.colToProp(e);o="string"==typeof i?(0,r.getProperty)(o,i):o[i],n.push(o)}),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,o=this.hot.runHooks("modifyRowData",e),i=isNaN(o)?o:this.data[e];if(i){var s=this.colToProp(t);n="string"==typeof s?(0,r.getProperty)(i,s):"function"==typeof s?s(this.data.slice(e,e+1)[0]):i[s]}return n}},{key:"getByRange",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Math.min(e.row,t.row),r=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col),u=[];return(0,a.rangeEach)(i,s,function(e){var t=n.getAtRow(e),i=void 0;"array"===n.dataType?i=t.slice(r,l+1):"object"===n.dataType&&(i=o?[]:{},(0,a.rangeEach)(r,l,function(e){var r=n.colToProp(e);o?i.push(t[r]):i[r]=t[r]})),u.push(i)}),u}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}()},function(e,t,n){"use strict";function o(e,t,n){function o(e){n.setSelectedHeaders(!1,!1,!1);var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function l(e){e?(n.selectedHeader.cols&&n.setSelectedHeaders(n.selectedHeader.rows,!1,!1),n.transformEnd(-1,0)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(-1,0))}function h(e){e?n.transformEnd(1,0):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(1,0))}function d(e){e?n.transformEnd(0,1):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,1))}function f(e){e?(n.selectedHeader.rows&&n.setSelectedHeaders(!1,n.selectedHeader.cols,!1),n.transformEnd(0,-1)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,-1))}function p(a){var u,p;if(e.isListening()&&(e.runHooks("beforeKeyDown",a),!y&&!(0,s.isImmediatePropagationStopped)(a)&&(t.lastKeyCode=a.keyCode,n.isSelected()))){if(u=(a.ctrlKey||a.metaKey)&&!a.altKey,m&&!m.isWaiting()&&!((0,r.isMetaKey)(a.keyCode)||(0,r.isCtrlKey)(a.keyCode)||u||v.isEditorOpened()))return void v.openEditor("",a);switch(p=a.shiftKey?n.setRangeEnd:n.setRangeStart,a.keyCode){case r.KEY_CODES.A:!v.isEditorOpened()&&u&&(n.selectAll(),a.preventDefault(),(0,s.stopPropagation)(a));break;case r.KEY_CODES.ARROW_UP:v.isEditorOpened()&&!m.isWaiting()&&v.closeEditorAndSaveChanges(u),l(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_DOWN:v.isEditorOpened()&&!m.isWaiting()&&v.closeEditorAndSaveChanges(u),h(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_RIGHT:v.isEditorOpened()&&!m.isWaiting()&&v.closeEditorAndSaveChanges(u),d(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_LEFT:v.isEditorOpened()&&!m.isWaiting()&&v.closeEditorAndSaveChanges(u),f(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.TAB:n.setSelectedHeaders(!1,!1,!1);var g="function"==typeof t.settings.tabMoves?t.settings.tabMoves(a):t.settings.tabMoves;a.shiftKey?n.transformStart(-g.row,-g.col):n.transformStart(g.row,g.col,!0),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.BACKSPACE:case r.KEY_CODES.DELETE:n.empty(a),v.prepareEditor(),a.preventDefault();break;case r.KEY_CODES.F2:v.openEditor(null,a),m&&m.enableFullEditMode(),a.preventDefault();break;case r.KEY_CODES.ENTER:v.isEditorOpened()?(m&&m.state!==c.EditorState.WAITING&&v.closeEditorAndSaveChanges(u),o(a.shiftKey)):e.getSettings().enterBeginsEditing?(v.openEditor(null,a),m&&m.enableFullEditMode()):o(a.shiftKey),a.preventDefault(),(0,s.stopImmediatePropagation)(a);break;case r.KEY_CODES.ESCAPE:v.isEditorOpened()&&v.closeEditorAndRestoreOriginalValue(u),a.preventDefault();break;case r.KEY_CODES.HOME:n.setSelectedHeaders(!1,!1,!1),p(a.ctrlKey||a.metaKey?new i.CellCoords(0,t.selRange.from.col):new i.CellCoords(t.selRange.from.row,0)),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.END:n.setSelectedHeaders(!1,!1,!1),p(a.ctrlKey||a.metaKey?new i.CellCoords(e.countRows()-1,t.selRange.from.col):new i.CellCoords(t.selRange.from.row,e.countCols()-1)),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.PAGE_UP:n.setSelectedHeaders(!1,!1,!1),n.transformStart(-e.countVisibleRows(),0),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.PAGE_DOWN:n.setSelectedHeaders(!1,!1,!1),n.transformStart(e.countVisibleRows(),0),a.preventDefault(),(0,s.stopPropagation)(a)}}}var g,m,v=this,y=!1;g=new u.default(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return m},this.prepareEditor=function(){var n,o,i,r,s,l,u;if(m&&m.isWaiting())return void this.closeEditor(!1,!1,function(e){e&&v.prepareEditor()});n=t.selRange.highlight.row,o=t.selRange.highlight.col,i=e.colToProp(o),r=e.getCell(n,o),s=e.getSourceDataAtCell(e.runHooks("modifyRow",n),o),l=e.getCellMeta(n,o),u=e.getCellEditor(l),u?(m=(0,a.getEditorInstance)(u,e),m.prepare(n,o,i,r,s,l)):m=void 0},this.isEditorOpened=function(){return m&&m.isOpened()},this.openEditor=function(e,t){m&&!m.cellProperties.readOnly?m.beginEditing(e,t):m&&m.cellProperties.readOnly&&t&&t.keyCode===r.KEY_CODES.ENTER&&o()},this.closeEditor=function(e,t,n){m?m.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},function(){function t(e,t,n){"TD"==n.nodeName&&(v.openEditor(),m&&m.enableFullEditMode())}e.addHook("afterDocumentKeyDown",p),g.addEventListener(document.documentElement,"keydown",function(t){y||e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",t),e.addHook("afterDestroy",function(){y=!0})}()}t.__esModule=!0;var i=n(11),r=n(16),s=n(7),a=n(14),l=n(4),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(36);t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(36),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"beginEditing",value:function(e,t){if(void 0===t){var n=this.TD.querySelector('input[type="checkbox"]');(0,u.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}(l.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(42),c=o(u),h=n(524),d=o(h);n(515);var f=n(0),p=n(1),g=n(4),m=o(g),v=n(16),y=n(7),w=n(44),C=o(w);t.default=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}return s(t,e),a(t,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw Error("You need to include Pikaday to your project.");l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,f.addClass)(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new d.default(this.getDatePickerConfig()),new m.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,y.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){this.$datePicker.destroy()}},{key:"prepare",value:function(e,n,o,i,r,s){this._opened=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,i,r,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){e.instance.selection.refreshBorders()},0)),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var o=this.originalValue;void 0!==o&&this.setValue(o)}this.hideDatepicker(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t=this.TD.getBoundingClientRect(),n=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),i=void 0,r=this.instance.view.isMouseDown(),s=!!e&&(0,v.isMetaKey)(e.keyCode);this.datePickerStyle.top=window.pageYOffset+t.top+(0,f.outerHeight)(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+t.left+"px",this.$datePicker._onInputFocus=function(){},o.format=n,this.originalValue?(i=this.originalValue,(0,c.default)(i,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(i,n),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||r||this.setValue("")):this.cellProperties.defaultDate?(i=this.cellProperties.defaultDate,o.defaultDate=i,(0,c.default)(i,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(i,n),!0),s||r||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,p.deepExtend)(n,this.cellProperties.datePickerConfig);var o=n.onSelect,i=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.onSelect=function(t){isNaN(t.getTime())||(t=(0,c.default)(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),o&&o()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),i&&i()},n}}]),t}(C.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(364),c=o(u),h=n(8),d=o(h),f=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),a(t,[{key:"prepare",value:function(e,n,o,i,r,s){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,i,r,s),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),t}(c.default);d.default.getSingleton().add("beforeValidate",function(e,t,n,o){var i=this.getCellMeta(t,this.propToCol(n));i.editor===f&&void 0===i.strict&&(i.filter=!1,i.strict=!0)}),t.default=f},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(16),r=n(7),s=n(0),a=n(36),l=o(a),u=n(4),c=o(u),h=l.default.prototype.extend(),d={},f=function(){this.controls={},this.controls.leftButton=document.createElement("DIV"),this.controls.leftButton.className="leftButton",this.controls.rightButton=document.createElement("DIV"),this.controls.rightButton.className="rightButton",this.controls.upButton=document.createElement("DIV"),this.controls.upButton.className="upButton",this.controls.downButton=document.createElement("DIV"),this.controls.downButton.className="downButton";for(var e in this.controls)Object.prototype.hasOwnProperty.call(this.controls,e)&&this.positionControls.appendChild(this.controls[e])};h.prototype.valueChanged=function(){return this.initValue!=this.getValue()},h.prototype.init=function(){var e=this;this.eventManager=new c.default(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},h.prototype.getValue=function(){return this.TEXTAREA.value},h.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},h.prototype.createElements=function(){this.editorContainer=document.createElement("DIV"),this.editorContainer.className="htMobileEditorContainer",this.cellPointer=document.createElement("DIV"),this.cellPointer.className="cellPointer",this.moveHandle=document.createElement("DIV"),this.moveHandle.className="moveHandle",this.inputPane=document.createElement("DIV"),this.inputPane.className="inputs",this.positionControls=document.createElement("DIV"),this.positionControls.className="positionControls",this.TEXTAREA=document.createElement("TEXTAREA"),(0,s.addClass)(this.TEXTAREA,"handsontableInput"),this.inputPane.appendChild(this.TEXTAREA),this.editorContainer.appendChild(this.cellPointer),this.editorContainer.appendChild(this.moveHandle),this.editorContainer.appendChild(this.inputPane),this.editorContainer.appendChild(this.positionControls),f.call(this),document.body.appendChild(this.editorContainer)},h.prototype.onBeforeKeyDown=function(e){var t=this,n=t.getActiveEditor();if(e.target===n.TEXTAREA&&!(0,r.isImmediatePropagationStopped)(e))switch(e.keyCode){case i.KEY_CODES.ENTER:n.close(),e.preventDefault();break;case i.KEY_CODES.BACKSPACE:(0,r.stopImmediatePropagation)(e)}},h.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),(0,s.addClass)(this.editorContainer,"active"),(0,s.removeClass)(this.cellPointer,"hidden"),this.updateEditorPosition()},h.prototype.focus=function(){this.TEXTAREA.focus(),(0,s.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},h.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),(0,s.removeClass)(this.editorContainer,"active")},h.prototype.scrollToView=function(){this.instance.view.scrollViewport(this.instance.getSelectedRange().highlight)},h.prototype.hideCellPointer=function(){(0,s.hasClass)(this.cellPointer,"hidden")||(0,s.addClass)(this.cellPointer,"hidden")},h.prototype.updateEditorPosition=function(e,t){if(e&&t)e=parseInt(e,10),t=parseInt(t,10),this.editorContainer.style.top=t+"px",this.editorContainer.style.left=e+"px";else{var n=this.instance.getSelected(),o=this.instance.getCell(n[0],n[1]);if(d.cellPointer||(d.cellPointer={height:(0,s.outerHeight)(this.cellPointer),width:(0,s.outerWidth)(this.cellPointer)}),d.editorContainer||(d.editorContainer={width:(0,s.outerWidth)(this.editorContainer)}),void 0!==o){var i=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:(0,s.getScrollLeft)(this.instance.view.wt.wtOverlays.leftOverlay.holder),r=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:(0,s.getScrollTop)(this.instance.view.wt.wtOverlays.topOverlay.holder),a=(0,s.offset)(o),l=(0,s.outerWidth)(o),u={x:i,y:r};this.editorContainer.style.top=parseInt(a.top+(0,s.outerHeight)(o)-u.y+d.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-d.editorContainer.width/2,10)+"px",a.left+l/2>parseInt(this.editorContainer.style.left,10)+d.editorContainer.width?this.editorContainer.style.left=window.innerWidth-d.editorContainer.width+"px":a.left+l/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(a.left-d.cellPointer.width/2-(0,s.offset)(this.editorContainer).left+l/2-u.x,10)+"px"}}},h.prototype.updateEditorData=function(){var e=this.instance.getSelected(),t=this.instance.getDataAtCell(e[0],e[1]);this.row=e[0],this.col=e[1],this.setValue(t),this.updateEditorPosition()},h.prototype.prepareAndSave=function(){var e;this.valueChanged()&&(e=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],this.saveValue(e))},h.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,-1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(-1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(t){if(1==t.touches.length){var n=t.touches[0],o={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},i={x:n.pageX-o.x,y:n.pageY-o.y};e.eventManager.addEventListener(this,"touchmove",function(t){var n=t.touches[0];e.updateEditorPosition(n.pageX-i.x,n.pageY-i.y),e.hideCellPointer(),t.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(t){(0,s.isChildOf)(t.target,e.editorContainer)||(0,s.isChildOf)(t.target,e.instance.rootElement)||e.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&e.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&e.hideCellPointer()})},h.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},t.default=h},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(51),c=o(u),h=n(44),d=o(h);t.default=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),a(t,[{key:"beginEditing",value:function(e){if(void 0===e&&this.originalValue){void 0!==this.cellProperties.language&&c.default.culture(this.cellProperties.language);e=(""+this.originalValue).replace(".",c.default.cultureData().delimiters.decimal)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"beginEditing",this).call(this,e)}}]),t}(d.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(0),u=n(44),c=function(e){return e&&e.__esModule?e:{default:e}}(u);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"createElements",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}(c.default)},function(e,t,n){"use strict";t.__esModule=!0;var o="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},i=n(0),r=n(7),s=n(16),a=n(36),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=l.default.prototype.extend();u.prototype.init=function(){this.select=document.createElement("SELECT"),(0,i.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},u.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},u.prototype.prepare=function(){l.default.prototype.prepare.apply(this,arguments);var e,t=this.cellProperties.selectOptions;e=this.prepareOptions("function"==typeof t?t(this.row,this.col,this.prop):t),(0,i.empty)(this.select);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=document.createElement("OPTION");o.value=n,(0,i.fastInnerHTML)(o,e[n]),this.select.appendChild(o)}},u.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,i=e.length;i>n;n++)t[e[n]]=e[n];else"object"==(void 0===e?"undefined":o(e))&&(t=e);return t},u.prototype.getValue=function(){return this.select.value},u.prototype.setValue=function(e){this.select.value=e};var c=function(e){var t=this,n=t.getActiveEditor();switch(e.keyCode){case s.KEY_CODES.ARROW_UP:var o=n.select.selectedIndex-1;0>o||(n.select[o].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault();break;case s.KEY_CODES.ARROW_DOWN:var i=n.select.selectedIndex+1;i>n.select.length-1||(n.select[i].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault()}};u.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",c)},u.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",c)},u.prototype.focus=function(){this.select.focus()},u.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},u.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close();var e,t=(0,i.outerWidth)(this.TD)+1,n=(0,i.outerHeight)(this.TD)+1,o=(0,i.offset)(this.TD),r=(0,i.offset)(this.instance.rootElement),s=(0,i.getScrollableElement)(this.TD),l=o.top-r.top-1-(s.scrollTop||0),u=o.left-r.left-1-(s.scrollLeft||0),c=this.checkEditorSection();this.instance.getSettings();switch(c){case"top":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1);var h=this.select.style;e&&-1!=e?h[e[0]]=e[1]:(0,i.resetCssTransform)(this.select);var d=(0,i.getComputedStyle)(this.TD);parseInt(d.borderTopWidth,10)>0&&(n-=1),parseInt(d.borderLeftWidth,10)>0&&(t-=1),h.height=n+"px",h.minWidth=t+"px",h.top=l+"px",h.left=u+"px",h.margin="0px"}},u.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!=e&&-2!=e?e:void 0},t.default=u},function(e,t,n){"use strict";function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,i.arrayReduce)(e,function(e,t,o){return e+t.replace(/(?:\r?\n\s+)/g,"")+(n[o]?n[o]:"")},"").trim()}t.__esModule=!0,t.toSingleLine=o;var i=n(2)},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e,t||{},Q.rootInstanceSymbol);return n.init(),n}n(98),n(115),n(124),n(125),n(109),n(123),n(106),n(107),n(108),n(97),n(120),n(118),n(116),n(121),n(122),n(117),n(119),n(110),n(111),n(112),n(114),n(113),n(95),n(96),n(91),n(94),n(93),n(92),n(68),n(100),n(101),n(103),n(102),n(99),n(105),n(104),n(126),n(129),n(127),n(128),n(131),n(130),n(133),n(132),n(396),n(397),n(398);var s=n(14),a=n(9),l=n(26),u=n(63),c=n(64),h=i(c),d=n(394),f=i(d),p=n(4),g=i(p),m=n(8),v=i(m),y=n(67),w=i(y),C=n(2),b=o(C),_=n(25),S=o(_),k=n(65),O=o(k),R=n(89),E=o(R),T=n(34),M=o(T),D=n(35),P=o(D),H=n(20),x=o(H),A=n(6),L=o(A),N=n(1),j=o(N),I=n(66),W=o(I),F=n(27),V=o(F),Y=n(16),B=o(Y),z=n(0),U=o(z),G=n(7),K=o(G),X=n(395),q=o(X),$=n(5),Z=n(88),J=i(Z),Q=n(90);(0,f.default)(r),r.Core=h.default,r.DefaultSettings=J.default,r.EventManager=g.default,r._getListenersCounter=p.getListenersCounter,r.buildDate="05/09/2017 13:02:49",r.packageName="handsontable",r.version="0.34.1";r.hooks=v.default.getSingleton(),r.__GhostTable=w.default;var ee=[b,S,O,E,M,P,x,L,j,W,V,B],te=[U,K];r.helper={},r.dom={},b.arrayEach(ee,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(r.helper[t]=e[t])})}),b.arrayEach(te,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(r.dom[t]=e[t])})}),r.cellTypes={},b.arrayEach((0,u.getRegisteredCellTypeNames)(),function(e){r.cellTypes[e]=(0,u.getCellType)(e)}),r.cellTypes.registerCellType=u.registerCellType,r.cellTypes.getCellType=u.getCellType,r.editors={},b.arrayEach((0,s.getRegisteredEditorNames)(),function(e){r.editors[V.toUpperCaseFirst(e)+"Editor"]=(0,s.getEditor)(e)}),r.editors.registerEditor=s.registerEditor,r.editors.getEditor=s.getEditor,r.renderers={},b.arrayEach((0,a.getRegisteredRendererNames)(),function(e){var t=(0,a.getRenderer)(e);"base"===e&&(r.renderers.cellDecorator=t),r.renderers[V.toUpperCaseFirst(e)+"Renderer"]=t}),r.renderers.registerRenderer=a.registerRenderer,r.renderers.getRenderer=a.getRenderer,r.validators={},b.arrayEach((0,l.getRegisteredValidatorNames)(),function(e){r.validators[V.toUpperCaseFirst(e)+"Validator"]=(0,l.getValidator)(e)}),r.validators.registerValidator=l.registerValidator,r.validators.getValidator=l.getValidator,r.plugins={},b.arrayEach(Object.getOwnPropertyNames(q),function(e){var t=q[e];"Base"===e?r.plugins[e+"Plugin"]=t:r.plugins[e]=t}),r.plugins.registerPlugin=$.registerPlugin,e.exports=r},function(e,t,n){"use strict";function o(){function e(e){return null!==e&&!n(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"==(void 0===e?"undefined":i(e))||"function"==typeof e)}function n(e){return e!==e}var o={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return e(n)?o.arrayMap[n]:t(n)?o.weakMap.get(n):void 0},set:function(n,i){if(e(n))o.arrayMap[n]=i;else{if(!t(n))throw Error("Invalid key type");o.weakMap.set(n,i)}},delete:function(n){e(n)?delete o.arrayMap[n]:t(n)&&o.weakMap.delete(n)}}}t.__esModule=!0;var i="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};t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(12),h=o(c),d=n(2),f=n(34),p=n(0),g=n(67),m=o(g),v=n(1),y=n(6),w=n(5),C=n(370),b=o(C),_=n(27),S=n(11),k=new WeakMap,O=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return k.set(n,{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new m.default(n.hot),n.samplesGenerator=new b.default(function(e,t){return n.hot.getDataAtCell(e,t)}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",function(e,t,o){return n.onBeforeColumnResize(e,t,o)}),n}return s(t,e),u(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),u(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!=n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),(0,y.rangeEach)(e.from,e.to,function(e){if(o||void 0===t.widths[e]&&!t.hot._getColWidthFromSettings(e)){t.samplesGenerator.generateColumnSamples(e,n).forEach(function(e,n){return t.ghostTable.addColumn(n,e)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,n){t.widths[e]=n}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},o=0,i=this.hot.countCols()-1,r=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),i>o?function s(){if(!e.hot)return(0,f.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateColumnsWidth({from:o,to:Math.min(o+t.CALCULATION_STEP,i)},n),o=o+t.CALCULATION_STEP+1,i>o?r=(0,f.requestAnimationFrame)(s):((0,f.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,v.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,v.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&(0,p.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return(0,v.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,_.isPercentValue)(e)?e=(0,y.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=2>=arguments.length||void 0===arguments[2]||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,S.ViewportColumnsCalculator.DEFAULT_WIDTH))),o}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=k.get(this),n=t.cachedColumnHeaders;return(0,d.arrayReduce)(e,function(e,t,o){var i=n.length;return(o>i-1||n[o]!==t)&&e.push(o),o>i-1?n.push(t):n[o]=t,e},[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?(0,d.arrayEach)(t,function(t){e.widths[t]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,d.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.hot.countRows()&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var t=this;this.clearCache((0,d.arrayMap)(e,function(e){var n=a(e,2);return t.hot.propToCol(n[1])}))}},{key:"onBeforeColumnResize",value:function(e,t,n){return n&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t}},{key:"onAfterInit",value:function(){k.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("autoColumnSize",O),t.default=O},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(12),c=o(u),h=n(2),d=n(34),f=n(0),p=n(67),g=o(p),m=n(1),v=n(6),y=n(5),w=n(370),C=o(w),b=n(27),_=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.heights=[],n.ghostTable=new g.default(n.hot),n.samplesGenerator=new C.default(function(e,t){return 0>e?-1===e?n.hot.getColHeader(t):null:n.hot.getDataAtCell(e,t)}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",function(e,t,o){return n.onBeforeRowResize(e,t,o)}),n}return s(t,e),l(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),l(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,m.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),null!==this.hot.getColHeader(0)){this.ghostTable.addColumnHeadersRow(this.samplesGenerator.generateRowSamples(-1,n).get(-1))}(0,v.rangeEach)(e.from,e.to,function(e){if(o||void 0===t.heights[e]){t.samplesGenerator.generateRowSamples(e,n).forEach(function(e,n){t.ghostTable.addRow(n,e)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,n){t.heights[e]=n}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},o=0,i=this.hot.countRows()-1,r=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),i>o?function s(){if(!e.hot)return(0,d.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateRowsHeight({from:o,to:Math.min(o+t.CALCULATION_STEP,i)},n),o=o+t.CALCULATION_STEP+1,i>o?r=(0,d.requestAnimationFrame)(s):((0,d.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,f.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return(0,m.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,b.isPercentValue)(e)?e=(0,v.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this;"number"==typeof e&&(e={from:e,to:e}),(0,v.rangeEach)(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e);var t=this.hot.getSettings().fixedRowsBottom;if(t){var n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}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){return n&&(this.calculateRowsHeight(e,void 0,!0),t=this.getRowHeight(e)),t}},{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(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("autoRowSize",_),t.default=_},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(8),d=o(h),f=n(0),p=n(4),g=o(p),m=n(5),v=n(11),y=n(432);d.default.getSingleton().register("modifyAutofillRange"),d.default.getSingleton().register("beforeAutofill");var w=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new g.default(n),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}return s(t,e),a(t,[{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,o){return e.onBeforeCellMouseOver(n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e={from:this.hot.getSelectedRange().from,to:this.hot.getSelectedRange().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)}},{key:"fillIn",value:function(){if(this.hot.view.wt.selections.fill.isEmpty())return!1;var e=this.hot.view.wt.selections.fill.getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells(),n=(0,y.getDragDirectionAndRange)(t,e),o=n.directionOfDrag,i=n.startOfDragCoords,r=n.endOfDragCoords;if(this.hot.runHooks("modifyAutofillRange",t,e),i&&i.row>-1&&i.col>-1){var s=this.getSelectionData(),a=(0,y.getDeltas)(i,r,s,o),l=s;if(this.hot.runHooks("beforeAutofill",i,r,s),["up","left"].indexOf(o)>-1){l=[];var u=null,c=null;if("up"===o){u=r.row-i.row+1,c=u%s.length;for(var h=0;u>h;h++)l.push(s[(h+(s.length-c))%s.length])}else{u=r.col-i.col+1,c=u%s[0].length;for(var d=0;s.length>d;d++){l.push([]);for(var f=0;u>f;f++)l[d].push(s[d][(f+(s[d].length-c))%s[d].length])}}}this.hot.populateFromArray(i.row,i.col,l,r.row,r.col,this.pluginName+".fill",null,o,a),this.setSelection(e)}else this.hot.selection.refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return 0>e.row&&(e.row=0),0>e.col&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t=this.hot.getSelectedRange().getTopLeftCorner(),n=this.hot.getSelectedRange().getBottomRightCorner(),o=void 0;if(this.directions.includes(y.DIRECTIONS.vertical)&&(e.row>n.row||t.row>e.row))o=new v.CellCoords(e.row,n.col);else{if(!this.directions.includes(y.DIRECTIONS.horizontal))return;o=new v.CellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(o)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,e.pluginName+".fill"),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.view.wt.selections.fill.cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelected(),t=this.hot.view.wt.selections.fill.getCorners(),n=this.hot.countRows();n-1>e[2]&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.view.wt.selections.area.getCorners():this.hot.view.wt.selections.current.getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t=this.hot.getData(),n=this.hot.countRows(),o=void 0,i=e[2]+1;n>i;i++){for(var r=e[1];e[3]>=r;r++){if(t[i][r])return-1}var s=t[i][e[1]-1],a=t[i][e[3]+1];(s||a)&&(o=i)}return o}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(new v.CellCoords(e[0],e[1])),this.hot.view.wt.selections.fill.add(new v.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){this.hot.selection.setRangeStart(new v.CellCoords(e[0],e[1])),this.hot.selection.setRangeEnd(new v.CellCoords(e[2],e[3]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.view.wt.selections.fill.clear()}},{key:"redrawBorders",value:function(e){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().from),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().to),this.hot.view.wt.selections.fill.add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=(0,f.offset)(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+(0,f.outerHeight)(this.hot.table),n=(0,f.offset)(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+(0,f.outerWidth)(this.hot.table);return e.clientY>t&&n>=e.clientX}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"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++,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(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,m.registerPlugin)("autofill",w),t.default=w},function(e,t,n){"use strict";function o(e,t,n,o){var i=n.length,r=n?n[0].length:0,s=[],a=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(o)){for(var u=[],c=0;l>=c;c++){var h=parseInt(n[0][c],10),d=parseInt(n[i-1][c],10);u.push(("down"===o?d-h:h-d)/(i-1)||0)}s.push(u)}if(-1!==["right","left"].indexOf(o))for(var f=0;a>=f;f++){var p=parseInt(n[f][0],10),g=parseInt(n[f][r-1],10),m=("right"===o?g-p:p-g)/(r-1)||0;s.push([m])}return s}function i(e,t){var n=void 0,o=void 0,i=void 0;return t[0]===e[0]&&e[1]>t[1]?(i="left",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(t[2],e[1]-1)):t[0]===e[0]&&t[3]>e[3]?(i="right",n=new l.CellCoords(t[0],e[3]+1),o=new l.CellCoords(t[2],t[3])):e[0]>t[0]&&t[1]===e[1]?(i="up",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=new l.CellCoords(e[2]+1,t[1]),o=new l.CellCoords(t[2],t[3])),{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:o}}function r(e){var t={};return!0===e?(t.directions=Object.keys(u),t.autoInsertRow=!0):(0,s.isObject)(e)?(t.autoInsertRow=!!(0,a.isDefined)(e.autoInsertRow)&&(e.direction!==u.horizontal&&e.autoInsertRow),t.directions=(0,a.isDefined)(e.direction)?[e.direction]:Object.keys(u)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=o,t.getDragDirectionAndRange=i,t.getMappedFillHandleSetting=r;var s=n(1),a=n(20),l=n(11),u=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l="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},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},h=n(42),d=o(h),f=n(0),p=n(2),g=n(20),m=n(1),v=n(12),y=o(v),w=n(5),C=n(491),b=o(C),_=n(8),S=o(_);S.default.getSingleton().register("beforeColumnSort"),S.default.getSingleton().register("afterColumnSort");var k=function(e){function t(e){r(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.sortIndicators=[],n.lastSortedColumn=null,n.sortEmptyCells=!1,n}return a(t,e),u(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSorting}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.setPluginOptions();var n=this;this.hot.sortIndex=[],this.hot.sort=function(){var e=Array.prototype.slice.call(arguments);return n.sortByColumn.apply(n,i(e))},void 0===this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(t){return e.sort()}),this.addHook("afterUntrimRow",function(t){return e.sort()}),this.addHook("modifyRow",function(t){return e.translateRow(t)}),this.addHook("unmodifyRow",function(t){return e.untranslateRow(t)}),this.addHook("afterUpdateSettings",function(){return e.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(t,n){return e.getColHeader(t,n)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(){n.afterCreateRow.apply(n,arguments)}),this.addHook("afterRemoveRow",function(){n.afterRemoveRow.apply(n,arguments)}),this.addHook("afterInit",function(){return e.sortBySettings()}),this.addHook("afterLoadData",function(){e.hot.sortIndex=[],e.hot.view&&e.sortBySettings()}),this.hot.view&&this.sortBySettings(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.sort=void 0,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onAfterUpdateSettings",value:function(){this.sortBySettings()}},{key:"sortBySettings",value:function(){var e=this.hot.getSettings().columnSorting,t=this.loadSortingState(),n=void 0,o=void 0;void 0===t?(n=e.column,o=e.sortOrder):(n=t.sortColumn,o=t.sortOrder),"number"==typeof n&&(this.lastSortedColumn=n,this.sortByColumn(n,o))}},{key:"setSortingColumn",value:function(e,t){if(void 0===e)return this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0);this.hot.sortOrder=this.hot.sortColumn===e&&void 0===t?!1===this.hot.sortOrder?void 0:!this.hot.sortOrder:void 0===t||t,this.hot.sortColumn=e}},{key:"sortByColumn",value:function(e,t){if(this.setSortingColumn(e,t),void 0!==this.hot.sortColumn){!1!==this.hot.runHooks("beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder)&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),this.hot.runHooks("afterColumnSort",this.hot.sortColumn,this.hot.sortOrder),this.hot.render(),this.saveSortingState()}}},{key:"saveSortingState",value:function(){var e={};void 0!==this.hot.sortColumn&&(e.sortColumn=this.hot.sortColumn),void 0!==this.hot.sortOrder&&(e.sortOrder=this.hot.sortOrder),((0,m.hasOwnProperty)(e,"sortColumn")||(0,m.hasOwnProperty)(e,"sortOrder"))&&this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"loadSortingState",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","columnSorting",e),e.value}},{key:"updateOrderClass",value:function(){var e=void 0;!0===this.hot.sortOrder?e="ascending":!1===this.hot.sortOrder&&(e="descending"),this.sortOrderClass=e}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"defaultSort",value:function(e,t){return function(n,o){return"string"==typeof n[1]&&(n[1]=n[1].toLowerCase()),"string"==typeof o[1]&&(o[1]=o[1].toLowerCase()),n[1]===o[1]?0:(0,g.isEmpty)(n[1])?(0,g.isEmpty)(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1:(0,g.isEmpty)(o[1])?(0,g.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1:isNaN(n[1])&&!isNaN(o[1])?e?1:-1:!isNaN(n[1])&&isNaN(o[1])?e?-1:1:(isNaN(n[1])||isNaN(o[1])||(n[1]=parseFloat(n[1]),o[1]=parseFloat(o[1])),o[1]>n[1]?e?-1:1:n[1]>o[1]?e?1:-1:0)}}},{key:"dateSort",value:function(e,t){return function(n,o){if(n[1]===o[1])return 0;if((0,g.isEmpty)(n[1]))return(0,g.isEmpty)(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1;if((0,g.isEmpty)(o[1]))return(0,g.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1;var i=(0,d.default)(n[1],t.dateFormat),r=(0,d.default)(o[1],t.dateFormat);return i.isValid()?r.isValid()?r.isAfter(i)?e?-1:1:r.isBefore(i)?e?1:-1:0:-1:1}}},{key:"numericSort",value:function(e,t){return function(n,o){var i=parseFloat(n[1]),r=parseFloat(o[1]);if(i===r||isNaN(i)&&isNaN(r))return 0;if(t.columnSorting.sortEmptyCells){if((0,g.isEmpty)(n[1]))return e?-1:1;if((0,g.isEmpty)(o[1]))return e?1:-1}return isNaN(i)?1:isNaN(r)?-1:r>i?e?-1:1:i>r?e?1:-1:0}}},{key:"sort",value:function(){if(void 0===this.hot.sortOrder)return void(this.hot.sortIndex.length=0);var e=this.hot.getCellMeta(0,this.hot.sortColumn),t=this.hot.countEmptyRows(),n=void 0,o=void 0;this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0,void 0===e.columnSorting.sortEmptyCells&&(e.columnSorting={sortEmptyCells:this.sortEmptyCells}),o=this.hot.getSettings().maxRows===Number.POSITIVE_INFINITY?this.hot.countRows()-this.hot.getSettings().minSpareRows:this.hot.countRows()-t;for(var i=0,r=o;r>i;i++)this.hot.sortIndex.push([i,this.hot.getDataAtCell(i,this.hot.sortColumn)]);if(e.sortFunction)n=e.sortFunction;else switch(e.type){case"date":n=this.dateSort;break;case"numeric":n=this.numericSort;break;default:n=this.defaultSort}(0,b.default)(this.hot.sortIndex,n(this.hot.sortOrder,e));for(var s=this.hot.sortIndex.length;s<this.hot.countRows();s++)this.hot.sortIndex.push([s,this.hot.getDataAtCell(s,this.hot.sortColumn)]);this.hot.sortingEnabled=!0}},{key:"updateSortIndicator",value:function(){if(void 0!==this.hot.sortOrder){this.sortIndicators[this.hot.sortColumn]=this.hot.getCellMeta(0,this.hot.sortColumn).sortIndicator}}},{key:"translateRow",value:function(e){return this.hot.sortingEnabled&&void 0!==this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[e]?this.hot.sortIndex[e][0]:e}},{key:"untranslateRow",value:function(e){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var t=0;this.hot.sortIndex.length>t;t++)if(this.hot.sortIndex[t][0]==e)return t}},{key:"getColHeader",value:function(e,t){if(0>e||!t.parentNode)return!1;var n=t.querySelector(".colHeader"),o=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),i=Array.prototype.indexOf.call(o,t.parentNode);i-=o.length,n&&(this.hot.getSettings().columnSorting&&e>=0&&-1===i&&(0,f.addClass)(n,"columnSorting"),(0,f.removeClass)(n,"descending"),(0,f.removeClass)(n,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?(0,f.addClass)(n,"ascending"):"descending"===this.sortOrderClass&&(0,f.addClass)(n,"descending")))}},{key:"isSorted",value:function(){return void 0!==this.hot.sortColumn}},{key:"afterCreateRow",value:function(e,t){if(this.isSorted()){for(var n=0;this.hot.sortIndex.length>n;n++)e>this.hot.sortIndex[n][0]||(this.hot.sortIndex[n][0]+=t);for(var o=0;t>o;o++)this.hot.sortIndex.splice(e+o,0,[e+o,this.hot.getSourceData()[e+o][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}}},{key:"afterRemoveRow",value:function(e,t){function n(e){return(0,p.arrayReduce)(o,function(t,n){return e>n&&t++,t},0)}if(this.isSorted()){var o=this.hot.sortIndex.splice(e,t);o=(0,p.arrayMap)(o,function(e){return e[0]}),this.hot.sortIndex=(0,p.arrayMap)(this.hot.sortIndex,function(e,t){var o=n(e[0]);return o&&(e[0]-=o),e}),this.saveSortingState()}}},{key:"setPluginOptions",value:function(){var e=this.hot.getSettings().columnSorting;this.sortEmptyCells="object"===(void 0===e?"undefined":l(e))&&(e.sortEmptyCells||!1)}},{key:"onAfterOnCellMouseDown",value:function(e,t){t.row>-1||(0,f.hasClass)(e.realTarget,"columnSorting")&&(t.col!==this.lastSortedColumn&&(this.hot.sortOrder=!0),this.lastSortedColumn=t.col,this.sortByColumn(t.col))}}]),t}(y.default);(0,w.registerPlugin)("columnSorting",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0);t.default=function(){function e(){o(this,e),this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return i(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),i(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width=e+"px",n.style.height=t+"px"}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e||"",this.getInputElement().value=e}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return document.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=document.querySelector("."+e.CLASS_EDITOR_CONTAINER),n=void 0,o=void 0;return t||(t=document.createElement("div"),(0,r.addClass)(t,e.CLASS_EDITOR_CONTAINER),document.body.appendChild(t)),n=document.createElement("div"),(0,r.addClass)(n,e.CLASS_EDITOR),o=document.createElement("textarea"),(0,r.addClass)(o,e.CLASS_INPUT),n.appendChild(o),t.appendChild(n),n}},{key:"getInputElement",value:function(){return this.editor.querySelector("."+e.CLASS_INPUT)}},{key:"destroy",value:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},c=n(0),h=n(1),d=n(4),f=o(d),p=n(11),g=n(5),m=n(12),v=o(m),y=n(434),w=o(y),C=n(17),b=n(436),_=o(b);n(516);var S=new WeakMap,k=function(e){function t(e){r(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.editor=null,n.displaySwitch=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,S.set(n,{tempEditorDimensions:{},cellBelowCursor:null}),n}return a(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new w.default),this.eventManager||(this.eventManager=new f.default(this)),this.displaySwitch||(this.displaySwitch=new _.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,i,r,s){return e.onAfterRenderer(t,s)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(t){return e.onAfterBeginEditing(t)}),this.displaySwitch.addLocalHook("hide",function(){return e.hide()}),this.displaySwitch.addLocalHook("show",function(t,n){return e.showAtCell(t,n)}),this.registerListeners(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(t){return e.onMouseUp(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(t){return e.onEditorBlur(t)}),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,c.closest)(e.target,"TD","TBODY");return!!(t&&(0,c.hasClass)(t,"htCommentCell")&&(0,c.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 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),this.updateCommentMeta(this.range.from.row,this.range.from.col,i({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new p.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=0>=arguments.length||void 0===arguments[0]||arguments[0];if(!this.range.from)throw 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",void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=2>=arguments.length||void 0===arguments[2]||arguments[2];this.setRange({from:new p.CellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){return this.getCommentMeta(this.range.from.row,this.range.from.col,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{key:"show",value:function(){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e.comment?e.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new p.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=(0,c.getScrollableElement)(this.hot.view.wt.wtTable.TABLE),t=this.hot.view.wt.wtTable.getCell(this.range.from),n=this.range.from.row,o=this.range.from.col,i=(0,c.offset)(t),r=this.hot.view.wt.wtTable.getStretchedColumnWidth(o),s=0>i.top?0:i.top,a=i.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&e!==window&&(s-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&e!==window&&(a-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var l=a+r,u=s,h=this.getCommentMeta(n,o,"style"),d=this.getCommentMeta(n,o,"readOnly");h?this.editor.setSize(h.width,h.height):this.editor.resetSize(),this.editor.setReadOnlyState(d),this.editor.setPosition(l,u)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRange();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t).comment,i=void 0;o?(i=(0,h.deepClone)(o),(0,h.deepExtend)(i,n)):i=n,this.hot.setCellMeta(e,t,"comment",i)}},{key:"getCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o.comment)return o.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,c.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=S.get(this);if(t.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,c.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var n=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new p.CellCoords(n.row,n.col)};this.displaySwitch.show(o)}else(0,c.isChildOf)(e.target,document)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(e){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,c.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(e){this.setComment()}},{key:"onEditorMouseDown",value:function(e){S.get(this).tempEditorDimensions={width:(0,c.outerWidth)(e.target),height:(0,c.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=S.get(this),n=(0,c.outerWidth)(e.target),o=(0,c.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&o===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,i({},"style",{width:n,height:o}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;e.end.row>=t;t++)for(var n=e.start.col;e.end.col>=n;n++)this.removeCommentAtCell(t,n,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;e.end.row>=t;t++)for(var n=e.start.col;e.end.col>=n;n++){var o=!!this.getCommentMeta(t,n,"readOnly");this.updateCommentMeta(t,n,i({},"readOnly",!o))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?"Edit comment":"Add comment"},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelected()&&!this.selection.selectedHeader.corner)}},{key:"commentsRemove",name:function(){return"Delete comment"},callback:function(e,n){return t.onContextMenuRemoveComment(n)},disabled:function(){return t.hot.selection.selectedHeader.corner}},{key:"commentsReadOnly",name:function(){var e=this,t="Read only comment";return(0,C.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).comment;if(o&&(o=o.readOnly),o)return!0})&&(t=(0,C.markLabelAsSelected)(t)),t},callback:function(e,n){return t.onContextMenuMakeReadOnly(n)},disabled:function(){return t.hot.selection.selectedHeader.corner||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,h.isObject)(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(e,t){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(v.default);(0,g.registerPlugin)("comments",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(35),s=n(1),a=n(70),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t){o(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return i(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,r.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),t.default=u},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=void 0;return(0,s.arrayEach)(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2),a=n(1);t.default=function(){function e(t){o(this,e),this.hot=t,this.commands={},this.commonCallback=null}return r(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,o=Array(n>1?n-1:0),r=1;n>r;r++)o[r-1]=arguments[r];var l=e.split(":");e=l[0];var u=2===l.length?l[1]:null,c=this.commands[e];if(!c)throw Error("Menu command '"+e+"' not exists.");if(u&&c.submenu&&(c=i(u,c.submenu.items)),!0!==c.disabled&&("function"!=typeof c.disabled||!0!==c.disabled.call(this.hot))&&!(0,a.hasOwnProperty)(c,"submenu")){var h=[];"function"==typeof c.callback&&h.push(c.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),o.unshift(l.join(":")),(0,s.arrayEach)(h,function(e){return e.apply(t.hot,o)})}}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(12),c=o(u),h=n(8),d=o(h),f=n(2),p=n(437),g=o(p),m=n(4),v=o(m),y=n(440),w=o(y),C=n(441),b=o(C),_=n(5),S=n(7),k=n(0),O=n(71);n(517),d.default.getSingleton().register("afterContextMenuDefaultOptions"),d.default.getSingleton().register("afterContextMenuShow"),d.default.getSingleton().register("afterContextMenuHide"),d.default.getSingleton().register("afterContextMenuExecute");var R=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new v.default(n),n.commandExecutor=new g.default(n.hot),n.itemsFactory=null,n.menu=null,n}return s(t,e),l(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[O.ROW_ABOVE,O.ROW_BELOW,O.SEPARATOR,O.COLUMN_LEFT,O.COLUMN_RIGHT,O.SEPARATOR,O.REMOVE_ROW,O.REMOVE_COLUMN,O.SEPARATOR,O.UNDO,O.REDO,O.SEPARATOR,O.READ_ONLY,O.SEPARATOR,O.ALIGNMENT]}}]),l(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new w.default(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(n)};this.registerEvents(),"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var t=e.itemsFactory.getItems(n);e.menu=new b.default(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return e.executeCommand.apply(e,n)}),(0,f.arrayEach)(t,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(t){return e.onContextMenu(t)})}},{key:"open",value:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt((0,S.pageY)(e),10)-(0,k.getWindowScrollTop)(),left:parseInt((0,S.pageX)(e),10)-(0,k.getWindowScrollLeft)()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.commandExecutor.execute.apply(this.commandExecutor,t)}},{key:"onContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders,i=e.realTarget;this.close(),(0,k.hasClass)(i,"handsontableInput")||(e.preventDefault(),(0,S.stopPropagation)(e),(n||o||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(i)||(0,k.hasClass)(i,"current")&&(0,k.hasClass)(i,"wtBorder"))&&this.open(e))}},{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(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);R.SEPARATOR={name:O.SEPARATOR},(0,_.registerPlugin)("contextMenu",R),t.default=R},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(7);t.default=function(){function e(t){o(this,e);var n=(0,r.getWindowScrollTop)(),i=(0,r.getWindowScrollLeft)(),a=void 0,l=void 0,u=void 0,c=void 0,h=void 0,d=void 0;this.type=this.getSourceType(t),"literal"===this.type?(a=parseInt(t.top,10),u=parseInt(t.left,10),h=t.height||0,d=t.width||0,l=a,c=u,a+=n,u+=i):"event"===this.type&&(a=parseInt((0,s.pageY)(t),10),u=parseInt((0,s.pageX)(t),10),h=t.target.clientHeight,d=t.target.clientWidth,l=a-n,c=u-i),this.top=a,this.topRelative=l,this.left=u,this.leftRelative=c,this.scrollTop=n,this.scrollLeft=i,this.cellHeight=h,this.cellWidth=d}return i(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){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerHeight)>=this.topRelative+e.offsetHeight}},{key:"fitsOnRight",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerWidth)>=this.leftRelative+this.cellWidth+e.offsetWidth}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),(0,s.isObject)(e)?(0,s.objectEach)(e,function(e,t){var i=n["string"==typeof e?e:t];i||(i=e),(0,s.isObject)(e)?(0,s.extend)(i,e):"string"==typeof i&&(i={name:i}),void 0===i.key&&(i.key=t),o.push(i)}):(0,a.arrayEach)(e,function(e,t){var i=n[e];(i||0>l.ITEMS.indexOf(e))&&(i||(i={name:e,key:""+t}),(0,s.isObject)(e)&&(0,s.extend)(i,e),void 0===i.key&&(i.key=t),o.push(i))}),o}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(1),a=n(2),l=n(71);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return r(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,s.objectEach)(e,function(e,o){var i="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,i=l.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,i=e.key):(n[e.key]=e,i=e.key),t.defaultOrderPattern.push(i)}),this.predefinedItems=n}},{key:"getItems",value:function(){return i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(64),a=o(s),l=n(0),u=n(2),c=n(439),h=o(c),d=n(4),f=o(d),p=n(1),g=n(35),m=n(17),v=n(16),y=n(70),w=o(y),C=n(71),b=n(7),_=function(){function e(t,n){i(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new f.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return r(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){this.offset[e]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,g.debounce)(function(t){return e.openSubMenu(t)},300),n=(0,u.arrayFilter)(this.menuItems,function(t){return(0,m.isItemHidden)(t,e.hot)});n=(0,m.filterSeparators)(n,C.SEPARATOR);var o={data:n,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,i,r,s){return e.menuItemRenderer(t,n,o,i,r,s)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o,i){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)},rowHeights:function(e){return n[e].name===C.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new a.default(this.container,o),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.addHook("afterSelection",function(t,n,o,i,r){return e.onAfterSelection(t,n,o,i,r)}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,m.hasSubMenu)(n))return!1;var o=this.hotMenu.getSourceDataAtRow(t),i=new e(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(n.getBoundingClientRect()),this.hotSubMenus[o.key]=i,i}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,u.arrayEach)(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelected()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==C.SEPARATOR){var n=this.hot.getSelectedRange(),o=n?(0,m.normalizeSelection)(n):{},i=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(i=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),i&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new h.default(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top=t+"px"}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"}},{key:"setPositionOnRightOfCursor",value:function(e){var t=void 0;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"}},{key:"setPositionOnLeftOfCursor",value:function(e){this.container.style.left=this.offset.left+e.left-this.container.offsetWidth+(0,l.getScrollbarWidth)()+4+"px"}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,m.isSeparator)(e)||(0,m.isDisabled)(e)||(0,m.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,m.isSeparator)(t)||(0,m.isDisabled)(t)||(0,m.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&((0,m.isSeparator)(o)||(0,m.isDisabled)(o)||(0,m.isSelectionDisabled)(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,o=0>n?null:this.hotMenu.getCell(n,t);o&&((0,m.isSeparator)(o)||(0,m.isDisabled)(o)||(0,m.isSelectionDisabled)(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,o,i,r){var s=this,a=e.getSourceDataAtRow(n),u=document.createElement("div"),c=function(e){return e.disableSelection};"function"==typeof r&&(r=r.call(this.hot)),(0,l.empty)(t),(0,l.addClass)(u,"htItemWrapper"),t.appendChild(u),!function(e){return RegExp(C.SEPARATOR,"i").test(e.name)}(a)?"function"==typeof a.renderer?((0,l.addClass)(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,u,n,o,i,r))):(0,l.fastInnerHTML)(u,r):(0,l.addClass)(t,"htSeparator"),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(a)?c(a)?((0,l.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):!function(e){return(0,p.hasOwnProperty)(e,"submenu")}(a)?((0,l.removeClass)(t,"htSubmenu"),(0,l.removeClass)(t,"htDisabled"),c(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htSubmenu"),c(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}))}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(e=e.replace(/[^A-z0-9]/g,"_"),e=this.options.className+"Sub_"+e);var t=void 0;return t=e?document.querySelector("."+this.options.className+"."+e):document.querySelector("."+this.options.className),t||(t=document.createElement("div"),(0,l.addClass)(t,"htMenu "+this.options.className),e&&(0,l.addClass)(t,e),document.getElementsByTagName("body")[0].appendChild(t)),t}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelected(),n=!1;switch(this.keyEvent=!0,e.keyCode){case v.KEY_CODES.ESCAPE:this.close(),n=!0;break;case v.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case v.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case v.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case v.KEY_CODES.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case v.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,b.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),i=(0,u.arrayReduce)(e,function(e,t){return e+(t.name===C.SEPARATOR?1:26)},0);n.width=o+22+"px",n.height=i+4+"px",t.height=n.height}},{key:"onAfterSelection",value:function(e,t,n,o,i){!1===this.keyEvent&&(i.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,l.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,l.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,l.isChildOf)(e.target,".htMenu")&&(0,l.isChildOf)(e.target,document)&&this.close(!0))}}]),e}();(0,p.mixin)(_,w.default),t.default=_},function(e,t,n){"use strict";function o(){return{key:s,name:"Alignment",disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)},submenu:{items:[{key:s+":left",name:function(){var e=this,t="Left";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htLeft"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,i.align)(t,"horizontal","htLeft",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":center",name:function(){var e=this,t="Center";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htCenter"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,i.align)(t,"horizontal","htCenter",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":right",name:function(){var e=this,t="Right";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htRight"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,i.align)(t,"horizontal","htRight",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":justify",name:function(){var e=this,t="Justify";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htJustify"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,i.align)(t,"horizontal","htJustify",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{name:r.KEY},{key:s+":top",name:function(){var e=this,t="Top";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htTop"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,i.align)(t,"vertical","htTop",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":middle",name:function(){var e=this,t="Middle";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htMiddle"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,i.align)(t,"vertical","htMiddle",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":bottom",name:function(){var e=this,t="Bottom";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htBottom"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,i.align)(t,"vertical","htBottom",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1}]}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=n(72),s=t.KEY="alignment"},function(e,t,n){"use strict";function o(){return{key:r,name:"Clear column",callback:function(e,t){var n=t.start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t.start.row,t.end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(",");return 0>e[1]||this.countCols()>=this.getSettings().maxCols||n}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="clear_column"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return 0>e[1]||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="col_left"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return 0>e[1]||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="col_right"},function(e,t,n){"use strict";function o(){return{key:r,name:function(){var e=this,t="Read only";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.checkSelectionConsistency)(t,function(t,n){return e.getCellMeta(t,n).readOnly});t.forAll(function(t,o){e.setCellMeta(t,o,"readOnly",!n)}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="make_read_only"},function(e,t,n){"use strict";function o(){return{key:i,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}t.__esModule=!0,t.default=o;var i=t.KEY="redo"},function(e,t,n){"use strict";function o(){return{key:r,name:"Remove column",callback:function(e,t){this.alter("remove_col",t.start.col,t.end.col-t.start.col+1,"ContextMenu.removeColumn")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countCols();return!e||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="remove_col"},function(e,t,n){"use strict";function o(){return{key:r,name:"Remove row",callback:function(e,t){this.alter("remove_row",t.start.row,t.end.row-t.start.row+1,"ContextMenu.removeRow")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countRows();return!e||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="remove_row"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="row_above"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(17),r=t.KEY="row_below"},function(e,t,n){"use strict";function o(){return{key:i,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}t.__esModule=!0,t.default=o;var i=t.KEY="undo"},function(e,t,n){"use strict";function o(e){return{key:"copy",name:"Copy",callback:function(){e.setCopyableText(),e.copy(!0)},disabled:function(){return!e.hot.getSelected()},hidden:!1}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return{key:"cut",name:"Cut",callback:function(){e.setCopyableText(),e.cut(!0)},disabled:function(){return!e.hot.getSelected()},hidden:!1}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a="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},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},c=n(12),h=o(c),d=n(8),f=o(d),p=n(349),g=o(p),m=n(11),v=n(16),y=n(0),w=n(2),C=n(6),b=n(7),_=n(5),S=n(456),k=o(S),O=n(453),R=o(O),E=n(454),T=o(E),M=n(4),D=o(M);n(518),f.default.getSingleton().register("afterCopyLimit"),f.default.getSingleton().register("modifyCopyableRange"),f.default.getSingleton().register("beforeCut"),f.default.getSingleton().register("afterCut"),f.default.getSingleton().register("beforePaste"),f.default.getSingleton().register("afterPaste"),f.default.getSingleton().register("beforeCopy"),f.default.getSingleton().register("afterCopy");var P=1e3,H=1e3,x=new WeakMap,A=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new D.default(n),n.columnsLimit=H,n.copyableRanges=[],n.pasteMode="overwrite",n.rowsLimit=P,n.textarea=void 0,x.set(n,{isTriggeredByPaste:!1}),n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings();this.textarea=k.default.getSingleton(),"object"===a(n.copyPaste)&&(this.pasteMode=n.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=n.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=n.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("beforeKeyDown",function(t){return e.onBeforeKeyDown(t)}),this.registerEvents(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.textarea&&this.textarea.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRange();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,i=t.col,r=n.row,s=n.col,a=Math.min(r,o+this.rowsLimit-1),l=Math.min(s,i+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:o,startCol:i,endRow:a,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);this.textarea.setValue(this.getRangedCopyableData(this.copyableRanges)),r===a&&s===l||this.hot.runHooks("afterCopyLimit",r-o+1,s-i+1,this.rowsLimit,this.columnsLimit)}}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],o=[],i=[];return(0,w.arrayEach)(e,function(e){(0,C.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,C.rangeEach)(e.startCol,e.endCol,function(e){-1===i.indexOf(e)&&i.push(e)})}),(0,w.arrayEach)(o,function(e){var o=[];(0,w.arrayEach)(i,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),g.default.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],o=[],i=[];return(0,w.arrayEach)(e,function(e){(0,C.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,C.rangeEach)(e.startCol,e.endCol,function(e){-1===i.indexOf(e)&&i.push(e)})}),(0,w.arrayEach)(o,function(e){var o=[];(0,w.arrayEach)(i,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),n}},{key:"copy",value:function(e){var t=this.getRangedData(this.copyableRanges);!this.hot.runHooks("beforeCopy",t,this.copyableRanges)?this.textarea.setValue(""):(this.textarea.setValue(g.default.stringify(t)),this.textarea.select(),e&&document.execCommand("copy"),this.hot.runHooks("afterCopy",t,this.copyableRanges))}},{key:"cut",value:function(e){var t=this.getRangedData(this.copyableRanges);!this.hot.runHooks("beforeCut",t,this.copyableRanges)?this.textarea.setValue(""):(this.textarea.setValue(g.default.stringify(t)),this.hot.selection.empty(),this.textarea.select(),e&&document.execCommand("cut"),this.hot.runHooks("afterCut",t,this.copyableRanges))}},{key:"paste",value:function(){this.textarea.setValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""),this.onPaste(),this.onInput()}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.textarea.element,"paste",function(t){return e.onPaste(t)}),this.eventManager.addEventListener(this.textarea.element,"input",function(t){return e.onInput(t)})}},{key:"triggerPaste",value:function(){this.textarea.select(),this.onPaste()}},{key:"onPaste",value:function(){x.get(this).isTriggeredByPaste=!0}},{key:"onInput",value:function(){var e=this,t=x.get(this);if(this.hot.isListening()&&t.isTriggeredByPaste){t.isTriggeredByPaste=!1;var n=void 0,o=void 0,i=void 0,r=void 0,s=void 0,a=void 0,l=void 0,u=void 0,c=void 0,h=void 0;n=this.textarea.getValue(),o=g.default.parse(n);if(!!this.hot.runHooks("beforePaste",o,this.copyableRanges)){i=this.hot.getSelected(),r=new m.CellCoords(i[0],i[1]),s=new m.CellCoords(i[2],i[3]),a=new m.CellRange(r,r,s),l=a.getTopLeftCorner(),u=a.getBottomRightCorner(),c=l,h=new m.CellCoords(Math.max(u.row,o.length-1+l.row),Math.max(u.col,o[0].length-1+l.col));var d=s.row-r.row>=o.length-1,f=s.col-r.col>=o[0].length-1;this.hot.addHookOnce("afterChange",function(t,n){var o=t?t.length:0;if(o){var i={row:0,col:0},r=-1;(0,w.arrayEach)(t,function(e,n){var s=o>n+1?t[n+1]:null;s&&(d||(i.row+=Math.max(s[0]-e[0]-1,0)),!f&&e[1]>r&&(r=e[1],i.col+=Math.max(s[1]-e[1]-1,0)))}),e.hot.selectCell(c.row,c.col,h.row+i.row,h.col+i.col)}}),this.hot.populateFromArray(c.row,c.col,o,h.row,h.col,"CopyPaste.paste",this.pasteMode),this.hot.runHooks("afterPaste",o,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,R.default)(this),(0,T.default)(this))}},{key:"onBeforeKeyDown",value:function(e){var t=this;if(this.hot.getSelected()&&(!this.hot.getActiveEditor()||!this.hot.getActiveEditor().isOpened())&&!(0,b.isImmediatePropagationStopped)(e)&&(this.textarea.isActive()||!(0,y.getSelectionText)())){if((0,v.isCtrlKey)(e.keyCode)){if(this.hot.getSettings().fragmentSelection&&(0,y.getSelectionText)())return;return this.setCopyableText(),void(0,b.stopImmediatePropagation)(e)}(e.ctrlKey||e.metaKey)&&!e.altKey&&(e.keyCode==v.KEY_CODES.A&&setTimeout(function(){t.setCopyableText()},0),e.keyCode==v.KEY_CODES.X&&this.cut(),e.keyCode==v.KEY_CODES.C&&this.copy(),e.keyCode==v.KEY_CODES.V&&this.triggerPaste())}}},{key:"destroy",value:function(){this.textarea&&this.textarea.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,_.registerPlugin)("CopyPaste",A),t.default=A},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(){o(this,e),this.element=void 0,this.isAppended=!1,this.refCounter=0}return i(e,null,[{key:"getSingleton",value:function(){return s.append(),s}}]),i(e,[{key:"append",value:function(){this.hasBeenDestroyed()&&this.create(),this.refCounter++,!this.isAppended&&document.body&&document.body&&(this.isAppended=!0,document.body.appendChild(this.element))}},{key:"create",value:function(){this.element=document.createElement("textarea"),this.element.id="HandsontableCopyPaste",this.element.className="copyPaste",this.element.tabIndex=-1,this.element.autocomplete="off",this.element.wrap="off"}},{key:"deselect",value:function(){this.element===document.activeElement&&document.activeElement.blur()}},{key:"destroy",value:function(){this.refCounter--,this.refCounter=0>this.refCounter?0:this.refCounter,this.hasBeenDestroyed()&&this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.element=null,this.isAppended=!1)}},{key:"getValue",value:function(){return this.element.value}},{key:"hasBeenDestroyed",value:function(){return 1>this.refCounter}},{key:"isActive",value:function(){return this.element===document.activeElement}},{key:"select",value:function(){this.element.focus(),this.element.select()}},{key:"setValue",value:function(e){this.element.value=e}}]),e}(),s=new r;t.default=r},function(e,t,n){"use strict";function o(){}var i,r="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},s=n(8),a=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(5),n(1)),u=n(11),c=function(e){return"boolean"==typeof e&&!0===e||"object"===(void 0===e?"undefined":r(e))&&e.length>0},h=function(){c(this.getSettings().customBorders)&&(this.customBorders||(i=this,this.customBorders=new o))},d=function(e){for(var t=0;i.view.wt.selections.length>t;t++)if(i.view.wt.selections[t].settings.className==e)return t;return-1},f=function(e){var t={row:e.row,col:e.col},n=new u.Selection(e,new u.CellRange(t,t,t)),o=d(e.className);0>o?i.view.wt.selections.push(n):i.view.wt.selections[o]=n},p=function(e,t,n){var o=C(e,t);o=b(o,n),this.setCellMeta(e,t,"borders",o),f(o)},g=function(e){for(var t=e.range,n=t.from.row;t.to.row>=n;n++)for(var o=t.from.col;t.to.col>=o;o++){var i=C(n,o),r=0;n==t.from.row&&(r++,(0,l.hasOwnProperty)(e,"top")&&(i.top=e.top)),n==t.to.row&&(r++,(0,l.hasOwnProperty)(e,"bottom")&&(i.bottom=e.bottom)),o==t.from.col&&(r++,(0,l.hasOwnProperty)(e,"left")&&(i.left=e.left)),o==t.to.col&&(r++,(0,l.hasOwnProperty)(e,"right")&&(i.right=e.right)),r>0&&(this.setCellMeta(n,o,"borders",i),f(i))}},m=function(e,t){return"border_row"+e+"col"+t},v=function(){return{width:1,color:"#000"}},y=function(){return{hide:!0}},w=function(){return{width:1,color:"#000",cornerVisible:!1}},C=function(e,t){return{className:m(e,t),border:w(),row:e,col:t,top:y(),right:y(),bottom:y(),left:y()}},b=function(e,t){return(0,l.hasOwnProperty)(t,"border")&&(e.border=t.border),(0,l.hasOwnProperty)(t,"top")&&(e.top=t.top),(0,l.hasOwnProperty)(t,"right")&&(e.right=t.right),(0,l.hasOwnProperty)(t,"bottom")&&(e.bottom=t.bottom),(0,l.hasOwnProperty)(t,"left")&&(e.left=t.left),e},_=function(e){for(var t=document.querySelectorAll("."+e),n=0;t.length>n;n++)if(t[n]&&"TD"!=t[n].nodeName){var o=t[n].parentNode;o.parentNode&&o.parentNode.removeChild(o)}},S=function(e,t){var n=m(e,t);_(n),this.removeCellMeta(e,t,"borders")},k=function(e,t,n,o){var i=this.getCellMeta(e,t).borders;i&&void 0!=i.border||(i=C(e,t)),i[n]=o?y():v(),this.setCellMeta(e,t,"borders",i);var r=m(e,t);_(r),f(i),this.render()},O=function(e,t,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?S.call(this,e.from.row,e.from.col):k.call(this,e.from.row,e.from.col,t,n);else switch(t){case"noBorders":for(var o=e.from.col;e.to.col>=o;o++)for(var i=e.from.row;e.to.row>=i;i++)S.call(this,i,o);break;case"top":for(var r=e.from.col;e.to.col>=r;r++)k.call(this,e.from.row,r,t,n);break;case"right":for(var s=e.from.row;e.to.row>=s;s++)k.call(this,s,e.to.col,t);break;case"bottom":for(var a=e.from.col;e.to.col>=a;a++)k.call(this,e.to.row,a,t);break;case"left":for(var l=e.from.row;e.to.row>=l;l++)k.call(this,l,e.from.col,t)}},R=function(e,t){var n=!1;return e.getSelectedRange().forAll(function(o,i){var r=e.getCellMeta(o,i).borders;if(r){if(!t)return n=!0,!1;if(!(0,l.hasOwnProperty)(r[t],"hide"))return n=!0,!1}}),n},E=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e},T=function(e){this.getSettings().customBorders&&(e.items.push({name:"---------"}),e.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var e="Top";return R(this,"top")&&(e=E(e)),e},callback:function(){var e=R(this,"top");O.call(this,this.getSelectedRange(),"top",e)}},{key:"borders:right",name:function(){var e="Right";return R(this,"right")&&(e=E(e)),e},callback:function(){var e=R(this,"right");O.call(this,this.getSelectedRange(),"right",e)}},{key:"borders:bottom",name:function(){var e="Bottom";return R(this,"bottom")&&(e=E(e)),e},callback:function(){var e=R(this,"bottom");O.call(this,this.getSelectedRange(),"bottom",e)}},{key:"borders:left",name:function(){var e="Left";return R(this,"left")&&(e=E(e)),e},callback:function(){var e=R(this,"left");O.call(this,this.getSelectedRange(),"left",e)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){O.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!R(this)}}]}}))};a.default.getSingleton().add("beforeInit",h),a.default.getSingleton().add("afterContextMenuDefaultOptions",T),a.default.getSingleton().add("afterInit",function(){var e=this.getSettings().customBorders;if(e){for(var t=0;e.length>t;t++)e[t].range?g.call(this,e[t]):p.call(this,e[t].row,e[t].col,e[t]);this.render(),this.view.wt.draw(!0)}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(){this.boundaries=null,this.callback=null}t.__esModule=!0;var r=n(8),s=o(r),a=n(4),l=o(a);n(5);i.prototype.setBoundaries=function(e){this.boundaries=e},i.prototype.setCallback=function(e){this.callback=e},i.prototype.check=function(e,t){var n=0,o=0;this.boundaries.top>t?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),this.boundaries.left>e?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)};var u,c=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;u=new i,t!==window&&(u.setBoundaries(t.getBoundingClientRect()),u.setCallback(function(e,n){0>e?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),0>n?t.scrollTop-=20:n>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};s.default.getSingleton().add("afterInit",function(){var e=this,t=new l.default(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&u.check(t.clientX,t.clientY)})}),s.default.getSingleton().add("afterDestroy",function(){new l.default(this).clear()}),s.default.getSingleton().add("afterOnCellMouseDown",function(){c(this)}),s.default.getSingleton().add("afterOnCellCornerMouseDown",function(){c(this)}),t.default=i},function(e,t,n){"use strict";function o(e){return{key:"freeze_column",name:"Freeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.freezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.from.col===e.to.col&&e.from.col>this.getSettings().fixedColumnsLeft-1||(t=!0),t}}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return{key:"unfreeze_column",name:"Unfreeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.unfreezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.from.col===e.to.col&&e.from.col<this.getSettings().fixedColumnsLeft||(t=!0),t}}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(5),d=n(2),f=n(459),p=o(f),g=n(460),m=o(g);n(519);var v=new WeakMap,y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return v.set(n,{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}return s(t,e),a(t,[{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("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=v.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=v.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft!==this.hot.countCols()&&e>n.fixedColumnsLeft-1&&(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft++))}},{key:"unfreezeColumn",value:function(e){var t=v.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft>0&&n.fixedColumnsLeft-1>=e){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft--,this.getMovePlugin().moveColumn(e,o+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t=this.getMovePlugin(),n=this.hot.getSettings(),o=n.fixedColumnsLeft,i=t.columnsMapper.getValueByIndex(o),r=void 0;if(null==this.frozenColumnsBasePositions[e])for(r=t.columnsMapper.getValueByIndex(e);r>i;)o++,i=t.columnsMapper.getValueByIndex(o);else{for(r=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;r>=i;)o++,i=t.columnsMapper.getValueByIndex(o);o=i}return o-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,p.default)(this),(0,m.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=v.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,i=o>t;if(i||(0,d.arrayEach)(e,function(e,t,n){if(o>e)return i=!0,!1}),i)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("manualColumnFreeze",y),t.default=y},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(366),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(2),l=n(1),u=n(6),c=function(){function e(t){o(this,e),this.manualColumnMove=t}return i(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,s.default),t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(8),d=o(h),f=n(2),p=n(0),g=n(6),m=n(4),v=o(m),y=n(5),w=n(462),C=o(w),b=n(464),_=o(b),S=n(465),k=o(S),O=n(11);n(520),d.default.getSingleton().register("beforeColumnMove"),d.default.getSingleton().register("afterColumnMove"),d.default.getSingleton().register("unmodifyCol");var R=new WeakMap,E=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return R.set(n,{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new C.default(n),n.eventManager=new v.default(n),n.backlight=new _.default(e),n.guideline=new k.default(e),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,i){return e.onBeforeOnCellMouseDown(t,n,o,i)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,i){return e.onBeforeOnCellMouseOver(t,n,o,i)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(t,n){return e.onAfterRemoveCol(t,n)}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualColumnMove"),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,p.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=this,o=R.get(this),i=this.hot.runHooks("beforeColumnMove",e,t);o.disallowMoving=!i,!1!==i&&((0,f.arrayEach)(e,function(e,t,o){o[t]=n.columnsMapper.getValueByIndex(e)}),(0,f.arrayEach)(e,function(e,o){var i=n.columnsMapper.getIndexByValue(e);i!==t&&n.columnsMapper.moveColumn(i,t+o)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,o=this.hot.countRows()-1;n.setRangeStartOnly(new O.CellCoords(0,e)),n.setRangeEnd(new O.CellCoords(o,t),!1)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,o=e;t>o;o++){var i=0;i=0>o?this.hot.view.wt.wtTable.getColumnWidth(o)||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0,n+=i}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,g.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=R.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,i=this.hot.view.wt.wtOverlays.scrollableElement,r="number"==typeof i.scrollX?i.scrollX:i.scrollLeft,s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),a=e.target.eventPageX-(e.rootElementOffset-(void 0===i.scrollX?r:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,h=this.backlight.getSize().width,d=0;if(e.target.eventPageX>e.rootElementOffset+o.holder.offsetWidth+r&&e.countCols>e.coordsColumn&&e.coordsColumn++,e.hasRowHeaders&&(d=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(s+=r),s+=d,0>e.coordsColumn)e.target.col=e.fixedColumns>0?0:t>0?t-1:t;else if(a<e.target.TD.offsetWidth/2+s)(e.target.col=e.coordsColumn)>t||e.fixedColumns>e.target.col||this.hot.scrollViewportTo(void 0,t-1);else{var f=e.countCols>e.coordsColumn?e.coordsColumn:e.countCols-1;e.target.col=f+1,s+=e.target.TD.offsetWidth,e.target.col>n&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}e.target.col>t||e.fixedColumns>e.target.col||this.hot.scrollViewportTo(void 0,t-1);var p=a,g=s;l>a+h+c?u+d>a+c&&(p=u+d+Math.abs(c)):p=l-h-c,l-1>s?0===g?g=1:void 0!==i.scrollX&&e.fixedColumns>e.coordsColumn&&(g-=e.rootElementOffset>i.scrollX?0:e.rootElementOffset):g=l-1,this.backlight.setPosition(null,p),this.guideline.setPosition(null,g)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(e>t){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var o=e-1,i=[];(0,f.arrayEach)(this.columnsMapper._arrayMap,function(e,t,n){e>o&&i.push(t)}),this.columnsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.cols,s=this.hot.getSelectedRange(),a=R.get(this),l=e.realTarget.className.indexOf("columnSorting")>-1;if(!s||!r||a.pressed||0!==e.button||l)return a.pressed=!1,a.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(i.hider),this.backlight.appendTo(i.hider));var h=s.from,d=s.to,f=Math.min(h.col,d.col),g=Math.max(h.col,d.col);if(0<=t.row||t.col<f||g<t.col)(0,p.removeClass)(this.hot.rootElement,"after-selection--columns"),a.pressed=!1,a.columnsToMove.length=0;else{o.column=!0,a.pressed=!0,a.target.eventPageX=e.pageX,a.coordsColumn=t.col,a.target.TD=n,a.target.col=t.col,a.columnsToMove=this.prepareColumnsToMoving(f,g),a.hasRowHeaders=!!this.hot.getSettings().rowHeaders,a.countCols=this.hot.countCols(),a.fixedColumns=this.hot.getSettings().fixedColumnsLeft,a.rootElementOffset=(0,p.offset)(this.hot.rootElement).left;var m=a.hasRowHeaders?-1:0,v=i.holder.scrollTop+i.getColumnHeaderHeight(0)+1,y=a.fixedColumns>t.col,w=this.hot.view.wt.wtOverlays.scrollableElement,C=w.scrollX?w.scrollX-a.rootElementOffset:0,b=e.layerX-(y?C:0),_=Math.abs(this.getColumnsWidth(f,t.col)+b);this.backlight.setPosition(v,this.getColumnsWidth(m,f)+_),this.backlight.setSize(this.getColumnsWidth(f,g+1),i.hider.offsetHeight-v),this.backlight.setOffset(null,-1*_),(0,p.addClass)(this.hot.rootElement,"on-moving--columns")}}},{key:"onMouseMove",value:function(e){var t=R.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRange(),r=R.get(this);i&&r.pressed&&(r.columnsToMove.indexOf(t.col)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,r.coordsColumn=t.col,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=R.get(this);if(e.coordsColumn=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.selectedHeader.cols&&(0,p.addClass)(this.hot.rootElement,"after-selection--columns"),e.columnsToMove.length>=1&&void 0!==e.target.col&&-1>=e.columnsToMove.indexOf(e.target.col)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){this.changeSelection(this.columnsMapper.getIndexByValue(e.columnsToMove[0]),this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]))}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1,n=e.holder.scrollTop,o=t+n;this.backlight.setPosition(o),this.backlight.setSize(null,e.hider.offsetHeight-o)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(e,t){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(e){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){if(t!==this.pluginName){var n=this.columnsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("ManualColumnMove",E),t.default=E},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(367),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(367),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(0),d=n(4),f=o(d),p=n(7),g=n(2),m=n(6),v=n(5),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new f.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],(0,h.addClass)(n.handle,"manualColumnResizer"),(0,h.addClass)(n.guide,"manualColumnResizerGuide"),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,o=this.loadManualColumnWidths();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,o){return e.onBeforeColumnResize(t,n,o)}),this.manualColumnWidths=void 0!==o?o:Array.isArray(n)?n:[],this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,o=(0,h.outerHeight)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.col,u=a.col;u>l||(l=a.col,u=s.col),l>this.currentCol||this.currentCol>u?this.selectedCols.push(this.currentCol):(0,m.rangeEach)(l,u,function(e){return t.selectedCols.push(e)})}else this.selectedCols.push(this.currentCol);this.startOffset=i.left-6,this.startWidth=parseInt(i.width,10),this.handle.style.top=i.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left=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=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var i=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,g.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.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=(0,p.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,p.pageX)(e)-this.startX),(0,g.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeColumnResize",e,t.newSize),o&&n(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){o(e)}),n()):(0,g.arrayEach)(this.selectedCols,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return t=Math.max(t,20),e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=t,t}},{key:"clearManualSize",value:function(e){e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=void 0}},{key:"onModifyColWidth",value:function(e,t){return this.enabled&&(t=this.hot.runHooks("modifyCol",t),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[t])?this.manualColumnWidths[t]:e}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),t}(c.default);(0,v.registerPlugin)("manualColumnResize",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(8),d=o(h),f=n(2),p=n(0),g=n(6),m=n(4),v=o(m),y=n(5),w=n(468),C=o(w),b=n(469),_=o(b),S=n(470),k=o(S),O=n(11);n(521),d.default.getSingleton().register("beforeRowMove"),d.default.getSingleton().register("afterRowMove"),d.default.getSingleton().register("unmodifyRow");var R=new WeakMap,E=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return R.set(n,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new C.default(n),n.eventManager=new v.default(n),n.backlight=new _.default(e),n.guideline=new k.default(e),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,i){return e.onBeforeOnCellMouseDown(t,n,o,i)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,i){return e.onBeforeOnCellMouseOver(t,n,o,i)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualRowMove"),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,p.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=this,o=R.get(this);o.disallowMoving=!1===this.hot.runHooks("beforeRowMove",e,t),o.disallowMoving||((0,f.arrayEach)(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),(0,f.arrayEach)(e,function(e,o){var i=n.rowsMapper.getIndexByValue(e);i!==t&&n.rowsMapper.moveRow(i,t+o)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,o=this.hot.countCols()-1;n.setRangeStartOnly(new O.CellCoords(e,0)),n.setRangeEnd(new O.CellCoords(t,o),!1)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,o=e;t>o;o++){n+=this.hot.view.wt.wtTable.getRowHeight(o)||23}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRange(),t=[];if(!e)return t;var n=e.from,o=e.to,i=Math.min(n.row,o.row),r=Math.max(n.row,o.row);return(0,g.rangeEach)(i,r,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=R.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),i=this.hot.getSettings().fixedRowsTop,r=this.hot.countRows();i>t.row&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=o&&r>o&&this.hot.scrollViewportTo(o+1,void 0,!0);var s=this.hot.view.wt.wtTable,a=e.target.TD,l=(0,p.offset)(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+s.holder.scrollTop,h=s.hider.offsetHeight,d=s.TBODY.offsetTop,f=this.backlight.getOffset().top,g=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(u+=s.holder.scrollTop),0>t.row?e.target.row=n>0?n-1:n:a.offsetHeight/2+u>c?e.target.row=t.row:(e.target.row=t.row+1,u+=0===t.row?a.offsetHeight-1:a.offsetHeight);var m=c,v=u;h>c+g+f?d>c+f&&(m=d+Math.abs(f)):m=h-g-f,h-1>u||(v=h-1);var y=0;this.hot.view.wt.wtOverlays.topOverlay&&(y=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=i&&y>v-s.holder.scrollTop&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(m),this.guideline.setPosition(v)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(e>t){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var o=e-1,i=[];(0,f.arrayEach)(this.rowsMapper._arrayMap,function(e,t,n){e>o&&i.push(t)}),this.rowsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){R.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.rows,s=this.hot.getSelectedRange(),a=R.get(this);if(!s||!r||a.pressed||0!==e.button)return a.pressed=!1,a.rowsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&u&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var c=s.from,h=s.to,d=Math.min(c.row,h.row),f=Math.max(c.row,h.row);if(0<=t.col||t.row<d||f<t.row)(0,p.removeClass)(this.hot.rootElement,"after-selection--rows"),a.pressed=!1,a.rowsToMove.length=0;else{o.row=!0,a.pressed=!0,a.target.eventPageY=e.pageY,a.target.coords=t,a.target.TD=n,a.rowsToMove=this.prepareRowsToMoving();var g=i.holder.scrollLeft+i.getColumnWidth(-1);this.backlight.setPosition(null,g),this.backlight.setSize(i.hider.offsetWidth-g,this.getRowsHeight(d,f+1)),this.backlight.setOffset(-1*(this.getRowsHeight(d,t.row)+e.layerY),null),(0,p.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}}},{key:"onMouseMove",value:function(e){var t=R.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRange(),r=R.get(this);i&&r.pressed&&(r.rowsToMove.indexOf(t.row)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,r.target.coords=t,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=R.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.selectedHeader.rows&&(0,p.addClass)(this.hot.rootElement,"after-selection--rows"),n>=1&&void 0!==t&&-1>=e.rowsToMove.indexOf(t)&&e.rowsToMove[n-1]!==t-1){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){this.changeSelection(this.rowsMapper.getIndexByValue(e.rowsToMove[0]),this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]))}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnWidth(-1),n=e.holder.scrollLeft,o=t+n;this.backlight.setPosition(null,o),this.backlight.setSize(e.hider.offsetWidth-o)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(e){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){if(t!==this.pluginName){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("ManualRowMove",E),t.default=E},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(366),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(2),l=n(1),u=n(6),c=function(){function e(t){o(this,e),this.manualRowMove=t}return i(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,s.default),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(368),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(368),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(0),d=n(4),f=o(d),p=n(7),g=n(2),m=n(6),v=n(5),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new f.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],(0,h.addClass)(n.handle,"manualRowResizer"),(0,h.addClass)(n.guide,"manualRowResizerGuide"),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,o=this.loadManualRowHeights();this.manualRowHeights=void 0!==o?o:Array.isArray(n)?n:[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,o=(0,h.outerWidth)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.row,u=a.row;u>l||(l=a.row,u=s.row),l>this.currentRow||this.currentRow>u?this.selectedRows.push(this.currentRow):(0,m.rangeEach)(l,u,function(e){return t.selectedRows.push(e)})}else this.selectedRows.push(this.currentRow);this.startOffset=i.top-6,this.startHeight=parseInt(i.height,10),this.handle.style.left=i.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,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.left=t+"px",this.guide.style.width=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){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var i=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,g.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.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=(0,p.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,p.pageY)(e)-this.startY),(0,g.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeRowResize",e,t.newSize),o&&n(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){o(e)}),n()):(0,g.arrayEach)(this.selectedRows,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return e=this.hot.runHooks("modifyRow",e),this.manualRowHeights[e]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var i=this.manualRowHeights[t];if(void 0!==i&&(i===o||i>(e||0)))return i}return e}}]),t}(c.default);(0,v.registerPlugin)("manualRowResize",y),t.default=y},function(e,t,n){"use strict";function o(){var e=[];return e.getInfo=function(e,t){for(var n=0,o=this.length;o>n;n++)if(!(this[n].row>e||e>this[n].row+this[n].rowspan-1||this[n].col>t||t>this[n].col+this[n].colspan-1))return this[n]},e.setInfo=function(e){for(var t=0,n=this.length;n>t;t++)if(this[t].row===e.row&&this[t].col===e.col)return void(this[t]=e);this.push(e)},e.removeInfo=function(e,t){for(var n=0,o=this.length;o>n;n++)if(this[n].row===e&&this[n].col===t){this.splice(n,1);break}},e}function i(e){if(this.mergedCellInfoCollection=new o,Array.isArray(e))for(var t=0,n=e.length;n>t;t++)this.mergedCellInfoCollection.setInfo(e[t])}function r(e,t){if(this.getSettings().mergeCells&&!this.selection.isMultiple()){var n=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);n&&(e[0]=n.row,e[1]=n.col,e[2]=n.row+n.rowspan-1,e[3]=n.col+n.colspan-1)}}function s(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}function a(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}function l(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}function u(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}t.__esModule=!0;var c=n(8),h=function(e){return e&&e.__esModule?e:{default:e}}(c),d=(n(5),n(7)),f=n(11);i.prototype.canMergeRange=function(e){return!e.isSingle()},i.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o={};o.row=t.row,o.col=t.col,o.rowspan=n.row-t.row+1,o.colspan=n.col-t.col+1,this.mergedCellInfoCollection.setInfo(o)}},i.prototype.mergeOrUnmergeSelection=function(e){this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col)?this.unmergeSelection(e.from):this.mergeSelection(e)},i.prototype.mergeSelection=function(e){this.mergeRange(e)},i.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},i.prototype.applySpanProperties=function(e,t,n){var o=this.mergedCellInfoCollection.getInfo(t,n);o?o.row===t&&o.col===n?(e.setAttribute("rowspan",o.rowspan),e.setAttribute("colspan",o.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},i.prototype.modifyTransform=function(e,t,n){var o={row:n.row,col:n.col};if("modifyTransformStart"==e){var i;this.lastDesiredCoords||(this.lastDesiredCoords=new f.CellCoords(null,null));for(var r=new f.CellCoords(t.highlight.row,t.highlight.col),s=this.mergedCellInfoCollection.getInfo(r.row,r.col),a=0,l=this.mergedCellInfoCollection.length;l>a;a++){var u=this.mergedCellInfoCollection[a];if(u=new f.CellCoords(u.row+u.rowspan-1,u.col+u.colspan-1),t.includes(u)){!0;break}}if(s){var c=new f.CellCoords(s.row,s.col),h=new f.CellCoords(s.row+s.rowspan-1,s.col+s.colspan-1);new f.CellRange(c,c,h).includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new f.CellCoords(null,null)),o.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-r.row:o.row,o.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-r.col:o.col,n.row>0?o.row=s.row+s.rowspan-1-r.row+n.row:0>n.row&&(o.row=r.row-s.row+n.row),n.col>0?o.col=s.col+s.colspan-1-r.col+n.col:0>n.col&&(o.col=r.col-s.col+n.col)}i=new f.CellCoords(t.highlight.row+o.row,t.highlight.col+o.col);var d=this.mergedCellInfoCollection.getInfo(i.row,i.col);d&&(this.lastDesiredCoords=i,o={row:d.row-r.row,col:d.col-r.col})}else if("modifyTransformEnd"==e)for(var p=0,g=this.mergedCellInfoCollection.length;g>p;p++){var m=this.mergedCellInfoCollection[p],v=new f.CellCoords(m.row,m.col),y=new f.CellCoords(m.row+m.rowspan-1,m.col+m.colspan-1),w=new f.CellRange(v,v,y),C=t.getBordersSharedWith(w);if(w.isEqual(t))t.setDirection("NW-SE");else if(C.length>0){var b=t.highlight.isEqual(w.from);C.indexOf("top")>-1?t.to.isSouthEastOf(w.from)&&b?t.setDirection("NW-SE"):t.to.isSouthWestOf(w.from)&&b&&t.setDirection("NE-SW"):C.indexOf("bottom")>-1&&(t.to.isNorthEastOf(w.from)&&b?t.setDirection("SW-NE"):t.to.isNorthWestOf(w.from)&&b&&t.setDirection("SE-NW"))}i=function(e){return new f.CellCoords(t.to.row+e.row,t.to.col+e.col)}(o);var _=function(e,t){return t.row>=e.row&&e.row+e.rowspan-1>=t.row}(m,i),S=function(e,t){return t.col>=e.col&&e.col+e.colspan-1>=t.col}(m,i);t.includesRange(w)&&(w.includes(i)||_||S)&&(_&&(0>o.row?o.row-=m.rowspan-1:o.row>0&&(o.row+=m.rowspan-1)),S&&(0>o.col?o.col-=m.colspan-1:o.col>0&&(o.col+=m.colspan-1)))}0!==o.row&&(n.row=o.row),0!==o.col&&(n.col=o.col)},i.prototype.shiftCollection=function(e,t,n){var o=[0,0];switch(e){case"right":o[0]+=1;break;case"left":o[0]-=1;break;case"down":o[1]+=1;break;case"up":o[1]-=1}for(var i=0;this.mergedCellInfoCollection.length>i;i++){var r=this.mergedCellInfoCollection[i];"right"===e||"left"===e?t>r.col||(r.col+=o[0]):t>r.row||(r.row+=o[1])}};var p=function(){var e=this,t=e.getSettings().mergeCells;t&&(e.mergeCells||(e.mergeCells=new i(t)))},g=function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var n=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);n&&(t=n)}return f.Table.prototype.getCell.call(this,t)})},m=function(){var e=this,t=e.getSettings().mergeCells;if(t)if(e.mergeCells){if(e.mergeCells.mergedCellInfoCollection=new o,Array.isArray(t))for(var n=0,r=t.length;r>n;n++)e.mergeCells.mergedCellInfoCollection.setInfo(t[n])}else e.mergeCells=new i(t);else e.mergeCells&&(e.mergeCells.mergedCellInfoCollection=new o)},v=function(e){if(this.mergeCells){(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),(0,d.stopImmediatePropagation)(e))}},y=function(e){this.getSettings().mergeCells&&(e.items.push({name:"---------"}),e.items.push({key:"mergeCells",name:function(){var e=this.getSelected();return this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1])?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return this.selection.selectedHeader.corner}}))},w=function(e,t,n,o,i,r){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,n)},C=function(e){return function(t){if(this.getSettings().mergeCells){var n=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,n,t),"modifyTransformEnd"===e){var o=this.countRows(),i=this.countCols();0>n.from.row?n.from.row=0:n.from.row>0&&n.from.row>=o&&(n.from.row=n.from-1),0>n.from.col?n.from.col=0:n.from.col>0&&n.from.col>=i&&(n.from.col=i-1)}}}},b=function(e){if(this.lastDesiredCoords=null,this.getSettings().mergeCells){var t=this.getSelectedRange();t.highlight=new f.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;do{n=!1;for(var o=0,i=this.mergeCells.mergedCellInfoCollection.length;i>o;o++){var r=this.mergeCells.mergedCellInfoCollection[o],s=new f.CellCoords(r.row,r.col),a=new f.CellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);t.expandByRange(new f.CellRange(s,s,a))&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},_=function(e,t){if(t&&"area"==t){if(this.getSettings().mergeCells)for(var n=this.getSelectedRange(),o=new f.CellRange(n.from,n.from,n.from),i=new f.CellRange(n.to,n.to,n.to),r=0,s=this.mergeCells.mergedCellInfoCollection.length;s>r;r++){var a=this.mergeCells.mergedCellInfoCollection[r],l=new f.CellCoords(a.row,a.col),u=new f.CellCoords(a.row+a.rowspan-1,a.col+a.colspan-1),c=new f.CellRange(l,l,u);o.expandByRange(c)&&(e[0]=o.from.row,e[1]=o.from.col),i.expandByRange(c)&&(e[2]=i.from.row,e[3]=i.from.col)}}},S=function(e,t,n){if(this.getSettings().mergeCells){var o=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!o||o.row==e&&o.col==t||(n.copyable=!1)}},k=function e(t){if(this.getSettings().mergeCells)for(var n,o=this.countCols(),i=0;o>i;i++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(t.startRow,i))&&t.startRow>n.row)return t.startRow=n.row,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(t.endRow,i)){var r=n.row+n.rowspan-1;if(r>t.endRow)return t.endRow=r,e.call(this,t)}}},O=function e(t){if(this.getSettings().mergeCells)for(var n,o=this.countRows(),i=0;o>i;i++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(i,t.startColumn))&&t.startColumn>n.col)return t.startColumn=n.col,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(i,t.endColumn)){var r=n.col+n.colspan-1;if(r>t.endColumn)return t.endColumn=r,e.call(this,t)}}},R=function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,n=this.getSelectedRange();for(var o in t)if(n.highlight.row==t[o].row&&n.highlight.col==t[o].col&&n.to.row==t[o].row+t[o].rowspan-1&&n.to.col==t[o].col+t[o].colspan-1)return!1}return e},E=h.default.getSingleton();E.add("beforeInit",p),E.add("afterInit",g),E.add("afterUpdateSettings",m),E.add("beforeKeyDown",v),E.add("modifyTransformStart",C("modifyTransformStart")),E.add("modifyTransformEnd",C("modifyTransformEnd")),E.add("beforeSetRangeEnd",b),E.add("beforeDrawBorders",_),E.add("afterIsMultipleSelection",R),E.add("afterRenderer",w),E.add("afterContextMenuDefaultOptions",y),E.add("afterGetCellMeta",S),E.add("afterViewportRowCalculatorOverride",k),E.add("afterViewportColumnCalculatorOverride",O),E.add("modifyAutofillRange",r),E.add("afterCreateCol",s),E.add("afterRemoveCol",a),E.add("afterCreateRow",l),E.add("afterRemoveRow",u),t.default=i},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(8),c=(o(u),n(0)),h=n(25),d=n(12),f=o(d),p=n(4),g=o(p),m=n(5),v=n(11),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dragged=[],n.eventManager=null,n.lastSetCell=null,n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return(0,h.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new g.default(this)),this.registerListeners(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){function e(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))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var n=void 0;return(0,c.hasClass)(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return(0,c.hasClass)(n.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,n.preventDefault(),!1):(0,c.hasClass)(n.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var n=(0,c.getWindowScrollTop)(),o=(0,c.getWindowScrollLeft)(),i=void 0,r=void 0,s=void 0,a=void 0,l=void 0,u=void 0,h=void 0;0!==t.dragged.length&&(i=document.elementFromPoint(e.touches[0].screenX-o,e.touches[0].screenY-n))&&i!==t.lastSetCell&&("TD"!=i.nodeName&&"TH"!=i.nodeName||(r=t.hot.getCoords(i),-1==r.col&&(r.col=0),s=t.hot.getSelectedRange(),a=s.getWidth(),l=s.getHeight(),u=s.getDirection(),1==a&&1==l&&t.hot.selection.setRangeEnd(r),h=t.getCurrentRangeCoords(s,r,t.touchStartRange.direction,u,t.dragged[0]),null!==h.start&&t.hot.selection.setRangeStart(h.start),t.hot.selection.setRangeEnd(h.end),t.lastSetCell=i),e.preventDefault())})}},{key:"getCurrentRangeCoords",value:function(e,t,n,o,i){var r=e.getTopLeftCorner(),s=e.getBottomRightCorner(),a=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"==i?{start:new v.CellCoords(t.row,e.highlight.col),end:new v.CellCoords(a.row,t.col)}:{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,r.col)};break;case"SE-NW":"bottomRight"==i&&(u={start:new v.CellCoords(s.row,t.col),end:new v.CellCoords(t.row,r.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"==i?u={start:t,end:a}:u.end=t;break;case"NW-SE":"topLeft"==i?u={start:t,end:s}:u.end=t;break;case"SE-NW":"topLeft"==i?u={start:t,end:r}:u.end=t;break;case"SW-NE":"topLeft"==i?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"==i?{start:new v.CellCoords(t.row,r.col),end:new v.CellCoords(a.row,t.col)}:{start:new v.CellCoords(r.row,t.col),end:new v.CellCoords(t.row,s.col)};break;case"SW-NE":u="topLeft"==i?{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,s.col)}:{start:new v.CellCoords(t.row,r.col),end:new v.CellCoords(r.row,t.col)};break;case"SE-NW":"bottomRight"==i?u={start:new v.CellCoords(t.row,l.col),end:new v.CellCoords(r.row,t.col)}:"topLeft"==i&&(u={start:a,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==i&&(u.end=t);break;case"SE-NW":"topLeft"==i?u.end=t:u={start:t,end:r}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}]),t}(f.default);(0,m.registerPlugin)("multipleSelectionHandles",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(350),a=o(s),l=n(70),u=o(l),c=n(1),h=n(476),d=function(){function e(t){i(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}return r(e,[{key:"setObservedData",value:function(e){var t=this;this.observer&&a.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=a.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,h.cleanPatches)(e))}},{key:"destroy",value:function(){a.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),e}();(0,c.mixin)(d,u.default),t.default=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(12),c=o(u),h=n(350),d=(o(h),n(474)),f=o(d),p=n(2),g=n(5),m=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.observer=null,n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new f.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n=this.pluginName+".change",o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[e.row,e.col,null,e.value],n)}};(0,p.arrayEach)(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),t}(c.default);t.default=m,(0,g.registerPlugin)("observeChanges",m)},function(e,t,n){"use strict";function o(e){var t=[];return e=(0,s.arrayFilter)(e,function(e){return!/[\/]length/gi.test(e.path)&&!!i(e.path)}),e=(0,s.arrayMap)(e,function(e){var t=i(e.path);return e.row=t.row,e.col=t.col,e}),e=(0,s.arrayFilter)(e,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,e}function i(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=r(t,3),o=n[1],i=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(i)?parseInt(i,10):i}}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.cleanPatches=o,t.parsePath=i;var s=n(2)},function(e,t,n){"use strict";function o(e){var t,n=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)},o=function(){t=[],n()};!function(){var n=window.localStorage[e+"__persistentStateKeys"],o="string"==typeof n?JSON.parse(n):void 0;t=o||[]}(),this.saveValue=function(o,i){window.localStorage[e+"_"+o]=JSON.stringify(i),-1==t.indexOf(o)&&(t.push(o),n())},this.loadValue=function(t,n){t=void 0===t?n:t;var o=window.localStorage[e+"_"+t];return void 0===o?void 0:JSON.parse(o)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var n=0;t.length>n;n++)window.localStorage.removeItem(e+"_"+t[n]);o()}}function i(){function e(){var e=this;for(var t in i)(0,a.hasOwnProperty)(i,t)&&e.addHook(t,i[t])}function t(){var e=this;for(var t in i)(0,a.hasOwnProperty)(i,t)&&e.removeHook(t,i[t])}var n=this;this.init=function(){var i=this,r=i.getSettings().persistentState;if(!(n.enabled=!!r))return void t.call(i);i.storage||(i.storage=new o(i.rootElement.id)),i.resetState=n.resetValue,e.call(i)},this.saveValue=function(e,t){this.storage.saveValue(e,t)},this.loadValue=function(e,t){t.value=this.storage.loadValue(e)},this.resetValue=function(e){var t=this;void 0===e?t.storage.resetAll():t.storage.reset(e)};var i={persistentStateSave:n.saveValue,persistentStateLoad:n.loadValue,persistentStateReset:n.resetValue};for(var r in i)(0,a.hasOwnProperty)(i,r)&&s.default.getSingleton().register(r)}t.__esModule=!0;var r=n(8),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=(n(5),n(1)),l=new i;s.default.getSingleton().add("beforeInit",l.init),s.default.getSingleton().add("afterUpdateSettings",l.init),t.default=i},function(e,t,n){"use strict";function o(e){this.query=function(t,n,i){var r=e.countRows(),s=e.countCols(),a=[];n||(n=o.global.getDefaultCallback()),i||(i=o.global.getDefaultQueryMethod());for(var l=0;r>l;l++)for(var u=0;s>u;u++){var c=e.getDataAtCell(l,u),h=e.getCellMeta(l,u),d=h.search.callback||n,f=h.search.queryMethod||i,p=f(t,c);if(p){var g={row:l,col:u,data:c};a.push(g)}d&&d(e,l,u,c,p)}return a}}function i(e,t,n,i,r,a,l){var c=null!==l.search&&"object"==s(l.search)&&l.search.searchResultClass||o.global.getDefaultSearchResultClass();l.isSearchResult?(0,u.addClass)(t,c):(0,u.removeClass)(t,c)}function r(){var e=this;!e.getSettings().search?delete e.search:e.search=new o(e)}t.__esModule=!0;var s="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},a=n(8),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0),c=n(9);o.DEFAULT_CALLBACK=function(e,t,n,o,i){e.getCellMeta(t,n).isSearchResult=i},o.DEFAULT_QUERY_METHOD=function(e,t){return!(void 0===e||null==e||!e.toLowerCase||0===e.length)&&(void 0!==t&&null!=t&&-1!=(""+t).toLowerCase().indexOf(e.toLowerCase()))},o.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",o.global=function(){var e=o.DEFAULT_CALLBACK,t=o.DEFAULT_QUERY_METHOD,n=o.DEFAULT_SEARCH_RESULT_CLASS;return{getDefaultCallback:function(){return e},setDefaultCallback:function(t){e=t},getDefaultQueryMethod:function(){return t},setDefaultQueryMethod:function(e){t=e},getDefaultSearchResultClass:function(){return n},setDefaultSearchResultClass:function(e){n=e}}}();var h=(0,c.getRenderer)("base");(0,c.registerRenderer)("base",function(e,t,n,o,r,s,a){h.apply(this,arguments),i.apply(this,arguments)}),l.default.getSingleton().add("afterInit",r),l.default.getSingleton().add("afterUpdateSettings",r),t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(0),u=n(2),c=n(12),h=function(e){return e&&e.__esModule?e:{default:e}}(c),d=n(5),f=n(34),p=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}return r(t,e),s(t,[{key:"isEnabled",value:function(){return(0,f.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,i=e.topLeftCornerOverlay,r=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),i&&this.scrollbars.push(i),r&&r.clone&&this.scrollbars.push(r),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&this.clones.push(i.clone.wtTable.holder.parentNode),r&&r.clone&&this.clones.push(r.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,u.arrayEach)(this.clones,function(e){(0,l.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,u.arrayEach)(this.clones,function(e){(0,l.removeClass)(e,"hide-tween"),(0,l.addClass)(e,"show-tween")}),setTimeout(function(){(0,u.arrayEach)(e.clones,function(e){(0,l.removeClass)(e,"show-tween")})},400),(0,u.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),t}(h.default);(0,d.registerPlugin)("touchScroll",p),t.default=p},function(e,t,n){"use strict";function o(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&t.done(new o.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,i){if("UndoRedo.undo"!==i&&"UndoRedo.undo"!==i&&"auto"!==i){var r=new o.CreateRowAction(e,n);t.done(r)}}),e.addHook("beforeRemoveRow",function(e,n,i,r){if("UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var s=t.instance.getSourceDataArray();e=(s.length+e)%s.length;var a=(0,f.deepClone)(s.slice(e,e+n));t.done(new o.RemoveRowAction(e,a))}}),e.addHook("afterCreateCol",function(e,n,i){"UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i&&t.done(new o.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,i,r,s){if("UndoRedo.undo"!==s&&"UndoRedo.redo"!==s&&"auto"!==s){var a=t.instance.getSourceDataArray();n=(t.instance.countCols()+n)%t.instance.countCols();var l=[],u=[],c=[];(0,d.rangeEach)(a.length-1,function(t){var o=[],r=a[t];(0,d.rangeEach)(n,n+(i-1),function(t){o.push(r[e.runHooks("modifyCol",t)])}),l.push(o)}),(0,d.rangeEach)(i-1,function(t){c.push(e.runHooks("modifyCol",n+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,d.rangeEach)(i-1,function(t){u.push(e.getSettings().colHeaders[e.runHooks("modifyCol",n+t)]||null)});var h=t.instance.getPlugin("manualColumnMove"),f=h.isEnabled()?h.columnsMapper.__arrayMap:[],p=new o.RemoveColumnAction(n,c,l,u,f);t.done(p)}}),e.addHook("beforeCellAlignment",function(e,n,i,r){var s=new o.CellAlignmentAction(e,n,i,r);t.done(s)}),e.addHook("beforeFilter",function(e){t.done(new o.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){!1!==e&&t.done(new o.RowMoveAction(e,n))})}function i(){var e=this;void 0===e.getSettings().undo||e.getSettings().undo?e.undoRedo||(e.undoRedo=new o(e),a(e),e.addHook("beforeKeyDown",r),e.addHook("afterChange",s)):e.undoRedo&&(delete e.undoRedo,l(e),e.removeHook("beforeKeyDown",r),e.removeHook("afterChange",s))}function r(e){var t=this;(e.ctrlKey||e.metaKey)&&!e.altKey&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),(0,p.stopImmediatePropagation)(e)):90===e.keyCode&&(t.undoRedo.undo(),(0,p.stopImmediatePropagation)(e)))}function s(e,t){var n=this;if("loadData"===t)return n.undoRedo.clear()}function a(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function l(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}var u=n(8),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=n(2),d=n(6),f=n(1),p=n(7),g=n(11);o.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},o.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,f.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,function(){o.ignoreNewActions=!1,o.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},o.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,f.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,function(){o.ignoreNewActions=!1,o.doneActions.push(e)}),n.runHooks("afterRedo",t)}},o.prototype.isUndoAvailable=function(){return this.doneActions.length>0},o.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},o.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},o.Action=function(){},o.Action.prototype.undo=function(){},o.Action.prototype.redo=function(){},o.ChangeAction=function(e){this.changes=e,this.actionType="change"},(0,f.inherit)(o.ChangeAction,o.Action),o.ChangeAction.prototype.undo=function(e,t){for(var n=(0,f.deepClone)(this.changes),o=e.countEmptyRows(!0),i=e.countEmptyCols(!0),r=0,s=n.length;s>r;r++)n[r].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var a=0,l=n.length;l>a;a++)e.getSettings().minSpareRows&&n[a][0]+1+e.getSettings().minSpareRows===e.countRows()&&o==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[a][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[a][1]+1+e.getSettings().minSpareCols===e.countCols()&&i==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[a][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},o.ChangeAction.prototype.redo=function(e,t){for(var n=(0,f.deepClone)(this.changes),o=0,i=n.length;i>o;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},o.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,f.inherit)(o.CreateRowAction,o.Action),o.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&n>this.index-o&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},o.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},o.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,f.inherit)(o.RemoveRowAction,o.Action),o.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},o.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},o.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,f.inherit)(o.CreateColumnAction,o.Action),o.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},o.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},o.RemoveColumnAction=function(e,t,n,o,i){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=i.slice(0),this.actionType="remove_col"},(0,f.inherit)(o.RemoveColumnAction,o.Action),o.RemoveColumnAction.prototype.undo=function(e,t){var n=this,o=void 0,i=this.indexes.slice(0).sort(),r=function(e,t,o){return o[n.indexes.indexOf(i[t])]},s=[];(0,d.rangeEach)(this.data.length-1,function(e){s[e]=(0,h.arrayMap)(n.data[e],r)});var a=[];a=(0,h.arrayMap)(this.headers,r);var l=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),(0,d.rangeEach)(this.data.length-1,function(t){o=e.getSourceDataAtRow(t),(0,d.rangeEach)(i.length-1,function(e){o.splice(i[e],0,s[t][e]),l.push([t,i[e],null,s[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(l),void 0!==this.headers&&(0,d.rangeEach)(a.length-1,function(t){e.getSettings().colHeaders.splice(i[t],0,a[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},o.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},o.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o},o.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var n=this.range.from.row;this.range.to.row>=n;n++)for(var o=this.range.from.col;this.range.to.col>=o;o++)e.setCellMeta(n,o,"className",this.stateBefore[n][o]||" htLeft");e.addHookOnce("afterRender",t),e.render()}},o.CellAlignmentAction.prototype.redo=function(e,t){e.getPlugin("contextMenu").isEnabled()&&(e.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),e.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),e.addHookOnce("afterRender",t),e.render())},o.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,f.inherit)(o.FiltersAction,o.Action),o.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},o.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()},o.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,f.inherit)(o.RowMoveAction,o.Action),o.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.target>this.rows[0]?-1*this.rows.length:0,i=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],r=[],s=this.rows.length+o,a=o;s>a;a++)r.push(this.target+a);n.moveRows(r.slice(),i),e.render(),e.selection.setRangeStartOnly(new g.CellCoords(this.rows[0],0)),e.selection.setRangeEnd(new g.CellCoords(this.rows[this.rows.length-1],e.countCols()-1))},o.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.target>this.rows[0]?this.target-this.rows.length:this.target;e.selection.setRangeStartOnly(new g.CellCoords(o,0)),e.selection.setRangeEnd(new g.CellCoords(o+this.rows.length-1,e.countCols()-1))};var m=c.default.getSingleton();m.add("afterInit",i),m.add("afterUpdateSettings",i),m.register("beforeUndo"),m.register("afterUndo"),m.register("beforeRedo"),m.register("afterRedo")},function(e,t,n){"use strict";function o(e,t,n,o,r,s,a){a.className&&(t.className=t.className?t.className+" "+a.className:a.className),a.readOnly&&(0,i.addClass)(t,a.readOnlyCellClassName),!1===a.valid&&a.invalidCellClassName?(0,i.addClass)(t,a.invalidCellClassName):(0,i.removeClass)(t,a.invalidCellClassName),!1===a.wordWrap&&a.noWordWrapClassName&&(0,i.addClass)(t,a.noWordWrapClassName),!s&&a.placeholder&&(0,i.addClass)(t,a.placeholderCellClassName)}t.__esModule=!0;var i=n(0);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,r,h,d){var f=(u.cloneNode(!0),c.cloneNode(!0));if(d.allowHtml?(0,l.getRenderer)("html").apply(this,arguments):(0,l.getRenderer)("text").apply(this,arguments),t.appendChild(f),(0,i.addClass)(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var p=new s.default(e);e.acArrowListener=function(r){(0,i.hasClass)(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new a.CellCoords(n,o),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){p.destroy()})}}t.__esModule=!0;var i=n(0),r=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(11),l=n(9),u=document.createElement("DIV");u.className="htAutocompleteWrapper";var c=document.createElement("DIV");c.className="htAutocompleteArrow",c.appendChild(document.createTextNode(String.fromCharCode(9660)));t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){function c(e){var t=(0,m.partial)(g.isKey,e.keyCode);t("SPACE|ENTER|DELETE|BACKSPACE")&&!(0,v.isImmediatePropagationStopped)(e)&&p(function(){(0,v.stopImmediatePropagation)(e),e.preventDefault()}),t("SPACE|ENTER")&&f(),t("DELETE|BACKSPACE")&&f(!0)}function f(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n){for(var o=n.getTopLeftCorner(),i=n.getBottomRightCorner(),r=[],s=o.row;i.row>=s;s+=1)for(var a=o.col;i.col>=a;a+=1){var l=e.getCellMeta(s,a);if("checkbox"!==l.type)return;if(!0!==l.readOnly){void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);var u=e.getDataAtCell(s,a);!1===t?u===l.checkedTemplate?r.push([s,a,l.uncheckedTemplate]):-1!==[l.uncheckedTemplate,null,void 0].indexOf(u)&&r.push([s,a,l.checkedTemplate]):r.push([s,a,l.uncheckedTemplate])}}r.length>0&&e.setDataAtCell(r)}}function p(t){var n=e.getSelectedRange();if(n)for(var o=n.getTopLeftCorner(),i=n.getBottomRightCorner(),r=o.row;i.row>=r;r++)for(var s=o.col;i.col>=s;s++){var a=e.getCellMeta(r,s);if("checkbox"!==a.type)return;var l=e.getCell(r,s);if(null==l)t(r,s,a);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!a.readOnly&&t(u)}}}(0,y.getRenderer)("base").apply(this,arguments);var C=(i(e),r()),_=u.label,S=!1;if(void 0===u.checkedTemplate&&(u.checkedTemplate=!0),void 0===u.uncheckedTemplate&&(u.uncheckedTemplate=!1),(0,h.empty)(t),l===u.checkedTemplate||(0,d.equalsIgnoreCase)(l,u.checkedTemplate)?C.checked=!0:l===u.uncheckedTemplate||(0,d.equalsIgnoreCase)(l,u.uncheckedTemplate)?C.checked=!1:null===l?(0,h.addClass)(C,"noValue"):(C.style.display="none",(0,h.addClass)(C,b),S=!0),C.setAttribute("data-row",n),C.setAttribute("data-col",o),!S&&_){var k="";_.value?k="function"==typeof _.value?_.value.call(this,n,o,a,l):_.value:_.property&&(k=e.getDataAtRowProp(n,_.property));var O=s(k);"before"===_.position?O.appendChild(C):O.insertBefore(C,O.firstChild),C=O}t.appendChild(C),S&&t.appendChild(document.createTextNode("#bad-value#")),w.has(e)||(w.set(e,!0),e.addHook("beforeKeyDown",c))}function i(e){var t=C.get(e);return t||(t=new p.default(e),t.addEventListener(e.rootElement,"click",function(t){return l(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return a(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return u(t,e)}),C.set(e,t)),t}function r(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}function s(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function a(e,t){c(e.target)&&setTimeout(t.listen,10)}function l(e,t){if(!c(e.target))return!1;t.getCellMeta(parseInt(e.target.getAttribute("data-row"),10),parseInt(e.target.getAttribute("data-col"),10)).readOnly&&e.preventDefault()}function u(e,t){if(!c(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),i=t.getCellMeta(n,o);if(!i.readOnly){var r=null;r=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(n,o,r)}}function c(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.__esModule=!0;var h=n(0),d=n(27),f=n(4),p=function(e){return e&&e.__esModule?e:{default:e}}(f),g=n(16),m=n(35),v=n(7),y=n(9),w=new WeakMap,C=new WeakMap,b="htBadValue";t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,s,a,l){(0,r.getRenderer)("base").apply(this,arguments),null!==a&&void 0!==a||(a=""),(0,i.fastInnerHTML)(t,a)}t.__esModule=!0;var i=n(0),r=n(9);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,i,l,u){if((0,a.isNumeric)(l)){void 0!==u.language&&r.default.culture(u.language),l=(0,r.default)(l).format(u.format||"0");var c=u.className||"",h=c.length?c.split(" "):[];0>h.indexOf("htLeft")&&0>h.indexOf("htCenter")&&0>h.indexOf("htRight")&&0>h.indexOf("htJustify")&&h.push("htRight"),0>h.indexOf("htNumeric")&&h.push("htNumeric"),u.className=h.join(" ")}(0,s.getRenderer)("text")(e,t,n,o,i,l,u)}t.__esModule=!0;var i=n(51),r=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(9),a=n(6);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){(0,r.getRenderer)("text").apply(this,arguments),l=t.innerHTML;var c=u.hashLength||l.length,h=u.hashSymbol||"*",d="";(0,s.rangeEach)(c-1,function(){d+=h}),(0,i.fastInnerHTML)(t,d)}t.__esModule=!0;var i=n(0),r=n(9),s=n(6);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){(0,s.getRenderer)("base").apply(this,arguments),!l&&u.placeholder&&(l=u.placeholder);var c=(0,r.stringify)(l);if(e.getSettings().trimWhitespace||(c=c.replace(/ /g,String.fromCharCode(160))),u.rendererTemplate){(0,i.empty)(t);var h=document.createElement("TEMPLATE");h.setAttribute("bind","{{}}"),h.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(h),h.model=e.getSourceDataAtRow(n),t.appendChild(h)}else(0,i.fastInnerText)(t,c)}t.__esModule=!0;var i=n(0),r=n(20),s=n(9);t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=this,n=this;this.eventManager=new u.default(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var o=e.rootElement.getAttribute("style");o&&e.rootElement.setAttribute("data-originalstyle",o),(0,s.addClass)(e.rootElement,"handsontable");var i=document.createElement("TABLE");(0,s.addClass)(i,"htCore"),e.getSettings().tableClassName&&(0,s.addClass)(i,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),i.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),i.appendChild(this.TBODY),e.table=i,e.container.insertBefore(i,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(l(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(e){this.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){this.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(l(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var r;this.isMouseDown=function(){return r},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),r=!1,!(0,s.isOutsideInput)(document.activeElement)&&e.selection.isSelected()||e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var o=t.target,i=t.target,a=t.x||t.clientX,l=t.y||t.clientY;if(!r&&e.rootElement){if(i===e.view.wt.wtTable.holder){var u=(0,s.getScrollbarWidth)();if(document.elementFromPoint(a+u,l)!==e.view.wt.wtTable.holder||document.elementFromPoint(a,l+u)!==e.view.wt.wtTable.holder)return}else for(;i!==document.documentElement;){if(null===i){if(t.isTargetWebComponent)break;return}if(i===e.rootElement)return;i=i.parentNode}("function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(o):n.settings.outsideClickDeselects)?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(i,"selectstart",function(e){n.settings.fragmentSelection||(0,s.isInput)(e.target)||e.preventDefault()});var l=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},f=[new h.Selection({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&!e.selection.isMultiple()}}}),new h.Selection({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&e.selection.isMultiple()}}}),new h.Selection({className:"highlight",highlightHeaderClassName:n.settings.currentHeaderClassName,highlightRowClassName:n.settings.currentRowClassName,highlightColumnClassName:n.settings.currentColClassName}),new h.Selection({className:"fill",border:{width:1,color:"red"}})];f.current=f[0],f.area=f[1],f.highlight=f[2],f.fill=f[3];var p={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:i,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){n.appendRowHeader(e,t)}),e.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),e.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var i=n.instance.getCellMeta(e,t),r=n.instance.colToProp(t),s=n.instance.getDataAtRowProp(e,r);n.instance.hasHook("beforeValueRender")&&(s=n.instance.runHooks("beforeValueRender",s)),n.instance.runHooks("beforeRenderer",o,e,t,r,s,i),n.instance.getCellRenderer(i)(n.instance,o,e,t,r,s,i),n.instance.runHooks("afterRenderer",o,e,t,r,s,i)},selections:f,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,i,s){var a={row:!1,column:!1,cells:!1};if(e.listen(),n.activeWt=s,r=!0,e.runHooks("beforeOnCellMouseDown",t,o,i,a),!(0,c.isImmediatePropagationStopped)(t)){var l=e.getSelectedRange(),u=e.selection,d=u.selectedHeader;if(t.shiftKey&&l)0>o.row||0>o.col||a.cells?!d.cols&&!d.rows||0>o.row||0>o.col||a.cells?d.cols&&0>o.row&&!a.column?u.setRangeEnd(new h.CellCoords(l.to.row,o.col)):d.rows&&0>o.col&&!a.row?u.setRangeEnd(new h.CellCoords(o.row,l.to.col)):(!d.cols&&!d.rows&&0>o.col||d.cols&&0>o.col)&&!a.row?(u.setSelectedHeaders(!0,!1),u.setRangeStartOnly(new h.CellCoords(l.from.row,0)),u.setRangeEnd(new h.CellCoords(o.row,e.countCols()-1))):(!d.cols&&!d.rows&&0>o.row||d.rows&&0>o.row)&&!a.column&&(u.setSelectedHeaders(!1,!0),u.setRangeStartOnly(new h.CellCoords(0,l.from.col)),u.setRangeEnd(new h.CellCoords(e.countRows()-1,o.col))):(u.setSelectedHeaders(!1,!1),u.setRangeEnd(new h.CellCoords(o.row,o.col))):(u.setSelectedHeaders(!1,!1),u.setRangeEnd(o));else{var f=!0;if(l){var p=l.from,g=l.to,m=!u.inInSelection(o);if(0>o.row&&d.cols){var v=Math.min(p.col,g.col),y=Math.max(p.col,g.col);f=v>o.col||o.col>y}else if(0>o.col&&d.rows){var w=Math.min(p.row,g.row),C=Math.max(p.row,g.row);f=w>o.row||o.row>C}else f=m}var b=(0,c.isRightClick)(t),_=(0,c.isLeftClick)(t)||"touchstart"===t.type;o.row>=0||0>o.col||a.column?o.col>=0||0>o.row||a.row?0>o.col||0>o.row||a.cells?0>o.col&&0>o.row&&(o.row=0,o.col=0,u.setSelectedHeaders(!1,!1,!0),u.setRangeStart(o)):(_||b&&f)&&(u.setSelectedHeaders(!1,!1),u.setRangeStart(o)):(u.setSelectedHeaders(!0,!1),(_||b&&f)&&(u.setRangeStartOnly(new h.CellCoords(o.row,0)),u.setRangeEnd(new h.CellCoords(o.row,Math.max(e.countCols()-1,0)),!1))):(u.setSelectedHeaders(!1,!0),(_||b&&f)&&(u.setRangeStartOnly(new h.CellCoords(0,o.col)),u.setRangeEnd(new h.CellCoords(Math.max(e.countRows()-1,0),o.col),!1)))}e.runHooks("afterOnCellMouseDown",t,o,i),n.activeWt=n.wt}},onCellMouseOut:function(t,o,i,r){n.activeWt=r,e.runHooks("beforeOnCellMouseOut",t,o,i),(0,c.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellMouseOut",t,o,i),n.activeWt=n.wt)},onCellMouseOver:function(t,o,i,s){var a={row:!1,column:!1,cell:!1};n.activeWt=s,e.runHooks("beforeOnCellMouseOver",t,o,i,a),(0,c.isImmediatePropagationStopped)(t)||(0===t.button&&r&&(e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new h.CellCoords(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new h.CellCoords(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o)),e.runHooks("afterOnCellMouseOver",t,o,i),n.activeWt=n.wt)},onCellMouseUp:function(t,o,i,r){n.activeWt=r,e.runHooks("beforeOnCellMouseUp",t,o,i),e.runHooks("afterOnCellMouseUp",t,o,i),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),i=n.settings.viewportRowRenderingOffset;if("auto"===i&&n.settings.fixedRowsTop&&(i=10),"number"==typeof i&&(t.startRow=Math.max(t.startRow-i,0),t.endRow=Math.min(t.endRow+i,o-1)),"auto"===i){var r=t.startRow+t.endRow-t.startRow,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startRow-s,0),t.endRow=Math.min(t.endRow+s,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),i=n.settings.viewportColumnRenderingOffset;if("auto"===i&&n.settings.fixedColumnsLeft&&(i=10),"number"==typeof i&&(t.startColumn=Math.max(t.startColumn-i,0),t.endColumn=Math.min(t.endColumn+i,o-1)),"auto"===i){var r=t.startColumn+t.endColumn-t.startColumn,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startColumn-s,0),t.endColumn=Math.min(t.endColumn+s,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};e.runHooks("beforeInitWalkontable",p),this.wt=new d.default(p),this.activeWt=this.wt,(0,a.isChrome)()||(0,a.isSafari)()||this.eventManager.addEventListener(e.rootElement,"wheel",function(e){e.preventDefault();var t=parseInt((0,s.getComputedStyle)(document.body)["font-size"],10),o=n.wt.wtOverlays.scrollableElement,i=e.wheelDeltaY||e.deltaY,r=e.wheelDeltaX||e.deltaX;switch(e.deltaMode){case 0:o.scrollLeft+=r,o.scrollTop+=i;break;case 1:o.scrollLeft+=r*t,o.scrollTop+=i*t}}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,c.stopPropagation)(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,c.stopPropagation)(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(0),a=n(25),l=n(4),u=o(l),c=n(7),h=n(11),d=o(h);i.prototype.isTextSelectionAllowed=function(e){if((0,s.isInput)(e))return!0;var t=(0,s.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()))},i.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=r(e,4),n=t[0],o=t[1],i=t[2],s=t[3];return void 0!==n&&n===i&&o===s},i.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},i.prototype.beforeRender=function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)},i.prototype.onDraw=function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)},i.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},i.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return 0>n?null:n},i.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},i.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,s.hasClass)(n,"relative"))return(0,s.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,this.instance.getRowHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetRowHeader",e,t)},i.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;(0,s.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,s.empty)(t),this.appendColHeader(e,t))}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)},i.prototype.updateCellHeader=function(e,t,n){var o=t,i=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,s.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,s.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,s.fastInnerHTML)(e,n(t)):((0,s.fastInnerText)(e,String.fromCharCode(160)),(0,s.addClass)(e,"cornerHeader"))},i.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0},i.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0},i.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},i.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()},t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t){o(this,e),this.data=t,this.next=null,this.prev=null},s=function(){function e(){o(this,e),this.first=null,this.last=null}return i(e,[{key:"push",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t=this.first,n=void 0,o=void 0;t;){if(t.data===e)return n=t.next,o=t.prev,n&&(n.prev=o),o&&(o.next=n),t===this.first&&(this.first=n),t===this.last&&(this.last=o),!0;t=t.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if(e=e.next,t=t.next,e===t)return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){function e(t,n){n&&(e(n,n.next),n.next=t)}if(this.first){e(this.first,this.first.next),this.first.next=null;var t=this.first;this.first=this.last,this.last=t}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e=this.first.next,t=this.first,n=void 0;e;)n=e.next,e.next=t,t.prev=e,t=e,e=n;this.first.next=null,this.last.prev=null,n=this.first,this.first=t,this.last=n}}}]),e}();t.NodeStructure=r,t.default=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.parseDelay=i;var s=n(34);t.default=function(){function e(t,n){var r=this;o(this,e),this.timer=null,this.func=t,this.delay=i(n),this.stopped=!0,this._then=null,this._callback=function(){return r.__callback()}}return r(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),r(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,s.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,s.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,s.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}()},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(1>=Math.abs(r-n))return[];var s=Math.ceil((n+r)/2);return o(e,t,n,s),o(e,t,s,r),i(e,t,n,s,r)}function i(e,t,n,o,i){for(var r=new s.default,a=new s.default,l=o-n,u=i-o,c=Math.max(l,u),h=i-n,d=0;c>d;d+=1)l>d&&r.push(e[n+d]),u>d&&a.push(e[o+d]);for(var f=0;h>f;)e[n+f]=r.first&&a.first?t(r.first.data,a.first.data)>0?a.shift().data:r.shift().data:r.first?r.shift().data:a.shift().data,f+=1;return e}t.__esModule=!0,t.default=o,t.merge=i;var r=n(489),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(e,t){var n=""+e,o=""+t;return n===o?0:o>n?-1:1}},function(e,t,n){"use strict";function o(e,t){if(null==e&&(e=""),this.allowEmpty&&""===e)return void t(!0);this.strict&&this.source?"function"==typeof this.source?this.source(e,i(e,t)):i(e,t)(this.source):t(!0)}function i(e,t){var n=e;return function(e){for(var o=!1,i=0,r=e.length;r>i;i++)if(n===e[i]){o=!0;break}t(o)}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=!0,o=(0,l.getEditorInstance)("date",this.instance);null==e&&(e="");var r=(0,s.default)(new Date(e)).isValid()||(0,s.default)(e,o.defaultDateFormat).isValid(),a=(0,s.default)(e,this.dateFormat||o.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(r=!0,a=!0),r||(n=!1),!r&&a&&(n=!0),r&&!a)if(!0===this.correctFormat){var u=i(e,this.dateFormat),c=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(c,h,u,"dateValidator"),n=!0}else n=!1;t(n)}function i(e,t){var n=(0,s.default)((0,a.getNormalizedDate)(e)),o=(0,s.default)(e,t),i=e.search(/[A-z]/g)>-1,r=void 0;return r=n.isValid()&&n.format("x")===o.format("x")||!o.isValid()||i?n:o,r.format(t)}t.__esModule=!0,t.default=o,t.correctFormat=i;var r=n(42),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(89),l=n(14)},function(e,t,n){"use strict";function o(e,t){null==e&&(e=""),t(this.allowEmpty&&""===e?!0:""===e?!1:/^-?\d*(\.|,)?\d*$/.test(e))}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=!0,o=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var i=/^\d{1,2}$/.test(e);i&&(e+=":00");var a=(0,r.default)(e,s,!0).isValid()?(0,r.default)(e):(0,r.default)(e,o),l=a.isValid(),u=(0,r.default)(e,o,!0).isValid()&&!i;if(this.allowEmpty&&""===e&&(l=!0,u=!0),l||(n=!1),!l&&u&&(n=!0),l&&!u)if(!0===this.correctFormat){var c=a.format(o),h=this.instance.runHooks("unmodifyRow",this.row),d=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(h,d,c,"timeValidator"),n=!0}else n=!1;t(n)}t.__esModule=!0,t.default=o;var i=n(42),r=function(e){return e&&e.__esModule?e:{default:e}}(i),s=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";var o=n(41),i=n(61),r=n(24);e.exports=[].copyWithin||function(e,t){var n=o(this),s=r(n.length),a=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?s:i(u,s))-l,s-a),h=1;for(a>l&&l+c>a&&(h=-1,l+=c-1,a+=c-1);c-- >0;)l in n?n[a]=n[l]:delete n[a],a+=h,l+=h;return n}},function(e,t,n){"use strict";var o=n(41),i=n(61),r=n(24);e.exports=function(e){for(var t=o(this),n=r(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>a;)t[a++]=e;return t}},function(e,t,n){var o=n(15),i=n(378),r=n(10)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),o(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var o=n(498);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){var o=n(39),i=n(59),r=n(48);e.exports=function(e){var t=o(e),n=i.f;if(n)for(var s,a=n(e),l=r.f,u=0;a.length>u;)l.call(e,s=a[u++])&&t.push(s);return t}},function(e,t,n){"use strict";var o=n(18);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var o=n(15),i=n(387).set;e.exports=function(e,t,n){var r,s=t.constructor;return s!==n&&"function"==typeof s&&(r=s.prototype)!==n.prototype&&o(r)&&i&&i(e,r),e}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var o=n(80),i=n(40),r=n(49),s={};n(32)(s,n(10)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(s,{next:i(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var o=n(39),i=n(23);e.exports=function(e,t){for(var n,r=i(e),s=o(r),a=s.length,l=0;a>l;)if(r[n=s[l++]]===t)return n}},function(e,t,n){var o=n(13),i=n(86).set,r=o.MutationObserver||o.WebKitMutationObserver,s=o.process,a=o.Promise,l="process"==n(38)(s);e.exports=function(){var e,t,n,u=function(){var o,i;for(l&&(o=s.domain)&&o.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(l)n=function(){s.nextTick(u)};else if(r){var c=!0,h=document.createTextNode("");new r(u).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}else if(a&&a.resolve){var d=a.resolve();n=function(){d.then(u)}}else n=function(){i.call(o,u)};return function(o){var i={fn:o,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var o=n(19),i=n(18),r=n(39);e.exports=n(21)?Object.defineProperties:function(e,t){i(e);for(var n,s=r(t),a=s.length,l=0;a>l;)o.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var o=n(23),i=n(82).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):i(o(e))}},function(e,t,n){var o=n(22),i=n(41),r=n(83)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),o(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var o=n(82),i=n(59),r=n(18),s=n(13).Reflect;e.exports=s&&s.ownKeys||function(e){var t=o.f(r(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var o=n(18),i=n(73),r=n(10)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||void 0==(n=o(s)[r])?t:i(n)}},function(e,t,n){var o=n(62),i=n(30);e.exports=function(e){return function(t,n){var r,s,a=i(t)+"",l=o(n),u=a.length;return 0>l||l>=u?e?"":void 0:(r=a.charCodeAt(l),55296>r||r>56319||l+1===u||56320>(s=a.charCodeAt(l+1))||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},function(e,t,n){var o=n(13),i=n(45),r=n(58),s=n(391),a=n(19).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=r?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){function o(e){return n(i(e))}function i(e){var t=r[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var r={"./af":134,"./af.js":134,"./ar":141,"./ar-dz":135,"./ar-dz.js":135,"./ar-kw":136,"./ar-kw.js":136,"./ar-ly":137,"./ar-ly.js":137,"./ar-ma":138,"./ar-ma.js":138,"./ar-sa":139,"./ar-sa.js":139,"./ar-tn":140,"./ar-tn.js":140,"./ar.js":141,"./az":142,"./az.js":142,"./be":143,"./be.js":143,"./bg":144,"./bg.js":144,"./bn":145,"./bn.js":145,"./bo":146,"./bo.js":146,"./br":147,"./br.js":147,"./bs":148,"./bs.js":148,"./ca":149,"./ca.js":149,"./cs":150,"./cs.js":150,"./cv":151,"./cv.js":151,"./cy":152,"./cy.js":152,"./da":153,"./da.js":153,"./de":156,"./de-at":154,"./de-at.js":154,"./de-ch":155,"./de-ch.js":155,"./de.js":156,"./dv":157,"./dv.js":157,"./el":158,"./el.js":158,"./en-au":159,"./en-au.js":159,"./en-ca":160,"./en-ca.js":160,"./en-gb":161,"./en-gb.js":161,"./en-ie":162,"./en-ie.js":162,"./en-nz":163,"./en-nz.js":163,"./eo":164,"./eo.js":164,"./es":166,"./es-do":165,"./es-do.js":165,"./es.js":166,"./et":167,"./et.js":167,"./eu":168,"./eu.js":168,"./fa":169,"./fa.js":169,"./fi":170,"./fi.js":170,"./fo":171,"./fo.js":171,"./fr":174,"./fr-ca":172,"./fr-ca.js":172,"./fr-ch":173,"./fr-ch.js":173,"./fr.js":174,"./fy":175,"./fy.js":175,"./gd":176,"./gd.js":176,"./gl":177,"./gl.js":177,"./gom-latn":178,"./gom-latn.js":178,"./he":179,"./he.js":179,"./hi":180,"./hi.js":180,"./hr":181,"./hr.js":181,"./hu":182,"./hu.js":182,"./hy-am":183,"./hy-am.js":183,"./id":184,"./id.js":184,"./is":185,"./is.js":185,"./it":186,"./it.js":186,"./ja":187,"./ja.js":187,"./jv":188,"./jv.js":188,"./ka":189,"./ka.js":189,"./kk":190,"./kk.js":190,"./km":191,"./km.js":191,"./kn":192,"./kn.js":192,"./ko":193,"./ko.js":193,"./ky":194,"./ky.js":194,"./lb":195,"./lb.js":195,"./lo":196,"./lo.js":196,"./lt":197,"./lt.js":197,"./lv":198,"./lv.js":198,"./me":199,"./me.js":199,"./mi":200,"./mi.js":200,"./mk":201,"./mk.js":201,"./ml":202,"./ml.js":202,"./mr":203,"./mr.js":203,"./ms":205,"./ms-my":204,"./ms-my.js":204,"./ms.js":205,"./my":206,"./my.js":206,"./nb":207,"./nb.js":207,"./ne":208,"./ne.js":208,"./nl":210,"./nl-be":209,"./nl-be.js":209,"./nl.js":210,"./nn":211,"./nn.js":211,"./pa-in":212,"./pa-in.js":212,"./pl":213,"./pl.js":213,"./pt":215,"./pt-br":214,"./pt-br.js":214,"./pt.js":215,"./ro":216,"./ro.js":216,"./ru":217,"./ru.js":217,"./sd":218,"./sd.js":218,"./se":219,"./se.js":219,"./si":220,"./si.js":220,"./sk":221,"./sk.js":221,"./sl":222,"./sl.js":222,"./sq":223,"./sq.js":223,"./sr":225,"./sr-cyrl":224,"./sr-cyrl.js":224,"./sr.js":225,"./ss":226,"./ss.js":226,"./sv":227,"./sv.js":227,"./sw":228,"./sw.js":228,"./ta":229,"./ta.js":229,"./te":230,"./te.js":230,"./tet":231,"./tet.js":231,"./th":232,"./th.js":232,"./tl-ph":233,"./tl-ph.js":233,"./tlh":234,"./tlh.js":234,"./tr":235,"./tr.js":235,"./tzl":236,"./tzl.js":236,"./tzm":238,"./tzm-latn":237,"./tzm-latn.js":237,"./tzm.js":238,"./uk":239,"./uk.js":239,"./ur":240,"./ur.js":240,"./uz":242,"./uz-latn":241,"./uz-latn.js":241,"./uz.js":242,"./vi":243,"./vi.js":243,"./x-pseudo":244,"./x-pseudo.js":244,"./yo":245,"./yo.js":245,"./zh-cn":246,"./zh-cn.js":246,"./zh-hk":247,"./zh-hk.js":247,"./zh-tw":248,"./zh-tw.js":248};o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=522},function(e,t,n){function o(e){return n(i(e))}function i(e){var t=r[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var r={"./af":249,"./af.js":249,"./ar":253,"./ar-ma":250,"./ar-ma.js":250,"./ar-sa":251,"./ar-sa.js":251,"./ar-tn":252,"./ar-tn.js":252,"./ar.js":253,"./az":254,"./az.js":254,"./be":255,"./be.js":255,"./bg":256,"./bg.js":256,"./bn":257,"./bn.js":257,"./bo":258,"./bo.js":258,"./br":259,"./br.js":259,"./bs":260,"./bs.js":260,"./ca":261,"./ca.js":261,"./cs":262,"./cs.js":262,"./cv":263,"./cv.js":263,"./cy":264,"./cy.js":264,"./da":265,"./da.js":265,"./de":267,"./de-at":266,"./de-at.js":266,"./de.js":267,"./dv":268,"./dv.js":268,"./el":269,"./el.js":269,"./en-au":270,"./en-au.js":270,"./en-ca":271,"./en-ca.js":271,"./en-gb":272,"./en-gb.js":272,"./en-ie":273,"./en-ie.js":273,"./en-nz":274,"./en-nz.js":274,"./eo":275,"./eo.js":275,"./es":276,"./es.js":276,"./et":277,"./et.js":277,"./eu":278,"./eu.js":278,"./fa":279,"./fa.js":279,"./fi":280,"./fi.js":280,"./fo":281,"./fo.js":281,"./fr":284,"./fr-ca":282,"./fr-ca.js":282,"./fr-ch":283,"./fr-ch.js":283,"./fr.js":284,"./fy":285,"./fy.js":285,"./gd":286,"./gd.js":286,"./gl":287,"./gl.js":287,"./he":288,"./he.js":288,"./hi":289,"./hi.js":289,"./hr":290,"./hr.js":290,"./hu":291,"./hu.js":291,"./hy-am":292,"./hy-am.js":292,"./id":293,"./id.js":293,"./is":294,"./is.js":294,"./it":295,"./it.js":295,"./ja":296,"./ja.js":296,"./jv":297,"./jv.js":297,"./ka":298,"./ka.js":298,"./kk":299,"./kk.js":299,"./km":300,"./km.js":300,"./ko":301,"./ko.js":301,"./ky":302,"./ky.js":302,"./lb":303,"./lb.js":303,"./lo":304,"./lo.js":304,"./lt":305,"./lt.js":305,"./lv":306,"./lv.js":306,"./me":307,"./me.js":307,"./mk":308,"./mk.js":308,"./ml":309,"./ml.js":309,"./mr":310,"./mr.js":310,"./ms":312,"./ms-my":311,"./ms-my.js":311,"./ms.js":312,"./my":313,"./my.js":313,"./nb":314,"./nb.js":314,"./ne":315,"./ne.js":315,"./nl":316,"./nl.js":316,"./nn":317,"./nn.js":317,"./pa-in":318,"./pa-in.js":318,"./pl":319,"./pl.js":319,"./pt":321,"./pt-br":320,"./pt-br.js":320,"./pt.js":321,"./ro":322,"./ro.js":322,"./ru":323,"./ru.js":323,"./se":324,"./se.js":324,"./si":325,"./si.js":325,"./sk":326,"./sk.js":326,"./sl":327,"./sl.js":327,"./sq":328,"./sq.js":328,"./sr":330,"./sr-cyrl":329,"./sr-cyrl.js":329,"./sr.js":330,"./ss":331,"./ss.js":331,"./sv":332,"./sv.js":332,"./sw":333,"./sw.js":333,"./ta":334,"./ta.js":334,"./te":335,"./te.js":335,"./th":336,"./th.js":336,"./tl-ph":337,"./tl-ph.js":337,"./tlh":338,"./tlh.js":338,"./tr":339,"./tr.js":339,"./tzl":340,"./tzl.js":340,"./tzm":342,"./tzm-latn":341,"./tzm-latn.js":341,"./tzm.js":342,"./uk":343,"./uk.js":343,"./uz":344,"./uz.js":344,"./vi":345,"./vi.js":345,"./x-pseudo":346,"./x-pseudo.js":346,"./zh-cn":347,"./zh-cn.js":347,"./zh-tw":348,"./zh-tw.js":348};o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=523},function(e,t,n){/*!
|
36
|
+
(function(){"use strict";function r(e){this._value=e}function s(e){return 0===e?1:Math.floor(Math.log(Math.abs(e))/Math.LN10)+1}function a(e){var t,n="";for(t=0;e>t;t++)n+="0";return n}function l(e,t){var n,o,i,r,s,l,u,c;return c=""+e,n=c.split("e")[0],r=c.split("e")[1],o=n.split(".")[0],i=n.split(".")[1]||"",+r>0?c=o+i+a(r-i.length):(s=0>+o?"-0":"0",t>0&&(s+="."),u=a(-1*r-1),l=(u+Math.abs(o)+i).substr(0,t),c=s+l),+r>0&&t>0&&(c+="."+a(t)),c}function u(e,t,n,o){var i,r,s=Math.pow(10,t);return(""+e).indexOf("e")>-1?(r=l(e,t),"-"!==r.charAt(0)||0>+r||(r=r.substr(1))):r=(n(e+"e+"+t)/s).toFixed(t),o&&(i=RegExp("0{1,"+o+"}$"),r=r.replace(i,"")),r}function c(e,t,n){var o=t.replace(/\{[^\{\}]*\}/g,"");return o.indexOf("$")>-1?d(e,T[H].currency.symbol,t,n):o.indexOf("%")>-1?p(e,t,n):o.indexOf(":")>-1?g(e):y(e._value,t,n)}function h(e,t){var n,o,i,r,s,a=t,l=!1;if(t.indexOf(":")>-1)e._value=v(t);else if(t===P)e._value=0;else{for("."!==T[H].delimiters.decimal&&(t=t.replace(/\./g,"").replace(T[H].delimiters.decimal,".")),n=RegExp("[^a-zA-Z]"+T[H].abbreviations.thousand+"(?:\\)|(\\"+T[H].currency.symbol+")?(?:\\))?)?$"),o=RegExp("[^a-zA-Z]"+T[H].abbreviations.million+"(?:\\)|(\\"+T[H].currency.symbol+")?(?:\\))?)?$"),i=RegExp("[^a-zA-Z]"+T[H].abbreviations.billion+"(?:\\)|(\\"+T[H].currency.symbol+")?(?:\\))?)?$"),r=RegExp("[^a-zA-Z]"+T[H].abbreviations.trillion+"(?:\\)|(\\"+T[H].currency.symbol+")?(?:\\))?)?$"),s=1;_.length>s&&!l;++s)t.indexOf(_[s])>-1?l=Math.pow(1024,s):t.indexOf(R[s])>-1&&(l=Math.pow(1e3,s));var u=t.replace(/[^0-9\.]+/g,"");""===u?e._value=NaN:(e._value=(l||1)*(a.match(n)?Math.pow(10,3):1)*(a.match(o)?Math.pow(10,6):1)*(a.match(i)?Math.pow(10,9):1)*(a.match(r)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*+u,e._value=l?Math.ceil(e._value):e._value)}return e._value}function d(e,t,n,o){var i,r,s=n,a=s.indexOf("$"),l=s.indexOf("("),u=s.indexOf("+"),c=s.indexOf("-"),h="",d="";if(-1===s.indexOf("$")?"infix"===T[H].currency.position?(d=t,T[H].currency.spaceSeparated&&(d=" "+d+" ")):T[H].currency.spaceSeparated&&(h=" "):s.indexOf(" $")>-1?(h=" ",s=s.replace(" $","")):s.indexOf("$ ")>-1?(h=" ",s=s.replace("$ ","")):s=s.replace("$",""),r=y(e._value,s,o,d),-1===n.indexOf("$"))switch(T[H].currency.position){case"postfix":r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,h+t),r=r.join("")):r=r+h+t;break;case"infix":break;case"prefix":r.indexOf("(")>-1||r.indexOf("-")>-1?(r=r.split(""),i=Math.max(l,c)+1,r.splice(i,0,t+h),r=r.join("")):r=t+h+r;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else a>1?r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,h+t),r=r.join("")):r=r+h+t:r.indexOf("(")>-1||r.indexOf("+")>-1||r.indexOf("-")>-1?(r=r.split(""),i=1,(l>a||u>a||c>a)&&(i=0),r.splice(i,0,t+h),r=r.join("")):r=t+h+r;return r}function f(e,t,n,o){return d(e,t,n,o)}function p(e,t,n){var o,i="",r=100*e._value;return t.indexOf(" %")>-1?(i=" ",t=t.replace(" %","")):t=t.replace("%",""),o=y(r,t,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o}function g(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(10>n?"0"+n:n)+":"+(10>o?"0"+o:o)}function v(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*+t[0]*60,n+=60*+t[1],n+=+t[2]):2===t.length&&(n+=60*+t[0],n+=+t[1]),+n}function m(e,t,n){var o,i,r,s=t[0],a=Math.abs(e);if(a>=n){for(o=1;t.length>o;++o)if(i=Math.pow(n,o),r=Math.pow(n,o+1),a>=i&&r>a){s=t[o],e/=i;break}s===t[0]&&(e/=Math.pow(n,t.length-1),s=t[t.length-1])}return{value:e,suffix:s}}function y(e,t,n,o){var i,r,l,c,h,d,f,p,g,v,y,w,C,b,S,O,_=!1,R=!1,E=!1,M="",D=!1,A=!1,x=!1,L=!1,N=!1,j="",I="",W=Math.abs(e),F="",V=!1,B=!1,Y="";if(0===e&&null!==P)return P;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var z=t.indexOf("}");if(-1===z)throw Error('Format should also contain a "}"');v=t.slice(1,z),t=t.slice(z+1)}else v="";if(t.indexOf("}")===t.length-1&&t.length){var U=t.indexOf("{");if(-1===U)throw Error('Format should also contain a "{"');y=t.slice(U+1,-1),t=t.slice(0,U+1)}else y="";var K;for(K=t.match(-1===t.indexOf(".")?/([0-9]+).*/:/([0-9]+)\..*/),S=null===K?-1:K[1].length,-1!==t.indexOf("-")&&(V=!0),t.indexOf("(")>-1?(_=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(R=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(p=t.split(".")[0].match(/[0-9]+/g)||["0"],p=parseInt(p[0],10),D=t.indexOf("aK")>=0,A=t.indexOf("aM")>=0,x=t.indexOf("aB")>=0,L=t.indexOf("aT")>=0,N=D||A||x||L,t.indexOf(" a")>-1?(M=" ",t=t.replace(" a","")):t=t.replace("a",""),l=s(e),h=l%3,h=0===h?3:h,p&&0!==W&&(d=3*~~((Math.min(p,l)-h)/3),W/=Math.pow(10,d)),l!==p&&(W>=Math.pow(10,12)&&!N||L?(M+=T[H].abbreviations.trillion,e/=Math.pow(10,12)):W<Math.pow(10,12)&&W>=Math.pow(10,9)&&!N||x?(M+=T[H].abbreviations.billion,e/=Math.pow(10,9)):W<Math.pow(10,9)&&W>=Math.pow(10,6)&&!N||A?(M+=T[H].abbreviations.million,e/=Math.pow(10,6)):(W<Math.pow(10,6)&&W>=Math.pow(10,3)&&!N||D)&&(M+=T[H].abbreviations.thousand,e/=Math.pow(10,3))),c=s(e),p&&p>c&&-1===t.indexOf(".")&&(t+="[.]",t+=a(p-c))),O=0;k.length>O;++O)if(i=k[O],t.indexOf(i.marker)>-1){t.indexOf(" "+i.marker)>-1&&(j=" "),t=t.replace(j+i.marker,""),r=m(e,i.suffixes,i.scale),e=r.value,j+=r.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(I=" ",t=t.replace(" o","")):t=t.replace("o",""),T[H].ordinal&&(I+=T[H].ordinal(e))),t.indexOf("[.]")>-1&&(E=!0,t=t.replace("[.]",".")),g=t.split(".")[1],w=t.indexOf(","),g){var G=[];if(-1!==g.indexOf("*")?(F=""+e,G=F.split("."),G.length>1&&(F=u(e,G[1].length,n))):g.indexOf("[")>-1?(g=g.replace("]",""),g=g.split("["),F=u(e,g[0].length+g[1].length,n,g[1].length)):F=u(e,g.length,n),G=F.split("."),f=G[0],G.length>1&&G[1].length){F=(o?M+o:T[H].delimiters.decimal)+G[1]}else F="";E&&0==+F.slice(1)&&(F="")}else f=u(e,0,n);return f.indexOf("-")>-1&&(f=f.slice(1),B=!0),S>f.length&&(f=a(S-f.length)+f),w>-1&&(f=(""+f).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T[H].delimiters.thousands)),0===t.indexOf(".")&&(f=""),C=t.indexOf("("),b=t.indexOf("-"),Y=b>C?(_&&B?"(":"")+(V&&B||!_&&B?"-":""):(V&&B||!_&&B?"-":"")+(_&&B?"(":""),v+Y+(!B&&R&&0!==e?"+":"")+f+F+(I||"")+(M&&!o?M:"")+(j||"")+(_&&B?")":"")+y}function w(e,t){T[e]=t}function C(e){H=e;var t=T[e].defaults;t&&t.format&&O.defaultFormat(t.format),t&&t.currencyFormat&&O.defaultCurrencyFormat(t.currencyFormat)}function b(e){var t=(""+e).split(".");return 2>t.length?1:Math.pow(10,t[1].length)}function S(){return Array.prototype.slice.call(arguments).reduce(function(e,t){var n=b(e),o=b(t);return n>o?n:o},-1/0)}var O,_=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],R=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],E={general:{scale:1024,suffixes:R,marker:"bd"},binary:{scale:1024,suffixes:_,marker:"b"},decimal:{scale:1e3,suffixes:R,marker:"d"}},k=[E.general,E.binary,E.decimal],T={},M=T,H="en-US",P=null,D="0,0",A="0$",x=void 0!==e&&e.exports,L={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};O=function(e){return e=O.isNumbro(e)?e.value():"string"==typeof e||"number"==typeof e?O.fn.unformat(e):NaN,new r(+e)},O.version="1.11.0",O.isNumbro=function(e){return e instanceof r},O.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=e,o=e.split("-")[0],i=null;M[n]||(Object.keys(M).forEach(function(e){i||e.split("-")[0]!==o||(i=e)}),n=i||t||"en-US"),C(n)},O.setCulture=function(e,t){var n=e,o=e.split("-")[1],i=null;T[n]||(o&&Object.keys(T).forEach(function(e){i||e.split("-")[1]!==o||(i=e)}),n=i||t||"en-US"),C(n)},O.language=function(e,t){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return H;if(e&&!t){if(!M[e])throw Error("Unknown language : "+e);C(e)}return!t&&M[e]||w(e,t),O},O.culture=function(e,t){if(!e)return H;if(e&&!t){if(!T[e])throw Error("Unknown culture : "+e);C(e)}return!t&&T[e]||w(e,t),O},O.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return M[H];if(!M[e])throw Error("Unknown language : "+e);return M[e]},O.cultureData=function(e){if(!e)return T[H];if(!T[e])throw Error("Unknown culture : "+e);return T[e]},O.culture("en-US",L),O.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),M},O.cultures=function(){return T},O.zeroFormat=function(e){P="string"==typeof e?e:null},O.defaultFormat=function(e){D="string"==typeof e?e:"0.0"},O.defaultCurrencyFormat=function(e){A="string"==typeof e?e:"0$"},O.validate=function(e,t){var n,o,i,r,s,a,l,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e=e.replace(/^[+-]?/,""),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=O.cultureData(t)}catch(e){l=O.cultureData(O.culture())}return i=l.currency.symbol,s=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(u=e.match(/^[^\d\.\,]+/))||(e=e.substr(1),u[0]===i))&&((null===(u=e.match(/[^\d]+$/))||(e=e.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(a=RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(r=e.split(n),2>=r.length&&(2>r.length?!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a):""===r[0]?!r[0].match(a)&&!!r[1].match(/^\d+$/):1===r[0].length?!!r[0].match(/^\d+$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/):!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/)))))},O.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),O.loadCulturesInNode()},O.loadCulturesInNode=function(){var e=n(335);for(var t in e)t&&O.culture(t,e[t])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null===this||void 0===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,o,i=this.length>>>0,r=!1;for(arguments.length>1&&(o=t,r=!0),n=0;i>n;++n)this.hasOwnProperty(n)&&(r?o=e(o,this[n],n,this):(o=this[n],r=!0));if(!r)throw new TypeError("Reduce of empty array with no initial value");return o}),O.fn=r.prototype={clone:function(){return O(this)},format:function(e,t){return c(this,e||D,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return d(this,T[H].currency.symbol,e||A,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,n){return f(this,e,t||A,void 0!==n?n:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=h(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return m(this._value,E.binary.suffixes,E.binary.scale).suffix},byteUnits:function(){return m(this._value,E.general.suffixes,E.general.scale).suffix},decimalByteUnits:function(){return m(this._value,E.decimal.suffixes,E.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=+e,this},add:function(e){function t(e,t){return e+n*t}var n=S.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t){return e-n*t}var n=S.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t){var n=S(e,t),o=e*n;return o*=t*n,o/=n*n}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t){var n=S(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(O(this._value).subtract(e).value())}},function(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(-1!==process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&!0}()&&O.loadCulturesInNode(),x?e.exports=O:("undefined"==typeof ender&&(this.numbro=O),o=[],void 0!==(i=function(){return O}.apply(t,o))&&(e.exports=i))}).call("undefined"==typeof window?this:window),window.numbro=n(64)},function(e,t,n){var o=n(14),i=n(11).document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},function(e,t,n){var o=n(14);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(16),i=n(296),r=n(71),s=n(69)("IE_PROTO"),a=function(){},l=function(){var e,t=n(65)("iframe"),o=r.length;for(t.style.display="none",n(94).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;o--;)delete l.prototype[r[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=o(e),n=new a,a.prototype=null,n[s]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(70)("keys"),i=n(43);e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var o=n(11),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(9)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],s=r[o]();s.next=function(){return{done:n=!0}},r[o]=function(){return s},e(r)}catch(e){}return n}},function(e,t,n){var o=n(49),i=n(44),r=n(25),s=n(66),a=n(24),l=n(91),u=Object.getOwnPropertyDescriptor;t.f=n(20)?u:function(e,t){if(e=r(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(a(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var o,i,r,s=n(30),a=n(303),l=n(94),u=n(65),c=n(11),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,v=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},w=function(e){y.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){a("function"==typeof e?e:Function(e),t)},o(v),v},f=function(e){delete m[e]},"process"==n(38)(h)?o=function(e){h.nextTick(s(y,e,1))}:g&&g.now?o=function(e){g.now(s(y,e,1))}:p?(i=new p,r=i.port2,i.port1.onmessage=w,o=s(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):o="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){var o=n(92),i=n(71).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t,n){var o=n(123),i=n(33);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return i(e)+""}},function(e,t,n){var o=n(9)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var o=n(17),i=n(44);e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){"use strict";var o=n(41),i=n(100),r=n(46),s=n(25);e.exports=n(99)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]]):(this._t=void 0,i(1))},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(50),s=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(t,n,i){o(this,e),this.highlight=t,this.from=n,this.to=i}return i(e,[{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),i=this.getBottomRightCorner();return!(o.row>t||t>i.row||o.col>n||n>i.col)}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)==Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.row>e.row||t.col>e.col||e.row>n.row||e.col>n.col)&&(this.from=new s.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new s.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),i=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),r=t.getBottomRightCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),u=Math.max(o.row,r.row),c=Math.max(o.col,r.col),h=new s.default(a,l),d=new s.default(u,c),f=new e(h,h,d).isCorner(this.from,t),p=t.isEqual(new e(h,h,d));return f&&!p&&(this.from.col>h.col&&(h.col=c,d.col=l),this.from.row>h.row&&(h.row=u,d.row=a)),this.from=h,this.to=d,!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var i=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=i[0],this.to=i[1]}}},{key:"getTopLeftCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new s.default(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof s.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new s.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},o=[];return t.top==n.top&&o.push("top"),t.right==n.right&&o.push("right"),t.bottom==n.bottom&&o.push("bottom"),t.left==n.left&&o.push("left"),o}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var i=e.col;t.col>=i;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new s.default(o,i));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var i=e.col;t.col>=i;i++)n.push(e.row===o&&e.col===i?e:t.row===o&&t.col===i?t:new s.default(o,i));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;n.row>=o;o++)for(var i=t.col;n.col>=i;i++){var r=e(o,i);if(!1===r)return}}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(!D(e))throw Error('You declared cell type "'+e+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return P(e)}function r(e,t){var n=t.editor,o=t.renderer,i=t.validator;n&&(0,l.registerEditor)(e,n),o&&(0,u.registerRenderer)(e,o),i&&(0,c.registerValidator)(e,i),H(e,t)}t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var s=n(63),a=o(s),l=n(15),u=n(8),c=n(27),h=n(349),d=o(h),f=n(350),p=o(f),g=n(351),v=o(g),m=n(352),y=o(m),w=n(353),C=o(w),b=n(354),S=o(b),O=n(355),_=o(O),R=n(356),E=o(R),k=n(357),T=o(k),M=(0,a.default)("cellTypes"),H=M.register,P=M.getItem,D=M.hasItem,A=M.getNames,x=M.getValues;r("autocomplete",d.default),r("checkbox",p.default),r("date",v.default),r("dropdown",y.default),r("handsontable",C.default),r("numeric",S.default),r("password",_.default),r("text",E.default),r("time",T.default),t.registerCellType=r,t.getCellType=i,t.hasCellType=D,t.getRegisteredCellTypeNames=A,t.getRegisteredCellTypes=x},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){function n(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=0>this.validatorsInQueue-1?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function o(e,t,o){function i(){var n;e.length&&(n=z.runHooks("beforeChange",e,t),(0,d.isFunction)(n)?console.warn("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):!1===n&&e.splice(0,e.length)),o()}var r=new n;r.onQueueEmpty=i;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var a=e[s][0],l=T.propToCol(e[s][1]),h=z.getCellMeta(a,l);if("numeric"===h.type&&"string"==typeof e[s][3]&&e[s][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(e[s][3])||h.format)){var p=e[s][3].length;u.default.culture((0,f.isUndefined)(h.language)?"en-US":e[s][3].indexOf(".")===p-3&&-1===e[s][3].indexOf(",")?"en-US":h.language);u.default.cultureData(u.default.culture());e[s][3]=u.default.validate(e[s][3])&&!isNaN(e[s][3])?parseFloat(e[s][3]):(0,u.default)().unformat(e[s][3])||e[s][3]}z.getCellValidator(h)&&(r.addValidatorToQueue(),z.validateCell(e[s][3],h,function(t,n){return function(o){if("boolean"!=typeof o)throw Error("Validation error: result is not boolean");if(!1===o&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var i=z.getCell(n.visualRow,n.visualCol);(0,c.removeClass)(i,z.getSettings().invalidCellClassName),--t}r.removeValidatorFormQueue()}}(s,h),t))}r.checkIfQueueIsEmpty()}function r(e,t){var n=e.length-1;if(n>=0){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!=e[n][2]||null!=e[n][3]){if(w.settings.allowInsertRow)for(;e[n][0]>z.countRows()-1;){var i=T.createRow(void 0,void 0,t);if(0===i){o=!0;break}}if(!o){if("array"===z.dataType&&(!w.settings.columns||0===w.settings.columns.length)&&w.settings.allowInsertColumn)for(;T.propToCol(e[n][1])>z.countCols()-1;)T.createCol(void 0,void 0,t);T.set(e[n][0],e[n][1],e[n][3])}}}else e.splice(n,1)}z.forceFullRender=!0,N.adjustRowsAndCols(),z.runHooks("beforeChangeRender",e,t),I.refreshBorders(null,!0),z.view.wt.wtOverlays.adjustElementsSize(),z.runHooks("afterChange",e,t||"edit");var r=z.getActiveEditor();r&&(0,f.isDefined)(r.refreshValue)&&r.refreshValue()}}function l(e,t,n){return"object"===(void 0===e?"undefined":a(e))?e:[[e,t,n]]}function g(e){if((0,b.hasOwnProperty)(e,"type")){var t,n={};"object"===a(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,F.getCellType)(e.type));for(var o in t)(0,b.hasOwnProperty)(t,o)&&!(0,b.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}function m(){throw Error("This method cannot be called because this Handsontable instance has been destroyed")}var w,T,H,N,I,B,Y=arguments.length>2&&void 0!==arguments[2]&&arguments[2],z=this,U=function(){},K=new C.default(z);(0,b.extend)(U.prototype,W.default.prototype),(0,b.extend)(U.prototype,t),(0,b.extend)(U.prototype,g(t)),(0,x.hasValidParameter)(Y)&&(0,x.registerAsRootInstance)(this),this.rootElement=e,this.isHotTableEnv=(0,c.isChildOfWebComponentTable)(this.rootElement),C.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,E.randomString)();var G=(0,A.getTranslator)(z);H=new P.default(z),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),w={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new U,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},N={alter:function(e,t,n,o,r){function s(e,t,n,o){var r=function(){var e=void 0;return"array"===o?e=[]:"object"===o&&(e={}),e},s=(0,S.arrayMap)(Array(n),function(){return r()});s.unshift(t,0),e.splice.apply(e,i(s))}var a;switch(n=n||1,e){case"insert_row":var l=z.countSourceRows();if(z.getSettings().maxRows===l)return;t=(0,f.isDefined)(t)?t:l,a=T.createRow(t,n,o),s(w.cellSettings,t,n,"array"),a&&(I.isSelected()&&w.selRange.from.row>=t?(w.selRange.from.row+=a,I.transformEnd(a,0)):I.refreshBorders());break;case"insert_col":a=T.createCol(t,n,o);for(var u=0,c=z.countSourceRows();c>u;u++)w.cellSettings[u]&&s(w.cellSettings[u],t,n);if(a){if(Array.isArray(z.getSettings().colHeaders)){var h=[t,0];h.length+=a,Array.prototype.splice.apply(z.getSettings().colHeaders,h)}I.isSelected()&&w.selRange.from.col>=t?(w.selRange.from.col+=a,I.transformEnd(0,a)):I.refreshBorders()}break;case"remove_row":T.removeRow(t,n,o),w.cellSettings.splice(t,n);var d=z.countRows(),p=z.getSettings().fixedRowsTop;t+1>p||(z.getSettings().fixedRowsTop-=Math.min(n,p-t));var g=z.getSettings().fixedRowsBottom;g&&t>=d-g&&(z.getSettings().fixedRowsBottom-=Math.min(n,g)),N.adjustRowsAndCols(),I.refreshBorders();break;case"remove_col":var v=G.toPhysicalColumn(t);T.removeCol(t,n,o);for(var m=0,y=z.countSourceRows();y>m;m++)w.cellSettings[m]&&w.cellSettings[m].splice(v,n);var C=z.getSettings().fixedColumnsLeft;t+1>C||(z.getSettings().fixedColumnsLeft-=Math.min(n,C-t)),Array.isArray(z.getSettings().colHeaders)&&(void 0===v&&(v=-1),z.getSettings().colHeaders.splice(v,n)),N.adjustRowsAndCols(),I.refreshBorders();break;default:throw Error('There is no such action "'+e+'"')}r||N.adjustRowsAndCols()},adjustRowsAndCols:function(){if(w.settings.minRows){var e=z.countRows();if(w.settings.minRows>e)for(var t=0,n=w.settings.minRows;n-e>t;t++)T.createRow(z.countRows(),1,"auto")}if(w.settings.minSpareRows){var o=z.countEmptyRows(!0);if(w.settings.minSpareRows>o)for(;w.settings.minSpareRows>o&&z.countSourceRows()<w.settings.maxRows;o++)T.createRow(z.countRows(),1,"auto")}var i=void 0;if((w.settings.minCols||w.settings.minSpareCols)&&(i=z.countEmptyCols(!0)),w.settings.minCols&&!w.settings.columns&&z.countCols()<w.settings.minCols)for(;z.countCols()<w.settings.minCols;i++)T.createCol(z.countCols(),1,"auto");if(w.settings.minSpareCols&&!w.settings.columns&&"array"===z.dataType&&w.settings.minSpareCols>i)for(;w.settings.minSpareCols>i&&z.countCols()<w.settings.maxCols;i++)T.createCol(z.countCols(),1,"auto");var r=z.countRows(),s=z.countCols();if(0!==r&&0!==s||I.deselect(),I.isSelected()){var a=!1,l=w.selRange.from.row,u=w.selRange.from.col,c=w.selRange.to.row,h=w.selRange.to.col;l>r-1?(l=r-1,a=!0,c>l&&(c=l)):c>r-1&&(c=r-1,a=!0,l>c&&(l=c)),u>s-1?(u=s-1,a=!0,h>u&&(h=u)):h>s-1&&(h=s-1,a=!0,u>h&&(u=h)),a&&z.selectCell(l,u,c,h)}z.view&&z.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,r,s,l){var u,c,h,d,p=[],g={};if(0===(c=t.length))return!1;var v,m,y,C;switch(r){case"shift_down":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,t=(0,D.translateRowsToColumns)(t),h=0,d=t.length,y=Math.max(d,v);y>h;h++)if(d>h){var S;for(u=0,c=t[h].length;m-c>u;u++)t[h].push(t[h][u%c]);t[h].unshift(e.col+h,e.row,0),(S=z).spliceCol.apply(S,i(t[h]))}else{var O;t[h%d][0]=e.col+h,(O=z).spliceCol.apply(O,i(t[h%d]))}break;case"shift_right":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,u=0,c=t.length,C=Math.max(c,m);C>u;u++)if(c>u){var _;for(h=0,d=t[u].length;v-d>h;h++)t[u].push(t[u][h%d]);t[u].unshift(e.row+u,e.col,0),(_=z).spliceRow.apply(_,i(t[u]))}else{var R;t[u%c][0]=e.row+u,(R=z).spliceRow.apply(R,i(t[u%c]))}break;case"overwrite":default:g.row=e.row,g.col=e.col;var E={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},k=0,T=0,M=!0,H=void 0,P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},A=t.length,x=n?n.row-e.row+1:0;for(c=n?x:Math.max(A,x),u=0;c>u&&(!(n&&g.row>n.row&&x>A||!w.settings.allowInsertRow&&g.row>z.countRows()-1)&&g.row<w.settings.maxRows);u++){var L=u-k,N=P(L).length,j=n?n.col-e.col+1:0;if(d=n?j:Math.max(N,j),g.col=e.col,H=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!H.skipRowOnPaste){for(T=0,h=0;d>h&&(!(n&&g.col>n.col&&j>N||!w.settings.allowInsertColumn&&g.col>z.countCols()-1)&&g.col<w.settings.maxCols);h++)if(H=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!H.skipColumnOnPaste)if(H.readOnly)g.col++;else{var I=h-T,W=P(L,I),F=z.getDataAtCell(g.row,g.col),V={row:L,col:I};if("Autofill.fill"===o){var B=z.runHooks("beforeAutofillInsidePopulate",V,s,t,l,{},E);B&&(W=(0,f.isUndefined)(B.value)?W:B.value)}if(null!==W&&"object"===(void 0===W?"undefined":a(W)))if(null===F||"object"!==(void 0===F?"undefined":a(F)))M=!1;else{var Y=(0,b.duckSchema)(F[0]||F),U=(0,b.duckSchema)(W[0]||W);(0,b.isObjectEquals)(Y,U)?W=(0,b.deepClone)(W):M=!1}else null!==F&&"object"===(void 0===F?"undefined":a(F))&&(M=!1);M&&p.push([g.row,g.col,W]),M=!0,g.col++}else T++,g.col++,d++;g.row++}else k++,g.row++,c++}z.setDataAtCell(p,null,null,o||"populateFromArray")}}},this.selection=I={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];z.selection.selectedHeader.rows=e,z.selection.selectedHeader.cols=t,z.selection.selectedHeader.corner=n},begin:function(){z.selection.inProgress=!0},finish:function(){var e=z.getSelected();z.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),z.runHooks("afterSelectionEndByProp",e[0],z.colToProp(e[1]),e[2],z.colToProp(e[3])),z.selection.inProgress=!1},isInProgress:function(){return z.selection.inProgress},setRangeStart:function(e,t){z.runHooks("beforeSetRangeStart",e),w.selRange=new L.CellRange(e,e,e),I.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){z.runHooks("beforeSetRangeStartOnly",e),w.selRange=new L.CellRange(e,e,e)},setRangeEnd:function(e,t,n){if(null!==w.selRange){var o,i=!1,r=!0,s=z.view.wt.wtTable.getFirstVisibleRow(),a=z.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};z.runHooks("beforeSetRangeEnd",e),z.selection.begin(),l.row=0>e.row?s:e.row,l.col=0>e.col?a:e.col,w.selRange.to=new L.CellCoords(l.row,l.col),w.settings.multiSelect||(w.selRange.from=e),z.view.wt.selections.current.clear(),o=z.getCellMeta(w.selRange.highlight.row,w.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(!1===o||Array.isArray(o)&&-1===o.indexOf("current"))&&z.view.wt.selections.current.add(w.selRange.highlight),z.view.wt.selections.area.clear(),(!1===o||Array.isArray(o)&&-1===o.indexOf("area"))&&I.isMultiple()&&(z.view.wt.selections.area.add(w.selRange.from),z.view.wt.selections.area.add(w.selRange.to)),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&(z.view.wt.selections.highlight.clear(),z.view.wt.selections.highlight.add(w.selRange.from),z.view.wt.selections.highlight.add(w.selRange.to));var u=(0,b.createObjectPropListener)("value");z.runHooks("afterSelection",w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col,u),z.runHooks("afterSelectionByProp",w.selRange.from.row,T.colToProp(w.selRange.from.col),w.selRange.to.row,T.colToProp(w.selRange.to.col),u),(0===w.selRange.from.row&&w.selRange.to.row===z.countRows()-1&&z.countRows()>1||0===w.selRange.from.col&&w.selRange.to.col===z.countCols()-1&&z.countCols()>1)&&(i=!0),(0>e.row||0>e.col)&&(r=!1),u.isTouched()&&(t=!u.value),!1!==t&&!i&&r&&z.view.scrollViewport(w.selRange.from&&!I.isMultiple()?w.selRange.from:e),I.selectedHeader.rows&&I.selectedHeader.cols?(0,c.addClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]):I.selectedHeader.rows?((0,c.removeClass)(z.rootElement,"ht__selection--columns"),(0,c.addClass)(z.rootElement,"ht__selection--rows")):I.selectedHeader.cols?((0,c.removeClass)(z.rootElement,"ht__selection--rows"),(0,c.addClass)(z.rootElement,"ht__selection--columns")):(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),I.refreshBorders(null,n)}},refreshBorders:function(e,t){t||B.destroyEditor(e),z.view.render(),I.isSelected()&&!t&&B.prepareEditor()},isMultiple:function(){var e=!(w.selRange.to.col===w.selRange.from.col&&w.selRange.to.row===w.selRange.from.row),t=z.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,n,o){var i,r,s,a,l=new L.CellCoords(e,t),u=0,c=0;z.runHooks("modifyTransformStart",l),i=z.countRows(),r=z.countCols(),a=z.getSettings().fixedRowsBottom,w.selRange.highlight.row+e>i-1?n&&w.settings.minSpareRows>0&&(!a||i-a-1>w.selRange.highlight.row)?(z.alter("insert_row",i),i=z.countRows()):w.settings.autoWrapCol&&(l.row=1-i,l.col=w.selRange.highlight.col+l.col==r-1?1-r:1):w.settings.autoWrapCol&&0>w.selRange.highlight.row+l.row&&w.selRange.highlight.col+l.col>=0&&(l.row=i-1,l.col=w.selRange.highlight.col+l.col==0?r-1:-1),w.selRange.highlight.col+l.col>r-1?n&&w.settings.minSpareCols>0?(z.alter("insert_col",r),r=z.countCols()):w.settings.autoWrapRow&&(l.row=w.selRange.highlight.row+l.row==i-1?1-i:1,l.col=1-r):w.settings.autoWrapRow&&0>w.selRange.highlight.col+l.col&&w.selRange.highlight.row+l.row>=0&&(l.row=w.selRange.highlight.row+l.row==0?i-1:-1,l.col=r-1),s=new L.CellCoords(w.selRange.highlight.row+l.row,w.selRange.highlight.col+l.col),0>s.row?(u=-1,s.row=0):s.row>0&&s.row>=i&&(u=1,s.row=i-1),0>s.col?(c=-1,s.col=0):s.col>0&&s.col>=r&&(c=1,s.col=r-1),z.runHooks("afterModifyTransformStart",s,u,c),I.setRangeStart(s,o)},transformEnd:function(e,t){var n,o,i,r=new L.CellCoords(e,t),s=0,a=0;z.runHooks("modifyTransformEnd",r),n=z.countRows(),o=z.countCols(),i=new L.CellCoords(w.selRange.to.row+r.row,w.selRange.to.col+r.col),0>i.row?(s=-1,i.row=0):i.row>0&&i.row>=n&&(s=1,i.row=n-1),0>i.col?(a=-1,i.col=0):i.col>0&&i.col>=o&&(a=1,i.col=o-1),z.runHooks("afterModifyTransformEnd",i,s,a),I.setRangeEnd(i,!0)},isSelected:function(){return null!==w.selRange},inInSelection:function(e){return!!I.isSelected()&&w.selRange.includes(e)},deselect:function(){I.isSelected()&&(z.selection.inProgress=!1,w.selRange=null,z.view.wt.selections.current.clear(),z.view.wt.selections.area.clear(),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&z.view.wt.selections.highlight.clear(),B.destroyEditor(),I.refreshBorders(),(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),z.runHooks("afterDeselect"))},selectAll:function(){w.settings.multiSelect&&(I.setSelectedHeaders(!0,!0,!0),I.setRangeStart(new L.CellCoords(0,0)),I.setRangeEnd(new L.CellCoords(z.countRows()-1,z.countCols()-1),!1))},empty:function(){if(I.isSelected()){var e,t,n=w.selRange.getTopLeftCorner(),o=w.selRange.getBottomRightCorner(),i=[];for(e=n.row;o.row>=e;e++)for(t=n.col;o.col>=t;t++)z.getCellMeta(e,t).readOnly||i.push([e,t,""]);z.setDataAtCell(i)}}},this.init=function(){H.setData(w.settings.data),z.runHooks("beforeInit"),(0,p.isMobileBrowser)()&&(0,c.addClass)(z.rootElement,"mobile"),this.updateSettings(w.settings,!0),this.view=new M.default(this),B=new y.default(z,w,I,T),this.forceFullRender=!0,z.runHooks("init"),this.view.render(),"object"===a(w.firstRun)&&(z.runHooks("afterChange",w.firstRun[0],w.firstRun[1]),w.firstRun=!1),z.runHooks("afterInit")},this.validateCell=function(e,t,n,o){function i(e){var o=t.visualCol,i=t.visualRow,r=z.getCell(i,o,!0);r&&"TH"!=r.nodeName&&z.view.wt.wtSettings.settings.cellRenderer(i,o,r),n(e)}var r=z.getCellValidator(t);(0,f.isRegExp)(r)&&(r=function(e){return function(t,n){n(e.test(t))}}(r)),(0,d.isFunction)(r)?(e=z.runHooks("beforeValidate",e,t.visualRow,t.prop,o),z._registerTimeout(setTimeout(function(){r.call(t,e,function(n){n=z.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,i(n),z.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):z._registerTimeout(setTimeout(function(){t.valid=!0,i(t.valid)},0))},this.setDataAtCell=function(e,t,n,i){var s,u,c,h=l(e,t,n),d=[];for(s=0,u=h.length;u>s;s++){if("object"!==a(h[s]))throw Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof h[s][1])throw Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");c=T.colToProp(h[s][1]),d.push([h[s][0],c,H.getAtCell(G.toPhysicalRow(h[s][0]),h[s][1]),h[s][2]])}i||"object"!==(void 0===e?"undefined":a(e))||(i=t),z.runHooks("afterSetDataAtCell",d,i),o(d,i,function(){r(d,i)})},this.setDataAtRowProp=function(e,t,n,i){var s,u,c=l(e,t,n),h=[];for(s=0,u=c.length;u>s;s++)h.push([c[s][0],c[s][1],H.getAtCell(G.toPhysicalRow(c[s][0]),c[s][1]),c[s][2]]);i||"object"!==(void 0===e?"undefined":a(e))||(i=t),z.runHooks("afterSetDataAtRowProp",h,i),o(h,i,function(){r(h,i)})},this.listen=function(){var e=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;document.activeElement&&document.activeElement!==document.body&&!e?document.activeElement.blur():e&&document.body.focus(),z&&!z.isListening()&&(V=z.guid,z.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,z.runHooks("afterUnlisten"))},this.isListening=function(){return V===z.guid},this.destroyEditor=function(e){I.refreshBorders(e)},this.populateFromArray=function(e,t,n,o,i,r,s,l,u){var c;if("object"!==(void 0===n?"undefined":a(n))||"object"!==a(n[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");return c="number"==typeof o?new L.CellCoords(o,i):null,N.populateFromArray(new L.CellCoords(e,t),n,c,r,s,l,u)},this.spliceCol=function(e,t,n){var o;return(o=T).spliceCol.apply(o,arguments)},this.spliceRow=function(e,t,n){var o;return(o=T).spliceRow.apply(o,arguments)},this.getSelected=function(){if(I.isSelected())return[w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col]},this.getSelectedRange=function(){if(I.isSelected())return w.selRange},this.render=function(){z.view&&(z.renderCall=!0,z.forceFullRender=!0,I.refreshBorders(null,!0))},this.loadData=function(e){if(z.dataType=Array.isArray(w.settings.dataSchema)?"array":(0,d.isFunction)(w.settings.dataSchema)?"function":"object",T&&T.destroy(),T=new v.default(z,w,U),"object"===(void 0===e?"undefined":a(e))&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw Error("loadData only accepts array of objects or array of arrays ("+(void 0===e?"undefined":a(e))+" given)");e=[];var t,n=0,o=0,i=T.getSchema();for(n=0,o=w.settings.startRows;o>n;n++)if("object"!==z.dataType&&"function"!==z.dataType||!w.settings.dataSchema)if("array"===z.dataType)t=(0,b.deepClone)(i[0]),e.push(t);else{t=[];for(var r=0,s=w.settings.startCols;s>r;r++)t.push(null);e.push(t)}else t=(0,b.deepClone)(i),e.push(t)}w.isPopulated=!1,U.prototype.data=e,Array.isArray(e[0])&&(z.dataType="array"),T.dataSource=e,H.data=e,H.dataType=z.dataType,H.colToProp=T.colToProp.bind(T),H.propToCol=T.propToCol.bind(T),function(){w.cellSettings.length=0}(),N.adjustRowsAndCols(),z.runHooks("afterLoadData",w.firstRun),w.firstRun?w.firstRun=[null,"loadData"]:(z.runHooks("afterChange",null,"loadData"),z.render()),w.isPopulated=!0},this.getData=function(e,t,n,o){return(0,f.isUndefined)(e)?T.getAll():T.getRange(new L.CellCoords(e,t),new L.CellCoords(n,o),T.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return T.getCopyableText(new L.CellCoords(e,t),new L.CellCoords(n,o))},this.getCopyableData=function(e,t){return T.getCopyable(e,T.colToProp(t))},this.getSchema=function(){return T.getSchema()},this.updateSettings=function(e,t){var n=!1,o=void 0,i=void 0,r=void 0;if((0,f.isDefined)(e.rows))throw Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,f.isDefined)(e.cols))throw Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(o in e)"data"!==o&&(j.default.getSingleton().getRegistered().indexOf(o)>-1?((0,d.isFunction)(e[o])||Array.isArray(e[o]))&&(e[o].initialHook=!0,z.addHook(o,e[o])):!t&&(0,b.hasOwnProperty)(e,o)&&(U.prototype[o]=e[o]));void 0===e.data&&void 0===w.settings.data?z.loadData(null):void 0!==e.data?z.loadData(e.data):void 0!==e.columns&&T.createMap(),r=z.countCols();var s=e.columns||U.prototype.columns;if(s&&(0,d.isFunction)(s)&&(r=z.countSourceCols(),n=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(w.cellSettings.length=0),r>0){var a=void 0,l=void 0;for(o=0,i=0;r>o;o++)n&&!s(o)||(w.columnSettings[i]=(0,h.columnFactory)(U,w.columnsSettingConflicts),a=w.columnSettings[i].prototype,s&&(l=n?s(o):s[i])&&((0,b.extend)(a,l),(0,b.extend)(a,g(l))),i++)}if((0,f.isDefined)(e.cell))for(var u in e.cell)if((0,b.hasOwnProperty)(e.cell,u)){var p=e.cell[u];z.setCellMetaObject(p.row,p.col,p)}z.runHooks("afterCellMetaReset"),(0,f.isDefined)(e.className)&&(U.prototype.className&&(0,c.removeClass)(z.rootElement,U.prototype.className),e.className&&(0,c.addClass)(z.rootElement,e.className));var v=z.rootElement.style.height;""!==v&&(v=parseInt(z.rootElement.style.height,10));var m=e.height;if((0,d.isFunction)(m)&&(m=m()),t){z.rootElement.getAttribute("style")&&z.rootElement.setAttribute("data-initialstyle",z.rootElement.getAttribute("style"))}if(null===m){var y=z.rootElement.getAttribute("data-initialstyle");y&&(y.indexOf("height")>-1||y.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",y):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==m&&(z.rootElement.style.height=m+"px",z.rootElement.style.overflow="hidden");if(void 0!==e.width){var C=e.width;(0,d.isFunction)(C)&&(C=C()),z.rootElement.style.width=C+"px"}t||(T.clearLengthCache(),z.view&&z.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.runHooks("afterUpdateSettings",e)),N.adjustRowsAndCols(),z.view&&!w.firstRun&&(z.forceFullRender=!0,I.refreshBorders(null,!0)),t||!z.view||""!==v&&""!==m&&void 0!==m||v===m||z.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=z.getSelected();if(U.prototype.getValue){if((0,d.isFunction)(U.prototype.getValue))return U.prototype.getValue.call(z);if(e)return z.getData()[e[0]][U.prototype.getValue]}else if(e)return z.getDataAtCell(e[0],e[1])},this.getSettings=function(){return w.settings},this.clear=function(){I.selectAll(),I.empty()},this.alter=function(e,t,n,o,i){N.alter(e,t,n,o,i)},this.getCell=function(e,t,n){return z.view.getCellAtCoords(new L.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return T.colToProp(e)},this.propToCol=function(e){return T.propToCol(e)},this.toVisualRow=function(e){return G.toVisualRow(e)},this.toVisualColumn=function(e){return G.toVisualColumn(e)},this.toPhysicalRow=function(e){return G.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return G.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return T.get(e,T.colToProp(t))},this.getDataAtRowProp=function(e,t){return T.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,i(T.getRange(new L.CellCoords(0,e),new L.CellCoords(w.settings.data.length-1,e),T.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=[];return t=T.getRange(new L.CellCoords(0,T.propToCol(e)),new L.CellCoords(w.settings.data.length-1,T.propToCol(e)),T.DESTINATION_RENDERER),n.concat.apply(n,i(t))},this.getSourceData=function(e,t,n,o){return void 0===e?H.getData():H.getByRange(new L.CellCoords(e,t),new L.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?H.getData(!0):H.getByRange(new L.CellCoords(e,t),new L.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return H.getAtColumn(e)},this.getSourceDataAtRow=function(e){return H.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return H.getAtCell(e,t)},this.getDataAtRow=function(e){return T.getRange(new L.CellCoords(e,0),new L.CellCoords(e,this.countCols()-1),T.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var i=this,r=null,s=null;void 0===e&&(e=0,n=this.countRows(),t=0,o=this.countCols()),void 0===n&&(n=e),void 0===o&&(o=t);var a="mixed";return(0,k.rangeEach)(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return(0,k.rangeEach)(Math.min(t,o),Math.max(t,o),function(t){var o=i.getCellMeta(e,t);return s=o.type,r?n=r===s:r=s,n}),a=n?s:"mixed",n}),a},this.removeCellMeta=function(e,t,n){var o=G.toPhysical(e,t),i=s(o,2),r=i[0],a=i[1],l=w.cellSettings[r][a][n];!1!==z.runHooks("beforeRemoveCellMeta",e,t,n,l)&&(delete w.cellSettings[r][a][n],z.runHooks("afterRemoveCellMeta",e,t,n,l)),l=null},this.spliceCellsMeta=function(e,t){for(var n,o=arguments.length,i=Array(o>2?o-2:0),r=2;o>r;r++)i[r-2]=arguments[r];(n=w.cellSettings).splice.apply(n,[e,t].concat(i))},this.setCellMetaObject=function(e,t,n){if("object"===(void 0===n?"undefined":a(n)))for(var o in n)if((0,b.hasOwnProperty)(n,o)){var i=n[o];this.setCellMeta(e,t,o,i)}},this.setCellMeta=function(e,t,n,o){var i=G.toPhysical(e,t),r=s(i,2),a=r[0],l=r[1];w.columnSettings[l]||(w.columnSettings[l]=(0,h.columnFactory)(U,w.columnsSettingConflicts)),w.cellSettings[a]||(w.cellSettings[a]=[]),w.cellSettings[a][l]||(w.cellSettings[a][l]=new w.columnSettings[l]),w.cellSettings[a][l][n]=o,z.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return(0,S.arrayFlatten)(w.cellSettings)},this.getCellMeta=function(e,t){var n=T.colToProp(t),o=void 0,i=G.toPhysical(e,t),r=s(i,2),a=r[0],l=r[1];if(w.columnSettings[l]||(w.columnSettings[l]=(0,h.columnFactory)(U,w.columnsSettingConflicts)),w.cellSettings[a]||(w.cellSettings[a]=[]),w.cellSettings[a][l]||(w.cellSettings[a][l]=new w.columnSettings[l]),o=w.cellSettings[a][l],o.row=a,o.col=l,o.visualRow=e,o.visualCol=t,o.prop=n,o.instance=z,z.runHooks("beforeGetCellMeta",e,t,o),(0,b.extend)(o,g(o)),o.cells){var u=o.cells.call(o,a,l,n);u&&((0,b.extend)(o,u),(0,b.extend)(o,g(u)))}return z.runHooks("afterGetCellMeta",e,t,o),o},this.getCellMetaAtRow=function(e){return w.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===z.dataType||z.getSettings().columns)};var X=(0,D.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,_.getRenderer)(X.call(this,e,t))},this.getCellEditor=(0,D.cellMethodLookupFactory)("editor");var q=(0,D.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=q.call(this,e,t);return"string"==typeof n&&(n=(0,R.getValidator)(n)),n},this.validateCells=function(e){var t=new n;e&&(t.onQueueEmpty=e);for(var o=z.countRows()-1;o>=0;){for(var i=z.countCols()-1;i>=0;)t.addValidatorToQueue(),z.validateCell(z.getDataAtCell(o,i),z.getCellMeta(o,i),function(e){if("boolean"!=typeof e)throw Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),i--;o--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=w.settings.rowHeaders;return void 0!==e&&(e=z.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,k.rangeEach)(z.countRows()-1,function(e){t.push(z.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:(0,d.isFunction)(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!w.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==w.settings.colHeaders&&null!==w.settings.colHeaders)return!!w.settings.colHeaders;for(var e=0,t=z.countCols();t>e;e++)if(z.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=w.settings.columns&&(0,d.isFunction)(w.settings.columns),n=w.settings.colHeaders;if(void 0===(e=z.runHooks("modifyColHeader",e))){for(var o=[],i=t?z.countSourceCols():z.countCols(),r=0;i>r;r++)o.push(z.getColHeader(r));n=o}else{var s=e;e=z.runHooks("modifyCol",e);var a=function(e){for(var t=[],n=z.countSourceCols(),o=0;n>o;o++)(0,d.isFunction)(z.getSettings().columns)&&z.getSettings().columns(o)&&t.push(o);return t[e]}(e);w.settings.columns&&(0,d.isFunction)(w.settings.columns)&&w.settings.columns(a)&&w.settings.columns(a).title?n=w.settings.columns(a).title:w.settings.columns&&w.settings.columns[e]&&w.settings.columns[e].title?n=w.settings.columns[e].title:Array.isArray(w.settings.colHeaders)&&void 0!==w.settings.colHeaders[e]?n=w.settings.colHeaders[e]:(0,d.isFunction)(w.settings.colHeaders)?n=w.settings.colHeaders(e):w.settings.colHeaders&&"string"!=typeof w.settings.colHeaders&&"number"!=typeof w.settings.colHeaders&&(n=(0,D.spreadsheetColumnLabel)(s))}return n},this._getColWidthFromSettings=function(e){var t=z.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==w.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(void 0===n?"undefined":a(n)){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=z._getColWidthFromSettings(e);return t=z.runHooks("modifyColWidth",t,e),void 0===t&&(t=L.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=w.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":a(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=z._getRowHeightFromSettings(e);return t=z.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return z.runHooks("modifySourceLength")||(z.getSourceData()?z.getSourceData().length:0)},this.countSourceCols=function(){var e=z.getSourceData()&&z.getSourceData()[0]?z.getSourceData()[0]:[];return(0,b.isObject)(e)?(0,b.deepObjectSize)(e):e.length||0},this.countRows=function(){return T.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,n=0;if("array"===z.dataType&&(t=w.settings.data&&w.settings.data[0]&&w.settings.data[0].length),t&&(n=w.settings.data[0].length),w.settings.columns){if((0,d.isFunction)(w.settings.columns))if("array"===z.dataType){for(var o=0,i=0;n>i;i++)w.settings.columns(i)&&o++;n=o}else"object"!==z.dataType&&"function"!==z.dataType||(n=T.colToPropCache.length);else n=w.settings.columns.length}else"object"!==z.dataType&&"function"!==z.dataType||(n=T.colToPropCache.length);return Math.min(e,n)},this.rowOffset=function(){return z.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return z.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return z.view.wt.drawn?z.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return z.view.wt.drawn?z.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return z.view.wt.drawn?z.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return z.view.wt.drawn?z.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,n=z.countRows()-1,o=0;n>=0;){if(t=z.runHooks("modifyRow",n),z.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(1>z.countRows())return 0;for(var t=z.countCols()-1,n=0;t>=0;){if(z.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return w.settings.isEmptyRow.call(z,e)},this.isEmptyCol=function(e){return w.settings.isEmptyCol.call(z,e)},this.selectCell=function(e,t,n,o,i,r){var s;if(r=(0,f.isUndefined)(r)||!0===r,"number"!=typeof e||0>e||e>=z.countRows())return!1;if("number"!=typeof t||0>t||t>=z.countCols())return!1;if((0,f.isDefined)(n)){if("number"!=typeof n||0>n||n>=z.countRows())return!1;if("number"!=typeof o||0>o||o>=z.countCols())return!1}return s=new L.CellCoords(e,t),w.selRange=new L.CellRange(s,s,s),r&&z.listen(),(0,f.isUndefined)(n)?I.setRangeEnd(w.selRange.from,i):I.setRangeEnd(new L.CellCoords(n,o),i),z.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,i){var r;return arguments[1]=T.propToCol(arguments[1]),(0,f.isDefined)(arguments[3])&&(arguments[3]=T.propToCol(arguments[3])),(r=z).selectCell.apply(r,arguments)},this.deselectCell=function(){I.deselect()},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(0>e||e>=z.countRows()))return!1;if(void 0!==t&&(0>t||t>=z.countCols()))return!1;var i=!1;return void 0!==e&&void 0!==t&&(z.view.wt.wtOverlays.topOverlay.scrollTo(e,n),z.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),i=!0),"number"==typeof e&&"number"!=typeof t&&(z.view.wt.wtOverlays.topOverlay.scrollTo(e,n),i=!0),"number"==typeof t&&"number"!=typeof e&&(z.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),i=!0),i},this.destroy=function(){z._clearTimeouts(),z.view&&z.view.destroy(),H&&H.destroy(),H=null;(0,c.empty)(z.rootElement),K.destroy(),z.runHooks("afterDestroy"),j.default.getSingleton().destroy(z);for(var e in z)(0,b.hasOwnProperty)(z,e)&&((0,d.isFunction)(z[e])?z[e]=m:"guid"!==e&&(z[e]=null));T&&T.destroy(),T=null,w=null,N=null,I=null,B=null,z=null,U=null},this.getActiveEditor=function(){return B.getActiveEditor()},this.getPlugin=function(e){return(0,O.getPlugin)(this,e)},this.getInstance=function(){return z},this.addHook=function(e,t){j.default.getSingleton().add(e,t,z)},this.hasHook=function(e){return j.default.getSingleton().has(e,z)},this.addHookOnce=function(e,t){j.default.getSingleton().once(e,t,z)},this.removeHook=function(e,t){j.default.getSingleton().remove(e,t,z)},this.runHooks=function(e,t,n,o,i,r,s){return j.default.getSingleton().run(z,e,t,n,o,i,r,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;t>e;e++)clearTimeout(this.timeouts[e])},j.default.getSingleton().run(z,"construct")}t.__esModule=!0;var s=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="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};t.default=r;var l=n(64),u=o(l),c=n(0),h=n(83),d=n(36),f=n(22),p=n(26),g=n(358),v=o(g),m=n(361),y=o(m),w=n(4),C=o(w),b=n(1),S=n(2),O=n(5),_=n(8),R=n(27),E=n(32),k=n(6),T=n(362),M=o(T),H=n(363),P=o(H),D=n(84),A=n(287),x=n(288),L=n(12),N=n(7),j=o(N),I=n(289),W=o(I),F=n(81),V=null},function(e,t,n){"use strict";function o(e,t){function n(){}(0,i.inherit)(n,e);for(var o=0,r=t.length;r>o;o++)n.prototype[t[o]]=void 0;return n}t.__esModule=!0,t.columnFactory=o;var i=n(1)},function(e,t,n){"use strict";function o(e){for(var t=e+1,n="",o=void 0;t>0;)o=(t-1)%f,n=String.fromCharCode(65+o)+n,t=parseInt((t-o)/f,10);return n}function i(e){var t=0;if(e)for(var n=0,o=e.length-1;e.length>n;n+=1,o-=1)t+=Math.pow(f,o)*(d.indexOf(e[n])+1);return--t}function r(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;n>e;e++){var s=[];for(t=0;i>t;t++)s.push(o(t)+(e+1));r.push(s)}return r}function s(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;n>e;e++){var s={};for(t=0;i>t;t++)s["prop"+t]=o(t)+(e+1);r.push(s)}return r}function a(e,t){for(var n=[],o=void 0,i=0;e>i;i++){o=[];for(var r=0;t>r;r++)o.push("");n.push(o)}return n}function l(e){var t,n,o,i,r=[],s=0;for(t=0,n=e.length;n>t;t++)for(o=0,i=e[t].length;i>o;o++)o==s&&(r.push([]),s++),r[o].push(e[t][o]);return r}function u(e,t){return t=void 0===t||t,function(n,o){return function n(o){if(o){if((0,h.hasOwnProperty)(o,e)&&void 0!==o[e])return o[e];if((0,h.hasOwnProperty)(o,"type")&&o.type){var i;if("string"!=typeof o.type)throw Error("Cell type must be a string ");if(i=(0,c.getCellType)(o.type),(0,h.hasOwnProperty)(i,e))return i[e];if(t)return}return n(Object.getPrototypeOf(o))}}("number"==typeof n?this.getCellMeta(n,o):n)}}t.__esModule=!0,t.spreadsheetColumnLabel=o,t.spreadsheetColumnIndex=i,t.createSpreadsheetData=r,t.createSpreadsheetObjectData=s,t.createEmptySpreadsheetData=a,t.translateRowsToColumns=l,t.cellMethodLookupFactory=u;var c=n(81),h=n(1),d="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=d.length},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(2);t.default=function(){function e(t){o(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return i(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,function(t){e(t.row,(0,r.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,function(t){e(t.col,(0,r.outerWidth)(t.table))})}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=document,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){(0,s.arrayEach)(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n}},{key:"createRow",value:function(e){var t=this,n=document,o=n.createDocumentFragment(),i=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(function(i){(0,s.arrayEach)(i.strings,function(i){var r=i.col,s=t.hot.getCellMeta(e,r);s.col=r,s.row=e;var a=t.hot.getCellRenderer(s),l=n.createElement("td");a(t.hot,l,e,r,t.hot.colToProp(r),i.value,s),o.appendChild(l)})}),o}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){(0,s.arrayEach)(o.strings,function(o){var i=o.col,r=t.createElement("th");e.hot.view.appendColHeader(i,r),n.appendChild(r)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(i){(0,s.arrayEach)(i.strings,function(i){var r=i.row,s=t.hot.getCellMeta(r,e);s.col=e,s.row=r;var a=t.hot.getCellRenderer(s),l=n.createElement("td"),u=n.createElement("tr");a(t.hot,l,r,e,t.hot.colToProp(e),i.value,s),u.appendChild(l),o.appendChild(u)})}),o}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=document,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),i=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&o.appendChild(a),this.isHorizontal()&&(l.appendChild(u),i.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(i),this.isVertical()&&s.appendChild(l),o.appendChild(s),(0,r.addClass)(o,e),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:s,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,r.addClass)(o,e),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}()},function(e,t,n){"use strict";function o(){return{name:i}}t.__esModule=!0,t.default=o;var i=t.KEY="---------"},function(e,t,n){"use strict";t.__esModule=!0;var o=n(2),i=n(1),r={_localHooks:Object.create(null),addLocalHook:function(e,t){this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t)},runLocalHooks:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;n>r;r++)i[r-1]=arguments[r];this._localHooks[e]&&(0,o.arrayEach)(this._localHooks[e],function(e){return e.apply(t,i)})},clearLocalHooks:function(){this._localHooks={}}};(0,i.defineGetter)(r,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1}),t.default=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){var e={};return(0,C.objectEach)(x,function(t,n){e[n]=t()}),e}function s(e,t){-1===A.indexOf(e)&&(x[e]=t)}t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var a,l=n(380);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(381);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(382);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var h=n(383);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return h.KEY}});var d=n(384);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return d.KEY}});var f=n(385);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return f.KEY}});var p=n(386);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return p.KEY}});var g=n(387);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var v=n(388);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return v.KEY}});var m=n(389);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return m.KEY}});var y=n(86);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var w=n(390);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return w.KEY}}),t.predefinedItems=r,t.addItem=s;var C=n(1),b=o(l),S=o(u),O=o(c),_=o(h),R=o(d),E=o(f),k=o(p),T=o(g),M=o(v),H=o(m),P=o(y),D=o(w),A=t.ITEMS=[v.KEY,m.KEY,c.KEY,h.KEY,u.KEY,g.KEY,p.KEY,w.KEY,f.KEY,d.KEY,l.KEY,y.KEY],x=(a={},i(a,y.KEY,P.default),i(a,v.KEY,M.default),i(a,m.KEY,H.default),i(a,c.KEY,O.default),i(a,h.KEY,_.default),i(a,u.KEY,S.default),i(a,g.KEY,T.default),i(a,p.KEY,k.default),i(a,w.KEY,D.default),i(a,f.KEY,E.default),i(a,d.KEY,R.default),i(a,l.KEY,b.default),a)},function(e,t,n){"use strict";var o=n(90),i=n(40);e.exports=n(59)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(i(this,"Map"),0===e?0:e,t)}},o,!0)},function(e,t,n){"use strict";var o=n(17).f,i=n(67),r=n(54),s=n(30),a=n(56),l=n(57),u=n(99),c=n(100),h=n(101),d=n(20),f=n(48).fastKey,p=n(40),g=d?"_s":"size",v=function(e,t){var n,o=f(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,o){a(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=o&&l(o,n,e[u],e)});return r(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete n[o.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),o=v(n,e);if(o){var i=o.n,r=o.p;delete n._i[o.i],o.r=!0,r&&(r.n=i),i&&(i.p=r),n._f==o&&(n._f=i),n._l==o&&(n._l=r),n[g]--}return!!o},forEach:function(e){p(this,t);for(var n,o=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(o(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),d&&o(c.prototype,"size",{get:function(){return p(this,t)[g]}}),c},def:function(e,t,n){var o,i,r=v(e,t);return r?r.v=n:(e._l=r={i:i=f(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=r),o&&(o.n=r),e[g]++,"F"!==i&&(e._i[i]=r)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?c(0,n.k):"values"==t?c(0,n.v):c(0,[n.k,n.v]):(e._t=void 0,c(1))},n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){e.exports=!n(20)&&!n(23)(function(){return 7!=Object.defineProperty(n(65)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(24),i=n(25),r=n(93)(!1),s=n(69)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,u=[];for(n in a)n!=s&&o(a,n)&&u.push(n);for(;t.length>l;)o(a,n=t[l++])&&(~r(u,n)||u.push(n));return u}},function(e,t,n){var o=n(25),i=n(21),r=n(53);e.exports=function(e){return function(t,n,s){var a,l=o(t),u=i(l.length),c=r(s,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(11).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(16);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(e,t,n){var o=n(46),i=n(9)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},function(e,t,n){var o=n(98),i=n(9)("iterator"),r=n(46);e.exports=n(45).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){var o=n(38),i=n(9)("toStringTag"),r="Arguments"==o(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var o=n(58),i=n(3),r=n(28),s=n(29),a=n(24),l=n(46),u=n(297),c=n(47),h=n(298),d=n(9)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,g,v,m,y){u(n,t,g);var w,C,b,S=function(e){if(!f&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",_="values"==v,R=!1,E=e.prototype,k=E[d]||E["@@iterator"]||v&&E[v],T=k||S(v),M=v?_?S("entries"):T:void 0,H="Array"==t?E.entries||k:k;if(H&&(b=h(H.call(new e)))!==Object.prototype&&b.next&&(c(b,O,!0),o||a(b,d)||s(b,d,p)),_&&k&&"values"!==k.name&&(R=!0,T=function(){return k.call(this)}),o&&!y||!f&&!R&&E[d]||s(E,d,T),l[t]=T,l[O]=p,v)if(w={values:_?T:S("values"),keys:m?T:S("keys"),entries:M},y)for(C in w)C in E||r(E,C,w[C]);else i(i.P+i.F*(f||R),t,w);return w}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(11),i=n(17),r=n(20),s=n(9)("species");e.exports=function(e){var t=o[e];r&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(14),i=n(16),r=function(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(30)(Function.call,n(73).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){"use strict";var o=n(90),i=n(40);e.exports=n(59)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(i(this,"Set"),e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o,i=n(60)(0),r=n(28),s=n(48),a=n(106),l=n(107),u=n(14),c=n(23),h=n(40),d=s.getWeak,f=Object.isExtensible,p=l.ufstore,g={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(e){if(u(e)){var t=d(e);return!0===t?p(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(h(this,"WeakMap"),e,t)}},y=e.exports=n(59)("WeakMap",v,m,l,!0,!0);c(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(o=l.getConstructor(v,"WeakMap"),a(o.prototype,m),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=y.prototype,n=t[e];r(t,e,function(t,i){if(u(t)&&!f(t)){this._f||(this._f=new o);var r=this._f[e](t,i);return"set"==e?this:r}return n.call(this,t,i)})}))},function(e,t,n){var o=n(38);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(37),i=n(61),r=n(49),s=n(39),a=n(68),l=Object.assign;e.exports=!l||n(23)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=s(e),l=arguments.length,u=1,c=i.f,h=r.f;l>u;)for(var d,f=a(arguments[u++]),p=c?o(f).concat(c(f)):o(f),g=p.length,v=0;g>v;)h.call(f,d=p[v++])&&(n[d]=f[d]);return n}:l},function(e,t,n){"use strict";var o=n(54),i=n(48).getWeak,r=n(16),s=n(14),a=n(56),l=n(57),u=n(60),c=n(24),h=n(40),d=u(5),f=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var u=e(function(e,o){a(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=o&&l(o,n,e[r],e)});return o(u.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(h(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(h(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var o=i(r(t),!0);return!0===o?g(e).set(t,n):o[e._i]=n,e},ufstore:g}},function(e,t,n){"use strict";var o=n(107),i=n(40);n(59)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(i(this,"WeakSet"),e,!0)}},o,!1,!0)},function(e,t,n){"use strict";var o,i,r,s,a=n(58),l=n(11),u=n(30),c=n(98),h=n(3),d=n(14),f=n(55),p=n(56),g=n(57),v=n(302),m=n(74).set,y=n(304)(),w=n(110),C=n(305),b=n(306),S=l.TypeError,O=l.process,_=l.Promise,R="process"==c(O),E=function(){},k=i=w.f,T=!!function(){try{var e=_.resolve(1),t=(e.constructor={})[n(9)("species")]=function(e){e(E,E)};return(R||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t}catch(e){}}(),M=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},H=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var o=e._v,i=1==e._s,r=0;n.length>r;)!function(t){var n,r,s=i?t.ok:t.fail,a=t.resolve,l=t.reject,u=t.domain;try{s?(i||(2==e._h&&A(e),e._h=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&u.exit()),n===t.promise?l(S("Promise-chain cycle")):(r=M(n))?r.call(n,a,l):a(n)):l(o)}catch(e){l(e)}}(n[r++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){m.call(l,function(){var t,n,o,i=e._v,r=D(e);if(r&&(t=C(function(){R?O.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=R||D(e)?2:1),e._a=void 0,r&&t.e)throw t.v})},D=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,o=0;n.length>o;)if(t=n[o++],t.fail||!D(t.promise))return!1;return!0},A=function(e){m.call(l,function(){var t;R?O.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},x=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),H(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=M(e))?y(function(){var o={_w:n,_d:!1};try{t.call(e,u(L,o,1),u(x,o,1))}catch(e){x.call(o,e)}}):(n._v=e,n._s=1,H(n,!1))}catch(e){x.call({_w:n,_d:!1},e)}}};T||(_=function(e){p(this,_,"Promise","_h"),f(e),o.call(this);try{e(u(L,this,1),u(x,this,1))}catch(e){x.call(this,e)}},o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n(54)(_.prototype,{then:function(e,t){var n=k(v(this,_));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&H(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new o;this.promise=e,this.resolve=u(L,e,1),this.reject=u(x,e,1)},w.f=k=function(e){return e===_||e===s?new r(e):i(e)}),h(h.G+h.W+h.F*!T,{Promise:_}),n(47)(_,"Promise"),n(101)("Promise"),s=n(45).Promise,h(h.S+h.F*!T,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(a||!T),"Promise",{resolve:function(e){return b(a&&this===s?_:this,e)}}),h(h.S+h.F*!(T&&n(72)(function(e){_.all(e).catch(E)})),"Promise",{all:function(e){var t=this,n=k(t),o=n.resolve,i=n.reject,r=C(function(){var n=[],r=0,s=1;g(e,!1,function(e){var a=r++,l=!1;n.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,n[a]=e,--s||o(n))},i)}),--s||o(n)});return r.e&&i(r.v),n.promise},race:function(e){var t=this,n=k(t),o=n.reject,i=C(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return i.e&&o(i.v),n.promise}})},function(e,t,n){"use strict";function o(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=i(t),this.reject=i(n)}var i=n(55);e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var o=n(11),i=n(24),r=n(20),s=n(3),a=n(28),l=n(48).KEY,u=n(23),c=n(70),h=n(47),d=n(43),f=n(9),p=n(112),g=n(307),v=n(308),m=n(105),y=n(16),w=n(25),C=n(66),b=n(44),S=n(67),O=n(309),_=n(73),R=n(17),E=n(37),k=_.f,T=R.f,M=O.f,H=o.Symbol,P=o.JSON,D=P&&P.stringify,A=f("_hidden"),x=f("toPrimitive"),L={}.propertyIsEnumerable,N=c("symbol-registry"),j=c("symbols"),I=c("op-symbols"),W=Object.prototype,F="function"==typeof H,V=o.QObject,B=!V||!V.prototype||!V.prototype.findChild,Y=r&&u(function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(W,t);o&&delete W[t],T(e,t,n),o&&e!==W&&T(W,t,o)}:T,z=function(e){var t=j[e]=S(H.prototype);return t._k=e,t},U=F&&"symbol"==typeof H.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof H},K=function(e,t,n){return e===W&&K(I,t,n),y(e),t=C(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,A)&&e[A][t]&&(e[A][t]=!1),n=S(n,{enumerable:b(0,!1)})):(i(e,A)||T(e,A,b(1,{})),e[A][t]=!0),Y(e,t,n)):T(e,t,n)},G=function(e,t){y(e);for(var n,o=v(t=w(t)),i=0,r=o.length;r>i;)K(e,n=o[i++],t[n]);return e},X=function(e,t){return void 0===t?S(e):G(S(e),t)},q=function(e){var t=L.call(this,e=C(e,!0));return!(this===W&&i(j,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,A)&&this[A][e])||t)},$=function(e,t){if(e=w(e),t=C(t,!0),e!==W||!i(j,t)||i(I,t)){var n=k(e,t);return!n||!i(j,t)||i(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(w(e)),o=[],r=0;n.length>r;)i(j,t=n[r++])||t==A||t==l||o.push(t);return o},Z=function(e){for(var t,n=e===W,o=M(n?I:w(e)),r=[],s=0;o.length>s;)!i(j,t=o[s++])||n&&!i(W,t)||r.push(j[t]);return r};F||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(I,n),i(this,A)&&i(this[A],e)&&(this[A][e]=!1),Y(this,e,b(1,n))};return r&&B&&Y(W,e,{configurable:!0,set:t}),z(e)},a(H.prototype,"toString",function(){return this._k}),_.f=$,R.f=K,n(75).f=O.f=J,n(49).f=q,n(61).f=Z,r&&!n(58)&&a(W,"propertyIsEnumerable",q,!0),p.f=function(e){return z(f(e))}),s(s.G+s.W+s.F*!F,{Symbol:H});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var te=E(f.store),ne=0;te.length>ne;)g(te[ne++]);s(s.S+s.F*!F,"Symbol",{for:function(e){return i(N,e+="")?N[e]:N[e]=H(e)},keyFor:function(e){if(!U(e))throw TypeError(e+" is not a symbol!");for(var t in N)if(N[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!F,"Object",{create:X,defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),P&&s(s.S+s.F*(!F||u(function(){var e=H();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!U(e)){for(var t,n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);return t=o[1],"function"==typeof t&&(n=t),!n&&m(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!U(t))return t}),o[1]=t,D.apply(P,o)}}}),H.prototype[x]||n(29)(H.prototype,x,H.prototype.valueOf),h(H,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(e,t,n){t.f=n(9)},function(e,t,n){var o=n(3);o(o.S+o.F,"Object",{assign:n(106)})},function(e,t,n){var o=n(3);o(o.S,"Object",{is:n(310)})},function(e,t,n){var o=n(3);o(o.S,"Object",{setPrototypeOf:n(102).set})},function(e,t,n){var o=n(17).f,i=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in i||n(20)&&o(i,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var o=n(3),i=n(25),r=n(21);o(o.S,"String",{raw:function(e){for(var t=i(e.raw),n=r(t.length),o=arguments.length,s=[],a=0;n>a;)s.push(t[a++]+""),o>a&&s.push(arguments[a]+"");return s.join("")}})},function(e,t,n){var o=n(3),i=n(53),r=String.fromCharCode,s=String.fromCodePoint;o(o.S+o.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,s=0;o>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(3),i=n(311)(!1);o(o.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){var o=n(3);o(o.P,"String",{repeat:n(121)})},function(e,t,n){"use strict";var o=n(52),i=n(33);e.exports=function(e){var t=i(this)+"",n="",r=o(e);if(0>r||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t,n){"use strict";var o=n(3),i=n(21),r=n(76),s="".startsWith;o(o.P+o.F*n(77)("startsWith"),"String",{startsWith:function(e){var t=r(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=e+"";return s?s.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){var o=n(14),i=n(38),r=n(9)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";var o=n(3),i=n(21),r=n(76),s="".endsWith;o(o.P+o.F*n(77)("endsWith"),"String",{endsWith:function(e){var t=r(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,o=i(t.length),a=void 0===n?o:Math.min(i(n),o),l=e+"";return s?s.call(t,l,a):t.slice(a-l.length,a)===l}})},function(e,t,n){"use strict";var o=n(3),i=n(76);o(o.P+o.F*n(77)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(20)&&"g"!=/./g.flags&&n(17).f(RegExp.prototype,"flags",{configurable:!0,get:n(312)})},function(e,t,n){n(62)("match",1,function(e,t,n){return[function(n){"use strict";var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){n(62)("replace",2,function(e,t,n){return[function(o,i){"use strict";var r=e(this),s=void 0==o?void 0:o[t];return void 0!==s?s.call(o,r,i):n.call(r+"",o,i)},n]})},function(e,t,n){n(62)("split",2,function(e,t,o){"use strict";var i=n(123),r=o,s=[].push,a="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[a]||2!="ab".split(/(?:ab)*/)[a]||4!=".".split(/(.?)(.?)/)[a]||".".split(/()()/)[a]>1||"".split(/.?/)[a]){var l=void 0===/()??/.exec("")[1];o=function(e,t){var n=this+"";if(void 0===e&&0===t)return[];if(!i(e))return r.call(n,e,t);var o,u,c,h,d,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=void 0===t?4294967295:t>>>0,m=RegExp(e.source,p+"g");for(l||(o=RegExp("^"+m.source+"$(?!\\s)",p));(u=m.exec(n))&&((c=u.index+u[0][a])<=g||(f.push(n.slice(g,u.index)),!l&&u[a]>1&&u[0].replace(o,function(){for(d=1;arguments[a]-2>d;d++)void 0===arguments[d]&&(u[d]=void 0)}),u[a]>1&&n[a]>u.index&&s.apply(f,u.slice(1)),h=u[0][a],g=c,v>f[a]));)m.lastIndex===u.index&&m.lastIndex++;return g===n[a]?!h&&m.test("")||f.push(""):f.push(n.slice(g)),f[a]>v?f.slice(0,v):f}}else"0".split(void 0,0)[a]&&(o=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(n,i){var r=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,r,i):o.call(r+"",n,i)},o]})},function(e,t,n){n(62)("search",1,function(e,t,n){return[function(n){"use strict";var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){"use strict";var o=n(30),i=n(3),r=n(39),s=n(95),a=n(96),l=n(21),u=n(78),c=n(97);i(i.S+i.F*!n(72)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,d=r(e),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=c(d);if(v&&(g=o(g,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=l(d.length),n=new f(t);t>m;m++)u(n,m,v?g(d[m],m):d[m]);else for(h=y.call(d),n=new f;!(i=h.next()).done;m++)u(n,m,v?s(h,g,[i.value,m],!0):i.value);return n.length=m,n}})},function(e,t,n){"use strict";var o=n(3),i=n(78);o(o.S+o.F*n(23)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var o=n(3);o(o.P,"Array",{copyWithin:n(313)}),n(41)("copyWithin")},function(e,t,n){"use strict";var o=n(3),i=n(60)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),o(o.P+o.F*r,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(41)("find")},function(e,t,n){"use strict";var o=n(3),i=n(60)(6),r="findIndex",s=!0;r in[]&&Array(1)[r](function(){s=!1}),o(o.P+o.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(41)(r)},function(e,t,n){var o=n(3);o(o.P,"Array",{fill:n(314)}),n(41)("fill")},function(e,t,n){var o=n(3),i=n(11).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{isInteger:n(139)})},function(e,t,n){var o=n(14),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(3),i=n(139),r=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return i(e)&&9007199254740991>=r(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var o=n(3);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var o=n(3);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var o=n(3);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";var o=n(3),i=n(93)(!0);o(o.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(41)("includes")},function(e,t,n){var o=n(3),i=n(147)(!1);o(o.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var o=n(37),i=n(25),r=n(49).f;e.exports=function(e){return function(t){for(var n,s=i(t),a=o(s),l=a.length,u=0,c=[];l>u;)r.call(s,n=a[u++])&&c.push(e?[n,s[n]]:s[n]);return c}}},function(e,t,n){var o=n(3),i=n(147)(!0);o(o.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var o=n(3),i=n(315),r=n(25),s=n(73),a=n(78);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=r(e),l=s.f,u=i(o),c={},h=0;u.length>h;)void 0!==(n=l(o,t=u[h++]))&&a(c,t,n);return c}})},function(e,t,n){"use strict";var o=n(3),i=n(151);o(o.P,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var o=n(21),i=n(121),r=n(33);e.exports=function(e,t,n,s){var a=r(e)+"",l=a.length,u=void 0===n?" ":n+"",c=o(t);if(l>=c||""==u)return a;var h=c-l,d=i.call(u,Math.ceil(h/u.length));return d.length>h&&(d=d.slice(0,h)),s?d+a:a+d}},function(e,t,n){"use strict";var o=n(3),i=n(151);o(o.P,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){var o=n(3),i=n(74);o(o.G+o.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var o=n(79),i=n(37),r=n(28),s=n(11),a=n(29),l=n(46),u=n(9),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),g=0;p.length>g;g++){var v,m=p[g],y=f[m],w=s[m],C=w&&w.prototype;if(C&&(C[c]||a(C,c,d),C[h]||a(C,h,m),l[m]=d,y))for(v in o)C[v]||r(C,v,o[v],!0)}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=new WeakMap;t.default=function(){function e(t,n,i,s,a,l,u){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:function(e){return e};o(this,e),r.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:i,columnWidthFn:s,overrideFn:a,onlyFullyVisible:l,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=u,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return i(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),i(e,[{key:"calculate",value:function(){for(var e=0,t=!0,n=[],o=void 0,i=r.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.scrollOffset,u=i.totalColumns,c=i.viewportWidth,h=0;u>h;h++){o=this._getColumnWidth(h),e>l||s||(this.startColumn=h);var d=l>0?c+1:c;if(l>e||e+o>l+d||(null==this.startColumn&&(this.startColumn=h),this.endColumn=h),n.push(e),e+=o,s||(this.endColumn=h),e>=l+c){t=!1;break}}if(this.endColumn===u-1&&t)for(this.startColumn=this.endColumn;this.startColumn>0;){var f=n[this.endColumn]+o-n[this.startColumn-1];if(f>c&&s||this.startColumn--,f>c)break}null!==this.startColumn&&a&&a(this),this.startPosition=n[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){this.totalTargetWidth=e;for(var t=r.get(this),n=t.totalColumns,o=0,i=0;n>i;i++){var s=this._getColumnWidth(i),a=t.stretchingColumnWidthFn(void 0,i);"number"==typeof a?e-=a:o+=s}var l=e-o;if("all"===this.stretch&&l>0)this.stretchAllRatio=e/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var u=this._getColumnWidth(n-1),c=l+u;this.stretchLastWidth=0>c?u:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,o=r.get(this),i=o.totalColumns;if(!this.stretchAllColumnsWidth[e]){var s=Math.round(t*this.stretchAllRatio),a=o.stretchingColumnWidthFn(s,e);this.stretchAllColumnsWidth[e]=void 0===a?s:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;this.stretchAllColumnsWidth.length>l;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===r.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=r.get(this).columnWidthFn(t);return void 0===n&&(n=e.DEFAULT_WIDTH),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=new WeakMap;t.default=function(){function e(t,n,i,s,a,l,u){o(this,e),r.set(this,{viewportHeight:t,scrollOffset:n,totalRows:i,rowHeightFn:s,overrideFn:a,onlyFullyVisible:l,horizontalScrollbarHeight:u}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return i(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),i(e,[{key:"calculate",value:function(){for(var t=0,n=!0,o=[],i=r.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.rowHeightFn,u=i.scrollOffset,c=i.totalRows,h=i.viewportHeight,d=i.horizontalScrollbarHeight||0,f=void 0,p=0;c>p;p++)if(f=l(p),void 0===f&&(f=e.DEFAULT_HEIGHT),t>u||s||(this.startRow=p),u>t||t+f>u+h-d||(null===this.startRow&&(this.startRow=p),this.endRow=p),o.push(t),t+=f,s||(this.endRow=p),t>=u+h-d){n=!1;break}if(this.endRow===c-1&&n)for(this.startRow=this.endRow;this.startRow>0;){var g=o[this.endRow]+f-o[this.startRow-1];if(g>h-d&&s||this.startRow--,g>=h-d)break}null!==this.startRow&&a&&a(this),this.startPosition=o[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,i){o(this,e),this.offset=t,this.total=n,this.countTH=i}return i(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}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,i){o(this,e),this.offset=t,this.total=n,this.countTH=i}return i(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}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(32),u=n(275),c=o(u),h=n(276),d=o(h),f=n(277),p=o(f),g=n(278),v=o(g),m=n(279),y=o(m),w=n(281),C=o(w);t.default=function(){function e(t){i(this,e);var n=[];if(this.guid="wt_"+(0,l.randomString)(),t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new y.default(this,t.table,t.wtRootElement),this.wtScroll=new p.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new c.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new v.default(this,t),this.wtTable=new y.default(this,t.table),this.wtScroll=new p.default(this),this.wtViewport=new C.default(this),this.wtEvent=new c.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new d.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var o=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;r>o;o++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[o].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,s.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return r(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||(0,s.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(1>=arguments.length||void 0===arguments[1]||!arguments[1])return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(n>e.row&&i>e.col)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(n>e.row)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(i>e.col&&e.row>=t-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(i>e.col)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(t>e.row&&e.row>t-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollVertical",value:function(e){return this.wtOverlays.topOverlay.scrollTo(e),this.getSetting("onScrollVertically"),this}},{key:"scrollHorizontal",value:function(e){return this.wtOverlays.leftOverlay.scrollTo(e),this.getSetting("onScrollHorizontally"),this}},{key:"scrollViewport",value:function(e){return this.wtScroll.scrollViewport(e),this}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];(0,a.objectEach)(t,function(t,i){t.indexOf("array")>-1&&e.getSetting(i).length&&o.push("ht"+(0,l.toUpperCaseFirst)(i)),n.push("ht"+(0,l.toUpperCaseFirst)(i))}),(0,s.removeClass)(this.wtTable.wtRootElement.parentNode,n),(0,s.addClass)(this.wtTable.wtRootElement.parentNode,o)}},{key:"getSetting",value:function(e,t,n,o,i){return this.wtSettings.getSetting(e,t,n,o,i)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e){var t=this,n=new l.default(e);this.instance=e;var o=[null,null];this.dblClickTimeout=[null,null];var a=function(e){var n=document.activeElement,s=(0,r.partial)(i.getParent,e.realTarget),a=e.realTarget;if(a!==n&&s(0)!==n&&s(1)!==n){var l=t.parentCell(a);(0,i.hasClass)(a,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,a):l.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,l.coords,l.TD,t.instance),2!==e.button&&l.TD&&(o[0]=l.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))}},u=function(e){t.instance.touchMoving=!0},c=function(e){n.addEventListener(this,"touchmove",u),t.checkIfTouchMove=setTimeout(function(){!0===t.instance.touchMoving&&(t.instance.touchMoving=void 0,n.removeEventListener("touchmove",u,!1)),a(e)},30)},h=function(e){var n,o,r;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,o=(0,i.closestDown)(e.realTarget,["TD","TH"],n),r=t.instance.cloneSource||t.instance,o&&o!==r.lastMouseOver&&(0,i.isChildOf)(o,n)&&(r.lastMouseOver=o,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(o),o,t.instance)))},d=function(e){var n=void 0,o=void 0,r=void 0;t.instance.hasSetting("onCellMouseOut")&&(n=t.instance.wtTable.TABLE,o=(0,i.closestDown)(e.realTarget,["TD","TH"],n),r=(0,i.closestDown)(e.relatedTarget,["TD","TH"],n),o&&o!==r&&(0,i.isChildOf)(o,n)&&t.instance.getSetting("onCellMouseOut",e,t.instance.wtTable.getCoords(o),o,t.instance))},f=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===o[0]&&n.TD===o[1]?((0,i.hasClass)(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),o[0]=null,o[1]=null):n.TD===o[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),o[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}},p=function(e){clearTimeout(void 0),e.preventDefault(),f(e)};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",a),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",h),n.addEventListener(this.instance.wtTable.TABLE,"mouseout",d),n.addEventListener(this.instance.wtTable.holder,"mouseup",f),this.instance.wtTable.holder.parentNode.parentNode&&(0,s.isMobileBrowser)()&&!t.instance.wtTable.isWorkingOnClone()){var g="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,(0,i.isChildOf)(e.target,g)&&c.call(e.target,e)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,(0,i.isChildOf)(e.target,g)&&p.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(e){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}t.__esModule=!0;var i=n(0),r=n(36),s=n(26),a=n(4),l=function(e){return e&&e.__esModule?e:{default:e}}(a);o.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,o=(0,i.closestDown)(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"current")?(t.coords=this.instance.selections.current.cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"area")&&this.instance.selections.area.cellRange&&(t.coords=this.instance.selections.area.cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(2),l=n(18),u=n(26),c=n(4),h=o(c),d=n(31),f=o(d);t.default=function(){function e(t){i(this,e),this.wot=t,this.instance=this.wot,this.eventManager=new h.default(this.wot),this.wot.update("scrollbarWidth",(0,s.getScrollbarWidth)()),this.wot.update("scrollbarHeight",(0,s.getScrollbarWidth)()),this.scrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.registerListeners()}return r(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=f.default.createOverlay(f.default.CLONE_TOP,this.wot),f.default.hasOverlay(f.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),f.default.hasOverlay(f.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=f.default.createOverlay(f.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=f.default.createOverlay(f.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=f.default.createOverlay(f.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=f.default.createOverlay(f.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=f.default.createOverlay(f.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}}},{key:"registerListeners",value:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,o=[];for(o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(o.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(o.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(o.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&o.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&o.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n=void 0,o=t.wheelDeltaY||t.deltaY,i=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"==n&&0!==o||"left"==n&&0!==i||"bottom"==n&&0!==o||("topLeft"===n||"bottomLeft"===n)&&(0!==o||0!==i))&&t.preventDefault()}]);o.length;){var i=o.pop();this.eventManager.addEventListener(i[0],i[1],i[2]),this.registeredListeners.push(i)}}},{key:"deregisterListeners",value:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}}},{key:"onTableScroll",value:function(e){if(!(0,u.isMobileBrowser)()){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.topOverlay.clone.wtTable.holder,n=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,o=this.leftOverlay.clone.wtTable.holder,i=this.topLeftCornerOverlay&&this.topLeftCornerOverlay.clone?this.topLeftCornerOverlay.clone.wtTable.holder:null,r=this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone?this.bottomLeftCornerOverlay.clone.wtTable.holder:null,s=e.wheelDeltaY||-1*e.deltaY,a=e.wheelDeltaX||-1*e.deltaX,l=null,u={type:"wheel"},c=e.target,h=null;for(1===e.deltaMode&&(s*=120,a*=120);c!=document&&null!=c;){if(c.className.indexOf("wtHolder")>-1){l=c;break}c=c.parentNode}return u.target=l,l===i||l===r?(this.syncScrollPositions(u,-.2*a,"x"),this.syncScrollPositions(u,-.2*s,"y")):(l===t||l===n?h=s:l===o&&(h=a),this.syncScrollPositions(u,-.2*h)),!1}},{key:"syncScrollPositions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var o=this.leftOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,a=0,l=!1,u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=!1,g=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(u=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(f=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(c=this.leftOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.topOverlay.needFullRender&&(h=this.topLeftCornerOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.bottomOverlay.needFullRender&&(d=this.bottomLeftCornerOverlay.clone.wtTable.holder),r===document&&(r=window),r===o||r===i?(a=(0,s.getScrollLeft)(g?this.scrollableElement:r),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=a,l=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(u&&u.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=a,p=o!==window),f&&f.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=a,p=o!==window)),a=(0,s.getScrollTop)(r),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=a,l=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:c&&c.scrollTop!==a&&(null==t&&this.pendingScrollCallbacks.left.top++,c.scrollTop=a,p=i!==window)):r===f?(a=(0,s.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=a,l=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=a,u&&u.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=a,p=i!==window)),null!==t&&(l=!0,i.scrollTop+=t)):r===u?(a=(0,s.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=a,l=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=a),null!==t&&(l=!0,i.scrollTop+=t),f&&f.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=a,p=i!==window)):r===c?(a=(0,s.getScrollTop)(r),this.overlayScrollPositions.left.top!==a&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=a,l=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,i.scrollTop=a)),null!==t&&(l=!0,i.scrollLeft+=t)):r!==h&&r!==d||null!==t&&(l=!0,"x"===n?i.scrollLeft+=t:"y"===n&&(i.scrollTop+=t)),!this.keyPressed&&l&&"scroll"===e.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),p&&(this.delegatedScrollCallback=!0))}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),i=this.wot.wtViewport.getColumnHeaderHeight(),r=this.wot.wtTable.hider.style;r.width=o+this.leftOverlay.sumCellSizes(0,t)+"px",r.height=i+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,a.arrayEach)(t,function(t,o){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(6);t.default=function(){function e(t){o(this,e),this.wot=t,this.instance=t}return i(e,[{key:"scrollViewport",value:function(e){if(this.wot.drawn){var t=this._getVariables(),n=t.topOverlay,o=t.leftOverlay,i=t.totalRows,r=t.totalColumns,s=t.fixedRowsTop,a=t.fixedRowsBottom,l=t.fixedColumnsLeft;if(0>e.row||e.row>Math.max(i-1,0))throw Error("row "+e.row+" does not exist");if(0>e.col||e.col>Math.max(r-1,0))throw Error("column "+e.col+" does not exist");e.row>=s&&e.row<this.getFirstVisibleRow()?n.scrollTo(e.row):e.row>this.getLastVisibleRow()&&i-a>e.row&&n.scrollTo(e.row,!0),e.col>=l&&e.col<this.getFirstVisibleColumn()?o.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&o.scrollTo(e.col,!0)}}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,a=e.fixedRowsTop,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var u=(0,r.offset)(n.wtRootElement),c=(0,r.innerHeight)(n.hider),h=(0,r.innerHeight)(window),d=(0,r.getScrollTop)(window);if(d>=u.top+c-h){var f=o.getColumnHeaderHeight();f+=t.sumCellSizes(0,a),(0,s.rangeEachReverse)(i,1,function(e){if(f+=t.sumCellSizes(e-1,e),d>=u.top+c-f)return l=e,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerHeight)(window),c=(0,r.getScrollTop)(window);if(l.top>c){var h=o.getColumnHeaderHeight();(0,s.rangeEach)(1,i,function(e){if(h+=t.sumCellSizes(e-1,e),l.top+h-c>=u)return a=e-2,!1})}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(n.hider),c=(0,r.innerWidth)(window),h=(0,r.getScrollLeft)(window);if(h>=l.left+u-c){var d=o.getRowHeaderWidth();(0,s.rangeEachReverse)(i,1,function(e){if(d+=t.sumCellSizes(e-1,e),h>=l.left+u-d)return a=e,!1})}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(window),c=(0,r.getScrollLeft)(window);if(l.left>c){var h=o.getRowHeaderWidth();(0,s.rangeEach)(1,i,function(e){if(h+=t.sumCellSizes(e-1,e),l.left+h-c>=u)return a=e-2,!1})}}return a}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(1);t.default=function(){function e(t,n){var i=this;o(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=i.getSetting("data",e,t);(0,r.fastInnerText)(n,void 0===o||null===o?"":o)},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={};for(var a in this.defaults)if((0,s.hasOwnProperty)(this.defaults,a))if(void 0!==n[a])this.settings[a]=n[a];else{if(void 0===this.defaults[a])throw Error('A required setting "'+a+'" was not provided');this.settings[a]=this.defaults[a]}}return i(e,[{key:"update",value:function(e,t){if(void 0===t)for(var n in e)(0,s.hasOwnProperty)(e,n)&&(this.settings[n]=e[n]);else this.settings[e]=t;return this.wot}},{key:"getSetting",value:function(e,t,n,o,i){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,i):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var s="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},a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),u=n(36),c=n(50),h=o(c),d=n(80),f=(o(d),n(157)),p=o(f),g=n(158),v=o(g),m=n(280),y=o(m),w=n(31),C=o(w);t.default=function(){function e(t,n){var o=this;r(this,e),this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,(0,l.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var i=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return o._modifyRowHeaderWidth(i)}}return a(e,[{key:"fixTableDomTree",value:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))}},{key:"createSpreader",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",n}},{key:"createHider",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),n}},{key:"createHolder",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,l.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.style.position="relative",n.className="wtHolder",t&&t.insertBefore(n,e),this.isWorkingOnClone()||(n.parentNode.className+="ht_master handsontable"),n.appendChild(e)),n}},{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,l.getTrimmingContainer)(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",e===window){var t=this.wot.getSetting("preventOverflow");t||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=(0,l.getStyle)(e,"width"),this.holder.style.height=(0,l.getStyle)(e,"height"),this.holder.style.overflow=""}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t=this.wot,n=t.wtOverlays,o=t.wtViewport,i=this.instance.getSetting("totalRows"),r=this.wot.getSetting("rowHeaders").length,s=this.wot.getSetting("columnHeaders").length,a=!1;if(!this.isWorkingOnClone()&&(this.holderOffset=(0,l.offset)(this.holder),e=o.createRenderCalculators(e),r&&!this.wot.getSetting("fixedColumnsLeft"))){var u=n.leftOverlay.getScrollPosition(),c=this.correctHeaderWidth;this.correctHeaderWidth=u>0,c!==this.correctHeaderWidth&&(e=!1)}if(this.isWorkingOnClone()||(a=n.prepareOverlays()),e)this.isWorkingOnClone()||o.createVisibleCalculators(),n&&n.refresh(!0);else{this.tableOffset=this.isWorkingOnClone()?this.wot.cloneSource.wtTable.tableOffset:(0,l.offset)(this.TABLE);var h=void 0;h=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)?0:C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM)||C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(i-this.wot.getSetting("fixedRowsBottom"),0):o.rowsRenderCalculator.startRow;var d=void 0;d=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_LEFT)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?0:o.columnsRenderCalculator.startColumn,this.rowFilter=new v.default(h,i,s),this.columnFilter=new p.default(d,this.wot.getSetting("totalColumns"),r),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(e),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),a&&n.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){new y.default(this).render()}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,o=t.length;o>n;n++)(0,l.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var n=0;t>n;n++)this.wot.selections[n].settings.className&&this.removeClassFromCells(this.wot.selections[n].settings.className),this.wot.selections[n].settings.highlightHeaderClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightHeaderClassName),this.wot.selections[n].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightRowClassName),this.wot.selections[n].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightColumnClassName);for(var o=0;t>o;o++)this.wot.selections[o].draw(this.wot,e)}}},{key:"getCell",value:function(e){if(this.isRowBeforeRenderedRows(e.row))return-1;if(this.isRowAfterRenderedRows(e.row))return-2;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e.row)];return t?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e.col)]:void 0}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){if("TD"!==e.nodeName&&"TH"!==e.nodeName&&(e=(0,l.closest)(e,["TD","TH"])),null===e)return null;var t=e.parentNode,n=t.parentNode,o=(0,l.index)(t),i=e.cellIndex;return(0,l.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,e)||(0,l.overlayContainsElement)(C.default.CLONE_TOP,e)?"THEAD"===n.nodeName&&(o-=n.childNodes.length):o=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),i=(0,l.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,e)||(0,l.overlayContainsElement)(C.default.CLONE_LEFT,e)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new h.default(o,i)}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&0>this.rowFilter.sourceToRendered(e)&&e>=0}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&0>this.columnFilter.sourceToRendered(e)&&e>=0}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(C.default.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(C.default.CLONE_LEFT)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(C.default.CLONE_DEBUG)?e=t:this.wot.isOverlayName(C.default.CLONE_TOP)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(C.default.CLONE_BOTTOM)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}},{key:"getColumnHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(void 0===t?"undefined":s(t))&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getColumnWidth(e),n=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var i=o.getStretchedColumnWidth(e,n);i&&(n=i)}return n}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,u.isFunction)(e)?e():null;return Array.isArray(t)?(t=[].concat(i(t)),t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){return"number"!=typeof e&&(e=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&e++,e}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function r(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(31),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=!1;t.default=function(){function e(t){o(this,e),this.wtTable=t,this.wot=t.instance,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0}return s(e,[{key:"render",value:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),!0===e.skipRender)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t=this.wtTable.getRenderedColumnsCount(),n=this.wtTable.getRenderedRowsCount(),o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),r=void 0,s=!1;if((u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),0>o||(this.adjustAvailableNodes(),s=!0,this.renderColumnHeaders(),this.renderRows(i,n,t),this.wtTable.isWorkingOnClone()||(r=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),s||this.adjustAvailableNodes(),this.removeRedundantRows(n),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(u.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var l=(0,a.outerWidth)(this.wtTable.hider),c=(0,a.outerWidth)(this.wtTable.TABLE);if(0!==l&&c!==l&&this.adjustColumnWidths(t),r!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var h=this.wtTable.getFirstRenderedColumn(),d=this.wtTable.getLastRenderedColumn(),f=this.wot.getSetting("defaultColumnWidth"),p=this.wot.getSetting("rowHeaderWidth");if(null!=(p=this.instance.getSetting("onModifyRowHeaderWidth",p)))for(var g=0;this.rowHeaderCount>g;g++){var v=Array.isArray(p)?p[g]:p;v=null==v?f:v,this.COLGROUP.childNodes[g].style.width=v+"px"}for(var m=h;d>m;m++){var y=this.wtTable.getStretchedColumnWidth(m);this.COLGROUP.childNodes[this.columnFilter.sourceToRendered(m)+this.rowHeaderCount].style.width=y+"px"}}this.wot.getSetting("onDraw",!0)}}},{key:"removeRedundantRows",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{key:"renderRows",value:function(e,t,n){for(var o=void 0,i=0,r=this.rowFilter.renderedToSource(i),s=this.wtTable.isWorkingOnClone();e>r&&r>=0&&(!c&&i>1e3&&(c=!0,console.warn('Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.')),void 0===t||i!==t);){if(o=this.getOrCreateTrForRow(i,o),this.renderRowHeaders(r,o),this.adjustColumns(o,n+this.rowHeaderCount),this.renderCells(r,o,n),s&&!this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.resetOversizedRow(r),o.firstChild){var a=this.wot.wtTable.getRowHeight(r);a?(a--,o.firstChild.style.height=a+"px"):o.firstChild.style.height=""}i++,r=this.rowFilter.renderedToSource(i)}}},{key:"resetOversizedRow",value:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e=this.instance.wtTable.TBODY.childNodes.length,t=e*this.instance.wtSettings.settings.defaultRowHeight,n=(0,a.innerHeight)(this.instance.wtTable.TBODY)-1,o=void 0,i=void 0,r=void 0,s=void 0,l=void 0;this.instance.getSetting("totalRows");if(t!==n||this.instance.getSetting("fixedRowsBottom"))for(;e;)e--,r=this.instance.wtTable.rowFilter.renderedToSource(e),o=this.instance.wtTable.getRowHeight(r),s=this.instance.wtTable.getTrForRow(r),l=s.querySelector("th"),i=l?(0,a.innerHeight)(l):(0,a.innerHeight)(s)-1,(!o&&i>this.instance.wtSettings.settings.defaultRowHeight||i>o)&&(this.instance.wtViewport.oversizedRows[r]=++i)}}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;this.columnHeaderCount>n;n++)for(var o=-1*this.rowHeaderCount;t>o;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,i=e.length;i>o;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=n[o]+"px"}}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t=this.wot.wtTable.columnFilter.renderedToSource(e),n=this.columnHeaderCount,o=this.wot.wtSettings.settings.defaultRowHeight,i=void 0,r=void 0,s=void 0,l=this.wot.getSetting("columnHeaderHeight")||[];n;)n--,i=this.wot.wtTable.getColumnHeaderHeight(n),(r=this.wot.wtTable.getColumnHeader(t,n))&&(s=(0,a.innerHeight)(r),(!i&&s>o||s>i)&&(this.wot.wtViewport.oversizedColumnHeaders[n]=s),Array.isArray(l)?null!=l[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.wot.wtViewport.oversizedColumnHeaders[n]=l),(l[n]||l)>this.wot.wtViewport.oversizedColumnHeaders[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}},{key:"renderCells",value:function(e,t,n){for(var o=void 0,i=void 0,s=0;n>s;s++)i=this.columnFilter.renderedToSource(s),o=0===s?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(i)]:o.nextSibling,"TH"==o.nodeName&&(o=r(o,t)),(0,a.hasClass)(o,"hide")||(o.className=""),o.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,i,o);return o}},{key:"adjustColumnWidths",value:function(e){var t=0,n=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=n.wtTable.holder,i=this.wot.getSetting("defaultColumnWidth"),r=this.wot.getSetting("rowHeaderWidth");if(o.scrollHeight>o.offsetHeight&&(t=(0,a.getScrollbarWidth)()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),null!=(r=this.instance.getSetting("onModifyRowHeaderWidth",r)))for(var s=0;this.rowHeaderCount>s;s++){var l=Array.isArray(r)?r[s]:r;l=null==l?i:l,this.COLGROUP.childNodes[s].style.width=l+"px"}for(var u=0;e>u;u++){this.COLGROUP.childNodes[u+this.rowHeaderCount].style.width=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(u))+"px"}}},{key:"appendToTbody",value:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++}},{key:"getOrCreateTrForRow",value:function(e,t){var n=void 0;return this.wtTable.tbodyChildrenLength>e?n=0===e?this.TBODY.firstChild:t.nextSibling:(n=this.createRow(),this.appendToTbody(n)),n.className&&n.removeAttribute("class"),n}},{key:"createRow",value:function(){for(var e=document.createElement("TR"),t=0;this.rowHeaderCount>t;t++)e.appendChild(document.createElement("TH"));return e}},{key:"renderRowHeader",value:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)}},{key:"renderRowHeaders",value:function(e,t){for(var n=t.firstChild,o=0;this.rowHeaderCount>o;o++)n?"TD"==n.nodeName&&(n=i(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,o,n),n=n.nextSibling}},{key:"adjustAvailableNodes",value:function(){this.adjustColGroups(),this.adjustThead()}},{key:"renderColumnHeaders",value:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;this.columnHeaderCount>t;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;e>o;o++){var i=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,i,n.childNodes[o+this.rowHeaderCount])}}},{key:"adjustColGroups",value:function(){for(var e=this.wtTable.getRenderedColumnsCount();e+this.rowHeaderCount>this.wtTable.colgroupChildrenLength;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&(0,a.addClass)(this.COLGROUP.childNodes[0],"rowHeader")}},{key:"adjustThead",value:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,o=this.columnHeaders.length;o>n;n++){for(t=this.THEAD.childNodes[n],t||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;e+this.rowHeaderCount>this.theadChildrenLength;)t.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength--}var i=this.THEAD.childNodes.length;if(i>this.columnHeaders.length)for(var r=this.columnHeaders.length;i>r;r++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&(0,a.empty)(t)}},{key:"getTrForColumnHeaders",value:function(e){return this.THEAD.childNodes[e]}},{key:"renderColumnHeader",value:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)}},{key:"adjustColumns",value:function(e,t){for(var n=e.childNodes.length;t>n;){e.appendChild(document.createElement("TD")),n++}for(;n>t;)e.removeChild(e.lastChild),n--}},{key:"removeRedundantColumns",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(1),l=n(4),u=o(l),c=n(155),h=o(c),d=n(156),f=o(d);t.default=function(){function e(t){var n=this;i(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new u.default(this.wot),this.eventManager.addEventListener(window,"resize",function(){n.clientHeight=n.getWorkspaceHeight()})}return r(e,[{key:"getWorkspaceHeight",value:function(){var e=this.instance.wtOverlays.topOverlay.trimmingContainer,t=void 0,n=0;return e===window?n=document.documentElement.clientHeight:(t=(0,s.outerHeight)(e),n=t>0&&e.clientHeight>0?e.clientHeight:1/0),n}},{key:"getWorkspaceWidth",value:function(){var e=void 0,t=this.wot.getSetting("totalColumns"),n=this.instance.wtOverlays.leftOverlay.trimmingContainer,o=void 0,i=this.wot.getSetting("stretchH"),r=document.documentElement.offsetWidth;return this.wot.getSetting("preventOverflow")?(0,s.outerWidth)(this.instance.wtTable.wtRootElement):(e=this.wot.getSetting("freezeOverlays")?Math.min(r-this.getWorkspaceOffset().left,r):Math.min(this.getContainerFillWidth(),r-this.getWorkspaceOffset().left,r),n===window&&t>0&&this.sumColumnWidths(0,t-1)>e?document.documentElement.clientWidth:n===window||"scroll"!=(o=(0,s.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"))&&"hidden"!=o&&"auto"!=o?"none"!==i&&i?e:Math.max(e,(0,s.outerWidth)(this.instance.wtTable.TABLE)):Math.max(e,n.clientWidth))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0;t>e;)n+=this.wot.wtTable.getColumnWidth(e),e++;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=void 0,n=void 0;return n=document.createElement("div"),n.style.width="100%",n.style.height="1px",e.appendChild(n),t=n.offsetWidth,this.containerWidth=t,e.removeChild(n),t}},{key:"getWorkspaceOffset",value:function(){return(0,s.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,s.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,s.outerWidth)(this.wot.wtTable.TABLE)||(0,s.outerWidth)(this.wot.wtTable.TBODY)||(0,s.outerWidth)(this.wot.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,s.outerHeight)(this.wot.wtTable.THEAD)),this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight(),t=void 0;return e===1/0?e:(t=this.getColumnHeaderHeight(),t>0&&(e-=t),e)}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,o=t.length;o>n;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var i=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var r=0,a=t.length;a>r;r++)i?(this.rowHeaderWidth+=(0,s.outerWidth)(i),i=i.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth(),t=void 0;return e===1/0?e:(t=this.getRowHeaderWidth(),t>0?e-t:e)}},{key:"createRowsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=void 0,o=void 0,i=void 0,r=void 0,a=void 0,l=void 0,u=void 0;return this.rowHeaderWidth=NaN,n=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),o=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset(),0>o&&(o=0),i=this.wot.getSetting("fixedRowsTop"),a=this.wot.getSetting("fixedRowsBottom"),u=this.wot.getSetting("totalRows"),i&&(l=this.wot.wtOverlays.topOverlay.sumCellSizes(0,i),o+=l,n-=l),a&&this.wot.wtOverlays.bottomOverlay.clone&&(l=this.wot.wtOverlays.bottomOverlay.sumCellSizes(u-a,u),n-=l),r=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:(0,s.getScrollbarWidth)(),new f.default(n,o,this.wot.getSetting("totalRows"),function(t){return e.wot.wtTable.getRowHeight(t)},t?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,t,r)}},{key:"createColumnsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getViewportWidth(),o=void 0,i=void 0;if(this.columnHeaderHeight=NaN,o=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),0>o&&(o=0),i=this.wot.getSetting("fixedColumnsLeft")){var r=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,i);o+=r,n-=r}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(n-=(0,s.getScrollbarWidth)()),new h.default(n,o,this.wot.getSetting("totalColumns"),function(t){return e.wot.wtTable.getColumnWidth(t)},t?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,t,this.wot.getSetting("stretchH"),function(t,n){return e.wot.getSetting("onBeforeStretchingColumnWidth",t,n)})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){return!!this.rowsVisibleCalculator&&(!(this.rowsRenderCalculator.startRow>e.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){return!!this.columnsVisibleCalculator&&(!(this.columnsRenderCalculator.startColumn>e.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,a.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(10),l=n(1),u=n(26),c=n(4),h=o(c),d=n(50),f=o(d),p=n(31);o(p);t.default=function(){function e(t,n){i(this,e),n&&(this.eventManager=new h.default(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"5px",height:"5px",borderWidth:"2px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return r(e,[{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=0,n=this.main.childNodes.length;n>t;t++)!function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",function(n){return e.onMouseEnter(n,e.main.childNodes[t])})}(t)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){function n(e){return e.clientY<Math.floor(r.top)||(e.clientY>Math.ceil(r.top+r.height)||(e.clientX<Math.floor(r.left)||(e.clientX>Math.ceil(r.left+r.width)||void 0)))}function o(e){n(e)&&(i.eventManager.removeEventListener(document.body,"mousemove",o),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,a.stopImmediatePropagation)(e);var i=this,r=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}}},{key:"createBorders",value:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;5>o;o++){var i=t[o],r=document.createElement("div");r.className="wtBorder "+(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(r.className+=" hidden"),n=r.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",n.width=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",this.main.appendChild(r)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,u.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)}},{key:"createMultipleSelectorHandles",value:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var e={position:"absolute",height:"40px",width:"40px","border-radius":parseInt(40/1.5,10)+"px"};for(var t in e)(0,l.hasOwnProperty)(e,t)&&(this.selectionHandles.styles.bottomRightHitArea[t]=e[t],this.selectionHandles.styles.topLeftHitArea[t]=e[t]);var n={position:"absolute",height:"10px",width:"10px","border-radius":parseInt(10/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var o in n)(0,l.hasOwnProperty)(n,o)&&(this.selectionHandles.styles.bottomRight[o]=n[o],this.selectionHandles.styles.topLeft[o]=n[o]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){return!(!this.wot.selections.area.cellRange||e==this.wot.selections.area.cellRange.to.row&&t==this.wot.selections.area.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,o,i,r){var s=parseInt(this.selectionHandles.styles.topLeft.width,10),a=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-s,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-s,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-a/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-a/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+i,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+r-a/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+i-a/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e==this.wot.wtSettings.getSetting("fixedRowsTop")||t==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){var t,n,o,i,r,a,l,c,h,d,p,g,v,m,y,w,C,b;b=this.wot.wtTable.getRenderedRowsCount();for(var S=0;b>S;S++){var O=this.wot.wtTable.rowFilter.renderedToSource(S);if(O>=e[0]&&e[2]>=O){v=O;break}}for(var _=b-1;_>=0;_--){var R=this.wot.wtTable.rowFilter.renderedToSource(_);if(R>=e[0]&&e[2]>=R){y=R;break}}b=this.wot.wtTable.getRenderedColumnsCount();for(var E=0;b>E;E++){var k=this.wot.wtTable.columnFilter.renderedToSource(E);if(k>=e[1]&&e[3]>=k){m=k;break}}for(var T=b-1;T>=0;T--){var M=this.wot.wtTable.columnFilter.renderedToSource(T);if(M>=e[1]&&e[3]>=M){w=M;break}}if(void 0===v||void 0===m)return void this.disappear();t=v!==y||m!==w,n=this.wot.wtTable.getCell(new f.default(v,m)),o=t?this.wot.wtTable.getCell(new f.default(y,w)):n,i=(0,s.offset)(n),r=t?(0,s.offset)(o):i,a=(0,s.offset)(this.wot.wtTable.TABLE),c=i.top,p=r.top+(0,s.outerHeight)(o)-c,d=i.left,g=r.left+(0,s.outerWidth)(o)-d,l=c-a.top-1,h=d-a.left-1;var H=(0,s.getComputedStyle)(n);parseInt(H.borderTopWidth,10)>0&&(l+=1,p=p>0?p-1:0),parseInt(H.borderLeftWidth,10)>0&&(h+=1,g=g>0?g-1:0),this.topStyle.top=l+"px",this.topStyle.left=h+"px",this.topStyle.width=g+"px",this.topStyle.display="block",this.leftStyle.top=l+"px",this.leftStyle.left=h+"px",this.leftStyle.height=p+"px",this.leftStyle.display="block";var P=Math.floor(this.settings.border.width/2);this.bottomStyle.top=l+p-P+"px",this.bottomStyle.left=h+"px",this.bottomStyle.width=g+"px",this.bottomStyle.display="block",this.rightStyle.top=l+"px",this.rightStyle.left=h+g-P+"px",this.rightStyle.height=p+1+"px",this.rightStyle.display="block",(0,u.isMobileBrowser)()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(y,w)?this.cornerStyle.display="none":(this.cornerStyle.top=l+p-4+"px",this.cornerStyle.left=h+g-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none",C=(0,s.getTrimmingContainer)(this.wot.wtTable.TABLE),w===this.wot.getSetting("totalColumns")-1&&o.offsetLeft+(0,s.outerWidth)(o)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(C)&&(this.cornerStyle.left=Math.floor(h+g-3-parseInt(this.cornerDefaultStyle.width,10)/2)+"px",this.cornerStyle.borderRightWidth=0),y===this.wot.getSetting("totalRows")-1&&o.offsetTop+(0,s.outerHeight)(o)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(C)&&(this.cornerStyle.top=Math.floor(l+p-3-parseInt(this.cornerDefaultStyle.height,10)/2)+"px",this.cornerStyle.borderBottomWidth=0),this.cornerStyle.display="block"),(0,u.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(v,m,l,h,g,p)}}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,u.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"hasSetting",value:function(e){return"function"==typeof e?e():!!e}}]),e}()},function(e,t,n){"use strict";function o(e){d=!1;var t=this.getActiveEditor();if((0,i.isPrintableChar)(e.keyCode)||e.keyCode===i.KEY_CODES.BACKSPACE||e.keyCode===i.KEY_CODES.DELETE||e.keyCode===i.KEY_CODES.INSERT){var n=0;if(e.keyCode===i.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),d=!0},n))}}t.__esModule=!0;var i=n(18),r=n(22),s=n(32),a=n(2),l=n(0),u=n(284),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=c.default.prototype.extend();h.prototype.init=function(){c.default.prototype.init.apply(this,arguments),this.query=null,this.strippedChoices=[],this.rawChoices=[]},h.prototype.getValue=function(){var e=this,t=this.rawChoices.find(function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value});return(0,r.isDefined)(t)?t:this.TEXTAREA.value},h.prototype.createElements=function(){c.default.prototype.createElements.apply(this,arguments),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var d=!1;h.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",o),c.default.prototype.prepare.apply(this,arguments)},h.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",c.default.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,n=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:n?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,width:n?(0,l.outerWidth)(this.TEXTAREA)+(0,l.getScrollbarWidth)()+2:void 0,afterRenderer:function(e,n,o,i,s,a){var l=t.cellProperties,u=l.filteringCaseSensitive,c=l.allowHtml,h=void 0,d=void 0;s=(0,r.stringify)(s),s&&!c&&-1!==(h=!0===u?s.indexOf(this.query):s.toLowerCase().indexOf(t.query.toLowerCase()))&&(d=s.substr(h,t.query.length),s=s.replace(d,"<strong>"+d+"</strong>")),e.innerHTML=s},autoColumnSize:!0,modifyColWidth:function(e,t){var o=this.getPlugin("autoColumnSize").widths;return o[t]&&(e=o[t]),n?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=(0,l.getScrollbarWidth)()+2+"px",d&&(d=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},h.prototype.close=function(){c.default.prototype.close.apply(this,arguments)},h.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties.source;"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([])},h.prototype.updateChoicesList=function(e){var t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,r=null,s=null;o&&(r=h.sortByRelevance(this.stripValueIfNeeded(this.getValue()),e,this.cellProperties.filteringCaseSensitive));var u=Array.isArray(r)?r.length:0;if(!1===i)u&&(s=r[0]);else{for(var c=[],d=0,f=e.length;f>d&&(!o||d<u);d++)c.push(u?e[r[d]]:e[d]);s=0,e=c}this.strippedChoices=e,this.htEditor.loadData((0,a.pivot)([e])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(s),this.instance.listen(),this.TEXTAREA.focus(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)},h.prototype.flipDropdownIfNeeded=function(){var e=(0,l.offset)(this.TEXTAREA),t=(0,l.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),o=(0,l.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE),i=o.scrollTop,r=(0,l.outerHeight)(this.instance.view.wt.wtTable.THEAD),s={row:0,col:0};o!==window&&(s=(0,l.offset)(o));var a=e.top-s.top-r+i,u=o.scrollHeight-a-r-t,c=n>u&&a>u;return c?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(c?a:u,n),c},h.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n=0,o=0,i=0,r=null;do{i=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=i,o++}while(e>n);r=n-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-r+"px"),this.setDropdownHeight(n-i)}},h.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},h.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},h.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+(0,l.getScrollbarWidth)()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},h.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},h.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",o),c.default.prototype.finishEditing.apply(this,arguments)},h.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},h.sortByRelevance=function(e,t,n){var o=[],i=void 0,a=e.length,l=void 0,u=void 0,c=[],h=void 0,d=t.length;if(0===a){for(h=0;d>h;h++)c.push(h);return c}for(h=0;d>h;h++)i=(0,s.stripTags)((0,r.stringify)(t[h])),-1!==(l=n?i.indexOf(e):i.toLowerCase().indexOf(e.toLowerCase()))&&(u=i.length-l-a,o.push({baseIndex:h,index:l,charsLeft:u,value:i}));for(o.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(t.index>e.index)return-1;if(e.index>t.index)return 1;if(e.index===t.index){if(t.charsLeft>e.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),h=0,d=o.length;d>h;h++)c.push(o[h].baseIndex);return c},h.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return t>this.strippedChoices.length?this.strippedChoices.length*e+8:t*e},h.prototype.stripValueIfNeeded=function(e){return this.stripValuesIfNeeded([e])[0]},h.prototype.stripValuesIfNeeded=function(e){var t=this.cellProperties.allowHtml,n=(0,a.arrayMap)(e,function(e){return(0,r.stringify)(e)});return(0,a.arrayMap)(n,function(e){return t?e:(0,s.stripTags)(e)})},h.prototype.allowKeyEventPropagation=function(e){var t={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},n=!1;return e===i.KEY_CODES.ARROW_DOWN&&t.row>0&&t.row<this.htEditor.countRows()-1&&(n=!0),e===i.KEY_CODES.ARROW_UP&&t.row>-1&&(n=!0),n},h.prototype.discardEditor=function(e){c.default.prototype.discardEditor.apply(this,arguments),this.instance.view.render()},t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var o=n(18),i=n(1),r=n(0),s=n(10),a=n(51),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=l.default.prototype.extend();u.prototype.createElements=function(){l.default.prototype.createElements.apply(this,arguments);var e=document.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()},u.prototype.prepare=function(e,t,n,o,r,s){l.default.prototype.prepare.apply(this,arguments);var a=this,u={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&a.setValue(n),a.instance.destroyEditor()}};this.cellProperties.handsontable&&(0,i.extend)(u,s.handsontable),this.htOptions=u};var c=function(e){if(!(0,s.isImmediatePropagationStopped)(e)){var t,n,i=this.getActiveEditor(),r=i.htEditor.getInstance();if(e.keyCode==o.KEY_CODES.ARROW_DOWN)if(r.getSelected()||r.flipped){if(r.getSelected())if(r.flipped)t=r.getSelected()[0]+1;else if(!r.flipped){n=r.getSelected()[0];var a=r.countRows()-1;t=Math.min(a,n+1)}}else t=0;else e.keyCode==o.KEY_CODES.ARROW_UP&&(!r.getSelected()&&r.flipped?t=r.countRows()-1:r.getSelected()&&(r.flipped?(n=r.getSelected()[0],t=Math.max(0,n-1)):(n=r.getSelected()[0],t=n-1)));void 0!==t&&(0>t||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length&&(e.preventDefault(),(0,s.stopImmediatePropagation)(e),i.instance.listen(),i.TEXTAREA.focus()))}};u.prototype.open=function(){this.instance.addHook("beforeKeyDown",c),l.default.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new this.instance.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.TEXTAREA.style.visibility="hidden"):(this.htEditor.deselectCell(),this.TEXTAREA.style.visibility="visible"),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)},u.prototype.close=function(){this.instance.removeHook("beforeKeyDown",c),this.instance.listen(),l.default.prototype.close.apply(this,arguments)},u.prototype.focus=function(){this.instance.listen(),l.default.prototype.focus.apply(this,arguments)},u.prototype.beginEditing=function(e){var t=this.instance.getSettings().onBeginEditing;t&&!1===t()||l.default.prototype.beginEditing.apply(this,arguments)},u.prototype.finishEditing=function(e,t){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var n=this.htEditor.getInstance().getValue();void 0!==n&&this.setValue(n)}return l.default.prototype.finishEditing.apply(this,arguments)},u.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},t.default=u},function(e,t,n){"use strict";function o(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}t.__esModule=!0,t.getNormalizedDate=o},function(e,t,n){"use strict";!function(e){function n(e){return e.split('"').length-1}var o={parse:function(e){var t,o,i,r,s,a,l,u=[],c=0;for(i=e.split("\n"),i.length>1&&""===i[i.length-1]&&i.pop(),t=0,o=i.length;o>t;t+=1){for(i[t]=i[t].split("\t"),r=0,s=i[t].length;s>r;r+=1)u[c]||(u[c]=[]),a&&0===r?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+i[t][0],a&&1&n(i[t][0])&&(a=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):r===s-1&&0===i[t][r].indexOf('"')&&1&n(i[t][r])?(u[c].push(i[t][r].substring(1).replace(/""/g,'"')),a=!0):(u[c].push(i[t][r].replace(/""/g,'"')),a=!1);a||(c+=1)}return u},stringify:function(e){var t,n,o,i,r,s="";for(t=0,n=e.length;n>t;t+=1){for(i=e[t].length,o=0;i>o;o+=1)o>0&&(s+="\t"),r=e[t][o],"string"==typeof r?r.indexOf("\n")>-1?s+='"'+r.replace(/"/g,'""')+'"':s+=r:s+=null===r||void 0===r?"":r;t!==n-1&&(s+="\n")}return s}};t.parse=o.parse,t.stringify=o.stringify}(window)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){h.set(e,t)}function r(e){var t=void 0;if(!(e instanceof l.default)){if(!h.has(e))throw Error("Record translator was not registered for this object identity");e=h.get(e)}return d.has(e)?t=d.get(e):(t=new c(e),d.set(e,t)),t}t.__esModule=!0,t.RecordTranslator=void 0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.registerIdentity=i,t.getTranslator=r;var a=n(82),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(1),c=function(){function e(t){o(this,e),this.hot=t}return s(e,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,u.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,u.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),e}();t.RecordTranslator=c;var h=new WeakMap,d=new WeakMap},function(e,t,n){"use strict";function o(e){s.set(e,!0)}function i(e){return e===a}function r(e){return s.has(e)}t.__esModule=!0,t.registerAsRootInstance=o,t.hasValidParameter=i,t.isRootInstance=r;var s=t.holder=new WeakMap,a=t.rootInstanceSymbol=Symbol("rootInstance")},function(e,t,n){"use strict";function o(){}t.__esModule=!0;var i="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},r=n(22),s=n(1);o.prototype={licenseKey:"trial",data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,o,a;for(t=0,n=this.countCols();n>t;t++)if(""!==(o=this.getDataAtCell(e,t))&&null!==o&&(0,r.isDefined)(o))return"object"===(void 0===o?"undefined":i(o))&&(a=this.getCellMeta(e,t),(0,s.isObjectEquals)(this.getSchema()[a.prop],o));return!0},isEmptyCol:function(e){var t,n,o;for(t=0,n=this.countRows();n>t;t++)if(""!==(o=this.getDataAtCell(t,e))&&null!==o&&(0,r.isDefined)(o))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:!1,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,autoComplete:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,sortIndicator:void 0,manualColumnFreeze:void 0,trimWhitespace:!0,settings:void 0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,format:void 0,language:void 0,selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:void 0,correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortFunction:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1},t.default=o},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(1),a=n(6),l=n(22);t.default=function(){function e(t){i(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return r(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),r(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var o=this,i=new Map;return"number"==typeof n&&(n={from:n,to:n}),(0,a.rangeEach)(n.from,n.to,function(n){var r=o.generateSample(e,t,n);i.set(n,r)}),i}},{key:"generateSample",value:function(e,t,n){var i=this,r=new Map,u=[],c=void 0;return(0,a.rangeEach)(t.from,t.to,function(t){var a=void 0;if("row"===e)a=i.dataFactory(n,t);else{if("col"!==e)throw Error("Unsupported sample type");a=i.dataFactory(t,n)}c=(0,s.isObject)(a)?Object.keys(a).length:Array.isArray(a)?a.length:(0,l.stringify)(a).length,r.has(c)||r.set(c,{needed:i.getSampleCount(),strings:[]});var h=r.get(c);if(h.needed){if(!(u.indexOf(a)>-1)||i.allowDuplicates){h.strings.push(o({value:a},"row"===e?"col":"row",t)),u.push(a),h.needed--}}}),r}}]),e}()},function(e,t,n){"use strict";t.__esModule=!0;var o=n(2),i=n(1),r=n(6),s={_arrayMap:[],getValueByIndex:function(e){var t=void 0;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t=void 0;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=(0,o.arrayMax)(this._arrayMap)+1,s=[];return(0,r.rangeEach)(n-1,function(n){s.push(t._arrayMap.splice(e+n,0,i+n))}),s},removeItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),i=(0,o.arrayReduce)(e,function(e,n){return t._arrayMap.splice(n,1),e.concat(r.slice(n,n+1))},[])}else i=this._arrayMap.splice(e,n);return i},unshiftItems:function(e){function t(e){return(0,o.arrayReduce)(i,function(t,n){return e>n&&t++,t},0)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.removeItems(e,n);this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(e,n){var o=t(e);return o&&(e-=o),e})},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(t){return e>t||(t+=n),t}),(0,r.rangeEach)(n-1,function(n){t._arrayMap.splice(e+n,0,e+n)})},clearMap:function(){this._arrayMap.length=0}};(0,i.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(6),s=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=s}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=s}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,r.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,r.isNumeric)(t)&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=r}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=r}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}()},function(e,t,n){"use strict";var o,i="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},r=function(e,t){function n(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=Error;!function(e){function t(e,n){switch(void 0===e?"undefined":i(e)){case"undefined":case"boolean":case"string":case"number":return e===n;case"object":if(null===e)return null===n;if(k(e)){if(!k(n)||e.length!==n.length)return!1;for(var o=0,r=e.length;r>o;o++)if(!t(e[o],n[o]))return!1;return!0}var s=C(n),a=s.length;if(C(e).length!==a)return!1;for(var o=0;a>o;o++)if(!t(e[o],n[o]))return!1;return!0;default:return!1}}function n(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){for(var t=0,n=_.length;n>t;t++)if(_[t].obj===e)return _[t]}function a(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].callback===t)return e.observers[n].observer}function l(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}function u(e,t){t.unobserve()}function c(e){return"object"===(void 0===e?"undefined":i(e))?JSON.parse(JSON.stringify(e)):e}function h(e,t){var n,i=[],r=o(e);if(r?n=a(r,t):(r=new R(e),_.push(r)),n)return n;if(n={},r.value=c(e),t){n.callback=t,n.next=null;var u=this.intervals||[100,1e3,1e4,6e4];if(void 0===u.push)throw new s("jsonpatch.intervals must be an array");var h=0,f=function(){d(n)},p=function(){clearTimeout(n.next),n.next=setTimeout(function(){f(),h=0,n.next=setTimeout(g,u[h++])},0)},g=function e(){f(),h==u.length&&(h=u.length-1),n.next=setTimeout(e,u[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",p),window.addEventListener("mouseup",p),window.addEventListener("keydown",p)):(document.documentElement.attachEvent("onmousedown",p),document.documentElement.attachEvent("onmouseup",p),document.documentElement.attachEvent("onkeydown",p))),n.next=setTimeout(g,u[h++])}return n.patches=i,n.object=e,n.unobserve=function(){d(n),clearTimeout(n.next),l(r,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",p),window.removeEventListener("keydown",p)):(document.documentElement.detachEvent("onmousedown",p),document.documentElement.detachEvent("onmouseup",p),document.documentElement.detachEvent("onkeydown",p)))},r.observers.push(new E(t,n)),n}function d(e){for(var t,n=0,o=_.length;o>n;n++)if(_[n].obj===e.object){t=_[n];break}f(t.value,e.object,e.patches,""),e.patches.length&&g(t.value,e.patches);var i=e.patches;return i.length>0&&(e.patches=[],e.callback&&e.callback(i)),i}function f(e,t,o,r){for(var s=C(t),a=C(e),l=!1,u=a.length-1;u>=0;u--){var h=a[u],d=e[h];if(t.hasOwnProperty(h)){var p=t[h];"object"==(void 0===d?"undefined":i(d))&&null!=d&&"object"==(void 0===p?"undefined":i(p))&&null!=p?f(d,p,o,r+"/"+n(h)):d!=p&&(!0,o.push({op:"replace",path:r+"/"+n(h),value:c(p)}))}else o.push({op:"remove",path:r+"/"+n(h)}),l=!0}if(l||s.length!=a.length)for(var u=0;s.length>u;u++){var h=s[u];e.hasOwnProperty(h)||o.push({op:"add",path:r+"/"+n(h),value:c(t[h])})}}function p(e){for(var t,n=0,o=e.length;o>n;){t=e.charCodeAt(n);{if(48>t||t>57)return!1;n++}}return!0}function g(e,t,n){for(var o,i,r=!1,s=0,a=t.length;a>s;){o=t[s],s++;for(var l=o.path||"",u=l.split("/"),c=e,h=1,d=u.length,f=void 0;;){if(i=u[h],n&&void 0===f&&(void 0===c[i]?f=u.slice(0,h).join("/"):h==d-1&&(f=o.path),void 0!==f&&this.validator(o,s-1,e,f)),h++,void 0===i&&h>=d){r=O[o.op].call(o,c,i,e);break}if(k(c)){if("-"===i)i=c.length;else{if(n&&!p(i))throw new T("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s-1,o.path,o);i=parseInt(i,10)}if(h>=d){if(n&&"add"===o.op&&i>c.length)throw new T("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s-1,o.path,o);r=S[o.op].call(o,c,i,e);break}}else if(i&&-1!=i.indexOf("~")&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),h>=d){r=b[o.op].call(o,c,i,e);break}c=c[i]}}return r}function v(e,t){var n=[];return f(e,t,n,""),n}function m(e){if(void 0===e)return!0;if("array"==typeof e||"object"==(void 0===e?"undefined":i(e)))for(var t in e)if(m(e[t]))return!0;return!1}function y(t,n,o,r){if("object"!==(void 0===t?"undefined":i(t))||null===t||k(t))throw new T("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!b[t.op])throw new T("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!=typeof t.path)throw new T("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new T("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new T("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&m(t.value))throw new T("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var s=t.path.split("/").length,a=r.split("/").length;if(s!==a+1&&s!==a)throw new T("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==r)throw new T("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var l={op:"_get",path:t.from,value:void 0},u=e.validate([l],o);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new T("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function w(e,t){try{if(!k(e))throw new T("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),g.call(this,t,e,!0);else for(var n=0;e.length>n;n++)this.validator(e[n],n)}catch(e){if(e instanceof T)return e;throw e}}var C=function(e){if(k(e)){for(var t=Array(e.length),n=0;t.length>n;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t},b={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"remove",path:this.from}]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return t(e[n],this.value)},_get:function(e,t){this.value=e[t]}},S={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:b.move,copy:b.copy,test:b.test,_get:b._get},O={add:function(e){O.remove.call(this,e);for(var t in this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&b.remove.call(this,e,t);return!0},replace:function(e){return g(e,[{op:"remove",path:this.path}]),g(e,[{op:"add",path:this.path,value:this.value}]),!0},move:b.move,copy:b.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},_=[],R=function(){function e(e){this.observers=[],this.obj=e}return e}(),E=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=u,e.observe=h,e.generate=d;var k;k=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=g,e.compare=v;var T=function(e){function t(t,n,o,i,r){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=i,this.tree=r}return r(t,e),t}(s);e.JsonPatchError=T,e.Error=T,e.validator=y,e.validate=w}(o||(o={})),t.apply=o.apply,t.observe=o.observe,t.unobserve=o.unobserve,t.generate=o.generate,t.compare=o.compare,t.validate=o.validate,t.validator=o.validator,t.JsonPatchError=o.JsonPatchError,t.Error=o.Error},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e,t||{},Q.rootInstanceSymbol);return n.init(),n}t.__esModule=!0,n(89),n(103),n(104),n(108),n(109),n(111),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(122),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(79),n(137),n(138),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(148),n(149),n(150),n(152),n(153),n(154),n(316),n(317),n(318);var s=n(15),a=n(8),l=n(27),u=n(81),c=n(82),h=i(c),d=n(364),f=i(d),p=n(4),g=i(p),v=n(7),m=i(v),y=n(85),w=i(y),C=n(2),b=o(C),S=n(26),O=o(S),_=n(84),R=o(_),E=n(285),k=o(E),T=n(34),M=o(T),H=n(36),P=o(H),D=n(22),A=o(D),x=n(6),L=o(x),N=n(1),j=o(N),I=n(83),W=o(I),F=n(32),V=o(F),B=n(18),Y=o(B),z=n(0),U=o(z),K=n(10),G=o(K),X=n(365),q=o(X),$=n(5),J=n(289),Z=i(J),Q=n(288);(0,f.default)(r),r.Core=h.default,r.DefaultSettings=Z.default,r.EventManager=g.default,r._getListenersCounter=p.getListenersCounter,r.buildDate="12/10/2017 10:04:52",r.packageName="handsontable",r.version="0.34.5";r.hooks=m.default.getSingleton(),r.__GhostTable=w.default;var ee=[b,O,R,k,M,P,A,L,j,W,V,Y],te=[U,G];r.helper={},r.dom={},b.arrayEach(ee,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(r.helper[t]=e[t])})}),b.arrayEach(te,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(r.dom[t]=e[t])})}),r.cellTypes={},b.arrayEach((0,u.getRegisteredCellTypeNames)(),function(e){r.cellTypes[e]=(0,u.getCellType)(e)}),r.cellTypes.registerCellType=u.registerCellType,r.cellTypes.getCellType=u.getCellType,r.editors={},b.arrayEach((0,s.getRegisteredEditorNames)(),function(e){r.editors[V.toUpperCaseFirst(e)+"Editor"]=(0,s.getEditor)(e)}),r.editors.registerEditor=s.registerEditor,r.editors.getEditor=s.getEditor,r.renderers={},b.arrayEach((0,a.getRegisteredRendererNames)(),function(e){var t=(0,a.getRenderer)(e);"base"===e&&(r.renderers.cellDecorator=t),r.renderers[V.toUpperCaseFirst(e)+"Renderer"]=t}),r.renderers.registerRenderer=a.registerRenderer,r.renderers.getRenderer=a.getRenderer,r.validators={},b.arrayEach((0,l.getRegisteredValidatorNames)(),function(e){r.validators[V.toUpperCaseFirst(e)+"Validator"]=(0,l.getValidator)(e)}),r.validators.registerValidator=l.registerValidator,r.validators.getValidator=l.getValidator,r.plugins={},b.arrayEach(Object.getOwnPropertyNames(q),function(e){var t=q[e];"Base"===e?r.plugins[e+"Plugin"]=t:r.plugins[e]=t}),r.plugins.registerPlugin=$.registerPlugin,t.default=r},function(e,t,n){var o=n(17),i=n(16),r=n(37);e.exports=n(20)?Object.defineProperties:function(e,t){i(e);for(var n,s=r(t),a=s.length,l=0;a>l;)o.f(e,n=s[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(67),i=n(44),r=n(47),s={};n(29)(s,n(9)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(s,{next:i(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var o=n(24),i=n(39),r=n(69)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),o(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var o=n(14),i=n(102).set;e.exports=function(e,t,n){var r,s=t.constructor;return s!==n&&"function"==typeof s&&(r=s.prototype)!==n.prototype&&o(r)&&i&&i(e,r),e}},function(e,t,n){var o=n(301);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){var o=n(14),i=n(105),r=n(9)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),o(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var o=n(16),i=n(55),r=n(9)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||void 0==(n=o(s)[r])?t:i(n)}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(11),i=n(74).set,r=o.MutationObserver||o.WebKitMutationObserver,s=o.process,a=o.Promise,l="process"==n(38)(s);e.exports=function(){var e,t,n,u=function(){var o,i;for(l&&(o=s.domain)&&o.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(l)n=function(){s.nextTick(u)};else if(r){var c=!0,h=document.createTextNode("");new r(u).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}else if(a&&a.resolve){var d=a.resolve();n=function(){d.then(u)}}else n=function(){i.call(o,u)};return function(o){var i={fn:o,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(16),i=n(14),r=n(110);e.exports=function(e,t){if(o(e),i(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var o=n(11),i=n(45),r=n(58),s=n(112),a=n(17).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=r?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var o=n(37),i=n(61),r=n(49);e.exports=function(e){var t=o(e),n=i.f;if(n)for(var s,a=n(e),l=r.f,u=0;a.length>u;)l.call(e,s=a[u++])&&t.push(s);return t}},function(e,t,n){var o=n(25),i=n(75).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):i(o(e))}},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){var o=n(52),i=n(33);e.exports=function(e){return function(t,n){var r,s,a=i(t)+"",l=o(n),u=a.length;return 0>l||l>=u?e?"":void 0:(r=a.charCodeAt(l),55296>r||r>56319||l+1===u||56320>(s=a.charCodeAt(l+1))||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},function(e,t,n){"use strict";var o=n(16);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o=n(39),i=n(53),r=n(21);e.exports=[].copyWithin||function(e,t){var n=o(this),s=r(n.length),a=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?s:i(u,s))-l,s-a),h=1;for(a>l&&l+c>a&&(h=-1,l+=c-1,a+=c-1);c-- >0;)l in n?n[a]=n[l]:delete n[a],a+=h,l+=h;return n}},function(e,t,n){"use strict";var o=n(39),i=n(53),r=n(21);e.exports=function(e){for(var t=o(this),n=r(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>a;)t[a++]=e;return t}},function(e,t,n){var o=n(75),i=n(61),r=n(16),s=n(11).Reflect;e.exports=s&&s.ownKeys||function(e){var t=o.f(r(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),a=n(31),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(l.default.CLONE_DEBUG),n.clone.wtTable.holder.style.opacity=.4,n.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",(0,s.addClass)(n.clone.wtTable.holder.parentNode,"wtDebugVisible"),n}return r(t,e),t}(l.default);l.default.registerOverlay(l.default.CLONE_DEBUG,u),t.default=u},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){function o(e){return n(i(e))}function i(e){var t=r[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var r={"./af":160,"./af.js":160,"./ar":161,"./ar-dz":162,"./ar-dz.js":162,"./ar-kw":163,"./ar-kw.js":163,"./ar-ly":164,"./ar-ly.js":164,"./ar-ma":165,"./ar-ma.js":165,"./ar-sa":166,"./ar-sa.js":166,"./ar-tn":167,"./ar-tn.js":167,"./ar.js":161,"./az":168,"./az.js":168,"./be":169,"./be.js":169,"./bg":170,"./bg.js":170,"./bn":171,"./bn.js":171,"./bo":172,"./bo.js":172,"./br":173,"./br.js":173,"./bs":174,"./bs.js":174,"./ca":175,"./ca.js":175,"./cs":176,"./cs.js":176,"./cv":177,"./cv.js":177,"./cy":178,"./cy.js":178,"./da":179,"./da.js":179,"./de":180,"./de-at":181,"./de-at.js":181,"./de-ch":182,"./de-ch.js":182,"./de.js":180,"./dv":183,"./dv.js":183,"./el":184,"./el.js":184,"./en-au":185,"./en-au.js":185,"./en-ca":186,"./en-ca.js":186,"./en-gb":187,"./en-gb.js":187,"./en-ie":188,"./en-ie.js":188,"./en-nz":189,"./en-nz.js":189,"./eo":190,"./eo.js":190,"./es":191,"./es-do":192,"./es-do.js":192,"./es.js":191,"./et":193,"./et.js":193,"./eu":194,"./eu.js":194,"./fa":195,"./fa.js":195,"./fi":196,"./fi.js":196,"./fo":197,"./fo.js":197,"./fr":198,"./fr-ca":199,"./fr-ca.js":199,"./fr-ch":200,"./fr-ch.js":200,"./fr.js":198,"./fy":201,"./fy.js":201,"./gd":202,"./gd.js":202,"./gl":203,"./gl.js":203,"./gom-latn":204,"./gom-latn.js":204,"./he":205,"./he.js":205,"./hi":206,"./hi.js":206,"./hr":207,"./hr.js":207,"./hu":208,"./hu.js":208,"./hy-am":209,"./hy-am.js":209,"./id":210,"./id.js":210,"./is":211,"./is.js":211,"./it":212,"./it.js":212,"./ja":213,"./ja.js":213,"./jv":214,"./jv.js":214,"./ka":215,"./ka.js":215,"./kk":216,"./kk.js":216,"./km":217,"./km.js":217,"./kn":218,"./kn.js":218,"./ko":219,"./ko.js":219,"./ky":220,"./ky.js":220,"./lb":221,"./lb.js":221,"./lo":222,"./lo.js":222,"./lt":223,"./lt.js":223,"./lv":224,"./lv.js":224,"./me":225,"./me.js":225,"./mi":226,"./mi.js":226,"./mk":227,"./mk.js":227,"./ml":228,"./ml.js":228,"./mr":229,"./mr.js":229,"./ms":230,"./ms-my":231,"./ms-my.js":231,"./ms.js":230,"./my":232,"./my.js":232,"./nb":233,"./nb.js":233,"./ne":234,"./ne.js":234,"./nl":235,"./nl-be":236,"./nl-be.js":236,"./nl.js":235,"./nn":237,"./nn.js":237,"./pa-in":238,"./pa-in.js":238,"./pl":239,"./pl.js":239,"./pt":240,"./pt-br":241,"./pt-br.js":241,"./pt.js":240,"./ro":242,"./ro.js":242,"./ru":243,"./ru.js":243,"./sd":244,"./sd.js":244,"./se":245,"./se.js":245,"./si":246,"./si.js":246,"./sk":247,"./sk.js":247,"./sl":248,"./sl.js":248,"./sq":249,"./sq.js":249,"./sr":250,"./sr-cyrl":251,"./sr-cyrl.js":251,"./sr.js":250,"./ss":252,"./ss.js":252,"./sv":253,"./sv.js":253,"./sw":254,"./sw.js":254,"./ta":255,"./ta.js":255,"./te":256,"./te.js":256,"./tet":257,"./tet.js":257,"./th":258,"./th.js":258,"./tl-ph":259,"./tl-ph.js":259,"./tlh":260,"./tlh.js":260,"./tr":261,"./tr.js":261,"./tzl":262,"./tzl.js":262,"./tzm":263,"./tzm-latn":264,"./tzm-latn.js":264,"./tzm.js":263,"./uk":265,"./uk.js":265,"./ur":266,"./ur.js":266,"./uz":267,"./uz-latn":268,"./uz-latn.js":268,"./uz.js":267,"./vi":269,"./vi.js":269,"./x-pseudo":270,"./x-pseudo.js":270,"./yo":271,"./yo.js":271,"./zh-cn":272,"./zh-cn.js":272,"./zh-hk":273,"./zh-hk.js":273,"./zh-tw":274,"./zh-tw.js":274};o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=321},function(e,t,n){"use strict";function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,i.arrayReduce)(e,function(e,t,o){return e+t.replace(/(?:\r?\n\s+)/g,"")+(n[o]?n[o]:"")},"").trim()}t.__esModule=!0,t.toSingleLine=o;var i=n(2)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(31),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_LEFT),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),(0,a.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(o.left),r=Math.ceil(o.right),s=void 0,l=void 0;l=this.wot.wtTable.hider.style.top,l=""===l?0:l,s=0>i&&r-e.offsetWidth>0?-i:0,t=s,s+="px",(0,a.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo(e,(0,a.getWindowScrollTop)()):this.mainTableScrollableElement.scrollLeft=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,o=this.wot.wtSettings.defaultColumnWidth;t>e;)n+=this.wot.wtTable.getStretchedColumnWidth(e)||o,e++;return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientHeight===e.offsetHeight?0:(0,a.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,i=this.wot.getSetting("preventOverflow"),r=void 0;if(this.trimmingContainer!==window||"vertical"===i){var s=this.wot.wtViewport.getWorkspaceHeight()-t;s=Math.min(s,(0,a.innerHeight)(this.wot.wtTable.wtRootElement)),o.height=s+"px"}else o.height="";this.clone.wtTable.holder.style.height=o.height,r=(0,a.outerWidth)(this.clone.wtTable.TABLE),o.width=(0===r?r:r+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,a.getScrollbarWidth)();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.top="number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;t&&i.offsetWidth!==i.clientWidth&&(r=(0,a.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=r,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==window||(t=this.wot.wtTable.holderOffset.left),t}},{key:"getScrollPosition",value:function(){return(0,a.getScrollLeft)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,a.removeClass)(t,"emptyRows"):(0,a.addClass)(t,"emptyRows"),o&&!n.length)(0,a.addClass)(t,"innerBorderLeft");else if(!o&&n.length){var i=(0,a.hasClass)(t,"innerBorderLeft");e?(0,a.addClass)(t,"innerBorderLeft"):(0,a.removeClass)(t,"innerBorderLeft"),(!i&&e||i&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_LEFT,c),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(31),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_TOP),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),(0,a.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(o.top),r=Math.ceil(o.bottom),s=void 0,l=void 0;s=this.wot.wtTable.hider.style.left,s=""===s?0:s,l=0>i&&r-e.offsetHeight>0?-i:0,t=l,l+="px",(0,a.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo((0,a.getWindowScrollLeft)(),e):this.mainTableScrollableElement.scrollTop=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,o=this.wot.wtSettings.settings.defaultRowHeight;t>e;){var i=this.wot.wtTable.getRowHeight(e);n+=void 0===i?o:i,e++}return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientWidth===e.offsetWidth?0:(0,a.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,i=this.wot.getSetting("preventOverflow"),r=void 0;if(this.trimmingContainer!==window||"horizontal"===i){var s=this.wot.wtViewport.getWorkspaceWidth()-t;s=Math.min(s,(0,a.innerWidth)(this.wot.wtTable.wtRootElement)),o.width=s+"px"}else o.width="";this.clone.wtTable.holder.style.width=o.width,r=(0,a.outerHeight)(this.clone.wtTable.TABLE),o.height=(0===r?r:r+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,a.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.left="number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;if(t&&i.offsetHeight!==i.clientHeight&&(r=(0,a.getScrollbarWidth)()),t){var s=this.wot.getSetting("fixedRowsBottom"),l=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);n+=r,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,a.getScrollTop)(this.mainTableScrollableElement)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot);if(t){var n=e.getCorners();t.disappear(),t.appear(n)}}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this.wot.selections;this.redrawSelectionBorders(e.current),this.redrawSelectionBorders(e.area),this.redrawSelectionBorders(e.fill),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,a.removeClass)(t,"emptyColumns"):(0,a.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=(0,a.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,a.addClass)(t,"innerBorderTop"):(0,a.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var o=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(o)for(var i=0;o.length>i;i++)o[i].style["border-left-width"]=0}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_TOP,c),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(31),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_TOP_LEFT_CORNER),n}return r(t,e),s(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,a.outerHeight)(this.clone.wtTable.TABLE),n=(0,a.outerWidth)(this.clone.wtTable.TABLE),o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var i=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(i.top),s=Math.ceil(i.left),l=Math.ceil(i.bottom),u=Math.ceil(i.right),c="0",h="0";o&&"vertical"!==o||0>s&&u-e.offsetWidth>0&&(c=-s+"px"),o&&"horizontal"!==o||0>r&&l-e.offsetHeight>0&&(h=-r+"px"),(0,a.setOverlayPosition)(e,c,h)}else(0,a.resetCssTransform)(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_TOP_LEFT_CORNER,c),t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r="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},s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),l=n(282),u=o(l),c=n(50),h=o(c),d=n(80),f=o(d);t.default=function(){function e(t,n){i(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={}}return s(e,[{key:"getBorder",value:function(e){if(this.instanceBorders[e.guid])return this.instanceBorders[e.guid];this.instanceBorders[e.guid]=new u.default(e,this.settings)}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){this.isEmpty()?this.cellRange=new f.default(e,e,e):this.cellRange.expand(e)}},{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(){this.cellRange=null}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,o){var i=e.wtTable.getCell(new h.default(t,n));"object"===(void 0===i?"undefined":r(i))&&(0,a.addClass)(i,o)}},{key:"draw",value:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var n=e.wtTable.getRenderedRowsCount(),o=e.wtTable.getRenderedColumnsCount(),i=this.getCorners(),r=void 0,s=void 0,l=void 0,u=0;o>u;u++)if((s=e.wtTable.columnFilter.renderedToSource(u))>=i[1]&&i[3]>=s&&(l=e.wtTable.getColumnHeader(s))){var c=[];this.settings.highlightHeaderClassName&&c.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&c.push(this.settings.highlightColumnClassName),(0,a.addClass)(l,c)}for(var h=0;n>h;h++){if((r=e.wtTable.rowFilter.renderedToSource(h))>=i[0]&&i[2]>=r&&(l=e.wtTable.getRowHeader(r))){var d=[];this.settings.highlightHeaderClassName&&d.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&d.push(this.settings.highlightRowClassName),(0,a.addClass)(l,d)}for(var f=0;o>f;f++)s=e.wtTable.columnFilter.renderedToSource(f),i[0]>r||r>i[2]||i[1]>s||s>i[3]?i[0]>r||r>i[2]?i[1]>s||s>i[3]||this.settings.highlightColumnClassName&&this.addClassAtCoords(e,r,s,this.settings.highlightColumnClassName):this.settings.highlightRowClassName&&this.addClassAtCoords(e,r,s,this.settings.highlightRowClassName):this.settings.className&&this.addClassAtCoords(e,r,s,this.settings.className)}if(e.getSetting("onBeforeDrawBorders",i,this.settings.className),this.settings.border){var p=this.getBorder(e);p&&p.appear(i)}}}}]),e}()},function(e,t,n){"use strict";function o(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},o=document.body,i=document.createTextNode(""),r=document.createElement("SPAN"),s=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},l=function(s){var a,l;s?/^[a-zA-Z \.,\\\/\|0-9]$/.test(s)||(s="."):s="",void 0!==i.textContent?i.textContent=t.value+s:i.data=t.value+s,r.style.fontSize=e(t).fontSize,r.style.fontFamily=e(t).fontFamily,r.style.whiteSpace="pre",o.appendChild(r),a=r.clientWidth+2,o.removeChild(r),t.style.height=n.minHeight+"px",t.style.width=n.minWidth>a?n.minWidth+"px":a>n.maxWidth?n.maxWidth+"px":a+"px",l=t.scrollHeight?t.scrollHeight-1:0,n.minHeight>l?t.style.height=n.minHeight+"px":l>n.maxHeight?(t.style.height=n.maxHeight+"px",t.style.overflowY="visible"):t.style.height=l+"px"},u=function(){window.setTimeout(l,0)},c=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)n.minHeight=t.clientHeight;else{var o=parseInt(e.minHeight);isNaN(o)||(n.minHeight=o)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)n.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(n.maxHeight=s)}if(e&&e.minWidth)if("inherit"==e.minWidth)n.minWidth=t.clientWidth;else{var a=parseInt(e.minWidth);isNaN(a)||(n.minWidth=a)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}r.firstChild||(r.className="autoResize",r.style.display="inline-block",r.appendChild(i))},h=function(e,o,i){t=e,c(o),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=n.minHeight+"px",t.style.minWidth=n.minWidth+"px",t.style.maxWidth=n.maxWidth+"px",t.style.overflowY="hidden"),i&&(s(t,"change",l),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",l)),l()};return{init:function(e,t,n){h(e,t,n)},unObserve:function(){a(t,"change",l),a(t,"cut",u),a(t,"paste",u),a(t,"drop",u),a(t,"keydown",u),a(t,"focus",l)},resize:l}}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(42),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"beginEditing",value:function(e,t){if(void 0===t){var n=this.TD.querySelector('input[type="checkbox"]');(0,u.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}(l.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(35),c=o(u),h=n(330),d=o(h);n(331);var f=n(0),p=n(1),g=n(4),v=o(g),m=n(18),y=n(10),w=n(51),C=o(w);t.default=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}return s(t,e),a(t,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw Error("You need to include Pikaday to your project.");l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,f.addClass)(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new d.default(this.getDatePickerConfig()),new v.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,y.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){this.$datePicker.destroy()}},{key:"prepare",value:function(e,n,o,i,r,s){this._opened=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,i,r,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){e.instance.selection.refreshBorders()},0)),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var o=this.originalValue;void 0!==o&&this.setValue(o)}this.hideDatepicker(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t=this.TD.getBoundingClientRect(),n=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),i=void 0,r=this.instance.view.isMouseDown(),s=!!e&&(0,m.isMetaKey)(e.keyCode);this.datePickerStyle.top=window.pageYOffset+t.top+(0,f.outerHeight)(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+t.left+"px",this.$datePicker._onInputFocus=function(){},o.format=n,this.originalValue?(i=this.originalValue,(0,c.default)(i,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(i,n),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||r||this.setValue("")):this.cellProperties.defaultDate?(i=this.cellProperties.defaultDate,o.defaultDate=i,(0,c.default)(i,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(i,n),!0),s||r||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,p.deepExtend)(n,this.cellProperties.datePickerConfig);var o=n.onSelect,i=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.onSelect=function(t){isNaN(t.getTime())||(t=(0,c.default)(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),o&&o()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),i&&i()},n}}]),t}(C.default)},function(e,t,n){/*!
|
37
37
|
* Pikaday
|
38
38
|
*
|
39
39
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
|
40
40
|
*/
|
41
|
-
!function(t,o){"use strict";var i;try{i=n(399)}catch(e){}e.exports=o(i)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,i=window.setTimeout,r=function(e,t,o,i){n?e.addEventListener(t,o,!!i):e.attachEvent("on"+t,o)},s=function(e,t,o,i){n?e.removeEventListener(t,o,!!i):e.detachEvent("on"+t,o)},a=function(e,t,n){var i;o.createEvent?(i=o.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=w(i,n),e.dispatchEvent(i)):o.createEventObject&&(i=o.createEventObject(),i=w(i,n),e.fireEvent("on"+t,i))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},h=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},g=function(e){return e%4==0&&e%100!=0||e%400==0},m=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},v=function(e){f(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},w=function(e,t,n){var o,i;for(o in t)i=void 0!==e[o],i&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?f(t[o])?n&&(e[o]=new Date(t[o].getTime())):d(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=w({},t[o],n):!n&&i||(e[o]=t[o]);return e},C=function(e){return 0>e.month&&(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},b={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},S=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},k=function(e,t,n){var o=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7)+"</td>"},O=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},R=function(e){return"<tbody>"+e.join("")+"</tbody>"},E=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;7>t;t++)n.push('<th scope="col"><abbr title="'+_(e,t)+'">'+_(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},T=function(e,t,n,o,i,r){var s,a,l,u,c,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],s=0;12>s;s++)l.push('<option value="'+(n===i?s-t:12+s-t)+'"'+(s===o?' selected="selected"':"")+(f&&h.minMonth>s||p&&s>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[s]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(s=h.yearRange[0],a=h.yearRange[1]+1):(s=n-h.yearRange,a=1+n+h.yearRange),l=[];a>s&&h.maxYear>=s;s++)h.minYear>s||l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",g+=h.showMonthAfterYear?c+u:u+c,!f||0!==o&&o>h.minMonth||(m=!1),!p||11!==o&&h.maxMonth>o||(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>"},M=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+E(e)+R(t)+"</table>"},D=function(s){var a=this,l=a.config(s);a._onMouseDown=function(e){if(a._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?a.prevMonth():u(t,"pika-next")&&a.nextMonth():(a.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&i(function(){a.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))a._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},a._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?a.gotoMonth(t.value):u(t,"pika-select-year")&&a.gotoYear(t.value))},a._onKeyChange=function(e){if(e=e||window.event,a.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var o;n.firedBy!==a&&(t?(o=e(l.field.value,l.format,l.formatStrict),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),f(o)&&a.setDate(o),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var e=o.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);a._c||(a._b=i(function(){a.hide()},50)),a._c=!1},a._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,o=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",a._onChange)));do{if(u(o,"pika-single")||o===l.trigger)return}while(o=o.parentNode);a._v&&t!==l.trigger&&o!==l.trigger&&a.hide()}},a.el=o.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(a.el,"mousedown",a._onMouseDown,!0),r(a.el,"touchend",a._onMouseDown,!0),r(a.el,"change",a._onChange),r(o,"keydown",a._onKeyChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?o.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),r(l.field,"change",a._onInputChange),l.defaultDate||(l.defaultDate=t&&l.field.value?e(l.field.value,l.format).toDate():new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",r(l.trigger,"click",a._onInputClick),r(l.trigger,"focus",a._onInputFocus),r(l.trigger,"blur",a._onInputBlur)):this.show()};return D.prototype={config:function(e){this._o||(this._o=w({},b,!0));var t=w(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,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.minDate>t.maxDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else(t.yearRange=Math.abs(parseInt(t.yearRange,10))||b.yearRange)>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",a(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,o=this._o.maxDate;f(n)&&n>e?e=n:f(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),v(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=""+this,a(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=i<n.getTime()||o.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,o){var i,r=this.getDate(),s=24*parseInt(o)*60*60*1e3;"add"===n?i=new Date(r.valueOf()+s):"subtract"===n&&(i=new Date(r.valueOf()-s)),t&&("add"===n?i=e(r).add(o,"days").toDate():"subtract"===n&&(i=e(r).subtract(o,"days").toDate())),this.setDate(i)},adjustCalendars:function(){this.calendars[0]=C(this.calendars[0]);for(var e=1;this._o.numberOfMonths>e;e++)this.calendars[e]=C({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?(v(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=b.minDate,this._o.minYear=b.minYear,this._o.minMonth=b.minMonth,this._o.startRange=b.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(v(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=b.maxDate,this._o.maxYear=b.maxYear,this._o.maxMonth=b.maxMonth,this._o.endRange=b.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,r=n.maxYear,s=n.minMonth,a=n.maxMonth,l="";this._y>o||(this._y=o,!isNaN(s)&&s>this._m&&(this._m=s)),r>this._y||(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;n.numberOfMonths>u;u++)l+='<div class="pika-lendar">'+T(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&&i(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,i,r,s,a,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,i=this.el.offsetHeight,r=window.innerWidth||o.documentElement.clientWidth,s=window.innerHeight||o.documentElement.clientHeight,a=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+i>s+a||this._o.position.indexOf("top")>-1&&u-i-e.offsetHeight>0)&&(u=u-i-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var o=this._o,i=new Date,r=m(e,t),s=new Date(e,t,1).getDay(),a=[],l=[];v(i),o.firstDay>0&&0>(s-=o.firstDay)&&(s+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,h=0===t?e-1:e,d=11===t?e+1:e,g=m(h,u),w=r+s,C=w;C>7;)C-=7;w+=7-C;for(var b=0,_=0;w>b;b++){var R=new Date(e,t,b-s+1),E=!!f(this._d)&&y(R,this._d),T=y(R,i),D=s>b||b>=r+s,P=b-s+1,H=t,x=e,A=o.startRange&&y(o.startRange,R),L=o.endRange&&y(o.endRange,R),N=o.startRange&&o.endRange&&R>o.startRange&&o.endRange>R,j=o.minDate&&o.minDate>R||o.maxDate&&R>o.maxDate||o.disableWeekends&&p(R)||o.disableDayFn&&o.disableDayFn(R);D&&(s>b?(P=g+P,H=u,x=h):(P-=r,H=c,x=d));l.push(S({day:P,month:H,year:x,isSelected:E,isToday:T,isDisabled:j,isEmpty:D,isStartRange:A,isEndRange:L,isInRange:N,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths})),7==++_&&(o.showWeekNumber&&l.unshift(k(b-s,t,e)),a.push(O(l,o.isRTL)),l=[],_=0)}return M(o,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(h(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(o,"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&&s(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D})}])});
|
41
|
+
!function(t,o){"use strict";var i;try{i=n(35)}catch(e){}e.exports=o(i)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,i=window.setTimeout,r=function(e,t,o,i){n?e.addEventListener(t,o,!!i):e.attachEvent("on"+t,o)},s=function(e,t,o,i){n?e.removeEventListener(t,o,!!i):e.detachEvent("on"+t,o)},a=function(e,t,n){var i;o.createEvent?(i=o.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=w(i,n),e.dispatchEvent(i)):o.createEventObject&&(i=o.createEventObject(),i=w(i,n),e.fireEvent("on"+t,i))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},h=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},g=function(e){return e%4==0&&e%100!=0||e%400==0},v=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},m=function(e){f(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},w=function(e,t,n){var o,i;for(o in t)i=void 0!==e[o],i&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?f(t[o])?n&&(e[o]=new Date(t[o].getTime())):d(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=w({},t[o],n):!n&&i||(e[o]=t[o]);return e},C=function(e){return 0>e.month&&(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},b={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},S=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},O=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},_=function(e,t,n){var o=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7)+"</td>"},R=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},E=function(e){return"<tbody>"+e.join("")+"</tbody>"},k=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;7>t;t++)n.push('<th scope="col"><abbr title="'+S(e,t)+'">'+S(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},T=function(e,t,n,o,i,r){var s,a,l,u,c,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',v=!0,m=!0;for(l=[],s=0;12>s;s++)l.push('<option value="'+(n===i?s-t:12+s-t)+'"'+(s===o?' selected="selected"':"")+(f&&h.minMonth>s||p&&s>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[s]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(s=h.yearRange[0],a=h.yearRange[1]+1):(s=n-h.yearRange,a=1+n+h.yearRange),l=[];a>s&&h.maxYear>=s;s++)h.minYear>s||l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",g+=h.showMonthAfterYear?c+u:u+c,!f||0!==o&&o>h.minMonth||(v=!1),!p||11!==o&&h.maxMonth>o||(m=!1),0===t&&(g+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+="</div>"},M=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+k(e)+E(t)+"</table>"},H=function(s){var a=this,l=a.config(s);a._onMouseDown=function(e){if(a._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?a.prevMonth():u(t,"pika-next")&&a.nextMonth():(a.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&i(function(){a.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))a._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},a._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?a.gotoMonth(t.value):u(t,"pika-select-year")&&a.gotoYear(t.value))},a._onKeyChange=function(e){if(e=e||window.event,a.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var o;n.firedBy!==a&&(t?(o=e(l.field.value,l.format,l.formatStrict),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),f(o)&&a.setDate(o),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var e=o.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);a._c||(a._b=i(function(){a.hide()},50)),a._c=!1},a._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,o=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",a._onChange)));do{if(u(o,"pika-single")||o===l.trigger)return}while(o=o.parentNode);a._v&&t!==l.trigger&&o!==l.trigger&&a.hide()}},a.el=o.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(a.el,"mousedown",a._onMouseDown,!0),r(a.el,"touchend",a._onMouseDown,!0),r(a.el,"change",a._onChange),r(o,"keydown",a._onKeyChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?o.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),r(l.field,"change",a._onInputChange),l.defaultDate||(l.defaultDate=t&&l.field.value?e(l.field.value,l.format).toDate():new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",r(l.trigger,"click",a._onInputClick),r(l.trigger,"focus",a._onInputFocus),r(l.trigger,"blur",a._onInputBlur)):this.show()};return H.prototype={config:function(e){this._o||(this._o=w({},b,!0));var t=w(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,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.minDate>t.maxDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else(t.yearRange=Math.abs(parseInt(t.yearRange,10))||b.yearRange)>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",a(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,o=this._o.maxDate;f(n)&&n>e?e=n:f(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=""+this,a(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=i<n.getTime()||o.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,o){var i,r=this.getDate(),s=24*parseInt(o)*60*60*1e3;"add"===n?i=new Date(r.valueOf()+s):"subtract"===n&&(i=new Date(r.valueOf()-s)),t&&("add"===n?i=e(r).add(o,"days").toDate():"subtract"===n&&(i=e(r).subtract(o,"days").toDate())),this.setDate(i)},adjustCalendars:function(){this.calendars[0]=C(this.calendars[0]);for(var e=1;this._o.numberOfMonths>e;e++)this.calendars[e]=C({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?(m(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=b.minDate,this._o.minYear=b.minYear,this._o.minMonth=b.minMonth,this._o.startRange=b.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(m(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=b.maxDate,this._o.maxYear=b.maxYear,this._o.maxMonth=b.maxMonth,this._o.endRange=b.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,r=n.maxYear,s=n.minMonth,a=n.maxMonth,l="";this._y>o||(this._y=o,!isNaN(s)&&s>this._m&&(this._m=s)),r>this._y||(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;n.numberOfMonths>u;u++)l+='<div class="pika-lendar">'+T(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&&i(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,i,r,s,a,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,i=this.el.offsetHeight,r=window.innerWidth||o.documentElement.clientWidth,s=window.innerHeight||o.documentElement.clientHeight,a=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+i>s+a||this._o.position.indexOf("top")>-1&&u-i-e.offsetHeight>0)&&(u=u-i-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var o=this._o,i=new Date,r=v(e,t),s=new Date(e,t,1).getDay(),a=[],l=[];m(i),o.firstDay>0&&0>(s-=o.firstDay)&&(s+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,h=0===t?e-1:e,d=11===t?e+1:e,g=v(h,u),w=r+s,C=w;C>7;)C-=7;w+=7-C;for(var b=0,S=0;w>b;b++){var E=new Date(e,t,b-s+1),k=!!f(this._d)&&y(E,this._d),T=y(E,i),H=s>b||b>=r+s,P=b-s+1,D=t,A=e,x=o.startRange&&y(o.startRange,E),L=o.endRange&&y(o.endRange,E),N=o.startRange&&o.endRange&&E>o.startRange&&o.endRange>E,j=o.minDate&&o.minDate>E||o.maxDate&&E>o.maxDate||o.disableWeekends&&p(E)||o.disableDayFn&&o.disableDayFn(E);H&&(s>b?(P=g+P,D=u,A=h):(P-=r,D=c,A=d));l.push(O({day:P,month:D,year:A,isSelected:k,isToday:T,isDisabled:j,isEmpty:H,isStartRange:x,isEndRange:L,isInRange:N,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths})),7==++S&&(o.showWeekNumber&&l.unshift(_(b-s,t,e)),a.push(R(l,o.isRTL)),l=[],S=0)}return M(o,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(h(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(o,"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&&s(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},H})},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(283),c=o(u),h=n(7),d=o(h),f=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),a(t,[{key:"prepare",value:function(e,n,o,i,r,s){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,i,r,s),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),t}(c.default);d.default.getSingleton().add("beforeValidate",function(e,t,n,o){var i=this.getCellMeta(t,this.propToCol(n));i.editor===f&&void 0===i.strict&&(i.filter=!1,i.strict=!0)}),t.default=f},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(18),r=n(10),s=n(0),a=n(42),l=o(a),u=n(4),c=o(u),h=l.default.prototype.extend(),d={},f=function(){this.controls={},this.controls.leftButton=document.createElement("DIV"),this.controls.leftButton.className="leftButton",this.controls.rightButton=document.createElement("DIV"),this.controls.rightButton.className="rightButton",this.controls.upButton=document.createElement("DIV"),this.controls.upButton.className="upButton",this.controls.downButton=document.createElement("DIV"),this.controls.downButton.className="downButton";for(var e in this.controls)Object.prototype.hasOwnProperty.call(this.controls,e)&&this.positionControls.appendChild(this.controls[e])};h.prototype.valueChanged=function(){return this.initValue!=this.getValue()},h.prototype.init=function(){var e=this;this.eventManager=new c.default(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},h.prototype.getValue=function(){return this.TEXTAREA.value},h.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},h.prototype.createElements=function(){this.editorContainer=document.createElement("DIV"),this.editorContainer.className="htMobileEditorContainer",this.cellPointer=document.createElement("DIV"),this.cellPointer.className="cellPointer",this.moveHandle=document.createElement("DIV"),this.moveHandle.className="moveHandle",this.inputPane=document.createElement("DIV"),this.inputPane.className="inputs",this.positionControls=document.createElement("DIV"),this.positionControls.className="positionControls",this.TEXTAREA=document.createElement("TEXTAREA"),(0,s.addClass)(this.TEXTAREA,"handsontableInput"),this.inputPane.appendChild(this.TEXTAREA),this.editorContainer.appendChild(this.cellPointer),this.editorContainer.appendChild(this.moveHandle),this.editorContainer.appendChild(this.inputPane),this.editorContainer.appendChild(this.positionControls),f.call(this),document.body.appendChild(this.editorContainer)},h.prototype.onBeforeKeyDown=function(e){var t=this,n=t.getActiveEditor();if(e.target===n.TEXTAREA&&!(0,r.isImmediatePropagationStopped)(e))switch(e.keyCode){case i.KEY_CODES.ENTER:n.close(),e.preventDefault();break;case i.KEY_CODES.BACKSPACE:(0,r.stopImmediatePropagation)(e)}},h.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),(0,s.addClass)(this.editorContainer,"active"),(0,s.removeClass)(this.cellPointer,"hidden"),this.updateEditorPosition()},h.prototype.focus=function(){this.TEXTAREA.focus(),(0,s.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},h.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),(0,s.removeClass)(this.editorContainer,"active")},h.prototype.scrollToView=function(){this.instance.view.scrollViewport(this.instance.getSelectedRange().highlight)},h.prototype.hideCellPointer=function(){(0,s.hasClass)(this.cellPointer,"hidden")||(0,s.addClass)(this.cellPointer,"hidden")},h.prototype.updateEditorPosition=function(e,t){if(e&&t)e=parseInt(e,10),t=parseInt(t,10),this.editorContainer.style.top=t+"px",this.editorContainer.style.left=e+"px";else{var n=this.instance.getSelected(),o=this.instance.getCell(n[0],n[1]);if(d.cellPointer||(d.cellPointer={height:(0,s.outerHeight)(this.cellPointer),width:(0,s.outerWidth)(this.cellPointer)}),d.editorContainer||(d.editorContainer={width:(0,s.outerWidth)(this.editorContainer)}),void 0!==o){var i=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:(0,s.getScrollLeft)(this.instance.view.wt.wtOverlays.leftOverlay.holder),r=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:(0,s.getScrollTop)(this.instance.view.wt.wtOverlays.topOverlay.holder),a=(0,s.offset)(o),l=(0,s.outerWidth)(o),u={x:i,y:r};this.editorContainer.style.top=parseInt(a.top+(0,s.outerHeight)(o)-u.y+d.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-d.editorContainer.width/2,10)+"px",a.left+l/2>parseInt(this.editorContainer.style.left,10)+d.editorContainer.width?this.editorContainer.style.left=window.innerWidth-d.editorContainer.width+"px":a.left+l/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(a.left-d.cellPointer.width/2-(0,s.offset)(this.editorContainer).left+l/2-u.x,10)+"px"}}},h.prototype.updateEditorData=function(){var e=this.instance.getSelected(),t=this.instance.getDataAtCell(e[0],e[1]);this.row=e[0],this.col=e[1],this.setValue(t),this.updateEditorPosition()},h.prototype.prepareAndSave=function(){var e;this.valueChanged()&&(e=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],this.saveValue(e))},h.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,-1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(-1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(t){if(1==t.touches.length){var n=t.touches[0],o={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},i={x:n.pageX-o.x,y:n.pageY-o.y};e.eventManager.addEventListener(this,"touchmove",function(t){var n=t.touches[0];e.updateEditorPosition(n.pageX-i.x,n.pageY-i.y),e.hideCellPointer(),t.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(t){(0,s.isChildOf)(t.target,e.editorContainer)||(0,s.isChildOf)(t.target,e.instance.rootElement)||e.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&e.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&e.hideCellPointer()})},h.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},t.default=h},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(64),c=o(u),h=n(51),d=o(h);t.default=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),a(t,[{key:"beginEditing",value:function(e){if(void 0===e&&this.originalValue){void 0!==this.cellProperties.language&&c.default.culture(this.cellProperties.language);e=(""+this.originalValue).replace(".",c.default.cultureData().delimiters.decimal)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"beginEditing",this).call(this,e)}}]),t}(d.default)},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(0),u=n(51),c=function(e){return e&&e.__esModule?e:{default:e}}(u);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"createElements",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}(c.default)},function(e,t,n){"use strict";t.__esModule=!0;var o="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},i=n(0),r=n(10),s=n(18),a=n(42),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=l.default.prototype.extend();u.prototype.init=function(){this.select=document.createElement("SELECT"),(0,i.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},u.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},u.prototype.prepare=function(){l.default.prototype.prepare.apply(this,arguments);var e,t=this.cellProperties.selectOptions;e=this.prepareOptions("function"==typeof t?t(this.row,this.col,this.prop):t),(0,i.empty)(this.select);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=document.createElement("OPTION");o.value=n,(0,i.fastInnerHTML)(o,e[n]),this.select.appendChild(o)}},u.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,i=e.length;i>n;n++)t[e[n]]=e[n];else"object"==(void 0===e?"undefined":o(e))&&(t=e);return t},u.prototype.getValue=function(){return this.select.value},u.prototype.setValue=function(e){this.select.value=e};var c=function(e){var t=this,n=t.getActiveEditor();switch(e.keyCode){case s.KEY_CODES.ARROW_UP:var o=n.select.selectedIndex-1;0>o||(n.select[o].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault();break;case s.KEY_CODES.ARROW_DOWN:var i=n.select.selectedIndex+1;i>n.select.length-1||(n.select[i].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault()}};u.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",c)},u.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",c)},u.prototype.focus=function(){this.select.focus()},u.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},u.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close();var e,t=(0,i.outerWidth)(this.TD)+1,n=(0,i.outerHeight)(this.TD)+1,o=(0,i.offset)(this.TD),r=(0,i.offset)(this.instance.rootElement),s=(0,i.getScrollableElement)(this.TD),l=o.top-r.top-1-(s.scrollTop||0),u=o.left-r.left-1-(s.scrollLeft||0),c=this.checkEditorSection();this.instance.getSettings();switch(c){case"top":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1);var h=this.select.style;e&&-1!=e?h[e[0]]=e[1]:(0,i.resetCssTransform)(this.select);var d=(0,i.getComputedStyle)(this.TD);parseInt(d.borderTopWidth,10)>0&&(n-=1),parseInt(d.borderLeftWidth,10)>0&&(t-=1),h.height=n+"px",h.minWidth=t+"px",h.top=l+"px",h.left=u+"px",h.margin="0px"}},u.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!=e&&-2!=e?e:void 0},t.default=u},function(e,t,n){"use strict";function o(e,t,n,o,r,s,a){a.className&&(t.className=t.className?t.className+" "+a.className:a.className),a.readOnly&&(0,i.addClass)(t,a.readOnlyCellClassName),!1===a.valid&&a.invalidCellClassName?(0,i.addClass)(t,a.invalidCellClassName):(0,i.removeClass)(t,a.invalidCellClassName),!1===a.wordWrap&&a.noWordWrapClassName&&(0,i.addClass)(t,a.noWordWrapClassName),!s&&a.placeholder&&(0,i.addClass)(t,a.placeholderCellClassName)}t.__esModule=!0;var i=n(0);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,r,h,d){var f=(u.cloneNode(!0),c.cloneNode(!0));if(d.allowHtml?(0,l.getRenderer)("html").apply(this,arguments):(0,l.getRenderer)("text").apply(this,arguments),t.appendChild(f),(0,i.addClass)(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var p=new s.default(e);e.acArrowListener=function(r){(0,i.hasClass)(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new a.CellCoords(n,o),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){p.destroy()})}}t.__esModule=!0;var i=n(0),r=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(12),l=n(8),u=document.createElement("DIV");u.className="htAutocompleteWrapper";var c=document.createElement("DIV");c.className="htAutocompleteArrow",c.appendChild(document.createTextNode(String.fromCharCode(9660)));t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){function c(e){var t=(0,v.partial)(g.isKey,e.keyCode);t("SPACE|ENTER|DELETE|BACKSPACE")&&!(0,m.isImmediatePropagationStopped)(e)&&p(function(){(0,m.stopImmediatePropagation)(e),e.preventDefault()}),t("SPACE|ENTER")&&f(),t("DELETE|BACKSPACE")&&f(!0)}function f(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n){for(var o=n.getTopLeftCorner(),i=n.getBottomRightCorner(),r=[],s=o.row;i.row>=s;s+=1)for(var a=o.col;i.col>=a;a+=1){var l=e.getCellMeta(s,a);if("checkbox"!==l.type)return;if(!0!==l.readOnly){void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);var u=e.getDataAtCell(s,a);!1===t?u===l.checkedTemplate?r.push([s,a,l.uncheckedTemplate]):-1!==[l.uncheckedTemplate,null,void 0].indexOf(u)&&r.push([s,a,l.checkedTemplate]):r.push([s,a,l.uncheckedTemplate])}}r.length>0&&e.setDataAtCell(r)}}function p(t){var n=e.getSelectedRange();if(n)for(var o=n.getTopLeftCorner(),i=n.getBottomRightCorner(),r=o.row;i.row>=r;r++)for(var s=o.col;i.col>=s;s++){var a=e.getCellMeta(r,s);if("checkbox"!==a.type)return;var l=e.getCell(r,s);if(null==l)t(r,s,a);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!a.readOnly&&t(u)}}}(0,y.getRenderer)("base").apply(this,arguments);var C=(i(e),r()),S=u.label,O=!1;if(void 0===u.checkedTemplate&&(u.checkedTemplate=!0),void 0===u.uncheckedTemplate&&(u.uncheckedTemplate=!1),(0,h.empty)(t),l===u.checkedTemplate||(0,d.equalsIgnoreCase)(l,u.checkedTemplate)?C.checked=!0:l===u.uncheckedTemplate||(0,d.equalsIgnoreCase)(l,u.uncheckedTemplate)?C.checked=!1:null===l?(0,h.addClass)(C,"noValue"):(C.style.display="none",(0,h.addClass)(C,b),O=!0),C.setAttribute("data-row",n),C.setAttribute("data-col",o),!O&&S){var _="";S.value?_="function"==typeof S.value?S.value.call(this,n,o,a,l):S.value:S.property&&(_=e.getDataAtRowProp(n,S.property));var R=s(_);"before"===S.position?R.appendChild(C):R.insertBefore(C,R.firstChild),C=R}t.appendChild(C),O&&t.appendChild(document.createTextNode("#bad-value#")),w.has(e)||(w.set(e,!0),e.addHook("beforeKeyDown",c))}function i(e){var t=C.get(e);return t||(t=new p.default(e),t.addEventListener(e.rootElement,"click",function(t){return l(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return a(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return u(t,e)}),C.set(e,t)),t}function r(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}function s(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function a(e,t){c(e.target)&&setTimeout(t.listen,10)}function l(e,t){if(!c(e.target))return!1;t.getCellMeta(parseInt(e.target.getAttribute("data-row"),10),parseInt(e.target.getAttribute("data-col"),10)).readOnly&&e.preventDefault()}function u(e,t){if(!c(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),i=t.getCellMeta(n,o);if(!i.readOnly){var r=null;r=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(n,o,r)}}function c(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.__esModule=!0;var h=n(0),d=n(32),f=n(4),p=function(e){return e&&e.__esModule?e:{default:e}}(f),g=n(18),v=n(36),m=n(10),y=n(8),w=new WeakMap,C=new WeakMap,b="htBadValue";t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,s,a,l){(0,r.getRenderer)("base").apply(this,arguments),null!==a&&void 0!==a||(a=""),(0,i.fastInnerHTML)(t,a)}t.__esModule=!0;var i=n(0),r=n(8);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,i,l,u){if((0,a.isNumeric)(l)){void 0!==u.language&&r.default.culture(u.language),l=(0,r.default)(l).format(u.format||"0");var c=u.className||"",h=c.length?c.split(" "):[];0>h.indexOf("htLeft")&&0>h.indexOf("htCenter")&&0>h.indexOf("htRight")&&0>h.indexOf("htJustify")&&h.push("htRight"),0>h.indexOf("htNumeric")&&h.push("htNumeric"),u.className=h.join(" ")}(0,s.getRenderer)("text")(e,t,n,o,i,l,u)}t.__esModule=!0;var i=n(64),r=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(8),a=n(6);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){(0,r.getRenderer)("text").apply(this,arguments),l=t.innerHTML;var c=u.hashLength||l.length,h=u.hashSymbol||"*",d="";(0,s.rangeEach)(c-1,function(){d+=h}),(0,i.fastInnerHTML)(t,d)}t.__esModule=!0;var i=n(0),r=n(8),s=n(6);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){(0,s.getRenderer)("base").apply(this,arguments),!l&&u.placeholder&&(l=u.placeholder);var c=(0,r.stringify)(l);if(e.getSettings().trimWhitespace||(c=c.replace(/ /g,String.fromCharCode(160))),u.rendererTemplate){(0,i.empty)(t);var h=document.createElement("TEMPLATE");h.setAttribute("bind","{{}}"),h.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(h),h.model=e.getSourceDataAtRow(n),t.appendChild(h)}else(0,i.fastInnerText)(t,c)}t.__esModule=!0;var i=n(0),r=n(22),s=n(8);t.default=o},function(e,t,n){"use strict";function o(e,t){if(null==e&&(e=""),this.allowEmpty&&""===e)return void t(!0);this.strict&&this.source?"function"==typeof this.source?this.source(e,i(e,t)):i(e,t)(this.source):t(!0)}function i(e,t){var n=e;return function(e){for(var o=!1,i=0,r=e.length;r>i;i++)if(n===e[i]){o=!0;break}t(o)}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=!0,o=(0,l.getEditorInstance)("date",this.instance);null==e&&(e="");var r=(0,s.default)(new Date(e)).isValid()||(0,s.default)(e,o.defaultDateFormat).isValid(),a=(0,s.default)(e,this.dateFormat||o.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(r=!0,a=!0),r||(n=!1),!r&&a&&(n=!0),r&&!a)if(!0===this.correctFormat){var u=i(e,this.dateFormat),c=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(c,h,u,"dateValidator"),n=!0}else n=!1;t(n)}function i(e,t){var n=(0,s.default)((0,a.getNormalizedDate)(e)),o=(0,s.default)(e,t),i=e.search(/[A-z]/g)>-1,r=void 0;return r=n.isValid()&&n.format("x")===o.format("x")||!o.isValid()||i?n:o,r.format(t)}t.__esModule=!0,t.default=o,t.correctFormat=i;var r=n(35),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(285),l=n(15)},function(e,t,n){"use strict";function o(e,t){null==e&&(e=""),t(this.allowEmpty&&""===e?!0:""===e?!1:/^-?\d*(\.|,)?\d*$/.test(e))}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=!0,o=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var i=/^\d{1,2}$/.test(e);i&&(e+=":00");var a=(0,r.default)(e,s,!0).isValid()?(0,r.default)(e):(0,r.default)(e,o),l=a.isValid(),u=(0,r.default)(e,o,!0).isValid()&&!i;if(this.allowEmpty&&""===e&&(l=!0,u=!0),l||(n=!1),!l&&u&&(n=!0),l&&!u)if(!0===this.correctFormat){var c=a.format(o),h=this.instance.runHooks("unmodifyRow",this.row),d=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(h,d,c,"timeValidator"),n=!0}else n=!1;t(n)}t.__esModule=!0,t.default=o;var i=n(35),r=function(e){return e&&e.__esModule?e:{default:e}}(i),s=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8),r=n(27);t.default={editor:(0,o.getEditor)("autocomplete"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8);t.default={editor:(0,o.getEditor)("checkbox"),renderer:(0,i.getRenderer)("checkbox")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8),r=n(27);t.default={editor:(0,o.getEditor)("date"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("date")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8),r=n(27);t.default={editor:(0,o.getEditor)("dropdown"),renderer:(0,i.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8);t.default={editor:(0,o.getEditor)("handsontable"),renderer:(0,i.getRenderer)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8),r=n(27);t.default={editor:(0,o.getEditor)("numeric"),renderer:(0,i.getRenderer)("numeric"),validator:(0,r.getValidator)("numeric"),dataType:"number"}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8);n(27);t.default={editor:(0,o.getEditor)("password"),renderer:(0,i.getRenderer)("password"),copyable:!1}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(26),i=n(15),r=n(8);t.default={editor:(0,i.getEditor)((0,o.isMobileBrowser)()?"mobile":"text"),renderer:(0,r.getRenderer)("text")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(15),i=n(8),r=n(27);t.default={editor:(0,o.getEditor)("text"),renderer:(0,i.getRenderer)("text"),validator:(0,r.getValidator)("time")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource&&this.dataSource[0]?this.recursiveDuckSchema(this.dataSource[0]):{},this.createMap(),this.interval=f.default.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}t.__esModule=!0;var r="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},s=n(286),a=o(s),l=n(84),u=n(83),c=n(1),h=n(2),d=n(359),f=o(d),p=n(6),g=n(360),v=o(g),m=n(7);o(m);i.prototype.DESTINATION_RENDERER=1,i.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,i.prototype.recursiveDuckSchema=function(e){return(0,c.duckSchema)(e)},i.prototype.recursiveDuckColumns=function(e,t,n){var o,i;if(void 0===t&&(t=0,n=""),"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e))for(i in e)(0,c.hasOwnProperty)(e,i)&&(null===e[i]?(o=n+i,this.colToPropCache.push(o),this.propToColCache.set(o,t),t++):t=this.recursiveDuckColumns(e[i],t,i+"."));return t},i.prototype.createMap=function(){var e=void 0,t=this.getSchema();if(void 0===t)throw Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new v.default;var n=this.instance.getSettings().columns;if(n){var o=this.instance.getSettings().maxCols,i=Math.min(o,n.length),r=0,s=!1,a=(0,c.deepObjectSize)(t);for("function"==typeof n&&(i=a>0?a:this.instance.countSourceCols(),s=!0),e=0;i>e;e++){var l=s?n(e):n[e];if((0,c.isObject)(l)){if(void 0!==l.data){var u=s?r:e;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}r++}}}else this.recursiveDuckColumns(t)},i.prototype.colToProp=function(e){return e=this.instance.runHooks("modifyCol",e),!isNaN(e)&&this.colToPropCache&&void 0!==this.colToPropCache[e]?this.colToPropCache[e]:e},i.prototype.propToCol=function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),t=this.instance.runHooks("unmodifyCol",t)},i.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},i.prototype.createRow=function(e,t,n){var o,i,r=this.instance.countCols(),s=0;t||(t=1),"number"==typeof e&&e<this.instance.countSourceRows()||(e=this.instance.countSourceRows()),this.instance.runHooks("beforeCreateRow",e,t,n),i=e;for(var a=this.instance.getSettings().maxRows;t>s&&this.instance.countSourceRows()<a;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?o=(0,c.deepClone)(this.getSchema()):(o=[],(0,p.rangeEach)(r-1,function(){return o.push(null)})):"function"===this.instance.dataType?o=this.instance.getSettings().dataSchema(e):(o={},(0,c.deepExtend)(o,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(o):this.spliceData(e,0,o),s++,i++;return this.instance.runHooks("afterCreateRow",e,s,n),this.instance.forceFullRender=!0,s},i.prototype.createCol=function(e,t,n){if(!this.instance.isColumnModificationAllowed())throw Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var o,i,r=this.instance.countSourceRows(),s=this.dataSource,a=0;t||(t=1),"number"==typeof e&&e<this.instance.countCols()||(e=this.instance.countCols()),this.instance.runHooks("beforeCreateCol",e,t,n),i=e;for(var l=this.instance.getSettings().maxCols;t>a&&this.instance.countCols()<l;){if(o=(0,u.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts),"number"==typeof e&&e<this.instance.countCols()){for(var c=0;r>c;c++)s[c].splice(i,0,null);this.priv.columnSettings.splice(i,0,o)}else{if(r>0)for(var h=0;r>h;h++)void 0===s[h]&&(s[h]=[]),s[h].push(null);else s.push([null]);this.priv.columnSettings.push(o)}a++,i++}return this.instance.runHooks("afterCreateCol",e,a,n),this.instance.forceFullRender=!0,a},i.prototype.removeRow=function(e,t,n){t||(t=1),"number"!=typeof e&&(e=-t),t=this.instance.runHooks("modifyRemovedAmount",t,e),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var o=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeRemoveRow",e,t,o,n)){var i=this.dataSource,r=void 0;r=this.filterData(e,t),r&&(i.length=0,Array.prototype.push.apply(i,r)),this.instance.runHooks("afterRemoveRow",e,t,o,n),this.instance.forceFullRender=!0}},i.prototype.removeCol=function(e,t,n){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw Error("cannot remove column with object data source or columns option specified");t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countCols()+e)%this.instance.countCols();var o=this.visualColumnsToPhysical(e,t),i=o.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",e,t,o,n)){for(var r=!0,s=i.length,a=this.dataSource,l=0;s>l;l++)r&&o[0]!==o[l]-l&&(r=!1);if(r)for(var u=0,c=this.instance.countSourceRows();c>u;u++)a[u].splice(o[0],t);else{for(var h=0,d=this.instance.countSourceRows();d>h;h++)for(var f=0;s>f;f++)a[h].splice(i[f],1);for(var p=0;s>p;p++)this.priv.columnSettings.splice(o[p],1)}this.instance.runHooks("afterRemoveCol",e,t,o,n),this.instance.forceFullRender=!0}},i.prototype.spliceCol=function(e,t,n){var o=4>arguments.length?[]:[].slice.call(arguments,3),i=this.instance.getDataAtCol(e),r=i.slice(t,t+n),s=i.slice(t+n);(0,h.extendArray)(o,s);for(var a=0;n>a;)o.push(null),a++;return(0,h.to2dArray)(o),this.instance.populateFromArray(t,e,o,null,null,"spliceCol"),r},i.prototype.spliceRow=function(e,t,n){var o=4>arguments.length?[]:[].slice.call(arguments,3),i=this.instance.getSourceDataAtRow(e),r=i.slice(t,t+n),s=i.slice(t+n);(0,h.extendArray)(o,s);for(var a=0;n>a;)o.push(null),a++;return this.instance.populateFromArray(e,t,[o],null,null,"spliceRow"),r},i.prototype.spliceData=function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)},i.prototype.filterData=function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1==n.indexOf(t)})},i.prototype.get=function(e,t){e=this.instance.runHooks("modifyRow",e);var n=this.dataSource[e],o=this.instance.runHooks("modifyRowData",e);n=isNaN(o)?o:n;var i=null;if(n&&n.hasOwnProperty&&(0,c.hasOwnProperty)(n,t))i=n[t];else if("string"==typeof t&&t.indexOf(".")>-1){var r=t.split("."),s=n;if(!s)return null;for(var a=0,l=r.length;l>a;a++)if(void 0===(s=s[r[a]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(e,e+1)[0]));if(this.instance.hasHook("modifyData")){var u=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",e,this.propToCol(t),u,"get"),u.isTouched()&&(i=u.value)}return i};var y=(0,l.cellMethodLookupFactory)("copyable",!1);i.prototype.getCopyable=function(e,t){return y.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},i.prototype.set=function(e,t,n,o){e=this.instance.runHooks("modifyRow",e,o||"datamapGet");var i=this.dataSource[e],r=this.instance.runHooks("modifyRowData",e);if(i=isNaN(r)?r:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(n);this.instance.runHooks("modifyData",e,this.propToCol(t),s,"set"),s.isTouched()&&(n=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=n;else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),l=i,u=0,h=void 0;for(u=0,h=a.length-1;h>u;u++)void 0===l[a[u]]&&(l[a[u]]={}),l=l[a[u]];l[a[u]]=n}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],n):i[t]=n},i.prototype.visualRowsToPhysical=function(e,t){for(var n,o=this.instance.countSourceRows(),i=(o+e)%o,r=[],s=t;o>i&&s;)n=this.instance.runHooks("modifyRow",i),r.push(n),s--,i++;return r},i.prototype.visualColumnsToPhysical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,i=[],r=t;n>o&&r;){i.push(this.instance.runHooks("modifyCol",o)),r--,o++}return i},i.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},i.prototype.clearLengthCache=function(){this.cachedLength=null},i.prototype.getLength=function(){var e=this,t=void 0,n=this.instance.getSettings().maxRows;t=0>n||0===n?0:n||1/0;var o=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var i=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(i=!0),this.latestSourceRowsCount=o,null===this.cachedLength||i?((0,p.rangeEach)(o-1,function(t){null===(t=e.instance.runHooks("modifyRow",t))&&--o}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,t)},i.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,i.prototype.DESTINATION_RENDERER):[]},i.prototype.getRange=function(e,t,n){var o,i,r,s,a,l=[],u=this.instance.getSettings().maxRows,c=this.instance.getSettings().maxCols;if(0===u||0===c)return[];var h=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(i=Math.min(Math.max(u-1,0),Math.max(e.row,t.row)),s=Math.min(Math.max(c-1,0),Math.max(e.col,t.col)),o=Math.min(e.row,t.row);i>=o;o++){a=[];var d=this.instance.runHooks("modifyRow",o);for(r=Math.min(e.col,t.col);s>=r&&null!==d;r++)a.push(h.call(this,o,this.colToProp(r)));null!==d&&l.push(a)}return l},i.prototype.getText=function(e,t){return a.default.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},i.prototype.getCopyableText=function(e,t){return a.default.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},i.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},i.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null},t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.parseDelay=i;var s=n(34);t.default=function(){function e(t,n){var r=this;o(this,e),this.timer=null,this.func=t,this.delay=i(n),this.stopped=!0,this._then=null,this._callback=function(){return r.__callback()}}return r(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),r(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,s.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,s.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,s.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}()},function(e,t,n){"use strict";function o(){function e(e){return null!==e&&!n(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"==(void 0===e?"undefined":i(e))||"function"==typeof e)}function n(e){return e!==e}var o={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return e(n)?o.arrayMap[n]:t(n)?o.weakMap.get(n):void 0},set:function(n,i){if(e(n))o.arrayMap[n]=i;else{if(!t(n))throw Error("Invalid key type");o.weakMap.set(n,i)}},delete:function(n){e(n)?delete o.arrayMap[n]:t(n)&&o.weakMap.delete(n)}}}t.__esModule=!0;var i="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};t.default=o},function(e,t,n){"use strict";function o(e,t,n){function o(e){n.setSelectedHeaders(!1,!1,!1);var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function l(e){e?(n.selectedHeader.cols&&n.setSelectedHeaders(n.selectedHeader.rows,!1,!1),n.transformEnd(-1,0)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(-1,0))}function h(e){e?n.transformEnd(1,0):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(1,0))}function d(e){e?n.transformEnd(0,1):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,1))}function f(e){e?(n.selectedHeader.rows&&n.setSelectedHeaders(!1,n.selectedHeader.cols,!1),n.transformEnd(0,-1)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,-1))}function p(a){var u,p;if(e.isListening()&&(e.runHooks("beforeKeyDown",a),!y&&!(0,s.isImmediatePropagationStopped)(a)&&(t.lastKeyCode=a.keyCode,n.isSelected()))){if(u=(a.ctrlKey||a.metaKey)&&!a.altKey,v&&!v.isWaiting()&&!((0,r.isMetaKey)(a.keyCode)||(0,r.isCtrlKey)(a.keyCode)||u||m.isEditorOpened()))return void m.openEditor("",a);switch(p=a.shiftKey?n.setRangeEnd:n.setRangeStart,a.keyCode){case r.KEY_CODES.A:!m.isEditorOpened()&&u&&(n.selectAll(),a.preventDefault(),(0,s.stopPropagation)(a));break;case r.KEY_CODES.ARROW_UP:m.isEditorOpened()&&!v.isWaiting()&&m.closeEditorAndSaveChanges(u),l(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_DOWN:m.isEditorOpened()&&!v.isWaiting()&&m.closeEditorAndSaveChanges(u),h(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_RIGHT:m.isEditorOpened()&&!v.isWaiting()&&m.closeEditorAndSaveChanges(u),d(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.ARROW_LEFT:m.isEditorOpened()&&!v.isWaiting()&&m.closeEditorAndSaveChanges(u),f(a.shiftKey),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.TAB:n.setSelectedHeaders(!1,!1,!1);var g="function"==typeof t.settings.tabMoves?t.settings.tabMoves(a):t.settings.tabMoves;a.shiftKey?n.transformStart(-g.row,-g.col):n.transformStart(g.row,g.col,!0),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.BACKSPACE:case r.KEY_CODES.DELETE:n.empty(a),m.prepareEditor(),a.preventDefault();break;case r.KEY_CODES.F2:m.openEditor(null,a),v&&v.enableFullEditMode(),a.preventDefault();break;case r.KEY_CODES.ENTER:m.isEditorOpened()?(v&&v.state!==c.EditorState.WAITING&&m.closeEditorAndSaveChanges(u),o(a.shiftKey)):e.getSettings().enterBeginsEditing?(m.openEditor(null,a),v&&v.enableFullEditMode()):o(a.shiftKey),a.preventDefault(),(0,s.stopImmediatePropagation)(a);break;case r.KEY_CODES.ESCAPE:m.isEditorOpened()&&m.closeEditorAndRestoreOriginalValue(u),a.preventDefault();break;case r.KEY_CODES.HOME:n.setSelectedHeaders(!1,!1,!1),p(a.ctrlKey||a.metaKey?new i.CellCoords(0,t.selRange.from.col):new i.CellCoords(t.selRange.from.row,0)),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.END:n.setSelectedHeaders(!1,!1,!1),p(a.ctrlKey||a.metaKey?new i.CellCoords(e.countRows()-1,t.selRange.from.col):new i.CellCoords(t.selRange.from.row,e.countCols()-1)),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.PAGE_UP:n.setSelectedHeaders(!1,!1,!1),n.transformStart(-e.countVisibleRows(),0),a.preventDefault(),(0,s.stopPropagation)(a);break;case r.KEY_CODES.PAGE_DOWN:n.setSelectedHeaders(!1,!1,!1),n.transformStart(e.countVisibleRows(),0),a.preventDefault(),(0,s.stopPropagation)(a)}}}var g,v,m=this,y=!1;g=new u.default(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return v},this.prepareEditor=function(){var n,o,i,r,s,l,u;if(v&&v.isWaiting())return void this.closeEditor(!1,!1,function(e){e&&m.prepareEditor()});n=t.selRange.highlight.row,o=t.selRange.highlight.col,i=e.colToProp(o),r=e.getCell(n,o),s=e.getSourceDataAtCell(e.runHooks("modifyRow",n),o),l=e.getCellMeta(n,o),u=e.getCellEditor(l),u?(v=(0,a.getEditorInstance)(u,e),v.prepare(n,o,i,r,s,l)):v=void 0},this.isEditorOpened=function(){return v&&v.isOpened()},this.openEditor=function(e,t){v&&!v.cellProperties.readOnly?v.beginEditing(e,t):v&&v.cellProperties.readOnly&&t&&t.keyCode===r.KEY_CODES.ENTER&&o()},this.closeEditor=function(e,t,n){v?v.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},function(){function t(e,t,n){"TD"==n.nodeName&&(m.openEditor(),v&&v.enableFullEditMode())}e.addHook("afterDocumentKeyDown",p),g.addEventListener(document.documentElement,"keydown",function(t){y||e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",t),e.addHook("afterDestroy",function(){y=!0})}()}t.__esModule=!0;var i=n(12),r=n(18),s=n(10),a=n(15),l=n(4),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(42);t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=this,n=this;this.eventManager=new u.default(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var o=e.rootElement.getAttribute("style");o&&e.rootElement.setAttribute("data-originalstyle",o),(0,s.addClass)(e.rootElement,"handsontable");var i=document.createElement("TABLE");(0,s.addClass)(i,"htCore"),e.getSettings().tableClassName&&(0,s.addClass)(i,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),i.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),i.appendChild(this.TBODY),e.table=i,e.container.insertBefore(i,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(l(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(e){this.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){this.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(l(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var r;this.isMouseDown=function(){return r},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),r=!1,!(0,s.isOutsideInput)(document.activeElement)&&e.selection.isSelected()||e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var o=t.target,i=t.target,a=t.x||t.clientX,l=t.y||t.clientY;if(!r&&e.rootElement){if(i===e.view.wt.wtTable.holder){var u=(0,s.getScrollbarWidth)();if(document.elementFromPoint(a+u,l)!==e.view.wt.wtTable.holder||document.elementFromPoint(a,l+u)!==e.view.wt.wtTable.holder)return}else for(;i!==document.documentElement;){if(null===i){if(t.isTargetWebComponent)break;return}if(i===e.rootElement)return;i=i.parentNode}("function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(o):n.settings.outsideClickDeselects)?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(i,"selectstart",function(e){n.settings.fragmentSelection||(0,s.isInput)(e.target)||e.preventDefault()});var l=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},f=[new h.Selection({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&!e.selection.isMultiple()}}}),new h.Selection({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&e.selection.isMultiple()}}}),new h.Selection({className:"highlight",highlightHeaderClassName:n.settings.currentHeaderClassName,highlightRowClassName:n.settings.currentRowClassName,highlightColumnClassName:n.settings.currentColClassName}),new h.Selection({className:"fill",border:{width:1,color:"red"}})];f.current=f[0],f.area=f[1],f.highlight=f[2],f.fill=f[3];var p={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:i,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){n.appendRowHeader(e,t)}),e.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),e.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var i=n.instance.getCellMeta(e,t),r=n.instance.colToProp(t),s=n.instance.getDataAtRowProp(e,r);n.instance.hasHook("beforeValueRender")&&(s=n.instance.runHooks("beforeValueRender",s)),n.instance.runHooks("beforeRenderer",o,e,t,r,s,i),n.instance.getCellRenderer(i)(n.instance,o,e,t,r,s,i),n.instance.runHooks("afterRenderer",o,e,t,r,s,i)},selections:f,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,i,s){var a={row:!1,column:!1,cells:!1};if(e.listen(),n.activeWt=s,r=!0,e.runHooks("beforeOnCellMouseDown",t,o,i,a),!(0,c.isImmediatePropagationStopped)(t)){var l=e.getSelectedRange(),u=e.selection,d=u.selectedHeader;if(t.shiftKey&&l)0>o.row||0>o.col||a.cells?!d.cols&&!d.rows||0>o.row||0>o.col||a.cells?d.cols&&0>o.row&&!a.column?u.setRangeEnd(new h.CellCoords(l.to.row,o.col)):d.rows&&0>o.col&&!a.row?u.setRangeEnd(new h.CellCoords(o.row,l.to.col)):(!d.cols&&!d.rows&&0>o.col||d.cols&&0>o.col)&&!a.row?(u.setSelectedHeaders(!0,!1),u.setRangeStartOnly(new h.CellCoords(l.from.row,0)),u.setRangeEnd(new h.CellCoords(o.row,e.countCols()-1))):(!d.cols&&!d.rows&&0>o.row||d.rows&&0>o.row)&&!a.column&&(u.setSelectedHeaders(!1,!0),u.setRangeStartOnly(new h.CellCoords(0,l.from.col)),u.setRangeEnd(new h.CellCoords(e.countRows()-1,o.col))):(u.setSelectedHeaders(!1,!1),u.setRangeEnd(new h.CellCoords(o.row,o.col))):(u.setSelectedHeaders(!1,!1),u.setRangeEnd(o));else{var f=!0;if(l){var p=l.from,g=l.to,v=!u.inInSelection(o);if(0>o.row&&d.cols){var m=Math.min(p.col,g.col),y=Math.max(p.col,g.col);f=m>o.col||o.col>y}else if(0>o.col&&d.rows){var w=Math.min(p.row,g.row),C=Math.max(p.row,g.row);f=w>o.row||o.row>C}else f=v}var b=(0,c.isRightClick)(t),S=(0,c.isLeftClick)(t)||"touchstart"===t.type;o.row>=0||0>o.col||a.column?o.col>=0||0>o.row||a.row?0>o.col||0>o.row||a.cells?0>o.col&&0>o.row&&(o.row=0,o.col=0,u.setSelectedHeaders(!1,!1,!0),u.setRangeStart(o)):(S||b&&f)&&(u.setSelectedHeaders(!1,!1),u.setRangeStart(o)):(u.setSelectedHeaders(!0,!1),(S||b&&f)&&(u.setRangeStartOnly(new h.CellCoords(o.row,0)),u.setRangeEnd(new h.CellCoords(o.row,Math.max(e.countCols()-1,0)),!1))):(u.setSelectedHeaders(!1,!0),(S||b&&f)&&(u.setRangeStartOnly(new h.CellCoords(0,o.col)),u.setRangeEnd(new h.CellCoords(Math.max(e.countRows()-1,0),o.col),!1)))}e.runHooks("afterOnCellMouseDown",t,o,i),n.activeWt=n.wt}},onCellMouseOut:function(t,o,i,r){n.activeWt=r,e.runHooks("beforeOnCellMouseOut",t,o,i),(0,c.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellMouseOut",t,o,i),n.activeWt=n.wt)},onCellMouseOver:function(t,o,i,s){var a={row:!1,column:!1,cell:!1};n.activeWt=s,e.runHooks("beforeOnCellMouseOver",t,o,i,a),(0,c.isImmediatePropagationStopped)(t)||(0===t.button&&r&&(e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new h.CellCoords(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new h.CellCoords(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o)),e.runHooks("afterOnCellMouseOver",t,o,i),n.activeWt=n.wt)},onCellMouseUp:function(t,o,i,r){n.activeWt=r,e.runHooks("beforeOnCellMouseUp",t,o,i),e.runHooks("afterOnCellMouseUp",t,o,i),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),i=n.settings.viewportRowRenderingOffset;if("auto"===i&&n.settings.fixedRowsTop&&(i=10),"number"==typeof i&&(t.startRow=Math.max(t.startRow-i,0),t.endRow=Math.min(t.endRow+i,o-1)),"auto"===i){var r=t.startRow+t.endRow-t.startRow,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startRow-s,0),t.endRow=Math.min(t.endRow+s,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),i=n.settings.viewportColumnRenderingOffset;if("auto"===i&&n.settings.fixedColumnsLeft&&(i=10),"number"==typeof i&&(t.startColumn=Math.max(t.startColumn-i,0),t.endColumn=Math.min(t.endColumn+i,o-1)),"auto"===i){var r=t.startColumn+t.endColumn-t.startColumn,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startColumn-s,0),t.endColumn=Math.min(t.endColumn+s,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};e.runHooks("beforeInitWalkontable",p),this.wt=new d.default(p),this.activeWt=this.wt,(0,a.isChrome)()||(0,a.isSafari)()||this.eventManager.addEventListener(e.rootElement,"wheel",function(e){e.preventDefault();var t=parseInt((0,s.getComputedStyle)(document.body)["font-size"],10),o=n.wt.wtOverlays.scrollableElement,i=e.wheelDeltaY||e.deltaY,r=e.wheelDeltaX||e.deltaX;switch(e.deltaMode){case 0:o.scrollLeft+=r,o.scrollTop+=i;break;case 1:o.scrollLeft+=r*t,o.scrollTop+=i*t}}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,c.stopPropagation)(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,c.stopPropagation)(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(0),a=n(26),l=n(4),u=o(l),c=n(10),h=n(12),d=o(h);i.prototype.isTextSelectionAllowed=function(e){if((0,s.isInput)(e))return!0;var t=(0,s.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()))},i.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=r(e,4),n=t[0],o=t[1],i=t[2],s=t[3];return void 0!==n&&n===i&&o===s},i.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},i.prototype.beforeRender=function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)},i.prototype.onDraw=function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)},i.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},i.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return 0>n?null:n},i.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},i.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,s.hasClass)(n,"relative"))return(0,s.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,this.instance.getRowHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetRowHeader",e,t)},i.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;(0,s.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,s.empty)(t),this.appendColHeader(e,t))}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)},i.prototype.updateCellHeader=function(e,t,n){var o=t,i=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,s.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,s.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,s.fastInnerHTML)(e,n(t)):((0,s.fastInnerText)(e,String.fromCharCode(160)),(0,s.addClass)(e,"cornerHeader"))},i.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0},i.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0},i.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},i.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()},t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1),s=n(2),a=n(6);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return i(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,s.arrayEach)(this.data,function(o){var i=t.colToProp(e);o="string"==typeof i?(0,r.getProperty)(o,i):o[i],n.push(o)}),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,o=this.hot.runHooks("modifyRowData",e),i=isNaN(o)?o:this.data[e];if(i){var s=this.colToProp(t);n="string"==typeof s?(0,r.getProperty)(i,s):"function"==typeof s?s(this.data.slice(e,e+1)[0]):i[s]}return n}},{key:"getByRange",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Math.min(e.row,t.row),r=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col),u=[];return(0,a.rangeEach)(i,s,function(e){var t=n.getAtRow(e),i=void 0;"array"===n.dataType?i=t.slice(r,l+1):"object"===n.dataType&&(i=o?[]:{},(0,a.rangeEach)(r,l,function(e){var r=n.colToProp(e);o?i.push(t[r]):i[r]=t[r]})),u.push(i)}),u}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}()},function(e,t,n){"use strict";function o(e){var t="undefined"!=typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n=this.first(),o=n.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(n[0],i),n.data("handsontable",o),o.init()),n}var r=[],s=void 0;if(arguments.length>1)for(var a=1,l=arguments.length;l>a;a++)r.push(arguments[a]);if(o){if(void 0===o[t])throw Error("Handsontable do not provide action: "+t);s=o[t].apply(o,r),"destroy"===t&&n.removeData()}return s})}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Base=t.UndoRedo=t.TouchScroll=t.Search=t.PersistentState=t.ObserveChanges=t.MultipleSelectionHandles=t.MergeCells=t.ManualRowResize=t.ManualRowMove=t.ManualColumnResize=t.ManualColumnMove=t.ManualColumnFreeze=t.DragToScroll=t.CustomBorders=t.CopyPaste=t.ContextMenu=t.Comments=t.ColumnSorting=t.AutoRowSize=t.AutoFill=t.AutoColumnSize=void 0;var i=n(366),r=o(i),s=n(367),a=o(s),l=n(369),u=o(l),c=n(370),h=o(c),d=n(373),f=o(d),p=n(377),g=o(p),v=n(394),m=o(v),y=n(401),w=o(y),C=n(402),b=o(C),S=n(403),O=o(S),_=n(407),R=o(_),E=n(412),k=o(E),T=n(413),M=o(T),H=n(418),P=o(H),D=n(419),A=o(D),x=n(420),L=o(x),N=n(421),j=o(N),I=n(424),W=o(I),F=n(425),V=o(F),B=n(426),Y=o(B),z=n(427),U=o(z),K=n(13),G=o(K);t.AutoColumnSize=r.default,t.AutoFill=a.default,t.AutoRowSize=u.default,t.ColumnSorting=h.default,t.Comments=f.default,t.ContextMenu=g.default,t.CopyPaste=m.default,t.CustomBorders=w.default,t.DragToScroll=b.default,t.ManualColumnFreeze=O.default,t.ManualColumnMove=R.default,t.ManualColumnResize=k.default,t.ManualRowMove=M.default,t.ManualRowResize=P.default,t.MergeCells=A.default,t.MultipleSelectionHandles=L.default,t.ObserveChanges=j.default,t.PersistentState=W.default,t.Search=V.default,t.TouchScroll=Y.default,t.UndoRedo=U.default,t.Base=G.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(13),h=o(c),d=n(2),f=n(34),p=n(0),g=n(85),v=o(g),m=n(1),y=n(6),w=n(5),C=n(290),b=o(C),S=n(32),O=n(12),_=new WeakMap,R=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return _.set(n,{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new v.default(n.hot),n.samplesGenerator=new b.default(function(e,t){return n.hot.getDataAtCell(e,t)}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",function(e,t,o){return n.onBeforeColumnResize(e,t,o)}),n}return s(t,e),u(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),u(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!=n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),(0,y.rangeEach)(e.from,e.to,function(e){if(o||void 0===t.widths[e]&&!t.hot._getColWidthFromSettings(e)){t.samplesGenerator.generateColumnSamples(e,n).forEach(function(e,n){return t.ghostTable.addColumn(n,e)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,n){t.widths[e]=n}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},o=0,i=this.hot.countCols()-1,r=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),i>o?function s(){if(!e.hot)return(0,f.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateColumnsWidth({from:o,to:Math.min(o+t.CALCULATION_STEP,i)},n),o=o+t.CALCULATION_STEP+1,i>o?r=(0,f.requestAnimationFrame)(s):((0,f.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&(0,p.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return(0,m.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,S.isPercentValue)(e)?e=(0,y.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=2>=arguments.length||void 0===arguments[2]||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,O.ViewportColumnsCalculator.DEFAULT_WIDTH))),o}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=_.get(this),n=t.cachedColumnHeaders;return(0,d.arrayReduce)(e,function(e,t,o){var i=n.length;return(o>i-1||n[o]!==t)&&e.push(o),o>i-1?n.push(t):n[o]=t,e},[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?(0,d.arrayEach)(t,function(t){e.widths[t]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,d.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.hot.countRows()&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var t=this;this.clearCache((0,d.arrayMap)(e,function(e){var n=a(e,2);return t.hot.propToCol(n[1])}))}},{key:"onBeforeColumnResize",value:function(e,t,n){return n&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t}},{key:"onAfterInit",value:function(){_.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("autoColumnSize",R),t.default=R},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(7),d=o(h),f=n(0),p=n(4),g=o(p),v=n(5),m=n(12),y=n(368);d.default.getSingleton().register("modifyAutofillRange"),d.default.getSingleton().register("beforeAutofill");var w=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new g.default(n),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}return s(t,e),a(t,[{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,o){return e.onBeforeCellMouseOver(n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e={from:this.hot.getSelectedRange().from,to:this.hot.getSelectedRange().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)}},{key:"fillIn",value:function(){if(this.hot.view.wt.selections.fill.isEmpty())return!1;var e=this.hot.view.wt.selections.fill.getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells(),n=(0,y.getDragDirectionAndRange)(t,e),o=n.directionOfDrag,i=n.startOfDragCoords,r=n.endOfDragCoords;if(this.hot.runHooks("modifyAutofillRange",t,e),i&&i.row>-1&&i.col>-1){var s=this.getSelectionData(),a=(0,y.getDeltas)(i,r,s,o),l=s;if(this.hot.runHooks("beforeAutofill",i,r,s),["up","left"].indexOf(o)>-1){l=[];var u=null,c=null;if("up"===o){u=r.row-i.row+1,c=u%s.length;for(var h=0;u>h;h++)l.push(s[(h+(s.length-c))%s.length])}else{u=r.col-i.col+1,c=u%s[0].length;for(var d=0;s.length>d;d++){l.push([]);for(var f=0;u>f;f++)l[d].push(s[d][(f+(s[d].length-c))%s[d].length])}}}this.hot.populateFromArray(i.row,i.col,l,r.row,r.col,this.pluginName+".fill",null,o,a),this.setSelection(e)}else this.hot.selection.refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return 0>e.row&&(e.row=0),0>e.col&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t=this.hot.getSelectedRange().getTopLeftCorner(),n=this.hot.getSelectedRange().getBottomRightCorner(),o=void 0;if(this.directions.includes(y.DIRECTIONS.vertical)&&(e.row>n.row||t.row>e.row))o=new m.CellCoords(e.row,n.col);else{if(!this.directions.includes(y.DIRECTIONS.horizontal))return;o=new m.CellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(o)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,e.pluginName+".fill"),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.view.wt.selections.fill.cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelected(),t=this.hot.view.wt.selections.fill.getCorners(),n=this.hot.countRows();n-1>e[2]&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.view.wt.selections.area.getCorners():this.hot.view.wt.selections.current.getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t=this.hot.getData(),n=this.hot.countRows(),o=void 0,i=e[2]+1;n>i;i++){for(var r=e[1];e[3]>=r;r++){if(t[i][r])return-1}var s=t[i][e[1]-1],a=t[i][e[3]+1];(s||a)&&(o=i)}return o}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(new m.CellCoords(e[0],e[1])),this.hot.view.wt.selections.fill.add(new m.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){this.hot.selection.setRangeStart(new m.CellCoords(e[0],e[1])),this.hot.selection.setRangeEnd(new m.CellCoords(e[2],e[3]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.view.wt.selections.fill.clear()}},{key:"redrawBorders",value:function(e){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().from),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().to),this.hot.view.wt.selections.fill.add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=(0,f.offset)(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+(0,f.outerHeight)(this.hot.table),n=(0,f.offset)(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+(0,f.outerWidth)(this.hot.table);return e.clientY>t&&n>=e.clientX}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"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++,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(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,v.registerPlugin)("autofill",w),t.default=w},function(e,t,n){"use strict";function o(e,t,n,o){var i=n.length,r=n?n[0].length:0,s=[],a=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(o)){for(var u=[],c=0;l>=c;c++){var h=parseInt(n[0][c],10),d=parseInt(n[i-1][c],10);u.push(("down"===o?d-h:h-d)/(i-1)||0)}s.push(u)}if(-1!==["right","left"].indexOf(o))for(var f=0;a>=f;f++){var p=parseInt(n[f][0],10),g=parseInt(n[f][r-1],10),v=("right"===o?g-p:p-g)/(r-1)||0;s.push([v])}return s}function i(e,t){var n=void 0,o=void 0,i=void 0;return t[0]===e[0]&&e[1]>t[1]?(i="left",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(t[2],e[1]-1)):t[0]===e[0]&&t[3]>e[3]?(i="right",n=new l.CellCoords(t[0],e[3]+1),o=new l.CellCoords(t[2],t[3])):e[0]>t[0]&&t[1]===e[1]?(i="up",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=new l.CellCoords(e[2]+1,t[1]),o=new l.CellCoords(t[2],t[3])),{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:o}}function r(e){var t={};return!0===e?(t.directions=Object.keys(u),t.autoInsertRow=!0):(0,s.isObject)(e)?(t.autoInsertRow=!!(0,a.isDefined)(e.autoInsertRow)&&(e.direction!==u.horizontal&&e.autoInsertRow),t.directions=(0,a.isDefined)(e.direction)?[e.direction]:Object.keys(u)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=o,t.getDragDirectionAndRange=i,t.getMappedFillHandleSetting=r;var s=n(1),a=n(22),l=n(12),u=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(13),c=o(u),h=n(2),d=n(34),f=n(0),p=n(85),g=o(p),v=n(1),m=n(6),y=n(5),w=n(290),C=o(w),b=n(32),S=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.heights=[],n.ghostTable=new g.default(n.hot),n.samplesGenerator=new C.default(function(e,t){return 0>e?-1===e?n.hot.getColHeader(t):null:n.hot.getDataAtCell(e,t)}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",function(e,t,o){return n.onBeforeRowResize(e,t,o)}),n}return s(t,e),l(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),l(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,v.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),null!==this.hot.getColHeader(0)){this.ghostTable.addColumnHeadersRow(this.samplesGenerator.generateRowSamples(-1,n).get(-1))}(0,m.rangeEach)(e.from,e.to,function(e){if(o||void 0===t.heights[e]){t.samplesGenerator.generateRowSamples(e,n).forEach(function(e,n){t.ghostTable.addRow(n,e)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,n){t.heights[e]=n}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},o=0,i=this.hot.countRows()-1,r=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),i>o?function s(){if(!e.hot)return(0,d.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateRowsHeight({from:o,to:Math.min(o+t.CALCULATION_STEP,i)},n),o=o+t.CALCULATION_STEP+1,i>o?r=(0,d.requestAnimationFrame)(s):((0,d.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,v.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,v.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,f.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return(0,v.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,b.isPercentValue)(e)?e=(0,m.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this;"number"==typeof e&&(e={from:e,to:e}),(0,m.rangeEach)(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e);var t=this.hot.getSettings().fixedRowsBottom;if(t){var n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}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){return n&&(this.calculateRowsHeight(e,void 0,!0),t=this.getRowHeight(e)),t}},{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(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("autoRowSize",S),t.default=S},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l="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},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},h=n(35),d=o(h),f=n(0),p=n(2),g=n(22),v=n(1),m=n(13),y=o(m),w=n(5),C=n(371),b=o(C),S=n(7),O=o(S);O.default.getSingleton().register("beforeColumnSort"),O.default.getSingleton().register("afterColumnSort");var _=function(e){function t(e){r(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.sortIndicators=[],n.lastSortedColumn=null,n.sortEmptyCells=!1,n}return a(t,e),u(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSorting}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.setPluginOptions();var n=this;this.hot.sortIndex=[],this.hot.sort=function(){var e=Array.prototype.slice.call(arguments);return n.sortByColumn.apply(n,i(e))},void 0===this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(t){return e.sort()}),this.addHook("afterUntrimRow",function(t){return e.sort()}),this.addHook("modifyRow",function(t){return e.translateRow(t)}),this.addHook("unmodifyRow",function(t){return e.untranslateRow(t)}),this.addHook("afterUpdateSettings",function(){return e.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(t,n){return e.getColHeader(t,n)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(){n.afterCreateRow.apply(n,arguments)}),this.addHook("afterRemoveRow",function(){n.afterRemoveRow.apply(n,arguments)}),this.addHook("afterInit",function(){return e.sortBySettings()}),this.addHook("afterLoadData",function(){e.hot.sortIndex=[],e.hot.view&&e.sortBySettings()}),this.hot.view&&this.sortBySettings(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.sort=void 0,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onAfterUpdateSettings",value:function(){this.sortBySettings()}},{key:"sortBySettings",value:function(){var e=this.hot.getSettings().columnSorting,t=this.loadSortingState(),n=void 0,o=void 0;void 0===t?(n=e.column,o=e.sortOrder):(n=t.sortColumn,o=t.sortOrder),"number"==typeof n&&(this.lastSortedColumn=n,this.sortByColumn(n,o))}},{key:"setSortingColumn",value:function(e,t){if(void 0===e)return this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0);this.hot.sortOrder=this.hot.sortColumn===e&&void 0===t?!1===this.hot.sortOrder?void 0:!this.hot.sortOrder:void 0===t||t,this.hot.sortColumn=e}},{key:"sortByColumn",value:function(e,t){if(this.setSortingColumn(e,t),void 0!==this.hot.sortColumn){!1!==this.hot.runHooks("beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder)&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),this.hot.runHooks("afterColumnSort",this.hot.sortColumn,this.hot.sortOrder),this.hot.render(),this.saveSortingState()}}},{key:"saveSortingState",value:function(){var e={};void 0!==this.hot.sortColumn&&(e.sortColumn=this.hot.sortColumn),void 0!==this.hot.sortOrder&&(e.sortOrder=this.hot.sortOrder),((0,v.hasOwnProperty)(e,"sortColumn")||(0,v.hasOwnProperty)(e,"sortOrder"))&&this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"loadSortingState",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","columnSorting",e),e.value}},{key:"updateOrderClass",value:function(){var e=void 0;!0===this.hot.sortOrder?e="ascending":!1===this.hot.sortOrder&&(e="descending"),this.sortOrderClass=e}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"defaultSort",value:function(e,t){return function(n,o){return"string"==typeof n[1]&&(n[1]=n[1].toLowerCase()),"string"==typeof o[1]&&(o[1]=o[1].toLowerCase()),n[1]===o[1]?0:(0,g.isEmpty)(n[1])?(0,g.isEmpty)(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1:(0,g.isEmpty)(o[1])?(0,g.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1:isNaN(n[1])&&!isNaN(o[1])?e?1:-1:!isNaN(n[1])&&isNaN(o[1])?e?-1:1:(isNaN(n[1])||isNaN(o[1])||(n[1]=parseFloat(n[1]),o[1]=parseFloat(o[1])),o[1]>n[1]?e?-1:1:n[1]>o[1]?e?1:-1:0)}}},{key:"dateSort",value:function(e,t){return function(n,o){if(n[1]===o[1])return 0;if((0,g.isEmpty)(n[1]))return(0,g.isEmpty)(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1;if((0,g.isEmpty)(o[1]))return(0,g.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1;var i=(0,d.default)(n[1],t.dateFormat),r=(0,d.default)(o[1],t.dateFormat);return i.isValid()?r.isValid()?r.isAfter(i)?e?-1:1:r.isBefore(i)?e?1:-1:0:-1:1}}},{key:"numericSort",value:function(e,t){return function(n,o){var i=parseFloat(n[1]),r=parseFloat(o[1]);if(i===r||isNaN(i)&&isNaN(r))return 0;if(t.columnSorting.sortEmptyCells){if((0,g.isEmpty)(n[1]))return e?-1:1;if((0,g.isEmpty)(o[1]))return e?1:-1}return isNaN(i)?1:isNaN(r)?-1:r>i?e?-1:1:i>r?e?1:-1:0}}},{key:"sort",value:function(){if(void 0===this.hot.sortOrder)return void(this.hot.sortIndex.length=0);var e=this.hot.getCellMeta(0,this.hot.sortColumn),t=this.hot.countEmptyRows(),n=void 0,o=void 0;this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0,void 0===e.columnSorting.sortEmptyCells&&(e.columnSorting={sortEmptyCells:this.sortEmptyCells}),o=this.hot.getSettings().maxRows===Number.POSITIVE_INFINITY?this.hot.countRows()-this.hot.getSettings().minSpareRows:this.hot.countRows()-t;for(var i=0,r=o;r>i;i++)this.hot.sortIndex.push([i,this.hot.getDataAtCell(i,this.hot.sortColumn)]);if(e.sortFunction)n=e.sortFunction;else switch(e.type){case"date":n=this.dateSort;break;case"numeric":n=this.numericSort;break;default:n=this.defaultSort}(0,b.default)(this.hot.sortIndex,n(this.hot.sortOrder,e));for(var s=this.hot.sortIndex.length;s<this.hot.countRows();s++)this.hot.sortIndex.push([s,this.hot.getDataAtCell(s,this.hot.sortColumn)]);this.hot.sortingEnabled=!0}},{key:"updateSortIndicator",value:function(){if(void 0!==this.hot.sortOrder){this.sortIndicators[this.hot.sortColumn]=this.hot.getCellMeta(0,this.hot.sortColumn).sortIndicator}}},{key:"translateRow",value:function(e){return this.hot.sortingEnabled&&void 0!==this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[e]?this.hot.sortIndex[e][0]:e}},{key:"untranslateRow",value:function(e){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var t=0;this.hot.sortIndex.length>t;t++)if(this.hot.sortIndex[t][0]==e)return t}},{key:"getColHeader",value:function(e,t){if(0>e||!t.parentNode)return!1;var n=t.querySelector(".colHeader"),o=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),i=Array.prototype.indexOf.call(o,t.parentNode);i-=o.length,n&&(this.hot.getSettings().columnSorting&&e>=0&&-1===i&&(0,f.addClass)(n,"columnSorting"),(0,f.removeClass)(n,"descending"),(0,f.removeClass)(n,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?(0,f.addClass)(n,"ascending"):"descending"===this.sortOrderClass&&(0,f.addClass)(n,"descending")))}},{key:"isSorted",value:function(){return void 0!==this.hot.sortColumn}},{key:"afterCreateRow",value:function(e,t){if(this.isSorted()){for(var n=0;this.hot.sortIndex.length>n;n++)e>this.hot.sortIndex[n][0]||(this.hot.sortIndex[n][0]+=t);for(var o=0;t>o;o++)this.hot.sortIndex.splice(e+o,0,[e+o,this.hot.getSourceData()[e+o][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}}},{key:"afterRemoveRow",value:function(e,t){function n(e){return(0,p.arrayReduce)(o,function(t,n){return e>n&&t++,t},0)}if(this.isSorted()){var o=this.hot.sortIndex.splice(e,t);o=(0,p.arrayMap)(o,function(e){return e[0]}),this.hot.sortIndex=(0,p.arrayMap)(this.hot.sortIndex,function(e,t){var o=n(e[0]);return o&&(e[0]-=o),e}),this.saveSortingState()}}},{key:"setPluginOptions",value:function(){var e=this.hot.getSettings().columnSorting;this.sortEmptyCells="object"===(void 0===e?"undefined":l(e))&&(e.sortEmptyCells||!1)}},{key:"onAfterOnCellMouseDown",value:function(e,t){t.row>-1||(0,f.hasClass)(e.realTarget,"columnSorting")&&(t.col!==this.lastSortedColumn&&(this.hot.sortOrder=!0),this.lastSortedColumn=t.col,this.sortByColumn(t.col))}}]),t}(y.default);(0,w.registerPlugin)("columnSorting",_),t.default=_},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(1>=Math.abs(r-n))return[];var s=Math.ceil((n+r)/2);return o(e,t,n,s),o(e,t,s,r),i(e,t,n,s,r)}function i(e,t,n,o,i){for(var r=new s.default,a=new s.default,l=o-n,u=i-o,c=Math.max(l,u),h=i-n,d=0;c>d;d+=1)l>d&&r.push(e[n+d]),u>d&&a.push(e[o+d]);for(var f=0;h>f;)e[n+f]=r.first&&a.first?t(r.first.data,a.first.data)>0?a.shift().data:r.shift().data:r.first?r.shift().data:a.shift().data,f+=1;return e}t.__esModule=!0,t.default=o,t.merge=i;var r=n(372),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(e,t){var n=""+e,o=""+t;return n===o?0:o>n?-1:1}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t){o(this,e),this.data=t,this.next=null,this.prev=null},s=function(){function e(){o(this,e),this.first=null,this.last=null}return i(e,[{key:"push",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t=this.first,n=void 0,o=void 0;t;){if(t.data===e)return n=t.next,o=t.prev,n&&(n.prev=o),o&&(o.next=n),t===this.first&&(this.first=n),t===this.last&&(this.last=o),!0;t=t.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if(e=e.next,t=t.next,e===t)return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){function e(t,n){n&&(e(n,n.next),n.next=t)}if(this.first){e(this.first,this.first.next),this.first.next=null;var t=this.first;this.first=this.last,this.last=t}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e=this.first.next,t=this.first,n=void 0;e;)n=e.next,e.next=t,t.prev=e,t=e,e=n;this.first.next=null,this.last.prev=null,n=this.first,this.first=t,this.last=n}}}]),e}();t.NodeStructure=r,t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},c=n(0),h=n(1),d=n(4),f=o(d),p=n(12),g=n(5),v=n(13),m=o(v),y=n(374),w=o(y),C=n(19),b=n(375),S=o(b);n(376);var O=new WeakMap,_=function(e){function t(e){r(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.editor=null,n.displaySwitch=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,O.set(n,{tempEditorDimensions:{},cellBelowCursor:null}),n}return a(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new w.default),this.eventManager||(this.eventManager=new f.default(this)),this.displaySwitch||(this.displaySwitch=new S.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,i,r,s){return e.onAfterRenderer(t,s)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(t){return e.onAfterBeginEditing(t)}),this.displaySwitch.addLocalHook("hide",function(){return e.hide()}),this.displaySwitch.addLocalHook("show",function(t,n){return e.showAtCell(t,n)}),this.registerListeners(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(t){return e.onMouseUp(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(t){return e.onEditorBlur(t)}),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,c.closest)(e.target,"TD","TBODY");return!!(t&&(0,c.hasClass)(t,"htCommentCell")&&(0,c.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 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),this.updateCommentMeta(this.range.from.row,this.range.from.col,i({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new p.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=0>=arguments.length||void 0===arguments[0]||arguments[0];if(!this.range.from)throw 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",void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=2>=arguments.length||void 0===arguments[2]||arguments[2];this.setRange({from:new p.CellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){return this.getCommentMeta(this.range.from.row,this.range.from.col,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{key:"show",value:function(){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e.comment?e.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new p.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=(0,c.getScrollableElement)(this.hot.view.wt.wtTable.TABLE),t=this.hot.view.wt.wtTable.getCell(this.range.from),n=this.range.from.row,o=this.range.from.col,i=(0,c.offset)(t),r=this.hot.view.wt.wtTable.getStretchedColumnWidth(o),s=0>i.top?0:i.top,a=i.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&e!==window&&(s-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&e!==window&&(a-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var l=a+r,u=s,h=this.getCommentMeta(n,o,"style"),d=this.getCommentMeta(n,o,"readOnly");h?this.editor.setSize(h.width,h.height):this.editor.resetSize(),this.editor.setReadOnlyState(d),this.editor.setPosition(l,u)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRange();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t).comment,i=void 0;o?(i=(0,h.deepClone)(o),(0,h.deepExtend)(i,n)):i=n,this.hot.setCellMeta(e,t,"comment",i)}},{key:"getCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o.comment)return o.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,c.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=O.get(this);if(t.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,c.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var n=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new p.CellCoords(n.row,n.col)};this.displaySwitch.show(o)}else(0,c.isChildOf)(e.target,document)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(e){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,c.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(e){this.setComment()}},{key:"onEditorMouseDown",value:function(e){O.get(this).tempEditorDimensions={width:(0,c.outerWidth)(e.target),height:(0,c.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=O.get(this),n=(0,c.outerWidth)(e.target),o=(0,c.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&o===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,i({},"style",{width:n,height:o}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;e.end.row>=t;t++)for(var n=e.start.col;e.end.col>=n;n++)this.removeCommentAtCell(t,n,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;e.end.row>=t;t++)for(var n=e.start.col;e.end.col>=n;n++){var o=!!this.getCommentMeta(t,n,"readOnly");this.updateCommentMeta(t,n,i({},"readOnly",!o))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?"Edit comment":"Add comment"},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelected()&&!this.selection.selectedHeader.corner)}},{key:"commentsRemove",name:function(){return"Delete comment"},callback:function(e,n){return t.onContextMenuRemoveComment(n)},disabled:function(){return t.hot.selection.selectedHeader.corner}},{key:"commentsReadOnly",name:function(){var e=this,t="Read only comment";return(0,C.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).comment;if(o&&(o=o.readOnly),o)return!0})&&(t=(0,C.markLabelAsSelected)(t)),t},callback:function(e,n){return t.onContextMenuMakeReadOnly(n)},disabled:function(){return t.hot.selection.selectedHeader.corner||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,h.isObject)(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(e,t){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(m.default);(0,g.registerPlugin)("comments",_),t.default=_},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0);t.default=function(){function e(){o(this,e),this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return i(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),i(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width=e+"px",n.style.height=t+"px"}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e||"",this.getInputElement().value=e}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return document.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=document.querySelector("."+e.CLASS_EDITOR_CONTAINER),n=void 0,o=void 0;return t||(t=document.createElement("div"),(0,r.addClass)(t,e.CLASS_EDITOR_CONTAINER),document.body.appendChild(t)),n=document.createElement("div"),(0,r.addClass)(n,e.CLASS_EDITOR),o=document.createElement("textarea"),(0,r.addClass)(o,e.CLASS_INPUT),n.appendChild(o),t.appendChild(n),n}},{key:"getInputElement",value:function(){return this.editor.querySelector("."+e.CLASS_INPUT)}},{key:"destroy",value:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(36),s=n(1),a=n(87),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t){o(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return i(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,r.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),t.default=u},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(13),c=o(u),h=n(7),d=o(h),f=n(2),p=n(378),g=o(p),v=n(4),m=o(v),y=n(379),w=o(y),C=n(391),b=o(C),S=n(5),O=n(10),_=n(0),R=n(88);n(393),d.default.getSingleton().register("afterContextMenuDefaultOptions"),d.default.getSingleton().register("afterContextMenuShow"),d.default.getSingleton().register("afterContextMenuHide"),d.default.getSingleton().register("afterContextMenuExecute");var E=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new m.default(n),n.commandExecutor=new g.default(n.hot),n.itemsFactory=null,n.menu=null,n}return s(t,e),l(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[R.ROW_ABOVE,R.ROW_BELOW,R.SEPARATOR,R.COLUMN_LEFT,R.COLUMN_RIGHT,R.SEPARATOR,R.REMOVE_ROW,R.REMOVE_COLUMN,R.SEPARATOR,R.UNDO,R.REDO,R.SEPARATOR,R.READ_ONLY,R.SEPARATOR,R.ALIGNMENT]}}]),l(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new w.default(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(n)};this.registerEvents(),"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var t=e.itemsFactory.getItems(n);e.menu=new b.default(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return e.executeCommand.apply(e,n)}),(0,f.arrayEach)(t,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(t){return e.onContextMenu(t)})}},{key:"open",value:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt((0,O.pageY)(e),10)-(0,_.getWindowScrollTop)(),left:parseInt((0,O.pageX)(e),10)-(0,_.getWindowScrollLeft)()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.commandExecutor.execute.apply(this.commandExecutor,t)}},{key:"onContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders,i=e.realTarget;this.close(),(0,_.hasClass)(i,"handsontableInput")||(e.preventDefault(),(0,O.stopPropagation)(e),(n||o||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(i)||(0,_.hasClass)(i,"current")&&(0,_.hasClass)(i,"wtBorder"))&&this.open(e))}},{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(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);E.SEPARATOR={name:R.SEPARATOR},(0,S.registerPlugin)("contextMenu",E),t.default=E},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=void 0;return(0,s.arrayEach)(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2),a=n(1);t.default=function(){function e(t){o(this,e),this.hot=t,this.commands={},this.commonCallback=null}return r(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,o=Array(n>1?n-1:0),r=1;n>r;r++)o[r-1]=arguments[r];var l=e.split(":");e=l[0];var u=2===l.length?l[1]:null,c=this.commands[e];if(!c)throw Error("Menu command '"+e+"' not exists.");if(u&&c.submenu&&(c=i(u,c.submenu.items)),!0!==c.disabled&&("function"!=typeof c.disabled||!0!==c.disabled.call(this.hot))&&!(0,a.hasOwnProperty)(c,"submenu")){var h=[];"function"==typeof c.callback&&h.push(c.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),o.unshift(l.join(":")),(0,s.arrayEach)(h,function(e){return e.apply(t.hot,o)})}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),(0,s.isObject)(e)?(0,s.objectEach)(e,function(e,t){var i=n["string"==typeof e?e:t];i||(i=e),(0,s.isObject)(e)?(0,s.extend)(i,e):"string"==typeof i&&(i={name:i}),void 0===i.key&&(i.key=t),o.push(i)}):(0,a.arrayEach)(e,function(e,t){var i=n[e];(i||0>l.ITEMS.indexOf(e))&&(i||(i={name:e,key:""+t}),(0,s.isObject)(e)&&(0,s.extend)(i,e),void 0===i.key&&(i.key=t),o.push(i))}),o}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(1),a=n(2),l=n(88);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return r(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,s.objectEach)(e,function(e,o){var i="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,i=l.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,i=e.key):(n[e.key]=e,i=e.key),t.defaultOrderPattern.push(i)}),this.predefinedItems=n}},{key:"getItems",value:function(){return i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),e}()},function(e,t,n){"use strict";function o(){return{key:s,name:"Alignment",disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)},submenu:{items:[{key:s+":left",name:function(){var e=this,t="Left";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htLeft"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,i.align)(t,"horizontal","htLeft",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":center",name:function(){var e=this,t="Center";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htCenter"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,i.align)(t,"horizontal","htCenter",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":right",name:function(){var e=this,t="Right";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htRight"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,i.align)(t,"horizontal","htRight",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":justify",name:function(){var e=this,t="Justify";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htJustify"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,i.align)(t,"horizontal","htJustify",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{name:r.KEY},{key:s+":top",name:function(){var e=this,t="Top";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htTop"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,i.align)(t,"vertical","htTop",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":middle",name:function(){var e=this,t="Middle";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htMiddle"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,i.align)(t,"vertical","htMiddle",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1},{key:s+":bottom",name:function(){var e=this,t="Bottom";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htBottom"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,i.align)(t,"vertical","htBottom",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,i){return e.setCellMeta(t,n,o,i)}),this.render()},disabled:!1}]}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=n(86),s=t.KEY="alignment"},function(e,t,n){"use strict";function o(){return{key:r,name:"Clear column",callback:function(e,t){var n=t.start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t.start.row,t.end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(",");return 0>e[1]||this.countCols()>=this.getSettings().maxCols||n}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="clear_column"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return 0>e[1]||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="col_left"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return 0>e[1]||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="col_right"},function(e,t,n){"use strict";function o(){return{key:r,name:function(){var e=this,t="Read only";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.checkSelectionConsistency)(t,function(t,n){return e.getCellMeta(t,n).readOnly});t.forAll(function(t,o){e.setCellMeta(t,o,"readOnly",!n)}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="make_read_only"},function(e,t,n){"use strict";function o(){return{key:i,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}t.__esModule=!0,t.default=o;var i=t.KEY="redo"},function(e,t,n){"use strict";function o(){return{key:r,name:"Remove column",callback:function(e,t){this.alter("remove_col",t.start.col,t.end.col-t.start.col+1,"ContextMenu.removeColumn")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countCols();return!e||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="remove_col"},function(e,t,n){"use strict";function o(){return{key:r,name:"Remove row",callback:function(e,t){this.alter("remove_row",t.start.row,t.end.row-t.start.row+1,"ContextMenu.removeRow")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countRows();return!e||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="remove_row"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="row_above"},function(e,t,n){"use strict";function o(){return{key:r,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var i=n(19),r=t.KEY="row_below"},function(e,t,n){"use strict";function o(){return{key:i,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}t.__esModule=!0,t.default=o;var i=t.KEY="undo"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(82),a=o(s),l=n(0),u=n(2),c=n(392),h=o(c),d=n(4),f=o(d),p=n(1),g=n(36),v=n(19),m=n(18),y=n(87),w=o(y),C=n(88),b=n(10),S=function(){function e(t,n){i(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new f.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return r(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){this.offset[e]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,g.debounce)(function(t){return e.openSubMenu(t)},300),n=(0,u.arrayFilter)(this.menuItems,function(t){return(0,v.isItemHidden)(t,e.hot)});n=(0,v.filterSeparators)(n,C.SEPARATOR);var o={data:n,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,i,r,s){return e.menuItemRenderer(t,n,o,i,r,s)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o,i){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)},rowHeights:function(e){return n[e].name===C.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new a.default(this.container,o),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.addHook("afterSelection",function(t,n,o,i,r){return e.onAfterSelection(t,n,o,i,r)}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,v.hasSubMenu)(n))return!1;var o=this.hotMenu.getSourceDataAtRow(t),i=new e(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(n.getBoundingClientRect()),this.hotSubMenus[o.key]=i,i}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,u.arrayEach)(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelected()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==C.SEPARATOR){var n=this.hot.getSelectedRange(),o=n?(0,v.normalizeSelection)(n):{},i=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(i=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),i&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new h.default(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top=t+"px"}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"}},{key:"setPositionOnRightOfCursor",value:function(e){var t=void 0;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"}},{key:"setPositionOnLeftOfCursor",value:function(e){this.container.style.left=this.offset.left+e.left-this.container.offsetWidth+(0,l.getScrollbarWidth)()+4+"px"}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,v.isSeparator)(e)||(0,v.isDisabled)(e)||(0,v.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,v.isSeparator)(t)||(0,v.isDisabled)(t)||(0,v.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&((0,v.isSeparator)(o)||(0,v.isDisabled)(o)||(0,v.isSelectionDisabled)(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,o=0>n?null:this.hotMenu.getCell(n,t);o&&((0,v.isSeparator)(o)||(0,v.isDisabled)(o)||(0,v.isSelectionDisabled)(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,o,i,r){var s=this,a=e.getSourceDataAtRow(n),u=document.createElement("div"),c=function(e){return e.disableSelection};"function"==typeof r&&(r=r.call(this.hot)),(0,l.empty)(t),(0,l.addClass)(u,"htItemWrapper"),t.appendChild(u),!function(e){return RegExp(C.SEPARATOR,"i").test(e.name)}(a)?"function"==typeof a.renderer?((0,l.addClass)(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,u,n,o,i,r))):(0,l.fastInnerHTML)(u,r):(0,l.addClass)(t,"htSeparator"),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(a)?c(a)?((0,l.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):!function(e){return(0,p.hasOwnProperty)(e,"submenu")}(a)?((0,l.removeClass)(t,"htSubmenu"),(0,l.removeClass)(t,"htDisabled"),c(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htSubmenu"),c(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}))}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(e=e.replace(/[^A-z0-9]/g,"_"),e=this.options.className+"Sub_"+e);var t=void 0;return t=e?document.querySelector("."+this.options.className+"."+e):document.querySelector("."+this.options.className),t||(t=document.createElement("div"),(0,l.addClass)(t,"htMenu "+this.options.className),e&&(0,l.addClass)(t,e),document.getElementsByTagName("body")[0].appendChild(t)),t}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelected(),n=!1;switch(this.keyEvent=!0,e.keyCode){case m.KEY_CODES.ESCAPE:this.close(),n=!0;break;case m.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case m.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case m.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case m.KEY_CODES.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case m.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,b.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),i=(0,u.arrayReduce)(e,function(e,t){return e+(t.name===C.SEPARATOR?1:26)},0);n.width=o+22+"px",n.height=i+4+"px",t.height=n.height}},{key:"onAfterSelection",value:function(e,t,n,o,i){!1===this.keyEvent&&(i.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,l.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,l.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,l.isChildOf)(e.target,".htMenu")&&(0,l.isChildOf)(e.target,document)&&this.close(!0))}}]),e}();(0,p.mixin)(S,w.default),t.default=S},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),s=n(10);t.default=function(){function e(t){o(this,e);var n=(0,r.getWindowScrollTop)(),i=(0,r.getWindowScrollLeft)(),a=void 0,l=void 0,u=void 0,c=void 0,h=void 0,d=void 0;this.type=this.getSourceType(t),"literal"===this.type?(a=parseInt(t.top,10),u=parseInt(t.left,10),h=t.height||0,d=t.width||0,l=a,c=u,a+=n,u+=i):"event"===this.type&&(a=parseInt((0,s.pageY)(t),10),u=parseInt((0,s.pageX)(t),10),h=t.target.clientHeight,d=t.target.clientWidth,l=a-n,c=u-i),this.top=a,this.topRelative=l,this.left=u,this.leftRelative=c,this.scrollTop=n,this.scrollLeft=i,this.cellHeight=h,this.cellWidth=d}return i(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){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerHeight)>=this.topRelative+e.offsetHeight}},{key:"fitsOnRight",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerWidth)>=this.leftRelative+this.cellWidth+e.offsetWidth}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}()},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a="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},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},c=n(13),h=o(c),d=n(7),f=o(d),p=n(286),g=o(p),v=n(12),m=n(0),y=n(2),w=n(6),C=n(5),b=n(395),S=o(b),O=n(396),_=o(O),R=n(397),E=o(R),k=n(4),T=o(k),M=n(398),H=o(M);n(400),f.default.getSingleton().register("afterCopyLimit"),f.default.getSingleton().register("modifyCopyableRange"),f.default.getSingleton().register("beforeCut"),f.default.getSingleton().register("afterCut"),f.default.getSingleton().register("beforePaste"),f.default.getSingleton().register("afterPaste"),f.default.getSingleton().register("beforeCopy"),f.default.getSingleton().register("afterCopy");var P=1e3,D=1e3,A=new WeakMap,x=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new T.default(n),n.columnsLimit=D,n.copyableRanges=[],n.pasteMode="overwrite",n.rowsLimit=P,n.textarea=void 0,A.set(n,{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings(),o=A.get(this);this.textarea=S.default.getSingleton(),o.isFragmentSelectionEnabled=n.fragmentSelection,"object"===a(n.copyPaste)&&(this.pasteMode=n.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=n.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=n.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterSelectionEnd",function(){return e.onAfterSelectionEnd()}),this.registerEvents(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.textarea&&this.textarea.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRange();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,i=t.col,r=n.row,s=n.col,a=Math.min(r,o+this.rowsLimit-1),l=Math.min(s,i+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:o,startCol:i,endRow:a,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),r===a&&s===l||this.hot.runHooks("afterCopyLimit",r-o+1,s-i+1,this.rowsLimit,this.columnsLimit)}}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],o=[],i=[];return(0,y.arrayEach)(e,function(e){(0,w.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,w.rangeEach)(e.startCol,e.endCol,function(e){-1===i.indexOf(e)&&i.push(e)})}),(0,y.arrayEach)(o,function(e){var o=[];(0,y.arrayEach)(i,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),g.default.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],o=[],i=[];return(0,y.arrayEach)(e,function(e){(0,w.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,w.rangeEach)(e.startCol,e.endCol,function(e){-1===i.indexOf(e)&&i.push(e)})}),(0,y.arrayEach)(o,function(e){var o=[];(0,y.arrayEach)(i,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),n}},{key:"copy",value:function(){A.get(this).isTriggeredByCopy=!0,this.textarea.select(),document.execCommand("copy")}},{key:"cut",value:function(){A.get(this).isTriggeredByCut=!0,this.textarea.select(),document.execCommand("cut")}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new H.default;t.clipboardData.setData("text/plain",e),this.onPaste(t)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.textarea.element,"paste",function(t){return e.onPaste(t)}),this.eventManager.addEventListener(this.textarea.element,"cut",function(t){return e.onCut(t)}),this.eventManager.addEventListener(this.textarea.element,"copy",function(t){return e.onCopy(t)})}},{key:"onCopy",value:function(e){var t=A.get(this);if(this.hot.isListening()||t.isTriggeredByCopy){this.setCopyableText(),t.isTriggeredByCopy=!1;var n=this.getRangedData(this.copyableRanges),o=!!this.hot.runHooks("beforeCopy",n,this.copyableRanges),i="";o&&(i=g.default.stringify(n),e&&e.clipboardData?e.clipboardData.setData("text/plain",i):"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",i),this.hot.runHooks("afterCopy",n,this.copyableRanges)),e.preventDefault()}}},{key:"onCut",value:function(e){var t=A.get(this);if(this.hot.isListening()||t.isTriggeredByCut){this.setCopyableText(),t.isTriggeredByCut=!1;var n=this.getRangedData(this.copyableRanges),o=!!this.hot.runHooks("beforeCut",n,this.copyableRanges),i=void 0;o&&(i=g.default.stringify(n),e&&e.clipboardData?e.clipboardData.setData("text/plain",i):"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",i),this.hot.selection.empty(),this.hot.runHooks("afterCut",n,this.copyableRanges)),e.preventDefault()}}},{key:"onPaste",value:function(e){var t=this;if(this.hot.isListening()){e&&e.preventDefault&&e.preventDefault();var n=void 0;if(e&&void 0!==e.clipboardData?this.textarea.setValue(e.clipboardData.getData("text/plain")):"undefined"==typeof ClipboardEvent&&void 0!==window.clipboardData&&this.textarea.setValue(window.clipboardData.getData("Text")),n=g.default.parse(this.textarea.getValue()),this.textarea.setValue(" "),0!==n.length){if(!!this.hot.runHooks("beforePaste",n,this.copyableRanges)){var o=this.hot.getSelected(),i=new v.CellCoords(o[0],o[1]),r=new v.CellCoords(o[2],o[3]),s=new v.CellRange(i,i,r),a=s.getTopLeftCorner(),l=s.getBottomRightCorner(),u=a,c=new v.CellCoords(Math.max(l.row,n.length-1+a.row),Math.max(l.col,n[0].length-1+a.col)),h=r.row-i.row>=n.length-1,d=r.col-i.col>=n[0].length-1;this.hot.addHookOnce("afterChange",function(e){var n=e?e.length:0;if(n){var o={row:0,col:0},i=-1;(0,y.arrayEach)(e,function(t,r){var s=n>r+1?e[r+1]:null;s&&(h||(o.row+=Math.max(s[0]-t[0]-1,0)),!d&&t[1]>i&&(i=t[1],o.col+=Math.max(s[1]-t[1]-1,0)))}),t.hot.selectCell(u.row,u.col,c.row+o.row,c.col+o.col)}}),this.hot.populateFromArray(u.row,u.col,n,c.row,c.col,"CopyPaste.paste",this.pasteMode),this.hot.runHooks("afterPaste",n,this.copyableRanges)}}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,_.default)(this),(0,E.default)(this))}},{key:"onAfterSelectionEnd",value:function(){var e=A.get(this),t=this.hot.getActiveEditor();t&&void 0!==t.isOpened&&t.isOpened()||e.isFragmentSelectionEnabled&&!this.textarea.isActive()&&(0,m.getSelectionText)()||(this.setCopyableText(),this.textarea.select())}},{key:"destroy",value:function(){this.textarea&&this.textarea.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,C.registerPlugin)("CopyPaste",x),t.default=x},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(){o(this,e),this.element=void 0,this.isAppended=!1,this.refCounter=0}return i(e,null,[{key:"getSingleton",value:function(){return s.append(),s}}]),i(e,[{key:"append",value:function(){this.hasBeenDestroyed()&&this.create(),this.refCounter++,!this.isAppended&&document.body&&document.body&&(this.isAppended=!0,document.body.appendChild(this.element))}},{key:"create",value:function(){this.element=document.createElement("textarea"),this.element.id="HandsontableCopyPaste",this.element.className="copyPaste",this.element.tabIndex=-1,this.element.autocomplete="off",this.element.wrap="hard",this.element.value=" "}},{key:"deselect",value:function(){this.element===document.activeElement&&document.activeElement.blur()}},{key:"destroy",value:function(){this.refCounter--,this.refCounter=0>this.refCounter?0:this.refCounter,this.hasBeenDestroyed()&&this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.element=null,this.isAppended=!1)}},{key:"getValue",value:function(){return this.element.value}},{key:"hasBeenDestroyed",value:function(){return 1>this.refCounter}},{key:"isActive",value:function(){return this.element===document.activeElement}},{key:"select",value:function(){this.element.focus(),this.element.select()}},{key:"setValue",value:function(e){this.element.value=e}}]),e}(),s=new r;t.default=r},function(e,t,n){"use strict";function o(e){return{key:"copy",name:"Copy",callback:function(){e.copy()},disabled:function(){return!e.hot.getSelected()},hidden:!1}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return{key:"cut",name:"Cut",callback:function(){e.cut()},disabled:function(){return!e.hot.getSelected()},hidden:!1}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(399),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function e(){o(this,e),this.clipboardData=new r.default}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(){o(this,e),this.data={}}return i(e,[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}]),e}()},function(e,t){},function(e,t,n){"use strict";function o(){}var i,r="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},s=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(5),n(1)),u=n(12),c=function(e){return"boolean"==typeof e&&!0===e||"object"===(void 0===e?"undefined":r(e))&&e.length>0},h=function(){c(this.getSettings().customBorders)&&(this.customBorders||(i=this,this.customBorders=new o))},d=function(e){for(var t=0;i.view.wt.selections.length>t;t++)if(i.view.wt.selections[t].settings.className==e)return t;return-1},f=function(e){var t={row:e.row,col:e.col},n=new u.Selection(e,new u.CellRange(t,t,t)),o=d(e.className);0>o?i.view.wt.selections.push(n):i.view.wt.selections[o]=n},p=function(e,t,n){var o=C(e,t);o=b(o,n),this.setCellMeta(e,t,"borders",o),f(o)},g=function(e){for(var t=e.range,n=t.from.row;t.to.row>=n;n++)for(var o=t.from.col;t.to.col>=o;o++){var i=C(n,o),r=0;n==t.from.row&&(r++,(0,l.hasOwnProperty)(e,"top")&&(i.top=e.top)),n==t.to.row&&(r++,(0,l.hasOwnProperty)(e,"bottom")&&(i.bottom=e.bottom)),o==t.from.col&&(r++,(0,l.hasOwnProperty)(e,"left")&&(i.left=e.left)),o==t.to.col&&(r++,(0,l.hasOwnProperty)(e,"right")&&(i.right=e.right)),r>0&&(this.setCellMeta(n,o,"borders",i),f(i))}},v=function(e,t){return"border_row"+e+"col"+t},m=function(){return{width:1,color:"#000"}},y=function(){return{hide:!0}},w=function(){return{width:1,color:"#000",cornerVisible:!1}},C=function(e,t){return{className:v(e,t),border:w(),row:e,col:t,top:y(),right:y(),bottom:y(),left:y()}},b=function(e,t){return(0,l.hasOwnProperty)(t,"border")&&(e.border=t.border),(0,l.hasOwnProperty)(t,"top")&&(e.top=t.top),(0,l.hasOwnProperty)(t,"right")&&(e.right=t.right),(0,l.hasOwnProperty)(t,"bottom")&&(e.bottom=t.bottom),(0,l.hasOwnProperty)(t,"left")&&(e.left=t.left),e},S=function(e){for(var t=document.querySelectorAll("."+e),n=0;t.length>n;n++)if(t[n]&&"TD"!=t[n].nodeName){var o=t[n].parentNode;o.parentNode&&o.parentNode.removeChild(o)}},O=function(e,t){var n=v(e,t);S(n),this.removeCellMeta(e,t,"borders")},_=function(e,t,n,o){var i=this.getCellMeta(e,t).borders;i&&void 0!=i.border||(i=C(e,t)),i[n]=o?y():m(),this.setCellMeta(e,t,"borders",i);var r=v(e,t);S(r),f(i),this.render()},R=function(e,t,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?O.call(this,e.from.row,e.from.col):_.call(this,e.from.row,e.from.col,t,n);else switch(t){case"noBorders":for(var o=e.from.col;e.to.col>=o;o++)for(var i=e.from.row;e.to.row>=i;i++)O.call(this,i,o);break;case"top":for(var r=e.from.col;e.to.col>=r;r++)_.call(this,e.from.row,r,t,n);break;case"right":for(var s=e.from.row;e.to.row>=s;s++)_.call(this,s,e.to.col,t);break;case"bottom":for(var a=e.from.col;e.to.col>=a;a++)_.call(this,e.to.row,a,t);break;case"left":for(var l=e.from.row;e.to.row>=l;l++)_.call(this,l,e.from.col,t)}},E=function(e,t){var n=!1;return e.getSelectedRange().forAll(function(o,i){var r=e.getCellMeta(o,i).borders;if(r){if(!t)return n=!0,!1;if(!(0,l.hasOwnProperty)(r[t],"hide"))return n=!0,!1}}),n},k=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e},T=function(e){this.getSettings().customBorders&&(e.items.push({name:"---------"}),e.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var e="Top";return E(this,"top")&&(e=k(e)),e},callback:function(){var e=E(this,"top");R.call(this,this.getSelectedRange(),"top",e)}},{key:"borders:right",name:function(){var e="Right";return E(this,"right")&&(e=k(e)),e},callback:function(){var e=E(this,"right");R.call(this,this.getSelectedRange(),"right",e)}},{key:"borders:bottom",name:function(){var e="Bottom";return E(this,"bottom")&&(e=k(e)),e},callback:function(){var e=E(this,"bottom");R.call(this,this.getSelectedRange(),"bottom",e)}},{key:"borders:left",name:function(){var e="Left";return E(this,"left")&&(e=k(e)),e},callback:function(){var e=E(this,"left");R.call(this,this.getSelectedRange(),"left",e)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){R.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!E(this)}}]}}))};a.default.getSingleton().add("beforeInit",h),a.default.getSingleton().add("afterContextMenuDefaultOptions",T),a.default.getSingleton().add("afterInit",function(){var e=this.getSettings().customBorders;if(e){for(var t=0;e.length>t;t++)e[t].range?g.call(this,e[t]):p.call(this,e[t].row,e[t].col,e[t]);this.render(),this.view.wt.draw(!0)}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(){this.boundaries=null,this.callback=null}t.__esModule=!0;var r=n(7),s=o(r),a=n(4),l=o(a);n(5);i.prototype.setBoundaries=function(e){this.boundaries=e},i.prototype.setCallback=function(e){this.callback=e},i.prototype.check=function(e,t){var n=0,o=0;this.boundaries.top>t?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),this.boundaries.left>e?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)};var u,c=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;u=new i,t!==window&&(u.setBoundaries(t.getBoundingClientRect()),u.setCallback(function(e,n){0>e?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),0>n?t.scrollTop-=20:n>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};s.default.getSingleton().add("afterInit",function(){var e=this,t=new l.default(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&u.check(t.clientX,t.clientY)})}),s.default.getSingleton().add("afterDestroy",function(){new l.default(this).clear()}),s.default.getSingleton().add("afterOnCellMouseDown",function(){c(this)}),s.default.getSingleton().add("afterOnCellCornerMouseDown",function(){c(this)}),t.default=i},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(5),d=n(2),f=n(404),p=o(f),g=n(405),v=o(g);n(406);var m=new WeakMap,y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return m.set(n,{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}return s(t,e),a(t,[{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("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=m.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft!==this.hot.countCols()&&e>n.fixedColumnsLeft-1&&(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft++))}},{key:"unfreezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft>0&&n.fixedColumnsLeft-1>=e){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft--,this.getMovePlugin().moveColumn(e,o+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t=this.getMovePlugin(),n=this.hot.getSettings(),o=n.fixedColumnsLeft,i=t.columnsMapper.getValueByIndex(o),r=void 0;if(null==this.frozenColumnsBasePositions[e])for(r=t.columnsMapper.getValueByIndex(e);r>i;)o++,i=t.columnsMapper.getValueByIndex(o);else{for(r=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;r>=i;)o++,i=t.columnsMapper.getValueByIndex(o);o=i}return o-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,p.default)(this),(0,v.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=m.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,i=o>t;if(i||(0,d.arrayEach)(e,function(e,t,n){if(o>e)return i=!0,!1}),i)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("manualColumnFreeze",y),t.default=y},function(e,t,n){"use strict";function o(e){return{key:"freeze_column",name:"Freeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.freezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.from.col===e.to.col&&e.from.col>this.getSettings().fixedColumnsLeft-1||(t=!0),t}}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return{key:"unfreeze_column",name:"Unfreeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.unfreezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.from.col===e.to.col&&e.from.col<this.getSettings().fixedColumnsLeft||(t=!0),t}}}t.__esModule=!0,t.default=o},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(7),d=o(h),f=n(2),p=n(0),g=n(6),v=n(4),m=o(v),y=n(5),w=n(408),C=o(w),b=n(409),S=o(b),O=n(410),_=o(O),R=n(12);n(411),d.default.getSingleton().register("beforeColumnMove"),d.default.getSingleton().register("afterColumnMove"),d.default.getSingleton().register("unmodifyCol");var E=new WeakMap,k=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.set(n,{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new C.default(n),n.eventManager=new m.default(n),n.backlight=new S.default(e),n.guideline=new _.default(e),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,i){return e.onBeforeOnCellMouseDown(t,n,o,i)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,i){return e.onBeforeOnCellMouseOver(t,n,o,i)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol()}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualColumnMove"),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,p.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=this,o=E.get(this),i=this.hot.runHooks("beforeColumnMove",e,t);o.disallowMoving=!i,!1!==i&&((0,f.arrayEach)(e,function(e,t,o){o[t]=n.columnsMapper.getValueByIndex(e)}),(0,f.arrayEach)(e,function(e,o){var i=n.columnsMapper.getIndexByValue(e);i!==t&&n.columnsMapper.moveColumn(i,t+o)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,o=this.hot.countRows()-1;n.setRangeStartOnly(new R.CellCoords(0,e)),n.setRangeEnd(new R.CellCoords(o,t),!1)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,o=e;t>o;o++){var i=0;i=0>o?this.hot.view.wt.wtViewport.getRowHeaderWidth()||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0,n+=i}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,g.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=E.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,i=this.hot.view.wt.wtOverlays.scrollableElement,r="number"==typeof i.scrollX?i.scrollX:i.scrollLeft,s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),a=e.target.eventPageX-(e.rootElementOffset-(void 0===i.scrollX?r:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,h=this.backlight.getSize().width,d=0;if(e.target.eventPageX>e.rootElementOffset+o.holder.offsetWidth+r&&e.countCols>e.coordsColumn&&e.coordsColumn++,e.hasRowHeaders&&(d=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(s+=r),s+=d,0>e.coordsColumn)e.target.col=e.fixedColumns>0?0:t>0?t-1:t;else if(a<e.target.TD.offsetWidth/2+s)(e.target.col=e.coordsColumn)>t||e.fixedColumns>e.target.col||this.hot.scrollViewportTo(void 0,t-1);else{var f=e.countCols>e.coordsColumn?e.coordsColumn:e.countCols-1;e.target.col=f+1,s+=e.target.TD.offsetWidth,e.target.col>n&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}e.target.col>t||e.fixedColumns>e.target.col||this.hot.scrollViewportTo(void 0,t-1);var p=a,g=s;l>a+h+c?u+d>a+c&&(p=u+d+Math.abs(c)):p=l-h-c,l-1>s?0===g?g=1:void 0!==i.scrollX&&e.fixedColumns>e.coordsColumn&&(g-=e.rootElementOffset>i.scrollX?0:e.rootElementOffset):g=l-1,this.backlight.setPosition(null,p),this.guideline.setPosition(null,g)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(e>t){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var o=e-1,i=[];(0,f.arrayEach)(this.columnsMapper._arrayMap,function(e,t){e>o&&i.push(t)}),this.columnsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.cols,s=this.hot.getSelectedRange(),a=E.get(this),l=e.realTarget.className.indexOf("columnSorting")>-1;if(!s||!r||a.pressed||0!==e.button||l)return a.pressed=!1,a.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(i.hider),this.backlight.appendTo(i.hider));var h=s.from,d=s.to,f=Math.min(h.col,d.col),g=Math.max(h.col,d.col);if(0<=t.row||t.col<f||g<t.col)(0,p.removeClass)(this.hot.rootElement,"after-selection--columns"),a.pressed=!1,a.columnsToMove.length=0;else{o.column=!0,a.pressed=!0,a.target.eventPageX=e.pageX,a.coordsColumn=t.col,a.target.TD=n,a.target.col=t.col,a.columnsToMove=this.prepareColumnsToMoving(f,g),a.hasRowHeaders=!!this.hot.getSettings().rowHeaders,a.countCols=this.hot.countCols(),a.fixedColumns=this.hot.getSettings().fixedColumnsLeft,a.rootElementOffset=(0,p.offset)(this.hot.rootElement).left;var v=a.hasRowHeaders?-1:0,m=i.holder.scrollTop+i.getColumnHeaderHeight(0)+1,y=a.fixedColumns>t.col,w=this.hot.view.wt.wtOverlays.scrollableElement,C=w.scrollX?w.scrollX-a.rootElementOffset:0,b=e.layerX-(y?C:0),S=Math.abs(this.getColumnsWidth(f,t.col)+b);this.backlight.setPosition(m,this.getColumnsWidth(v,f)+S),this.backlight.setSize(this.getColumnsWidth(f,g+1),i.hider.offsetHeight-m),this.backlight.setOffset(null,-1*S),(0,p.addClass)(this.hot.rootElement,"on-moving--columns")}}},{key:"onMouseMove",value:function(e){var t=E.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRange(),r=E.get(this);i&&r.pressed&&(r.columnsToMove.indexOf(t.col)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,r.coordsColumn=t.col,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=E.get(this);if(e.coordsColumn=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.selectedHeader.cols&&(0,p.addClass)(this.hot.rootElement,"after-selection--columns"),e.columnsToMove.length>=1&&void 0!==e.target.col&&-1>=e.columnsToMove.indexOf(e.target.col)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){this.changeSelection(this.columnsMapper.getIndexByValue(e.columnsToMove[0]),this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]))}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1,n=e.holder.scrollTop,o=t+n;this.backlight.setPosition(o),this.backlight.setSize(null,e.hider.offsetHeight-o)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){if(t!==this.pluginName){var n=this.columnsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("ManualColumnMove",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(291),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(2),l=n(1),u=n(6),c=function(){function e(t){o(this,e),this.manualColumnMove=t}return i(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,s.default),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(292),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(292),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}(u.default)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(0),d=n(4),f=o(d),p=n(10),g=n(2),v=n(6),m=n(5),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new f.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],(0,h.addClass)(n.handle,"manualColumnResizer"),(0,h.addClass)(n.guide,"manualColumnResizerGuide"),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,o=this.loadManualColumnWidths();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,o){return e.onBeforeColumnResize(t,n,o)}),this.manualColumnWidths=void 0!==o?o:Array.isArray(n)?n:[],this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,o=(0,h.outerHeight)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.col,u=a.col;u>l||(l=a.col,u=s.col),l>this.currentCol||this.currentCol>u?this.selectedCols.push(this.currentCol):(0,v.rangeEach)(l,u,function(e){return t.selectedCols.push(e)})}else this.selectedCols.push(this.currentCol);this.startOffset=i.left-6,this.startWidth=parseInt(i.width,10),this.handle.style.top=i.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left=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=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var i=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,g.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.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=(0,p.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,p.pageX)(e)-this.startX),(0,g.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeColumnResize",e,t.newSize),o&&n(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){o(e)}),n()):(0,g.arrayEach)(this.selectedCols,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return t=Math.max(t,20),e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=t,t}},{key:"clearManualSize",value:function(e){e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=void 0}},{key:"onModifyColWidth",value:function(e,t){return this.enabled&&(t=this.hot.runHooks("modifyCol",t),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[t])?this.manualColumnWidths[t]:e}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),t}(c.default);(0,m.registerPlugin)("manualColumnResize",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(7),d=o(h),f=n(2),p=n(0),g=n(6),v=n(4),m=o(v),y=n(5),w=n(414),C=o(w),b=n(415),S=o(b),O=n(416),_=o(O),R=n(12);n(417),d.default.getSingleton().register("beforeRowMove"),d.default.getSingleton().register("afterRowMove"),d.default.getSingleton().register("unmodifyRow");var E=new WeakMap,k=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.set(n,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new C.default(n),n.eventManager=new m.default(n),n.backlight=new S.default(e),n.guideline=new _.default(e),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,i){return e.onBeforeOnCellMouseDown(t,n,o,i)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,i){return e.onBeforeOnCellMouseOver(t,n,o,i)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow()}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualRowMove"),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,p.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=this,o=E.get(this);o.disallowMoving=!1===this.hot.runHooks("beforeRowMove",e,t),o.disallowMoving||((0,f.arrayEach)(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),(0,f.arrayEach)(e,function(e,o){var i=n.rowsMapper.getIndexByValue(e);i!==t&&n.rowsMapper.moveRow(i,t+o)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,o=this.hot.countCols()-1;n.setRangeStartOnly(new R.CellCoords(e,0)),n.setRangeEnd(new R.CellCoords(t,o),!1)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,o=e;t>o;o++){n+=this.hot.view.wt.wtTable.getRowHeight(o)||23}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRange(),t=[];if(!e)return t;var n=e.from,o=e.to,i=Math.min(n.row,o.row),r=Math.max(n.row,o.row);return(0,g.rangeEach)(i,r,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=E.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),i=this.hot.getSettings().fixedRowsTop,r=this.hot.countRows();i>t.row&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=o&&r>o&&this.hot.scrollViewportTo(o+1,void 0,!0);var s=this.hot.view.wt.wtTable,a=e.target.TD,l=(0,p.offset)(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+s.holder.scrollTop,h=s.hider.offsetHeight,d=s.TBODY.offsetTop,f=this.backlight.getOffset().top,g=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(u+=s.holder.scrollTop),0>t.row?e.target.row=n>0?n-1:n:a.offsetHeight/2+u>c?e.target.row=t.row:(e.target.row=t.row+1,u+=0===t.row?a.offsetHeight-1:a.offsetHeight);var v=c,m=u;h>c+g+f?d>c+f&&(v=d+Math.abs(f)):v=h-g-f,h-1>u||(m=h-1);var y=0;this.hot.view.wt.wtOverlays.topOverlay&&(y=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=i&&y>m-s.holder.scrollTop&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(v),this.guideline.setPosition(m)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(e>t){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var o=e-1,i=[];(0,f.arrayEach)(this.rowsMapper._arrayMap,function(e,t){e>o&&i.push(t)}),this.rowsMapper.removeItems(i)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){E.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.rows,s=this.hot.getSelectedRange(),a=E.get(this);if(!s||!r||a.pressed||0!==e.button)return a.pressed=!1,a.rowsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&u&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var c=s.from,h=s.to,d=Math.min(c.row,h.row),f=Math.max(c.row,h.row);if(0<=t.col||t.row<d||f<t.row)(0,p.removeClass)(this.hot.rootElement,"after-selection--rows"),a.pressed=!1,a.rowsToMove.length=0;else{o.row=!0,a.pressed=!0,a.target.eventPageY=e.pageY,a.target.coords=t,a.target.TD=n,a.rowsToMove=this.prepareRowsToMoving();var g=i.holder.scrollLeft+this.hot.view.wt.wtViewport.getRowHeaderWidth();this.backlight.setPosition(null,g),this.backlight.setSize(i.hider.offsetWidth-g,this.getRowsHeight(d,f+1)),this.backlight.setOffset(-1*(this.getRowsHeight(d,t.row)+e.layerY),null),(0,p.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}}},{key:"onMouseMove",value:function(e){var t=E.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var i=this.hot.getSelectedRange(),r=E.get(this);i&&r.pressed&&(r.rowsToMove.indexOf(t.row)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,r.target.coords=t,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=E.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.selectedHeader.rows&&(0,p.addClass)(this.hot.rootElement,"after-selection--rows"),n>=1&&void 0!==t&&-1>=e.rowsToMove.indexOf(t)&&e.rowsToMove[n-1]!==t-1){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){this.changeSelection(this.rowsMapper.getIndexByValue(e.rowsToMove[0]),this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]))}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth(),n=e.holder.scrollLeft,o=t+n;this.backlight.setPosition(null,o),this.backlight.setSize(e.hider.offsetWidth-o)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,g.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){if(t!==this.pluginName){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,y.registerPlugin)("ManualRowMove",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(291),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(2),l=n(1),u=n(6),c=function(){function e(t){o(this,e),this.manualRowMove=t}return i(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,s.default),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(293),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(293),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"build",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}(u.default)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(0),d=n(4),f=o(d),p=n(10),g=n(2),v=n(6),m=n(5),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new f.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],(0,h.addClass)(n.handle,"manualRowResizer"),(0,h.addClass)(n.guide,"manualRowResizerGuide"),n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,o=this.loadManualRowHeights();this.manualRowHeights=void 0!==o?o:Array.isArray(n)?n:[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,o=(0,h.outerWidth)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.row,u=a.row;u>l||(l=a.row,u=s.row),l>this.currentRow||this.currentRow>u?this.selectedRows.push(this.currentRow):(0,v.rangeEach)(l,u,function(e){return t.selectedRows.push(e)})}else this.selectedRows.push(this.currentRow);this.startOffset=i.top-6,this.startHeight=parseInt(i.height,10),this.handle.style.left=i.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,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.left=t+"px",this.guide.style.width=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){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var i=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,g.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.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=(0,p.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,p.pageY)(e)-this.startY),(0,g.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeRowResize",e,t.newSize),o&&n(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){o(e)}),n()):(0,g.arrayEach)(this.selectedRows,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return e=this.hot.runHooks("modifyRow",e),this.manualRowHeights[e]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var i=this.manualRowHeights[t];if(void 0!==i&&(i===o||i>(e||0)))return i}return e}}]),t}(c.default);(0,m.registerPlugin)("manualRowResize",y),t.default=y},function(e,t,n){"use strict";function o(){var e=[];return e.getInfo=function(e,t){for(var n=0,o=this.length;o>n;n++)if(!(this[n].row>e||e>this[n].row+this[n].rowspan-1||this[n].col>t||t>this[n].col+this[n].colspan-1))return this[n]},e.setInfo=function(e){for(var t=0,n=this.length;n>t;t++)if(this[t].row===e.row&&this[t].col===e.col)return void(this[t]=e);this.push(e)},e.removeInfo=function(e,t){for(var n=0,o=this.length;o>n;n++)if(this[n].row===e&&this[n].col===t){this.splice(n,1);break}},e}function i(e){if(this.mergedCellInfoCollection=new o,Array.isArray(e))for(var t=0,n=e.length;n>t;t++)this.mergedCellInfoCollection.setInfo(e[t])}function r(e,t){if(this.getSettings().mergeCells&&!this.selection.isMultiple()){var n=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);n&&(e[0]=n.row,e[1]=n.col,e[2]=n.row+n.rowspan-1,e[3]=n.col+n.colspan-1)}}function s(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}function a(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}function l(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}function u(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}t.__esModule=!0;var c=n(7),h=function(e){return e&&e.__esModule?e:{default:e}}(c),d=(n(5),n(10)),f=n(12);i.prototype.canMergeRange=function(e){return!e.isSingle()},i.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o={};o.row=t.row,o.col=t.col,o.rowspan=n.row-t.row+1,o.colspan=n.col-t.col+1,this.mergedCellInfoCollection.setInfo(o)}},i.prototype.mergeOrUnmergeSelection=function(e){this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col)?this.unmergeSelection(e.from):this.mergeSelection(e)},i.prototype.mergeSelection=function(e){this.mergeRange(e)},i.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},i.prototype.applySpanProperties=function(e,t,n){var o=this.mergedCellInfoCollection.getInfo(t,n);o?o.row===t&&o.col===n?(e.setAttribute("rowspan",o.rowspan),e.setAttribute("colspan",o.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},i.prototype.modifyTransform=function(e,t,n){var o={row:n.row,col:n.col};if("modifyTransformStart"==e){var i;this.lastDesiredCoords||(this.lastDesiredCoords=new f.CellCoords(null,null));for(var r=new f.CellCoords(t.highlight.row,t.highlight.col),s=this.mergedCellInfoCollection.getInfo(r.row,r.col),a=0,l=this.mergedCellInfoCollection.length;l>a;a++){var u=this.mergedCellInfoCollection[a];if(u=new f.CellCoords(u.row+u.rowspan-1,u.col+u.colspan-1),t.includes(u)){!0;break}}if(s){var c=new f.CellCoords(s.row,s.col),h=new f.CellCoords(s.row+s.rowspan-1,s.col+s.colspan-1);new f.CellRange(c,c,h).includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new f.CellCoords(null,null)),o.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-r.row:o.row,o.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-r.col:o.col,n.row>0?o.row=s.row+s.rowspan-1-r.row+n.row:0>n.row&&(o.row=r.row-s.row+n.row),n.col>0?o.col=s.col+s.colspan-1-r.col+n.col:0>n.col&&(o.col=r.col-s.col+n.col)}i=new f.CellCoords(t.highlight.row+o.row,t.highlight.col+o.col);var d=this.mergedCellInfoCollection.getInfo(i.row,i.col);d&&(this.lastDesiredCoords=i,o={row:d.row-r.row,col:d.col-r.col})}else if("modifyTransformEnd"==e)for(var p=0,g=this.mergedCellInfoCollection.length;g>p;p++){var v=this.mergedCellInfoCollection[p],m=new f.CellCoords(v.row,v.col),y=new f.CellCoords(v.row+v.rowspan-1,v.col+v.colspan-1),w=new f.CellRange(m,m,y),C=t.getBordersSharedWith(w);if(w.isEqual(t))t.setDirection("NW-SE");else if(C.length>0){var b=t.highlight.isEqual(w.from);C.indexOf("top")>-1?t.to.isSouthEastOf(w.from)&&b?t.setDirection("NW-SE"):t.to.isSouthWestOf(w.from)&&b&&t.setDirection("NE-SW"):C.indexOf("bottom")>-1&&(t.to.isNorthEastOf(w.from)&&b?t.setDirection("SW-NE"):t.to.isNorthWestOf(w.from)&&b&&t.setDirection("SE-NW"))}i=function(e){return new f.CellCoords(t.to.row+e.row,t.to.col+e.col)}(o);var S=function(e,t){return t.row>=e.row&&e.row+e.rowspan-1>=t.row}(v,i),O=function(e,t){return t.col>=e.col&&e.col+e.colspan-1>=t.col}(v,i);t.includesRange(w)&&(w.includes(i)||S||O)&&(S&&(0>o.row?o.row-=v.rowspan-1:o.row>0&&(o.row+=v.rowspan-1)),O&&(0>o.col?o.col-=v.colspan-1:o.col>0&&(o.col+=v.colspan-1)))}0!==o.row&&(n.row=o.row),0!==o.col&&(n.col=o.col)},i.prototype.shiftCollection=function(e,t,n){var o=[0,0];switch(e){case"right":o[0]+=1;break;case"left":o[0]-=1;break;case"down":o[1]+=1;break;case"up":o[1]-=1}for(var i=0;this.mergedCellInfoCollection.length>i;i++){var r=this.mergedCellInfoCollection[i];"right"===e||"left"===e?t>r.col||(r.col+=o[0]):t>r.row||(r.row+=o[1])}};var p=function(){var e=this,t=e.getSettings().mergeCells;t&&(e.mergeCells||(e.mergeCells=new i(t)))},g=function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var n=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);n&&(t=n)}return f.Table.prototype.getCell.call(this,t)})},v=function(){var e=this,t=e.getSettings().mergeCells;if(t)if(e.mergeCells){if(e.mergeCells.mergedCellInfoCollection=new o,Array.isArray(t))for(var n=0,r=t.length;r>n;n++)e.mergeCells.mergedCellInfoCollection.setInfo(t[n])}else e.mergeCells=new i(t);else e.mergeCells&&(e.mergeCells.mergedCellInfoCollection=new o)},m=function(e){if(this.mergeCells){(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),(0,d.stopImmediatePropagation)(e))}},y=function(e){this.getSettings().mergeCells&&(e.items.push({name:"---------"}),e.items.push({key:"mergeCells",name:function(){var e=this.getSelected();return this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1])?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return this.selection.selectedHeader.corner}}))},w=function(e,t,n,o,i,r){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,n)},C=function(e){return function(t){if(this.getSettings().mergeCells){var n=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,n,t),"modifyTransformEnd"===e){var o=this.countRows(),i=this.countCols();0>n.from.row?n.from.row=0:n.from.row>0&&n.from.row>=o&&(n.from.row=n.from-1),0>n.from.col?n.from.col=0:n.from.col>0&&n.from.col>=i&&(n.from.col=i-1)}}}},b=function(e){if(this.lastDesiredCoords=null,this.getSettings().mergeCells){var t=this.getSelectedRange();t.highlight=new f.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;do{n=!1;for(var o=0,i=this.mergeCells.mergedCellInfoCollection.length;i>o;o++){var r=this.mergeCells.mergedCellInfoCollection[o],s=new f.CellCoords(r.row,r.col),a=new f.CellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);t.expandByRange(new f.CellRange(s,s,a))&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},S=function(e,t){if(t&&"area"==t){if(this.getSettings().mergeCells)for(var n=this.getSelectedRange(),o=new f.CellRange(n.from,n.from,n.from),i=new f.CellRange(n.to,n.to,n.to),r=0,s=this.mergeCells.mergedCellInfoCollection.length;s>r;r++){var a=this.mergeCells.mergedCellInfoCollection[r],l=new f.CellCoords(a.row,a.col),u=new f.CellCoords(a.row+a.rowspan-1,a.col+a.colspan-1),c=new f.CellRange(l,l,u);o.expandByRange(c)&&(e[0]=o.from.row,e[1]=o.from.col),i.expandByRange(c)&&(e[2]=i.from.row,e[3]=i.from.col)}}},O=function(e,t,n){if(this.getSettings().mergeCells){var o=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!o||o.row==e&&o.col==t||(n.copyable=!1)}},_=function e(t){if(this.getSettings().mergeCells)for(var n,o=this.countCols(),i=0;o>i;i++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(t.startRow,i))&&t.startRow>n.row)return t.startRow=n.row,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(t.endRow,i)){var r=n.row+n.rowspan-1;if(r>t.endRow)return t.endRow=r,e.call(this,t)}}},R=function e(t){if(this.getSettings().mergeCells)for(var n,o=this.countRows(),i=0;o>i;i++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(i,t.startColumn))&&t.startColumn>n.col)return t.startColumn=n.col,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(i,t.endColumn)){var r=n.col+n.colspan-1;if(r>t.endColumn)return t.endColumn=r,e.call(this,t)}}},E=function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,n=this.getSelectedRange();for(var o in t)if(n.highlight.row==t[o].row&&n.highlight.col==t[o].col&&n.to.row==t[o].row+t[o].rowspan-1&&n.to.col==t[o].col+t[o].colspan-1)return!1}return e},k=h.default.getSingleton();k.add("beforeInit",p),k.add("afterInit",g),k.add("afterUpdateSettings",v),k.add("beforeKeyDown",m),k.add("modifyTransformStart",C("modifyTransformStart")),k.add("modifyTransformEnd",C("modifyTransformEnd")),k.add("beforeSetRangeEnd",b),k.add("beforeDrawBorders",S),k.add("afterIsMultipleSelection",E),k.add("afterRenderer",w),k.add("afterContextMenuDefaultOptions",y),k.add("afterGetCellMeta",O),k.add("afterViewportRowCalculatorOverride",_),k.add("afterViewportColumnCalculatorOverride",R),k.add("modifyAutofillRange",r),k.add("afterCreateCol",s),k.add("afterRemoveCol",a),k.add("afterCreateRow",l),k.add("afterRemoveRow",u),t.default=i},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(7),c=(o(u),n(0)),h=n(26),d=n(13),f=o(d),p=n(4),g=o(p),v=n(5),m=n(12),y=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dragged=[],n.eventManager=null,n.lastSetCell=null,n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return(0,h.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new g.default(this)),this.registerListeners(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){function e(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))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var n=void 0;return(0,c.hasClass)(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return(0,c.hasClass)(n.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,n.preventDefault(),!1):(0,c.hasClass)(n.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var n=(0,c.getWindowScrollTop)(),o=(0,c.getWindowScrollLeft)(),i=void 0,r=void 0,s=void 0,a=void 0,l=void 0,u=void 0,h=void 0;0!==t.dragged.length&&(i=document.elementFromPoint(e.touches[0].screenX-o,e.touches[0].screenY-n))&&i!==t.lastSetCell&&("TD"!=i.nodeName&&"TH"!=i.nodeName||(r=t.hot.getCoords(i),-1==r.col&&(r.col=0),s=t.hot.getSelectedRange(),a=s.getWidth(),l=s.getHeight(),u=s.getDirection(),1==a&&1==l&&t.hot.selection.setRangeEnd(r),h=t.getCurrentRangeCoords(s,r,t.touchStartRange.direction,u,t.dragged[0]),null!==h.start&&t.hot.selection.setRangeStart(h.start),t.hot.selection.setRangeEnd(h.end),t.lastSetCell=i),e.preventDefault())})}},{key:"getCurrentRangeCoords",value:function(e,t,n,o,i){var r=e.getTopLeftCorner(),s=e.getBottomRightCorner(),a=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"==i?{start:new m.CellCoords(t.row,e.highlight.col),end:new m.CellCoords(a.row,t.col)}:{start:new m.CellCoords(e.highlight.row,t.col),end:new m.CellCoords(t.row,r.col)};break;case"SE-NW":"bottomRight"==i&&(u={start:new m.CellCoords(s.row,t.col),end:new m.CellCoords(t.row,r.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"==i?u={start:t,end:a}:u.end=t;break;case"NW-SE":"topLeft"==i?u={start:t,end:s}:u.end=t;break;case"SE-NW":"topLeft"==i?u={start:t,end:r}:u.end=t;break;case"SW-NE":"topLeft"==i?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"==i?{start:new m.CellCoords(t.row,r.col),end:new m.CellCoords(a.row,t.col)}:{start:new m.CellCoords(r.row,t.col),end:new m.CellCoords(t.row,s.col)};break;case"SW-NE":u="topLeft"==i?{start:new m.CellCoords(e.highlight.row,t.col),end:new m.CellCoords(t.row,s.col)}:{start:new m.CellCoords(t.row,r.col),end:new m.CellCoords(r.row,t.col)};break;case"SE-NW":"bottomRight"==i?u={start:new m.CellCoords(t.row,l.col),end:new m.CellCoords(r.row,t.col)}:"topLeft"==i&&(u={start:a,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==i&&(u.end=t);break;case"SE-NW":"topLeft"==i?u.end=t:u={start:t,end:r}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}]),t}(f.default);(0,v.registerPlugin)("multipleSelectionHandles",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},u=n(13),c=o(u),h=n(294),d=(o(h),n(422)),f=o(d),p=n(2),g=n(5),v=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.observer=null,n}return s(t,e),a(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new f.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n=this.pluginName+".change",o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[e.row,e.col,null,e.value],n)}};(0,p.arrayEach)(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),t}(c.default);t.default=v,(0,g.registerPlugin)("observeChanges",v)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(294),a=o(s),l=n(87),u=o(l),c=n(1),h=n(423),d=function(){function e(t){i(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}return r(e,[{key:"setObservedData",value:function(e){var t=this;this.observer&&a.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=a.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,h.cleanPatches)(e))}},{key:"destroy",value:function(){a.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),e}();(0,c.mixin)(d,u.default),t.default=d},function(e,t,n){"use strict";function o(e){var t=[];return e=(0,s.arrayFilter)(e,function(e){return!/[\/]length/gi.test(e.path)&&!!i(e.path)}),e=(0,s.arrayMap)(e,function(e){var t=i(e.path);return e.row=t.row,e.col=t.col,e}),e=(0,s.arrayFilter)(e,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,e}function i(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=r(t,3),o=n[1],i=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(i)?parseInt(i,10):i}}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.cleanPatches=o,t.parsePath=i;var s=n(2)},function(e,t,n){"use strict";function o(e){var t,n=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)},o=function(){t=[],n()};!function(){var n=window.localStorage[e+"__persistentStateKeys"],o="string"==typeof n?JSON.parse(n):void 0;t=o||[]}(),this.saveValue=function(o,i){window.localStorage[e+"_"+o]=JSON.stringify(i),-1==t.indexOf(o)&&(t.push(o),n())},this.loadValue=function(t,n){t=void 0===t?n:t;var o=window.localStorage[e+"_"+t];return void 0===o?void 0:JSON.parse(o)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var n=0;t.length>n;n++)window.localStorage.removeItem(e+"_"+t[n]);o()}}function i(){function e(){var e=this;for(var t in i)(0,a.hasOwnProperty)(i,t)&&e.addHook(t,i[t])}function t(){var e=this;for(var t in i)(0,a.hasOwnProperty)(i,t)&&e.removeHook(t,i[t])}var n=this;this.init=function(){var i=this,r=i.getSettings().persistentState;if(!(n.enabled=!!r))return void t.call(i);i.storage||(i.storage=new o(i.rootElement.id)),i.resetState=n.resetValue,e.call(i)},this.saveValue=function(e,t){this.storage.saveValue(e,t)},this.loadValue=function(e,t){t.value=this.storage.loadValue(e)},this.resetValue=function(e){var t=this;void 0===e?t.storage.resetAll():t.storage.reset(e)};var i={persistentStateSave:n.saveValue,persistentStateLoad:n.loadValue,persistentStateReset:n.resetValue};for(var r in i)(0,a.hasOwnProperty)(i,r)&&s.default.getSingleton().register(r)}t.__esModule=!0;var r=n(7),s=function(e){return e&&e.__esModule?e:{default:e}}(r),a=(n(5),n(1)),l=new i;s.default.getSingleton().add("beforeInit",l.init),s.default.getSingleton().add("afterUpdateSettings",l.init),t.default=i},function(e,t,n){"use strict";function o(e){this.query=function(t,n,i){var r=e.countRows(),s=e.countCols(),a=[];n||(n=o.global.getDefaultCallback()),i||(i=o.global.getDefaultQueryMethod());for(var l=0;r>l;l++)for(var u=0;s>u;u++){var c=e.getDataAtCell(l,u),h=e.getCellMeta(l,u),d=h.search.callback||n,f=h.search.queryMethod||i,p=f(t,c);if(p){var g={row:l,col:u,data:c};a.push(g)}d&&d(e,l,u,c,p)}return a}}function i(e,t,n,i,r,a,l){var c=null!==l.search&&"object"==s(l.search)&&l.search.searchResultClass||o.global.getDefaultSearchResultClass();l.isSearchResult?(0,u.addClass)(t,c):(0,u.removeClass)(t,c)}function r(){var e=this;!e.getSettings().search?delete e.search:e.search=new o(e)}t.__esModule=!0;var s="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},a=n(7),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0),c=n(8);o.DEFAULT_CALLBACK=function(e,t,n,o,i){e.getCellMeta(t,n).isSearchResult=i},o.DEFAULT_QUERY_METHOD=function(e,t){return!(void 0===e||null==e||!e.toLowerCase||0===e.length)&&(void 0!==t&&null!=t&&-1!=(""+t).toLowerCase().indexOf(e.toLowerCase()))},o.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",o.global=function(){var e=o.DEFAULT_CALLBACK,t=o.DEFAULT_QUERY_METHOD,n=o.DEFAULT_SEARCH_RESULT_CLASS;return{getDefaultCallback:function(){return e},setDefaultCallback:function(t){e=t},getDefaultQueryMethod:function(){return t},setDefaultQueryMethod:function(e){t=e},getDefaultSearchResultClass:function(){return n},setDefaultSearchResultClass:function(e){n=e}}}();var h=(0,c.getRenderer)("base");(0,c.registerRenderer)("base",function(e,t,n,o,r,s,a){h.apply(this,arguments),i.apply(this,arguments)}),l.default.getSingleton().add("afterInit",r),l.default.getSingleton().add("afterUpdateSettings",r),t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)},l=n(0),u=n(2),c=n(13),h=function(e){return e&&e.__esModule?e:{default:e}}(c),d=n(5),f=n(34),p=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}return r(t,e),s(t,[{key:"isEnabled",value:function(){return(0,f.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,i=e.topLeftCornerOverlay,r=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),i&&this.scrollbars.push(i),r&&r.clone&&this.scrollbars.push(r),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&this.clones.push(i.clone.wtTable.holder.parentNode),r&&r.clone&&this.clones.push(r.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,u.arrayEach)(this.clones,function(e){(0,l.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,u.arrayEach)(this.clones,function(e){(0,l.removeClass)(e,"hide-tween"),(0,l.addClass)(e,"show-tween")}),setTimeout(function(){(0,u.arrayEach)(e.clones,function(e){(0,l.removeClass)(e,"show-tween")})},400),(0,u.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),t}(h.default);(0,d.registerPlugin)("touchScroll",p),t.default=p},function(e,t,n){"use strict";function o(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&t.done(new o.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,i){if("UndoRedo.undo"!==i&&"UndoRedo.undo"!==i&&"auto"!==i){var r=new o.CreateRowAction(e,n);t.done(r)}}),e.addHook("beforeRemoveRow",function(e,n,i,r){if("UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var s=t.instance.getSourceDataArray();e=(s.length+e)%s.length;var a=(0,f.deepClone)(s.slice(e,e+n));t.done(new o.RemoveRowAction(e,a))}}),e.addHook("afterCreateCol",function(e,n,i){"UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i&&t.done(new o.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,i,r,s){if("UndoRedo.undo"!==s&&"UndoRedo.redo"!==s&&"auto"!==s){var a=t.instance.getSourceDataArray();n=(t.instance.countCols()+n)%t.instance.countCols();var l=[],u=[],c=[];(0,d.rangeEach)(a.length-1,function(t){var o=[],r=a[t];(0,d.rangeEach)(n,n+(i-1),function(t){o.push(r[e.runHooks("modifyCol",t)])}),l.push(o)}),(0,d.rangeEach)(i-1,function(t){c.push(e.runHooks("modifyCol",n+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,d.rangeEach)(i-1,function(t){u.push(e.getSettings().colHeaders[e.runHooks("modifyCol",n+t)]||null)});var h=t.instance.getPlugin("manualColumnMove"),f=h.isEnabled()?h.columnsMapper.__arrayMap:[],p=new o.RemoveColumnAction(n,c,l,u,f);t.done(p)}}),e.addHook("beforeCellAlignment",function(e,n,i,r){var s=new o.CellAlignmentAction(e,n,i,r);t.done(s)}),e.addHook("beforeFilter",function(e){t.done(new o.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){!1!==e&&t.done(new o.RowMoveAction(e,n))})}function i(){var e=this;void 0===e.getSettings().undo||e.getSettings().undo?e.undoRedo||(e.undoRedo=new o(e),a(e),e.addHook("beforeKeyDown",r),e.addHook("afterChange",s)):e.undoRedo&&(delete e.undoRedo,l(e),e.removeHook("beforeKeyDown",r),e.removeHook("afterChange",s))}function r(e){var t=this;(e.ctrlKey||e.metaKey)&&!e.altKey&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),(0,p.stopImmediatePropagation)(e)):90===e.keyCode&&(t.undoRedo.undo(),(0,p.stopImmediatePropagation)(e)))}function s(e,t){var n=this;if("loadData"===t)return n.undoRedo.clear()}function a(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function l(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}var u=n(7),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=n(2),d=n(6),f=n(1),p=n(10),g=n(12);o.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},o.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,f.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,function(){o.ignoreNewActions=!1,o.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},o.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,f.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,function(){o.ignoreNewActions=!1,o.doneActions.push(e)}),n.runHooks("afterRedo",t)}},o.prototype.isUndoAvailable=function(){return this.doneActions.length>0},o.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},o.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},o.Action=function(){},o.Action.prototype.undo=function(){},o.Action.prototype.redo=function(){},o.ChangeAction=function(e){this.changes=e,this.actionType="change"},(0,f.inherit)(o.ChangeAction,o.Action),o.ChangeAction.prototype.undo=function(e,t){for(var n=(0,f.deepClone)(this.changes),o=e.countEmptyRows(!0),i=e.countEmptyCols(!0),r=0,s=n.length;s>r;r++)n[r].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var a=0,l=n.length;l>a;a++)e.getSettings().minSpareRows&&n[a][0]+1+e.getSettings().minSpareRows===e.countRows()&&o==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[a][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[a][1]+1+e.getSettings().minSpareCols===e.countCols()&&i==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[a][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},o.ChangeAction.prototype.redo=function(e,t){for(var n=(0,f.deepClone)(this.changes),o=0,i=n.length;i>o;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},o.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,f.inherit)(o.CreateRowAction,o.Action),o.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&n>this.index-o&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},o.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},o.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,f.inherit)(o.RemoveRowAction,o.Action),o.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},o.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},o.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,f.inherit)(o.CreateColumnAction,o.Action),o.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},o.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},o.RemoveColumnAction=function(e,t,n,o,i){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=i.slice(0),this.actionType="remove_col"},(0,f.inherit)(o.RemoveColumnAction,o.Action),o.RemoveColumnAction.prototype.undo=function(e,t){var n=this,o=void 0,i=this.indexes.slice(0).sort(),r=function(e,t,o){return o[n.indexes.indexOf(i[t])]},s=[];(0,d.rangeEach)(this.data.length-1,function(e){s[e]=(0,h.arrayMap)(n.data[e],r)});var a=[];a=(0,h.arrayMap)(this.headers,r);var l=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),(0,d.rangeEach)(this.data.length-1,function(t){o=e.getSourceDataAtRow(t),(0,d.rangeEach)(i.length-1,function(e){o.splice(i[e],0,s[t][e]),l.push([t,i[e],null,s[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(l),void 0!==this.headers&&(0,d.rangeEach)(a.length-1,function(t){e.getSettings().colHeaders.splice(i[t],0,a[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},o.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},o.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o},o.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var n=this.range.from.row;this.range.to.row>=n;n++)for(var o=this.range.from.col;this.range.to.col>=o;o++)e.setCellMeta(n,o,"className",this.stateBefore[n][o]||" htLeft");e.addHookOnce("afterRender",t),e.render()}},o.CellAlignmentAction.prototype.redo=function(e,t){e.getPlugin("contextMenu").isEnabled()&&(e.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),e.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),e.addHookOnce("afterRender",t),e.render())},o.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,f.inherit)(o.FiltersAction,o.Action),o.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},o.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()},o.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,f.inherit)(o.RowMoveAction,o.Action),o.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.target>this.rows[0]?-1*this.rows.length:0,i=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],r=[],s=this.rows.length+o,a=o;s>a;a++)r.push(this.target+a);n.moveRows(r.slice(),i),e.render(),e.selection.setRangeStartOnly(new g.CellCoords(this.rows[0],0)),e.selection.setRangeEnd(new g.CellCoords(this.rows[this.rows.length-1],e.countCols()-1))},o.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.target>this.rows[0]?this.target-this.rows.length:this.target;e.selection.setRangeStartOnly(new g.CellCoords(o,0)),e.selection.setRangeEnd(new g.CellCoords(o+this.rows.length-1,e.countCols()-1))};var v=c.default.getSingleton();v.add("afterInit",i),v.add("afterUpdateSettings",i),v.register("beforeUndo"),v.register("afterUndo"),v.register("beforeRedo"),v.register("afterRedo")}]).default});
|