/*! * (The MIT License) * * Copyright (c) 2012-2014 Marcin Warpechowski * Copyright (c) 2015 Handsoncode sp. z o.o. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * 'Software'), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Version: 0.32.0 * Date: Tue May 30 2017 12:18:39 GMT+0200 (CEST) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("numbro"),require("pikaday"),require("zeroclipboard")):"function"==typeof define&&define.amd?define("Handsontable",["moment","numbro","pikaday","zeroclipboard"],t):"object"==typeof exports?exports.Handsontable=t(require("moment"),require("numbro"),require("pikaday"),require("zeroclipboard")):e.Handsontable=t(e.moment,e.numbro,e.Pikaday,e.ZeroClipboard)}(this,function(e,t,o,n){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=209)}([function(e,t,o){"use strict";function n(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,n=null;null!=e;){if(o===t){n=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(o++,e=e.parentNode)}return n}function r(e,t,o){for(;null!=e&&e!==o;){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 i(e,t,o){for(var n=[];e&&(e=r(e,t,o))&&(!o||o.contains(e));)n.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var i=n.length;return i?n[i-1]:null}function s(e,t){var o=e.parentNode,n=[];for("string"==typeof t?n=Array.prototype.slice.call(document.querySelectorAll(t),0):n.push(t);null!=o;){if(n.indexOf(o)>-1)return!0;o=o.parentNode}return!1}function l(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===n.toUpperCase()}var o,n="hot-table",r=!1;for(o=a(e);null!=o;){if(t(o)){r=!0;break}if(o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r=t(o.host))break;o=o.host}o=o.parentNode}return r}function a(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 o=document.querySelector(".ht_clone_"+e);return o?o.contains(t):null}function d(e){var t=0,o=[];if(!e||!e.length)return o;for(;e[t];)o.push(e[t]),t++;return o}function f(e,t){return q(e,t)}function p(e,t){return Q(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 o=e.childNodes,n=o.length-1;n>=0;n--)v(o[n],e)}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}function y(e,t){re.test(t)?e.innerHTML=t:w(e,t)}function w(e,t){var o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?ie?o.textContent=t:o.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,o,n,r,i;if(r=document.documentElement,(0,Z.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return i=e.getBoundingClientRect(),{top:i.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)};for(t=e.offsetLeft,o=e.offsetTop,n=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,o+=e.offsetTop,n=e;return n&&"fixed"===n.style.position&&(t+=window.pageXOffset||r.scrollLeft,o+=window.pageYOffset||r.scrollTop),{left:t,top:o}}function S(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function E(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function R(e){return e===window?S():e.scrollTop}function O(e){return e===window?E():e.scrollLeft}function k(e){for(var t,o,n,r=e.parentNode,i=["auto","scroll"],s="",l="",a="",u="";r&&r.style&&document.body!==r;){if(t=r.style.overflow,o=r.style.overflowX,n=r.style.overflowY,"scroll"==t||"scroll"==o||"scroll"==n)return r;if(window.getComputedStyle&&(s=window.getComputedStyle(r),l=s.getPropertyValue("overflow"),a=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===l||"scroll"===u||"scroll"===a))return r;if(r.scrollHeight>=r.clientHeight&&(-1!==i.indexOf(n)||-1!==i.indexOf(t)||-1!==i.indexOf(l)||-1!==i.indexOf(a)))return r;if(r.scrollWidth>=r.clientWidth&&(-1!==i.indexOf(o)||-1!==i.indexOf(t)||-1!==i.indexOf(l)||-1!==i.indexOf(u)))return r;r=r.parentNode}return window}function T(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 o=window.getComputedStyle(t);if("visible"!==o.getPropertyValue("overflow")&&""!==o.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function _(e,t){if(e){if(e!==window){var o,n=e.style[t];return""!==n&&void 0!==n?n:(o=M(e),""!==o[t]&&void 0!==o[t]?o[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 A(e){return(0,Z.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function P(e){return e.clientHeight||e.innerHeight}function x(e){return e.clientWidth||e.innerWidth}function D(e,t,o){window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o)}function L(e,t,o){window.removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent("on"+t,o)}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 o=e.createTextRange(),n=o.duplicate();return o.moveToBookmark(t.getBookmark()),n.setEndPoint("EndToStart",o),n.text.length}return 0}function I(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 j(){var e="";return window.getSelection?e=""+window.getSelection():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function W(e,t,o){if(void 0===o&&(o=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(i){var n=e.parentNode,r=n.style.display;n.style.display="block",e.setSelectionRange(t,o),n.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",o),i.moveStart("character",t),i.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 o=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;return o==n&&(n=t.clientWidth),(document.body||document.documentElement).removeChild(t),o-n}function B(){return void 0===ne&&(ne=F()),ne}function V(e){return e.offsetWidth!==e.clientWidth}function z(e){return e.offsetHeight!==e.clientHeight}function K(e,t,o){(0,$.isIE8)()||(0,$.isIE9)()?(e.style.top=o,e.style.left=t):(0,$.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+o+",0)":e.style.transform="translate3d("+t+","+o+",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 Y(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=n,t.closest=r,t.closestDown=i,t.isChildOf=s,t.isChildOfWebComponentTable=l,t.polymerWrap=a,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=E,t.getScrollTop=R,t.getScrollLeft=O,t.getScrollableElement=k,t.getTrimmingContainer=T,t.getStyle=_,t.getComputedStyle=M,t.outerWidth=H,t.outerHeight=A,t.innerHeight=P,t.innerWidth=x,t.addEvent=D,t.removeEvent=L,t.getCaretPosition=N,t.getSelectionEndPosition=I,t.getSelectionText=j,t.setCaretPosition=W,t.getScrollbarWidth=B,t.hasVerticalScrollbar=V,t.hasHorizontalScrollbar=z,t.setOverlayPosition=K,t.getCssTransform=U,t.resetCssTransform=Y,t.isInput=G,t.isOutsideInput=X;var q,Q,J,$=o(25),Z=o(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""!==t&&e.classList.contains(t)},Q=function(e,t){var o=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.add.apply(e.classList,t);else for(;t&&t[o];)e.classList.add(t[o]),o++},J=function(e,t){var o=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.remove.apply(e.classList,t);else for(;t&&t[o];)e.classList.remove(t[o]),o++}}else{var oe=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};q=function(e,t){return!!e.className.match(oe(t))},Q=function(e,t){var o=0,n=e.className;if("string"==typeof t&&(t=t.split(" ")),""===n)n=t.join(" ");else for(;t&&t[o];)oe(t[o]).test(n)||(n+=" "+t[o]),o++;e.className=n},J=function(e,t){var o=0,n=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[o];)n=n.replace(oe(t[o])," ").trim(),o++;e.className!==n&&(e.className=n)}}var ne,re=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,ie=!!document.createTextNode("test").textContent},function(e,t,o){"use strict";function n(e){for(var t=0,o=e.length;o>t;)e[t]=[e[t]],t++}function r(e,t){for(var o=0,n=t.length;n>o;)e.push(t[o]),o++}function i(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var o=e.length,n=e[0].length,r=0;o>r;r++)for(var i=0;n>i;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t}function s(e,t,o,n){var r=-1,i=e.length;for(n&&i&&(o=e[++r]);++rt?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=n,t.extendArray=r,t.pivot=i,t.arrayReduce=s,t.arrayFilter=l,t.arrayMap=a,t.arrayEach=u,t.arraySum=c,t.arrayMax=h,t.arrayMin=d,t.arrayAvg=f,t.arrayFlatten=p,t.arrayUnique=g},function(e,t,o){"use strict";function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function r(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,o){"__children"!==o&&(t[o]=e&&"object"===(void 0===e?"undefined":w(e))&&!Array.isArray(e)?r(e):Array.isArray(e)?e.length&&"object"===w(e[0])&&!Array.isArray(e[0])?[r(e[0])]:[]:null)})),t}function i(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,o){e[o]=t}),e}function l(e,t){p(t,function(o,n){t[n]&&"object"===w(t[n])?(e[n]||(e[n]=Array.isArray(t[n])?[]:"[object Date]"===Object.prototype.toString.call(t[n])?t[n]:{}),l(e[n],t[n])):e[n]=t[n]})}function a(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,o){t[o]=e}),t}function c(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];return(0,C.arrayEach)(o,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,o){if(void 0!==e.prototype[o])throw Error("Mixin conflict. Property '"+o+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[o]=t;else{Object.defineProperty(e.prototype,o,{get:function(e,t){e="_"+e;var o=function(e){return(Array.isArray(e)||d(e))&&(e=a(e)),e};return function(){return void 0===this[e]&&(this[e]=o(t)),this[e]}}(o,t),set:function(e){return e="_"+e,function(t){this[e]=t}}(o),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,o,n){n.value=o,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)}function p(e,t){for(var o in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,o))&&!1===t(e[o],o,e))break;return e}function g(e,t){var o=t.split("."),n=e;return p(o,function(e){if(void 0===(n=n[e]))return n=void 0,!1}),n}function v(e){if(!d(e))return 0;return function e(t){var o=0;return d(t)?p(t,function(t){o+=e(t)}):o++,o}(e)}function m(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_"+o,i=(t={_touched:!1},n(t,r,e),n(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(i,o,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i}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=r,t.inherit=i,t.extend=s,t.deepExtend=l,t.deepClone=a,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=o(1)},function(e,t,o){var n=o(13),r=o(44),i=o(32),s=o(33),l=o(29),a=function(e,t,o){var u,c,h,d,f=e&a.F,p=e&a.G,g=e&a.S,v=e&a.P,m=e&a.B,y=p?n:g?n[t]||(n[t]={}):(n[t]||{}).prototype,w=p?r:r[t]||(r[t]={}),C=w.prototype||(w.prototype={});p&&(o=t);for(u in o)c=!f&&y&&void 0!==y[u],h=(c?y:o)[u],d=m&&c?l(h,n):v&&"function"==typeof h?l(Function.call,h):h,y&&s(y,u,h,e&a.U),w[u]!=h&&i(w,u,d),v&&C[u]!=h&&(C[u]=h)};n.core=r,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var o=void 0,n=void 0,r=void 0,i=void 0,s=void 0,c=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,c=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){c.apply(this),(0,u.stopImmediatePropagation)(this)},!h.isHotTableEnv)return t;for(t=(0,l.polymerWrap)(t),s=t.path?t.path.length:0;s--;){if("HOT-TABLE"===t.path[s].nodeName)o=!0;else if(o&&t.path[s].shadowRoot){i=t.path[s];break}0!==s||i||(i=t.path[s])}return i||(i=t.target),t.isTargetWebComponent=!0,(0,a.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(e instanceof Core||e instanceof Walkontable)&&(e instanceof Core?n=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(n=e.wtTable.TABLE.parentNode.parentNode),r=(0,l.closest)(t.target,["HOT-TABLE"],n),t.realTarget=r?n.querySelector("HOT-TABLE")||t.target:t.target),Object.defineProperty(t,"target",{get:function(){return(0,l.polymerWrap)(i)},enumerable:!0,configurable:!0}),t}function i(){return c}t.__esModule=!0;var s=function(){function e(e,t){for(var o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}();t.getListenersCounter=i;var l=o(0),a=o(34),u=o(7),c=0,h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return s(e,[{key:"addEventListener",value:function(e,t,o){function n(e){e=r(s,e),o.call(this,e)}var i=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:o,callbackProxy:n}),window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n),c++,function(){i.removeEventListener(e,t,o)}}},{key:"removeEventListener",value:function(e,t,o){for(var n=this.context.eventListeners.length,r=void 0;n--;)if(r=this.context.eventListeners[n],r.event==t&&r.element==e){if(o&&o!=r.callback)continue;this.context.eventListeners.splice(n,1),r.element.removeEventListener?r.element.removeEventListener(r.event,r.callbackProxy,!1):r.element.detachEvent("on"+r.event,r.callbackProxy),c--}}},{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 o,n={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?(o=document.createEvent("MouseEvents"),o.initMouseEvent(t,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget||document.body.parentNode)):o=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on"+t,o)}}]),e}();t.default=h},function(e,t,o){"use strict";function n(e,t){e=(0,c.toUpperCaseFirst)(e),a.default.getSingleton().add("construct",function(){var o=void 0;h.has(this)||h.set(this,{}),o=h.get(this),o[e]||(o[e]=new t(this))}),a.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 r(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var o=(0,c.toUpperCaseFirst)(t);if(h.has(e)&&h.get(e)[o])return h.get(e)[o]}function i(e){return h.has(e)?Object.keys(h.get(e)):[]}function s(e,t){var o=null;return h.has(e)&&(0,u.objectEach)(h.get(e),function(e,n){e===t&&(o=n)}),o}t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var l=o(8),a=function(e){return e&&e.__esModule?e:{default:e}}(l),u=o(2),c=o(27),h=new WeakMap;t.registerPlugin=n,t.getPlugin=r,t.getRegistredPluginNames=i,t.getPluginName=s},function(e,t,o){"use strict";function n(e){var t=void 0===e?"undefined":l(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 r(e,t,o){var n=-1;for("function"==typeof t?(o=t,t=e):n=e-1;++n<=t&&!1!==o(n););}function i(e,t,o){var n=e+1;for("function"==typeof t&&(o=t,t=0);--n>=t&&!1!==o(n););}function s(e,t){return t=parseInt((""+t).replace("%",""),10),t=parseInt(e*t/100,10)}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};t.isNumeric=n,t.rangeEach=r,t.rangeEachReverse=i,t.valueAccordingPercent=s},function(e,t,o){"use strict";function n(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return!1===e.isImmediatePropagationEnabled}function i(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+(0,c.getWindowScrollLeft)()}function l(e){return e.pageY?e.pageY:e.clientY+(0,c.getWindowScrollTop)()}function a(e){return 2===e.button}function u(e){return 0===e.button}t.__esModule=!0,t.stopImmediatePropagation=n,t.isImmediatePropagationStopped=r,t.stopPropagation=i,t.pageX=s,t.pageY=l,t.isRightClick=a,t.isLeftClick=u;var c=o(0)},function(e,t,o){"use strict";function n(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 o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(1),s=o(2),l=["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","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","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","beforeValueRender","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing"],a=function(){function e(){n(this,e),this.globalBucket=this.createEmptyBucket()}return r(e,null,[{key:"getSingleton",value:function(){return u}}]),r(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,i.arrayEach)(l,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 o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,i.arrayEach)(t,function(t){return o.add(e,t,n)});else{var r=this.getBucket(n);if(void 0===r[e]&&(this.register(e),r[e]=[]),t.skip=!1,-1===r[e].indexOf(t)){var s=!1;t.initialHook&&(0,i.arrayEach)(r[e],function(o,n){if(o.initialHook)return r[e][n]=t,s=!0,!1}),s||r[e].push(t)}}return this}},{key:"once",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,i.arrayEach)(t,function(t){return o.once(e,t,n)}):(t.runOnce=!0,this.add(e,t,n))}},{key:"remove",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.getBucket(o);return void 0!==n[e]&&n[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,o=this.getBucket(t);return!(void 0===o[e]||!o[e].length)}},{key:"run",value:function(e,t,o,n,r,i,s,l){var a=this.globalBucket[t],u=-1,c=a?a.length:0;if(c)for(;++u0&&void 0!==arguments[0]?arguments[0]:null),function(e,t,o){return o[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||l.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&l.splice(l.indexOf(e),1)}},{key:"isRegistered",value:function(e){return l.indexOf(e)>=0}},{key:"getRegistered",value:function(){return l}}]),e}(),u=new a;t.default=a},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){if("function"==typeof e)return e;if(!R(e))throw Error('No registered renderer found under "'+e+'" name');return E(e)}t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var i=o(51),s=n(i),l=o(260),a=n(l),u=o(261),c=n(u),h=o(262),d=n(h),f=o(263),p=n(f),g=o(264),v=n(g),m=o(265),y=n(m),w=o(266),C=n(w),b=(0,s.default)("renderers"),S=b.register,E=b.getItem,R=b.hasItem,O=b.getNames,k=b.getValues;S("base",a.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=r,t.hasRenderer=R,t.getRegisteredRendererNames=O,t.getRegisteredRenderers=k},function(e,t,o){var n=o(82)("wks"),r=o(49),i=o(13).Symbol,s="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=s&&i[e]||(s?i:r)("Symbol."+e))}).store=n},function(e,t,o){"use strict";function n(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,o(96),o(113),o(122),o(123),o(107),o(121),o(104),o(105),o(106),o(95),o(118),o(116),o(114),o(119),o(120),o(115),o(117),o(108),o(109),o(110),o(112),o(111),o(93),o(94),o(89),o(92),o(91),o(90),o(68),o(98),o(99),o(101),o(100),o(97),o(103),o(102),o(124),o(127),o(125),o(126),o(129),o(128),o(131),o(130);var r=o(135),i=n(r),s=o(136),l=n(s),a=o(42),u=n(a),c=o(69),h=n(c),d=o(139),f=n(d),p=o(140),g=n(p),v=o(185),m=n(v),y=o(186),w=n(y),C=o(187),b=n(C),S=o(188),E=n(S),R=o(134),O=n(R),k=o(137),T=n(k),_=o(138),M=n(_),H=o(141),A=n(H),P=o(142),x=n(P),D=o(189),L=n(D),N=o(143),I=n(N),j=o(144),W=n(j),F=o(145),B=n(F),V=o(146),z=n(V);t.ViewportColumnsCalculator=i.default,t.ViewportRowsCalculator=l.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=E.default,t.Border=O.default,t.default=T.default,t.Core=T.default,t.Event=M.default,t.Overlays=A.default,t.Scroll=x.default,t.Selection=L.default,t.Settings=I.default,t.Table=W.default,t.TableRenderer=B.default,t.Viewport=z.default},function(e,t,o){"use strict";function n(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 o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(2),s=o(1),l=o(153),a=o(5),u=new WeakMap,c=null;t.default=function(){function e(t){var o=this;n(this,e),(0,i.defineGetter)(this,"hot",t,{writable:!1}),(0,i.defineGetter)(this,"t",(0,l.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 o.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return o.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return o.init()})}return r(e,[{key:"init",value:function(){this.pluginName=(0,a.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),c||(c=(0,a.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 o=u.get(this).hooks[e];this.hot.addHook(e,t),o.push(t),u.get(this).hooks[e]=o}},{key:"removeHooks",value:function(e){var t=this;(0,s.arrayEach)(u.get(this).hooks[e]||[],function(o){t.hot.removeHook(e,o)})}},{key:"clearHooks",value:function(){var e=this,t=u.get(this).hooks;(0,i.objectEach)(t,function(t,o){return e.removeHooks(o)}),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,i.objectEach)(this,function(t,o){"hot"!==o&&"t"!==o&&(e[o]=null)}),delete this.t,delete this.hot}}]),e}()},function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){var t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},h.default.getSingleton().add("afterDestroy",function(){t={}})}function i(e,t){var o=void 0;if("function"==typeof e)D.get(e)||l(null,e),o=D.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=I(e)}if(!o)throw Error('No editor registered under name "'+e+'"');return o.getInstance(t)}function s(e){if(!j(e))throw Error('No registered editor found under "'+e+'" name');return I(e).getConstructor()}function l(e,t){var o=new r(t);"string"==typeof e&&N(e,o),D.set(t,o)}t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=r,t._getEditorInstance=i;var a=o(51),u=n(a),c=o(8),h=n(c),d=o(36),f=n(d),p=o(147),g=n(p),v=o(202),m=n(v),y=o(203),w=n(y),C=o(204),b=n(C),S=o(148),E=n(S),R=o(205),O=n(R),k=o(206),T=n(k),_=o(207),M=n(_),H=o(208),A=n(H),P=o(43),x=n(P),D=new WeakMap,L=(0,u.default)("editors"),N=L.register,I=L.getItem,j=L.hasItem,W=L.getNames,F=L.getValues;l("base",f.default),l("autocomplete",g.default),l("checkbox",m.default),l("date",w.default),l("dropdown",b.default),l("handsontable",E.default),l("mobile",O.default),l("numeric",T.default),l("password",M.default),l("select",A.default),l("text",x.default),t.registerEditor=l,t.getEditor=s,t.getEditorInstance=i,t.hasEditor=j,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,o){"use strict";function n(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 r(e){return-1!==[a.ARROW_DOWN,a.ARROW_UP,a.ARROW_LEFT,a.ARROW_RIGHT,a.HOME,a.END,a.DELETE,a.BACKSPACE,a.F1,a.F2,a.F3,a.F4,a.F5,a.F6,a.F7,a.F8,a.F9,a.F10,a.F11,a.F12,a.TAB,a.PAGE_DOWN,a.PAGE_UP,a.ENTER,a.ESCAPE,a.SHIFT,a.CAPS_LOCK,a.ALT].indexOf(e)}function i(e){return-1!==[a.CONTROL_LEFT,224,a.COMMAND_LEFT,a.COMMAND_RIGHT].indexOf(e)}function s(e,t){var o=t.split("|"),n=!1;return(0,l.arrayEach)(o,function(t){if(e===a[t])return n=!0,!1}),n}t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=n,t.isMetaKey=r,t.isCtrlKey=i,t.isKey=s;var l=o(1),a=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,o){"use strict";function n(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function r(e){return(0,S.hasClass)(e,"htSeparator")}function i(e){return(0,S.hasClass)(e,"htSubmenu")}function s(e){return(0,S.hasClass)(e,"htDisabled")}function l(e){return(0,S.hasClass)(e,"htSelectionDisabled")}function a(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 o={},n=e.from.row;e.to.row>=n;n++)for(var r=e.from.col;e.to.col>=r;r++)o[n]||(o[n]=[]),o[n][r]=t(n,r);return o}function d(e,t,o,n,r){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,o,n,r);else for(var i=e.from.row;e.to.row>=i;i++)for(var s=e.from.col;e.to.col>=s;s++)f(i,s,t,o,n,r)}function f(e,t,o,n,r,i){var s=r(e,t),l=n;s.className&&(l="vertical"===o?u(s.className,n):c(s.className,n)),i(e,t,"className",l)}function p(e,t){var o=!1;return e&&e.forAll(function(e,n){if(t(e,n))return o=!0,!1}),o}function g(e){return''+String.fromCharCode(10003)+""+e}function v(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function m(e,t){for(var o=e.slice(0);o.length>0&&o[0].name===t;)o.shift();return o}function y(e,t){var o=e.slice(0);return o.reverse(),o=m(o,t),o.reverse(),o}function w(e){var t=[];return(0,b.arrayEach)(e,function(e,o){o>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]:E.KEY,o=e.slice(0);return o=m(o,t),o=y(o,t),o=w(o)}t.__esModule=!0,t.normalizeSelection=n,t.isSeparator=r,t.hasSubMenu=i,t.isDisabled=s,t.isSelectionDisabled=l,t.getValidSelection=a,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=o(1),S=o(0),E=o(70)},function(e,t,o){var n=o(15);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,o){var n=o(18),r=o(160),i=o(85),s=Object.defineProperty;t.f=o(21)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},function(e,t,o){"use strict";function n(e){var t=void 0;switch(void 0===e?"undefined":a(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 r(e){return void 0!==e}function i(e){return void 0===e}function s(e){return null===e||""===e||i(e)}function l(e){return"[object RegExp]"===Object.prototype.toString.call(e)}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.stringify=n,t.isDefined=r,t.isUndefined=i,t.isEmpty=s,t.isRegExp=l},function(e,t,o){e.exports=!o(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},function(e,t,o){var n=o(76),r=o(30);e.exports=function(e){return n(r(e))}},function(e,t,o){var n=o(61),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t,o){"use strict";function n(){return a}function r(){return u}function i(){return c}function s(){return h}function l(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}t.__esModule=!0,t.isIE8=n,t.isIE9=r,t.isSafari=i,t.isChrome=s,t.isMobileBrowser=l;var a=!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,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(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 i=o(51),s=n(i),l=o(271),a=n(l),u=o(272),c=n(u),h=o(273),d=n(h),f=o(274),p=n(f),g=(0,s.default)("validators"),v=g.register,m=g.getItem,y=g.hasItem,w=g.getNames,C=g.getValues;v("autocomplete",a.default),v("date",c.default),v("numeric",d.default),v("time",p.default),t.registerValidator=v,t.getValidator=r,t.hasValidator=y,t.getRegisteredValidatorNames=w,t.getRegisteredValidators=C},function(e,t,o){"use strict";function n(e){return e[0].toUpperCase()+e.substr(1)}function r(){for(var e=[],t=arguments.length,o=Array(t),n=0;t>n;n++)o[n]=arguments[n];for(var r=o.length;r--;){var i=(0,u.stringify)(o[r]).toLowerCase();-1===e.indexOf(i)&&e.push(i)}return 1===e.length}function i(){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 l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,o){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o]})}function a(e){return e+="",e.replace(c,"")}t.__esModule=!0,t.toUpperCaseFirst=n,t.equalsIgnoreCase=r,t.randomString=i,t.isPercentValue=s,t.substitute=l,t.stripTags=a;var u=o(20),c=(o(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(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 o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),s=o(0),l=o(2),a=o(1),u=o(4),c=n(u),h=o(137),d=n(h),f={};t.default=function(){function e(t){r(this,e),(0,l.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 i(e,null,[{key:"registerOverlay",value:function(t,o){if(-1===e.CLONE_TYPES.indexOf(t))throw Error("Unsupported overlay ("+t+").");f[t]=o}},{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]}}]),i(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 o=document.createElement("DIV"),n=document.createElement("TABLE");o.className="ht_clone_"+t+" handsontable",o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.overflow="hidden",n.className=this.wot.wtTable.TABLE.className,o.appendChild(n),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(o);var r=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=!0===r||"horizontal"===r&&this.type===e.CLONE_TOP||"vertical"===r&&this.type===e.CLONE_LEFT?window:(0,s.getScrollableElement)(this.wot.wtTable.TABLE),new d.default({cloneSource:this.wot,cloneOverlay:this,table:n})}},{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,a.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,o){var n=o(71);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}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,o){var n=o(19),r=o(40);e.exports=o(21)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},function(e,t,o){var n=o(13),r=o(32),i=o(22),s=o(49)("src"),l=Function.toString,a=(""+l).split("toString");o(44).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,o,l){var u="function"==typeof o;u&&(i(o,"name")||r(o,"name",t)),e[t]!==o&&(u&&(i(o,s)||r(o,s,e[t]?""+e[t]:a.join(t+""))),e===n?e[t]=o:l?e[t]?e[t]=o:r(e,t,o):(delete e[t],r(e,t,o)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||l.call(this)})},function(e,t,o){"use strict";function n(e){return f.call(window,e)}function r(e){p.call(window,e)}function i(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!(""+e.createShadowRoot).match(/\[native code\]/))}function l(){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="t
t";var o=document.createElement("CAPTION");o.innerHTML="c
c
c
c",o.style.padding=0,o.style.margin=0,e.insertBefore(o,t),document.body.appendChild(e),v=2*e.lastChild.offsetHeight>e.offsetHeight,document.body.removeChild(e)}function a(){return void 0===v&&l(),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=n,t.cancelAnimationFrame=r,t.isTouchSupported=i,t.isWebComponentSupportedNatively=s,t.hasCaptionProblem=a,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(),o=Math.max(0,16-(t-h)),n=window.setTimeout(function(){e(t+o)},o);return h=t+o,n}),p||(p=function(e){clearTimeout(e)});var v,m=void 0},function(e,t,o){"use strict";function n(e){return"function"==typeof e}function r(e){function t(){var t=this,s=arguments,l=Date.now(),a=!1;r.lastCallThrottled=!0,n||(n=l,a=!0);var u=o-(l-n);return a?(r.lastCallThrottled=!1,e.apply(this,s)):(i&&clearTimeout(i),i=setTimeout(function(){r.lastCallThrottled=!1,e.apply(t,s),n=0,i=void 0},u)),r}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},i=null;return t}function i(e){function t(){l=i}function o(){return l?(l--,e.apply(this,arguments)):s.apply(this,arguments)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=r(e,n),l=i;return o.clearHits=t,o}function s(e){function t(){var t=this,i=arguments;return n&&clearTimeout(n),n=setTimeout(function(){r=e.apply(t,i)},o),r}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null,r=void 0;return t}function l(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];var n=t[0],r=t.slice(1);return function(){return(0,h.arrayReduce)(r,function(e,t){return t(e)},n.apply(this,arguments))}}function a(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,o.concat(n))}}function u(e){function t(n){return function(){for(var r=arguments.length,i=Array(r),s=0;r>s;s++)i[s]=arguments[s];var l=n.concat(i);return o>l.length?t(l):e.apply(this,l)}}var o=e.length;return t([])}function c(e){function t(n){return function(){for(var r=arguments.length,i=Array(r),s=0;r>s;s++)i[s]=arguments[s];var l=n.concat(i.reverse());return o>l.length?t(l):e.apply(this,l)}}var o=e.length;return t([])}t.__esModule=!0,t.isFunction=n,t.throttle=r,t.throttleAfterHits=i,t.debounce=s,t.pipe=l,t.partial=a,t.curry=u,t.curryRight=c;var h=o(1)},function(e,t,o){"use strict";function n(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 r=o(11),i=o(20),s=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};n.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},n.prototype.init=function(){},n.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},n.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},n.prototype.open=function(){throw Error("Editor open() method unimplemented")},n.prototype.close=function(){throw Error("Editor close() method unimplemented")},n.prototype.prepare=function(e,t,o,n,r,i){this.TD=n,this.row=e,this.col=t,this.prop=o,this.originalValue=r,this.cellProperties=i;var l=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!l?document.activeElement.blur():l&&document.body.focus(),this.state=s.VIRGIN},n.prototype.extend=function(){function e(){t.apply(this,arguments)}var t=this.constructor;return function(e,t){function o(){}return o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e,e}(e,t)},n.prototype.saveValue=function(e,t){var o=void 0,n=void 0;t?(o=this.instance.getSelected(),o[0]>o[2]&&(n=o[0],o[0]=o[2],o[2]=n),o[1]>o[3]&&(n=o[1],o[1]=o[3],o[3]=n)):o=[this.row,this.col,null,null],this.instance.populateFromArray(o[0],o[1],e,o[2],o[3],"edit")},n.prototype.beginEditing=function(e,t){this.state==s.VIRGIN&&(this.instance.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=s.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,i.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},n.prototype.finishEditing=function(e,t,o){var n,r=this;if(o){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),o(e),r.instance.view.render()}}if(!this.isWaiting()){if(this.state==s.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){r._fireCallbacks(!0)},0));if(this.state==s.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var l=this.getValue();n=this.instance.getSettings().trimWhitespace?[["string"==typeof l?String.prototype.trim.call(l||""):l]]:[[l]],this.state=s.WAITING,this.saveValue(n,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=s.FINISHED,r.discardEditor(e)}):(this.state=s.FINISHED,this.discardEditor(!0))}}},n.prototype.cancelChanges=function(){this.state=s.FINISHED,this.discardEditor()},n.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)))},n.prototype.enableFullEditMode=function(){this._fullEditMode=!0},n.prototype.isInFullEditMode=function(){return this._fullEditMode},n.prototype.isOpened=function(){return this._opened},n.prototype.isWaiting=function(){return this.state===s.WAITING},n.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row=e-this.instance.getSettings().fixedRowsBottom?t=this.colo;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}();t.default=function(){function e(t,o){n(this,e),void 0!==t&&void 0!==o?(this.row=t,this.col=o):(this.row=null,this.col=null)}return r(e,[{key:"isValid",value:function(e){return this.row>=0&&this.col>=0&&(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,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=o(0),i=o(183),s=n(i),l=o(36),a=n(l),u=o(4),c=n(u),h=o(16),d=o(7),f=a.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,o=this,n=o.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===n.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:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ARROW_UP:case h.KEY_CODES.ARROW_DOWN:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ENTER:var i=n.instance.getSelected(),s=!(i[0]===i[2]&&i[1]===i[3]);if(t&&!s||e.altKey){if(n.isOpened()){var l=(0,r.getCaretPosition)(n.TEXTAREA),a=n.getValue();n.setValue(a.slice(0,l)+"\n"+a.slice(l)),(0,r.setCaretPosition)(n.TEXTAREA,l+1)}else n.beginEditing(n.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)&&n.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,r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},f.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,r.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,r.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===l.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close(!0);var e,t=(0,r.offset)(this.TD),o=(0,r.offset)(this.instance.rootElement),n=(0,r.getScrollableElement)(this.TD),i=this.instance.countRows(),s=t.top===o.top?0:1,a=t.top-o.top-s-(n.scrollTop||0),u=t.left-o.left-1-(n.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,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(h&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===i-c.fixedRowsBottom)&&(a+=1),0===this.instance.getSelected()[1]&&(u+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=a+"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,r.getScrollbarWidth)(),w=this.TD.offsetTop+p-m,C=this.TD.offsetLeft+g-v,b=(0,r.innerWidth)(this.TD)-8,S=(0,r.hasVerticalScrollbar)(n)?y:0,E=(0,r.hasHorizontalScrollbar)(n)?y:0,R=this.instance.view.maximumVisibleElementWidth(C)-9-S,O=this.TD.scrollHeight+1,k=Math.max(this.instance.view.maximumVisibleElementHeight(w)-E,23),T=(0,r.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=T.fontSize,this.TEXTAREA.style.fontFamily=T.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,r.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(O,k),maxHeight:k,minWidth:Math.min(b,R),maxWidth:R},!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 o=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=o)},function(e,t){e.exports={}},function(e,t,o){var n=o(49)("meta"),r=o(15),i=o(22),s=o(19).f,l=0,a=Object.isExtensible||function(){return!0},u=!o(31)(function(){return a(Object.preventExtensions({}))}),c=function(e){s(e,n,{value:{i:"O"+ ++l,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!a(e))return"F";if(!t)return"E";c(e)}return e[n].i},d=function(e,t){if(!i(e,n)){if(!a(e))return!0;if(!t)return!1;c(e)}return e[n].w},f=function(e){return u&&p.NEED&&a(e)&&!i(e,n)&&c(e),e},p=e.exports={KEY:n,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,o){var n=o(19).f,r=o(22),i=o(10)("toStringTag");e.exports=function(e,t,o){e&&!r(e=o?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t){var o=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+n).toString(36))}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(){var e={};return(0,C.objectEach)(D,function(t,o){e[o]=t()}),e}function s(e,t){-1===x.indexOf(e)&&(D[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 l,a=o(223);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return a.KEY}});var u=o(224);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=o(225);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var h=o(226);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return h.KEY}});var d=o(227);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return d.KEY}});var f=o(228);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return f.KEY}});var p=o(229);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return p.KEY}});var g=o(230);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var v=o(231);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return v.KEY}});var m=o(232);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return m.KEY}});var y=o(70);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var w=o(233);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return w.KEY}}),t.predefinedItems=i,t.addItem=s;var C=o(2),b=n(a),S=n(u),E=n(c),R=n(h),O=n(d),k=n(f),T=n(p),_=n(g),M=n(v),H=n(m),A=n(y),P=n(w),x=t.ITEMS=[v.KEY,m.KEY,c.KEY,h.KEY,u.KEY,g.KEY,p.KEY,w.KEY,f.KEY,d.KEY,a.KEY,y.KEY],D=(l={},r(l,y.KEY,A.default),r(l,v.KEY,M.default),r(l,m.KEY,H.default),r(l,c.KEY,E.default),r(l,h.KEY,R.default),r(l,u.KEY,S.default),r(l,g.KEY,_.default),r(l,p.KEY,T.default),r(l,w.KEY,P.default),r(l,f.KEY,k.default),r(l,d.KEY,O.default),r(l,a.KEY,b.default),l)},function(e,t,o){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);e.length>t;t++)o[t]=e[t];return o}return Array.from(e)}function r(){function e(e,t){a.set(e,t)}function t(e){return a.get(e)}function o(e){return a.has(e)}function r(){return[].concat(n(a.keys()))}function s(){return[].concat(n(a.values()))}var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(l)||i.set(l,new Map);var a=i.get(l);return{register:e,getItem:t,hasItem:o,getNames:r,getValues:s}}t.__esModule=!0,t.default=r;var i=t.collection=new Map},function(e,t){e.exports=function(e,t,o,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(o+": incorrect invocation!");return e}},function(e,t,o){var n=o(29),r=o(76),i=o(41),s=o(24),l=o(278);e.exports=function(e,t){var o=1==e,a=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h,f=t||l;return function(t,l,p){for(var g,v,m=i(t),y=r(m),w=n(l,p,3),C=s(y.length),b=0,S=o?f(t,C):a?f(t,0):void 0;C>b;b++)if((d||b in y)&&(g=y[b],v=w(g,b,m),e))if(o)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,o){"use strict";var n=o(13),r=o(3),i=o(33),s=o(59),l=o(46),a=o(56),u=o(52),c=o(15),h=o(31),d=o(77),f=o(48),p=o(281);e.exports=function(e,t,o,g,v,m){var y=n[e],w=y,C=v?"set":"add",b=w&&w.prototype,S={},E=function(e){var t=b[e];i(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,o){return t.call(this,0===e?0:e,o),this})};if("function"==typeof w&&(m||b.forEach&&!h(function(){(new w).entries().next()}))){var R=new w,O=R[C](m?{}:-0,1)!=R,k=h(function(){R.has(1)}),T=d(function(e){new w(e)}),_=!m&&h(function(){for(var e=new w,t=5;t--;)e[C](t,t);return!e.has(-0)});T||(w=t(function(t,o){u(t,w,e);var n=p(new y,t,w);return void 0!=o&&a(o,v,n[C],n),n}),w.prototype=b,b.constructor=w),(k||_)&&(E("delete"),E("has"),v&&E("get")),(_||O)&&E(C),m&&b.clear&&delete b.clear}else w=g.getConstructor(t,e,v,C),s(w.prototype,o),l.NEED=!0;return f(w,e),S[e]=w,r(r.G+r.W+r.F*(w!=y),S),m||g.setStrong(w,e,v),w}},function(e,t,o){"use strict";var n=o(32),r=o(33),i=o(31),s=o(30),l=o(10);e.exports=function(e,t,o){var a=l(e),u=o(s,a,""[e]),c=u[0],h=u[1];i(function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),n(RegExp.prototype,a,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,o){var n=o(29),r=o(165),i=o(161),s=o(18),l=o(24),a=o(176),u={},c={},t=e.exports=function(e,t,o,h,d){var f,p,g,v,m=d?function(){return e}:a(e),y=n(o,h,t?2:1),w=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(i(m)){for(f=l(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=r(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){t.f=Object.getOwnPropertySymbols},function(e,t,o){var n=o(33);e.exports=function(e,t,o){for(var r in t)n(e,r,t[r],o);return e}},function(e,t,o){var n=o(61),r=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),0>e?r(e+t,0):i(e,t)}},function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},function(t,o){t.exports=e},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){if(!P(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 A(e)}function i(e,t){var o=t.editor,n=t.renderer,r=t.validator;o&&(0,a.registerEditor)(e,o),n&&(0,u.registerRenderer)(e,n),r&&(0,c.registerValidator)(e,r),H(e,t)}t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var s=o(51),l=n(s),a=o(14),u=o(9),c=o(26),h=o(190),d=n(h),f=o(191),p=n(f),g=o(192),v=n(g),m=o(193),y=n(m),w=o(194),C=n(w),b=o(195),S=n(b),E=o(196),R=n(E),O=o(197),k=n(O),T=o(198),_=n(T),M=(0,l.default)("cellTypes"),H=M.register,A=M.getItem,P=M.hasItem,x=M.getNames,D=M.getValues;i("autocomplete",d.default),i("checkbox",p.default),i("date",v.default),i("dropdown",y.default),i("handsontable",C.default),i("numeric",S.default),i("password",R.default),i("text",k.default),i("time",_.default),t.registerCellType=i,t.getCellType=r,t.hasCellType=P,t.getRegisteredCellTypeNames=x,t.getRegisteredCellTypes=D},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);e.length>t;t++)o[t]=e[t];return o}return Array.from(e)}function i(e,t){function o(){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 n(e,t,n){function r(){var o;e.length&&(o=V.runHooks("beforeChange",e,t),(0,d.isFunction)(o)?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===o&&e.splice(0,e.length)),n()}var i=new o;i.onQueueEmpty=r;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var l=e[s][0],a=_.propToCol(e[s][1]),h=V.getCellMeta(l,a);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]}V.getCellValidator(h)&&(i.addValidatorToQueue(),V.validateCell(e[s][3],h,function(t,o){return function(n){if("boolean"!=typeof n)throw Error("Validation error: result is not boolean");if(!1===n&&!1===o.allowInvalid){e.splice(t,1),o.valid=!0;var r=V.getCell(o.row,o.col);(0,c.removeClass)(r,V.getSettings().invalidCellClassName),--t}i.removeValidatorFormQueue()}}(s,h),t))}i.checkIfQueueIsEmpty()}function i(e,t){var o=e.length-1;if(o>=0){for(;o>=0;o--){var n=!1;if(null!==e[o]){if(null!=e[o][2]||null!=e[o][3]){if(w.settings.allowInsertRow)for(;e[o][0]>V.countRows()-1;){var r=_.createRow(void 0,void 0,t);if(0===r){n=!0;break}}if(!n){if("array"===V.dataType&&(!w.settings.columns||0===w.settings.columns.length)&&w.settings.allowInsertColumn)for(;_.propToCol(e[o][1])>V.countCols()-1;)_.createCol(void 0,void 0,t);_.set(e[o][0],e[o][1],e[o][3])}}}else e.splice(o,1)}V.forceFullRender=!0,L.adjustRowsAndCols(),V.runHooks("beforeChangeRender",e,t),I.refreshBorders(null,!0),V.view.wt.wtOverlays.adjustElementsSize(),V.runHooks("afterChange",e,t||"edit");var i=V.getActiveEditor();i&&(0,f.isDefined)(i.refreshValue)&&i.refreshValue()}}function a(e,t,o){return"object"===(void 0===e?"undefined":l(e))?e:[[e,t,o]]}function g(e){if((0,b.hasOwnProperty)(e,"type")){var t,o={};"object"===l(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,W.getCellType)(e.type));for(var n in t)(0,b.hasOwnProperty)(t,n)&&!(0,b.hasOwnProperty)(e,n)&&(o[n]=t[n]);return o}}function m(){throw Error("This method cannot be called because this Handsontable instance has been destroyed")}var w,_,H,L,I,B,V=this,z=function(){},K=new C.default(V);(0,b.extend)(z.prototype,j.default.prototype),(0,b.extend)(z.prototype,t),(0,b.extend)(z.prototype,g(t)),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,k.randomString)();var U=(0,x.getTranslator)(V);H=new A.default(V),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),w={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new z,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},L={alter:function(e,t,o,n,i){function s(e,t,o,n){var i=function(){var e=void 0;return"array"===n?e=[]:"object"===n&&(e={}),e},s=(0,S.arrayMap)(Array(o),function(){return i()});s.unshift(t,0),e.splice.apply(e,r(s))}var l;switch(o=o||1,e){case"insert_row":var a=V.countSourceRows();if(V.getSettings().maxRows===a)return;t=(0,f.isDefined)(t)?t:a,l=_.createRow(t,o,n),s(w.cellSettings,t,o,"array"),l&&(I.isSelected()&&w.selRange.from.row>=t?(w.selRange.from.row+=l,I.transformEnd(l,0)):I.refreshBorders());break;case"insert_col":l=_.createCol(t,o,n);for(var u=0,c=V.countSourceRows();c>u;u++)w.cellSettings[u]&&s(w.cellSettings[u],t,o);if(l){if(Array.isArray(V.getSettings().colHeaders)){var h=[t,0];h.length+=l,Array.prototype.splice.apply(V.getSettings().colHeaders,h)}I.isSelected()&&w.selRange.from.col>=t?(w.selRange.from.col+=l,I.transformEnd(0,l)):I.refreshBorders()}break;case"remove_row":_.removeRow(t,o,n),w.cellSettings.splice(t,o);var d=V.countRows(),p=V.getSettings().fixedRowsTop;t+1>p||(V.getSettings().fixedRowsTop-=Math.min(o,p-t));var g=V.getSettings().fixedRowsBottom;g&&t>=d-g&&(V.getSettings().fixedRowsBottom-=Math.min(o,g)),L.adjustRowsAndCols(),I.refreshBorders();break;case"remove_col":var v=U.toPhysicalColumn(t);_.removeCol(t,o,n);for(var m=0,y=V.countSourceRows();y>m;m++)w.cellSettings[m]&&w.cellSettings[m].splice(v,o);var C=V.getSettings().fixedColumnsLeft;t+1>C||(V.getSettings().fixedColumnsLeft-=Math.min(o,C-t)),Array.isArray(V.getSettings().colHeaders)&&(void 0===v&&(v=-1),V.getSettings().colHeaders.splice(v,o)),L.adjustRowsAndCols(),I.refreshBorders();break;default:throw Error('There is no such action "'+e+'"')}i||L.adjustRowsAndCols()},adjustRowsAndCols:function(){if(w.settings.minRows){var e=V.countRows();if(w.settings.minRows>e)for(var t=0,o=w.settings.minRows;o-e>t;t++)_.createRow(V.countRows(),1,"auto")}if(w.settings.minSpareRows){var n=V.countEmptyRows(!0);if(w.settings.minSpareRows>n)for(;w.settings.minSpareRows>n&&V.countSourceRows()r)for(;w.settings.minSpareCols>r&&V.countCols()i-1?(a=i-1,l=!0,c>a&&(c=a)):c>i-1&&(c=i-1,l=!0,a>c&&(a=c)),u>s-1?(u=s-1,l=!0,h>u&&(h=u)):h>s-1&&(h=s-1,l=!0,u>h&&(u=h)),l&&V.selectCell(a,u,c,h)}V.view&&V.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,o,n,i,s,a){var u,c,h,d,p=[],g={};if(0===(c=t.length))return!1;var v,m,y,C;switch(i){case"shift_down":for(v=o?o.col-e.col+1:0,m=o?o.row-e.row+1:0,t=(0,P.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=V).spliceCol.apply(S,r(t[h]))}else{var E;t[h%d][0]=e.col+h,(E=V).spliceCol.apply(E,r(t[h%d]))}break;case"shift_right":for(v=o?o.col-e.col+1:0,m=o?o.row-e.row+1:0,u=0,c=t.length,C=Math.max(c,m);C>u;u++)if(c>u){var R;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),(R=V).spliceRow.apply(R,r(t[u]))}else{var O;t[u%c][0]=e.row+u,(O=V).spliceRow.apply(O,r(t[u%c]))}break;case"overwrite":default:g.row=e.row,g.col=e.col;var k={row:o&&e?o.row-e.row+1:1,col:o&&e?o.col-e.col+1:1},T=0,_=0,M=!0,H=void 0,A=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t[e%t.length];return null!==o?n[o%n.length]:n},x=t.length,D=o?o.row-e.row+1:0;for(c=o?D:Math.max(x,D),u=0;c>u&&(!(o&&g.row>o.row&&D>x||!w.settings.allowInsertRow&&g.row>V.countRows()-1)&&g.rowh&&(!(o&&g.col>o.col&&I>N||!w.settings.allowInsertColumn&&g.col>V.countCols()-1)&&g.col0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];V.selection.selectedHeader.rows=e,V.selection.selectedHeader.cols=t,V.selection.selectedHeader.corner=o},begin:function(){V.selection.inProgress=!0},finish:function(){var e=V.getSelected();V.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),V.runHooks("afterSelectionEndByProp",e[0],V.colToProp(e[1]),e[2],V.colToProp(e[3])),V.selection.inProgress=!1},isInProgress:function(){return V.selection.inProgress},setRangeStart:function(e,t){V.runHooks("beforeSetRangeStart",e),w.selRange=new D.CellRange(e,e,e),I.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){V.runHooks("beforeSetRangeStartOnly",e),w.selRange=new D.CellRange(e,e,e)},setRangeEnd:function(e,t,o){if(null!==w.selRange){var n,r=!1,i=!0,s=V.view.wt.wtTable.getFirstVisibleRow(),l=V.view.wt.wtTable.getFirstVisibleColumn(),a={row:null,col:null};V.runHooks("beforeSetRangeEnd",e),V.selection.begin(),a.row=0>e.row?s:e.row,a.col=0>e.col?l:e.col,w.selRange.to=new D.CellCoords(a.row,a.col),w.settings.multiSelect||(w.selRange.from=e),V.view.wt.selections.current.clear(),n=V.getCellMeta(w.selRange.highlight.row,w.selRange.highlight.col).disableVisualSelection,"string"==typeof n&&(n=[n]),(!1===n||Array.isArray(n)&&-1===n.indexOf("current"))&&V.view.wt.selections.current.add(w.selRange.highlight),V.view.wt.selections.area.clear(),(!1===n||Array.isArray(n)&&-1===n.indexOf("area"))&&I.isMultiple()&&(V.view.wt.selections.area.add(w.selRange.from),V.view.wt.selections.area.add(w.selRange.to)),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&(V.view.wt.selections.highlight.clear(),V.view.wt.selections.highlight.add(w.selRange.from),V.view.wt.selections.highlight.add(w.selRange.to));var u=(0,b.createObjectPropListener)("value");V.runHooks("afterSelection",w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col,u),V.runHooks("afterSelectionByProp",w.selRange.from.row,_.colToProp(w.selRange.from.col),w.selRange.to.row,_.colToProp(w.selRange.to.col),u),(0===w.selRange.from.row&&w.selRange.to.row===V.countRows()-1&&V.countRows()>1||0===w.selRange.from.col&&w.selRange.to.col===V.countCols()-1&&V.countCols()>1)&&(r=!0),(0>e.row||0>e.col)&&(i=!1),u.isTouched()&&(t=!u.value),!1!==t&&!r&&i&&V.view.scrollViewport(w.selRange.from&&!I.isMultiple()?w.selRange.from:e),I.selectedHeader.rows&&I.selectedHeader.cols?(0,c.addClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]):I.selectedHeader.rows?((0,c.removeClass)(V.rootElement,"ht__selection--columns"),(0,c.addClass)(V.rootElement,"ht__selection--rows")):I.selectedHeader.cols?((0,c.removeClass)(V.rootElement,"ht__selection--rows"),(0,c.addClass)(V.rootElement,"ht__selection--columns")):(0,c.removeClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]),I.refreshBorders(null,o)}},refreshBorders:function(e,t){t||B.destroyEditor(e),V.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=V.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,o,n){var r,i,s,l,a=new D.CellCoords(e,t),u=0,c=0;V.runHooks("modifyTransformStart",a),r=V.countRows(),i=V.countCols(),l=V.getSettings().fixedRowsBottom,w.selRange.highlight.row+e>r-1?o&&w.settings.minSpareRows>0&&(!l||r-l-1>w.selRange.highlight.row)?(V.alter("insert_row",r),r=V.countRows()):w.settings.autoWrapCol&&(a.row=1-r,a.col=w.selRange.highlight.col+a.col==i-1?1-i:1):w.settings.autoWrapCol&&0>w.selRange.highlight.row+a.row&&w.selRange.highlight.col+a.col>=0&&(a.row=r-1,a.col=w.selRange.highlight.col+a.col==0?i-1:-1),w.selRange.highlight.col+a.col>i-1?o&&w.settings.minSpareCols>0?(V.alter("insert_col",i),i=V.countCols()):w.settings.autoWrapRow&&(a.row=w.selRange.highlight.row+a.row==r-1?1-r:1,a.col=1-i):w.settings.autoWrapRow&&0>w.selRange.highlight.col+a.col&&w.selRange.highlight.row+a.row>=0&&(a.row=w.selRange.highlight.row+a.row==0?r-1:-1,a.col=i-1),s=new D.CellCoords(w.selRange.highlight.row+a.row,w.selRange.highlight.col+a.col),0>s.row?(u=-1,s.row=0):s.row>0&&s.row>=r&&(u=1,s.row=r-1),0>s.col?(c=-1,s.col=0):s.col>0&&s.col>=i&&(c=1,s.col=i-1),V.runHooks("afterModifyTransformStart",s,u,c),I.setRangeStart(s,n)},transformEnd:function(e,t){var o,n,r,i=new D.CellCoords(e,t),s=0,l=0;V.runHooks("modifyTransformEnd",i),o=V.countRows(),n=V.countCols(),r=new D.CellCoords(w.selRange.to.row+i.row,w.selRange.to.col+i.col),0>r.row?(s=-1,r.row=0):r.row>0&&r.row>=o&&(s=1,r.row=o-1),0>r.col?(l=-1,r.col=0):r.col>0&&r.col>=n&&(l=1,r.col=n-1),V.runHooks("afterModifyTransformEnd",r,s,l),I.setRangeEnd(r,!0)},isSelected:function(){return null!==w.selRange},inInSelection:function(e){return!!I.isSelected()&&w.selRange.includes(e)},deselect:function(){I.isSelected()&&(V.selection.inProgress=!1,w.selRange=null,V.view.wt.selections.current.clear(),V.view.wt.selections.area.clear(),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&V.view.wt.selections.highlight.clear(),B.destroyEditor(),I.refreshBorders(),(0,c.removeClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]),V.runHooks("afterDeselect"))},selectAll:function(){w.settings.multiSelect&&(I.setSelectedHeaders(!0,!0,!0),I.setRangeStart(new D.CellCoords(0,0)),I.setRangeEnd(new D.CellCoords(V.countRows()-1,V.countCols()-1),!1))},empty:function(){if(I.isSelected()){var e,t,o=w.selRange.getTopLeftCorner(),n=w.selRange.getBottomRightCorner(),r=[];for(e=o.row;n.row>=e;e++)for(t=o.col;n.col>=t;t++)V.getCellMeta(e,t).readOnly||r.push([e,t,""]);V.setDataAtCell(r)}}},this.init=function(){H.setData(w.settings.data),V.runHooks("beforeInit"),(0,p.isMobileBrowser)()&&(0,c.addClass)(V.rootElement,"mobile"),this.updateSettings(w.settings,!0),this.view=new M.default(this),B=new y.default(V,w,I,_),this.forceFullRender=!0,V.runHooks("init"),this.view.render(),"object"===l(w.firstRun)&&(V.runHooks("afterChange",w.firstRun[0],w.firstRun[1]),w.firstRun=!1),V.runHooks("afterInit")},this.validateCell=function(e,t,o,n){function r(e){var n=t.visualCol,r=t.visualRow,i=V.getCell(r,n,!0);i&&"TH"!=i.nodeName&&V.view.wt.wtSettings.settings.cellRenderer(r,n,i),o(e)}var i=V.getCellValidator(t);(0,f.isRegExp)(i)&&(i=function(e){return function(t,o){o(e.test(t))}}(i)),(0,d.isFunction)(i)?(e=V.runHooks("beforeValidate",e,t.visualRow,t.prop,n),V._registerTimeout(setTimeout(function(){i.call(t,e,function(o){o=V.runHooks("afterValidate",o,e,t.visualRow,t.prop,n),t.valid=o,r(o),V.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,n)})},0))):V._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid)},0))},this.setDataAtCell=function(e,t,o,r){var s,u,c,h=a(e,t,o),d=[];for(s=0,u=h.length;u>s;s++){if("object"!==l(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=_.colToProp(h[s][1]),d.push([h[s][0],c,H.getAtCell(U.toPhysicalRow(h[s][0]),h[s][1]),h[s][2]])}r||"object"!==(void 0===e?"undefined":l(e))||(r=t),V.runHooks("afterSetDataAtCell",d,r),n(d,r,function(){i(d,r)})},this.setDataAtRowProp=function(e,t,o,r){var s,u,c=a(e,t,o),h=[];for(s=0,u=c.length;u>s;s++)h.push([c[s][0],c[s][1],H.getAtCell(U.toPhysicalRow(c[s][0]),c[s][1]),c[s][2]]);r||"object"!==(void 0===e?"undefined":l(e))||(r=t),V.runHooks("afterSetDataAtRowProp",h,r),n(h,r,function(){i(h,r)})},this.listen=function(){F=V.guid},this.unlisten=function(){F=null},this.isListening=function(){return F===V.guid},this.destroyEditor=function(e){I.refreshBorders(e)},this.populateFromArray=function(e,t,o,n,r,i,s,a,u){var c;if("object"!==(void 0===o?"undefined":l(o))||"object"!==l(o[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");return c="number"==typeof n?new D.CellCoords(n,r):null,L.populateFromArray(new D.CellCoords(e,t),o,c,i,s,a,u)},this.spliceCol=function(e,t,o){var n;return(n=_).spliceCol.apply(n,arguments)},this.spliceRow=function(e,t,o){var n;return(n=_).spliceRow.apply(n,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(){V.view&&(V.renderCall=!0,V.forceFullRender=!0,I.refreshBorders(null,!0))},this.loadData=function(e){if(V.dataType=Array.isArray(w.settings.dataSchema)?"array":(0,d.isFunction)(w.settings.dataSchema)?"function":"object",_&&_.destroy(),_=new v.default(V,w,z),"object"===(void 0===e?"undefined":l(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":l(e))+" given)");e=[];var t,o=0,n=0,r=_.getSchema();for(o=0,n=w.settings.startRows;n>o;o++)if("object"!==V.dataType&&"function"!==V.dataType||!w.settings.dataSchema)if("array"===V.dataType)t=(0,b.deepClone)(r[0]),e.push(t);else{t=[];for(var i=0,s=w.settings.startCols;s>i;i++)t.push(null);e.push(t)}else t=(0,b.deepClone)(r),e.push(t)}w.isPopulated=!1,z.prototype.data=e,Array.isArray(e[0])&&(V.dataType="array"),_.dataSource=e,H.data=e,H.dataType=V.dataType,H.colToProp=_.colToProp.bind(_),H.propToCol=_.propToCol.bind(_),function(){w.cellSettings.length=0}(),L.adjustRowsAndCols(),V.runHooks("afterLoadData",w.firstRun),w.firstRun?w.firstRun=[null,"loadData"]:(V.runHooks("afterChange",null,"loadData"),V.render()),w.isPopulated=!0},this.getData=function(e,t,o,n){return(0,f.isUndefined)(e)?_.getAll():_.getRange(new D.CellCoords(e,t),new D.CellCoords(o,n),_.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,n){return _.getCopyableText(new D.CellCoords(e,t),new D.CellCoords(o,n))},this.getCopyableData=function(e,t){return _.getCopyable(e,_.colToProp(t))},this.getSchema=function(){return _.getSchema()},this.updateSettings=function(e,t){var o=!1,n=void 0,r=void 0,i=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(n in e)"data"!==n&&(N.default.getSingleton().getRegistered().indexOf(n)>-1?((0,d.isFunction)(e[n])||Array.isArray(e[n]))&&(e[n].initialHook=!0,V.addHook(n,e[n])):!t&&(0,b.hasOwnProperty)(e,n)&&(z.prototype[n]=e[n]));void 0===e.data&&void 0===w.settings.data?V.loadData(null):void 0!==e.data?V.loadData(e.data):void 0!==e.columns&&_.createMap(),i=V.countCols();var s=e.columns||z.prototype.columns;if(s&&(0,d.isFunction)(s)&&(i=V.countSourceCols(),o=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(w.cellSettings.length=0),i>0){var l=void 0,a=void 0;for(n=0,r=0;i>n;n++)o&&!s(n)||(w.columnSettings[r]=(0,h.columnFactory)(z,w.columnsSettingConflicts),l=w.columnSettings[r].prototype,s&&(a=o?s(n):s[r])&&((0,b.extend)(l,a),(0,b.extend)(l,g(a))),r++)}if((0,f.isDefined)(e.cell))for(var u in e.cell)if((0,b.hasOwnProperty)(e.cell,u)){var p=e.cell[u];V.setCellMetaObject(p.row,p.col,p)}V.runHooks("afterCellMetaReset"),(0,f.isDefined)(e.className)&&(z.prototype.className&&(0,c.removeClass)(V.rootElement,z.prototype.className),e.className&&(0,c.addClass)(V.rootElement,e.className));var v=V.rootElement.style.height;""!==v&&(v=parseInt(V.rootElement.style.height,10));var m=e.height;if((0,d.isFunction)(m)&&(m=m()),t){V.rootElement.getAttribute("style")&&V.rootElement.setAttribute("data-initialstyle",V.rootElement.getAttribute("style"))}if(null===m){var y=V.rootElement.getAttribute("data-initialstyle");y&&(y.indexOf("height")>-1||y.indexOf("overflow")>-1)?V.rootElement.setAttribute("style",y):(V.rootElement.style.height="",V.rootElement.style.overflow="")}else void 0!==m&&(V.rootElement.style.height=m+"px",V.rootElement.style.overflow="hidden");if(void 0!==e.width){var C=e.width;(0,d.isFunction)(C)&&(C=C()),V.rootElement.style.width=C+"px"}t||(_.clearLengthCache(),V.view&&V.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),V.runHooks("afterUpdateSettings")),L.adjustRowsAndCols(),V.view&&!w.firstRun&&(V.forceFullRender=!0,I.refreshBorders(null,!0)),t||!V.view||""!==v&&""!==m&&void 0!==m||v===m||V.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=V.getSelected();if(z.prototype.getValue){if((0,d.isFunction)(z.prototype.getValue))return z.prototype.getValue.call(V);if(e)return V.getData()[e[0]][z.prototype.getValue]}else if(e)return V.getDataAtCell(e[0],e[1])},this.getSettings=function(){return w.settings},this.clear=function(){I.selectAll(),I.empty()},this.alter=function(e,t,o,n,r){L.alter(e,t,o,n,r)},this.getCell=function(e,t,o){return V.view.getCellAtCoords(new D.CellCoords(e,t),o)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return _.colToProp(e)},this.propToCol=function(e){return _.propToCol(e)},this.toVisualRow=function(e){return U.toVisualRow(e)},this.toVisualColumn=function(e){return U.toVisualColumn(e)},this.toPhysicalRow=function(e){return U.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return U.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return _.get(e,_.colToProp(t))},this.getDataAtRowProp=function(e,t){return _.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,r(_.getRange(new D.CellCoords(0,e),new D.CellCoords(w.settings.data.length-1,e),_.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,o=[];return t=_.getRange(new D.CellCoords(0,_.propToCol(e)),new D.CellCoords(w.settings.data.length-1,_.propToCol(e)),_.DESTINATION_RENDERER),o.concat.apply(o,r(t))},this.getSourceData=function(e,t,o,n){return void 0===e?H.getData():H.getByRange(new D.CellCoords(e,t),new D.CellCoords(o,n))},this.getSourceDataArray=function(e,t,o,n){return void 0===e?H.getData(!0):H.getByRange(new D.CellCoords(e,t),new D.CellCoords(o,n),!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 _.getRange(new D.CellCoords(e,0),new D.CellCoords(e,this.countCols()-1),_.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,n){var r=this,i=null,s=null;void 0===e&&(e=0,o=this.countRows(),t=0,n=this.countCols()),void 0===o&&(o=e),void 0===n&&(n=t);var l="mixed";return(0,T.rangeEach)(Math.min(e,o),Math.max(e,o),function(e){var o=!0;return(0,T.rangeEach)(Math.min(t,n),Math.max(t,n),function(t){var n=r.getCellMeta(e,t);return s=n.type,i?o=i===s:i=s,o}),l=o?s:"mixed",o}),l},this.removeCellMeta=function(e,t,o){void 0!=V.getCellMeta(e,t)[o]&&delete w.cellSettings[e][t][o]},this.spliceCellsMeta=function(e,t){for(var o,n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];(o=w.cellSettings).splice.apply(o,[e,t].concat(r))},this.setCellMetaObject=function(e,t,o){if("object"===(void 0===o?"undefined":l(o)))for(var n in o)if((0,b.hasOwnProperty)(o,n)){var r=o[n];this.setCellMeta(e,t,n,r)}},this.setCellMeta=function(e,t,o,n){var r=U.toPhysical(e,t),i=s(r,2);e=i[0],t=i[1],w.columnSettings[t]||(w.columnSettings[t]=(0,h.columnFactory)(z,w.columnsSettingConflicts)),w.cellSettings[e]||(w.cellSettings[e]=[]),w.cellSettings[e][t]||(w.cellSettings[e][t]=new w.columnSettings[t]),w.cellSettings[e][t][o]=n,V.runHooks("afterSetCellMeta",e,t,o,n)},this.getCellsMeta=function(){return(0,S.arrayFlatten)(w.cellSettings)},this.getCellMeta=function(e,t){var o,n=_.colToProp(t),r=e,i=t,l=U.toPhysical(e,t),a=s(l,2);if(e=a[0],t=a[1],w.columnSettings[t]||(w.columnSettings[t]=(0,h.columnFactory)(z,w.columnsSettingConflicts)),w.cellSettings[e]||(w.cellSettings[e]=[]),w.cellSettings[e][t]||(w.cellSettings[e][t]=new w.columnSettings[t]),o=w.cellSettings[e][t],o.row=e,o.col=t,o.visualRow=r,o.visualCol=i,o.prop=n,o.instance=V,V.runHooks("beforeGetCellMeta",e,t,o),(0,b.extend)(o,g(o)),o.cells){var u=o.cells.call(o,e,t,n);u&&((0,b.extend)(o,u),(0,b.extend)(o,g(u)))}return V.runHooks("afterGetCellMeta",e,t,o),o},this.getCellMetaAtRow=function(e){return w.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===V.dataType||V.getSettings().columns)};var Y=(0,P.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,R.getRenderer)(Y.call(this,e,t))},this.getCellEditor=(0,P.cellMethodLookupFactory)("editor");var G=(0,P.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var o=G.call(this,e,t);return"string"==typeof o&&(o=(0,O.getValidator)(o)),o},this.validateCells=function(e){var t=new o;e&&(t.onQueueEmpty=e);for(var n=V.countRows()-1;n>=0;){for(var r=V.countCols()-1;r>=0;)t.addValidatorToQueue(),V.validateCell(V.getDataAtCell(n,r),V.getCellMeta(n,r),function(e){if("boolean"!=typeof e)throw Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),r--;n--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=w.settings.rowHeaders;return void 0!==e&&(e=V.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,T.rangeEach)(V.countRows()-1,function(e){t.push(V.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=V.countCols();t>e;e++)if(V.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=w.settings.columns&&(0,d.isFunction)(w.settings.columns),o=w.settings.colHeaders;if(void 0===(e=V.runHooks("modifyColHeader",e))){for(var n=[],r=t?V.countSourceCols():V.countCols(),i=0;r>i;i++)n.push(V.getColHeader(i));o=n}else{var s=e;e=V.runHooks("modifyCol",e);var l=function(e){for(var t=[],o=V.countSourceCols(),n=0;o>n;n++)(0,d.isFunction)(V.getSettings().columns)&&V.getSettings().columns(n)&&t.push(n);return t[e]}(e);w.settings.columns&&(0,d.isFunction)(w.settings.columns)&&w.settings.columns(l)&&w.settings.columns(l).title?o=w.settings.columns(l).title:w.settings.columns&&w.settings.columns[e]&&w.settings.columns[e].title?o=w.settings.columns[e].title:Array.isArray(w.settings.colHeaders)&&void 0!==w.settings.colHeaders[e]?o=w.settings.colHeaders[e]:(0,d.isFunction)(w.settings.colHeaders)?o=w.settings.colHeaders(e):w.settings.colHeaders&&"string"!=typeof w.settings.colHeaders&&"number"!=typeof w.settings.colHeaders&&(o=(0,P.spreadsheetColumnLabel)(s))}return o},this._getColWidthFromSettings=function(e){var t=V.getCellMeta(0,e),o=t.width;if(void 0!==o&&o!==w.settings.width||(o=t.colWidths),void 0!==o&&null!==o){switch(void 0===o?"undefined":l(o)){case"object":o=o[e];break;case"function":o=o(e)}"string"==typeof o&&(o=parseInt(o,10))}return o},this.getColWidth=function(e){var t=V._getColWidthFromSettings(e);return t=V.runHooks("modifyColWidth",t,e),void 0===t&&(t=D.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=w.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":l(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=V._getRowHeightFromSettings(e);return t=V.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return V.runHooks("modifySourceLength")||(V.getSourceData()?V.getSourceData().length:0)},this.countSourceCols=function(){var e=V.getSourceData()&&V.getSourceData()[0]?V.getSourceData()[0]:[];return(0,b.isObject)(e)?(0,b.deepObjectSize)(e):e.length||0},this.countRows=function(){return _.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,o=0;if("array"===V.dataType&&(t=w.settings.data&&w.settings.data[0]&&w.settings.data[0].length),t&&(o=w.settings.data[0].length),w.settings.columns){if((0,d.isFunction)(w.settings.columns))if("array"===V.dataType){for(var n=0,r=0;o>r;r++)w.settings.columns(r)&&n++;o=n}else"object"!==V.dataType&&"function"!==V.dataType||(o=_.colToPropCache.length);else o=w.settings.columns.length}else"object"!==V.dataType&&"function"!==V.dataType||(o=_.colToPropCache.length);return Math.min(e,o)},this.rowOffset=function(){return V.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return V.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return V.view.wt.drawn?V.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return V.view.wt.drawn?V.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return V.view.wt.drawn?V.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return V.view.wt.drawn?V.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,o=V.countRows()-1,n=0;o>=0;){if(t=V.runHooks("modifyRow",o),V.isEmptyRow(t))n++;else if(e)break;o--}return n},this.countEmptyCols=function(e){if(1>V.countRows())return 0;for(var t=V.countCols()-1,o=0;t>=0;){if(V.isEmptyCol(t))o++;else if(e)break;t--}return o},this.isEmptyRow=function(e){return w.settings.isEmptyRow.call(V,e)},this.isEmptyCol=function(e){return w.settings.isEmptyCol.call(V,e)},this.selectCell=function(e,t,o,n,r,i){var s;if(i=(0,f.isUndefined)(i)||!0===i,"number"!=typeof e||0>e||e>=V.countRows())return!1;if("number"!=typeof t||0>t||t>=V.countCols())return!1;if((0,f.isDefined)(o)){if("number"!=typeof o||0>o||o>=V.countRows())return!1;if("number"!=typeof n||0>n||n>=V.countCols())return!1}return s=new D.CellCoords(e,t),w.selRange=new D.CellRange(s,s,s),i&&V.listen(),(0,f.isUndefined)(o)?I.setRangeEnd(w.selRange.from,r):I.setRangeEnd(new D.CellCoords(o,n),r),V.selection.finish(),!0},this.selectCellByProp=function(e,t,o,n,r){var i;return arguments[1]=_.propToCol(arguments[1]),(0,f.isDefined)(arguments[3])&&(arguments[3]=_.propToCol(arguments[3])),(i=V).selectCell.apply(i,arguments)},this.deselectCell=function(){I.deselect()},this.scrollViewportTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(0>e||e>=V.countRows()))return!1;if(void 0!==t&&(0>t||t>=V.countCols()))return!1;var r=!1;return void 0!==e&&void 0!==t&&(V.view.wt.wtOverlays.topOverlay.scrollTo(e,o),V.view.wt.wtOverlays.leftOverlay.scrollTo(t,n),r=!0),"number"==typeof e&&"number"!=typeof t&&(V.view.wt.wtOverlays.topOverlay.scrollTo(e,o),r=!0),"number"==typeof t&&"number"!=typeof e&&(V.view.wt.wtOverlays.leftOverlay.scrollTo(t,n),r=!0),r},this.destroy=function(){V._clearTimeouts(),V.view&&V.view.destroy(),H&&H.destroy(),H=null,(0,c.empty)(V.rootElement),K.destroy(),V.runHooks("afterDestroy"),N.default.getSingleton().destroy(V);for(var e in V)(0,b.hasOwnProperty)(V,e)&&((0,d.isFunction)(V[e])?V[e]=m:"guid"!==e&&(V[e]=null));_&&_.destroy(),_=null,w=null,L=null,I=null,B=null,V=null,z=null},this.getActiveEditor=function(){return B.getActiveEditor()},this.getPlugin=function(e){return(0,E.getPlugin)(this,e)},this.getInstance=function(){return V},this.addHook=function(e,t){N.default.getSingleton().add(e,t,V)},this.hasHook=function(e){return N.default.getSingleton().has(e,V)},this.addHookOnce=function(e,t){N.default.getSingleton().once(e,t,V)},this.removeHook=function(e,t){N.default.getSingleton().remove(e,t,V)},this.runHooks=function(e,t,o,n,r,i,s){return N.default.getSingleton().run(V,e,t,o,n,r,i,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])},N.default.getSingleton().run(V,"construct")}t.__esModule=!0;var s=function(){function e(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw i}}return o}return function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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};t.default=i;var a=o(86),u=n(a),c=o(0),h=o(66),d=o(35),f=o(20),p=o(25),g=o(199),v=n(g),m=o(201),y=n(m),w=o(4),C=n(w),b=o(2),S=o(1),E=o(5),R=o(9),O=o(26),k=o(27),T=o(6),_=o(267),M=n(_),H=o(200),A=n(H),P=o(65),x=o(153),D=o(11),L=o(8),N=n(L),I=o(87),j=n(I),W=o(63),F=null},function(e,t,o){"use strict";function n(e){for(var t=e+1,o="",n=void 0;t>0;)n=(t-1)%f,o=String.fromCharCode(65+n)+o,t=parseInt((t-n)/f,10);return o}function r(e){var t=0;if(e)for(var o=0,n=e.length-1;e.length>o;o+=1,n-=1)t+=Math.pow(f,n)*(d.indexOf(e[o])+1);return--t}function i(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;o>e;e++){var s=[];for(t=0;r>t;t++)s.push(n(t)+(e+1));i.push(s)}return i}function s(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;o>e;e++){var s={};for(t=0;r>t;t++)s["prop"+t]=n(t)+(e+1);i.push(s)}return i}function l(e,t){for(var o=[],n=void 0,r=0;e>r;r++){n=[];for(var i=0;t>i;i++)n.push("");o.push(n)}return o}function a(e){var t,o,n,r,i=[],s=0;for(t=0,o=e.length;o>t;t++)for(n=0,r=e[t].length;r>n;n++)n==s&&(i.push([]),s++),i[n].push(e[t][n]);return i}function u(e,t){return t=void 0===t||t,function(o,n){return function o(n){if(n){if((0,h.hasOwnProperty)(n,e)&&void 0!==n[e])return n[e];if((0,h.hasOwnProperty)(n,"type")&&n.type){var r;if("string"!=typeof n.type)throw Error("Cell type must be a string ");if(r=(0,c.getCellType)(n.type),(0,h.hasOwnProperty)(r,e))return r[e];if(t)return}return o(Object.getPrototypeOf(n))}}("number"==typeof o?this.getCellMeta(o,n):o)}}t.__esModule=!0,t.spreadsheetColumnLabel=n,t.spreadsheetColumnIndex=r,t.createSpreadsheetData=i,t.createSpreadsheetObjectData=s,t.createEmptySpreadsheetData=l,t.translateRowsToColumns=a,t.cellMethodLookupFactory=u;var c=o(63),h=o(2),d="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=d.length},function(e,t,o){"use strict";function n(e,t){function o(){}(0,r.inherit)(o,e);for(var n=0,i=t.length;i>n;n++)o.prototype[t[n]]=void 0;return o}t.__esModule=!0,t.columnFactory=n;var r=o(2)},function(e,t,o){"use strict";function n(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 o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(0),s=o(1);t.default=function(){function e(t){n(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return r(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 o={row:e};this.rows.push(o),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),o.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 o={col:e};this.columns.push(o),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),o.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,function(t){e(t.row,(0,i.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,function(t){e(t.col,(0,i.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,o=t.createDocumentFragment();return this.hot.hasRowHeaders()&&o.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){(0,s.arrayEach)(t.strings,function(t){o.appendChild(e.createColElement(t.col))})}),o}},{key:"createRow",value:function(e){var t=this,o=document,n=o.createDocumentFragment(),r=o.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),n.appendChild(r)),this.samples.forEach(function(r){(0,s.arrayEach)(r.strings,function(r){var i=r.col,s=t.hot.getCellMeta(e,i);s.col=i,s.row=e;var l=t.hot.getCellRenderer(s),a=o.createElement("td");l(t.hot,a,e,i,t.hot.colToProp(i),r.value,s),n.appendChild(a)})}),n}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,o=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var n=t.createElement("th");this.hot.view.appendColHeader(-1,n),o.appendChild(n)}return this.samples.forEach(function(n){(0,s.arrayEach)(n.strings,function(n){var r=n.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),o.appendChild(i)})}),o}},{key:"createCol",value:function(e){var t=this,o=document,n=o.createDocumentFragment();return this.samples.forEach(function(r){(0,s.arrayEach)(r.strings,function(r){var i=r.row,s=t.hot.getCellMeta(i,e);s.col=e,s.row=i;var l=t.hot.getCellRenderer(s),a=o.createElement("td"),u=o.createElement("tr");l(t.hot,a,i,e,t.hot.colToProp(e),r.value,s),u.appendChild(a),n.appendChild(u)})}),n}},{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,o=t.createElement("col");return o.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",o}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,o=t.createDocumentFragment(),n=t.createElement("table"),r=t.createElement("thead"),s=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&n.appendChild(l),this.isHorizontal()&&(a.appendChild(u),r.appendChild(a),n.style.tableLayout="auto",n.style.width="auto"),n.appendChild(r),this.isVertical()&&s.appendChild(a),n.appendChild(s),(0,i.addClass)(n,e),o.appendChild(n),{fragment:o,table:n,tHead:r,tBody:s,colGroup:l,tr:a,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,o=t.createDocumentFragment(),n=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,i.addClass)(n,e),o.appendChild(n),{fragment:o,container:n}}},{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,o){"use strict";var n=o(37),r=o(167),i=o(45),s=o(23);e.exports=o(166)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return e&&e.length>o?"keys"==t?r(0,o):"values"==t?r(0,e[o]):r(0,[o,e[o]]):(this._t=void 0,r(1))},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t,o){"use strict";function n(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 o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(42),s=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function(){function e(t,o,r){n(this,e),this.highlight=t,this.from=o,this.to=r}return r(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,o=e.col,n=this.getTopLeftCorner(),r=this.getBottomRightCorner();return!(n.row>t||t>r.row||n.col>o||o>r.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(),o=this.getBottomRightCorner();return(t.row>e.row||t.col>e.col||e.row>o.row||e.col>o.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(o.row,e.row),Math.max(o.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var o=this.getTopLeftCorner(),n=this.getBottomRightCorner(),r=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),i=t.getBottomRightCorner(),l=Math.min(o.row,r.row),a=Math.min(o.col,r.col),u=Math.max(n.row,i.row),c=Math.max(n.col,i.col),h=new s.default(l,a),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=a),this.from.row>h.row&&(h.row=u,d.row=l)),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 o=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=o[0],this.to=o[1];break;case"SE-NW":var n=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=n[0],this.to=n[1];break;case"SW-NE":var r=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=r[0],this.to=r[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)},o={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)},n=[];return t.top==o.top&&n.push("top"),t.right==o.right&&n.push("right"),t.bottom==o.bottom&&n.push("bottom"),t.left==o.left&&n.push("left"),n}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),o=[],n=e.row;t.row>=n;n++)for(var r=e.col;t.col>=r;r++)this.from.row===n&&this.from.col===r||this.to.row===n&&this.to.col===r||o.push(new s.default(n,r));return o}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),o=[],n=e.row;t.row>=n;n++)for(var r=e.col;t.col>=r;r++)o.push(e.row===n&&e.col===r?e:t.row===n&&t.col===r?t:new s.default(n,r));return o}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),o=this.getBottomRightCorner(),n=t.row;o.row>=n;n++)for(var r=t.col;o.col>=r;r++){var i=e(n,r);if(!1===i)return}}}]),e}()},function(e,t,o){"use strict";function n(){return{name:r}}t.__esModule=!0,t.default=n;var r=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,o){"use strict";var n=o(19),r=o(40);e.exports=function(e,t,o){t in e?n.f(e,t,r(0,o)):e[t]=o}},function(e,t,o){var n=o(15),r=o(13).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,o){var n=o(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,o){var n=o(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,o){var n=o(10)("iterator"),r=!1;try{var i=[7][n]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var o=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:o=!0}},i[n]=function(){return s},e(i)}catch(e){}return o}},function(e,t,o){var n=o(18),r=o(286),i=o(74),s=o(81)("IE_PROTO"),l=function(){},a=function(){var e,t=o(73)("iframe"),n=i.length;for(t.style.display="none",o(159).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("