@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
29 lines • 537 kB
JavaScript
/*!
* (The MIT License)
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>
*
* 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.33.0
* Date: Mon Jul 10 2017 10:11:04 GMT+0200 (CEST)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("numbro"),require("pikaday")):"function"==typeof define&&define.amd?define("Handsontable",["moment","numbro","pikaday"],t):"object"==typeof exports?exports.Handsontable=t(require("moment"),require("numbro"),require("pikaday")):e.Handsontable=t(e.moment,e.numbro,e.Pikaday)}(this,function(e,t,o){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=208)}([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 B(){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 F(){return void 0===ne&&(ne=B()),ne}function V(e){return e.offsetWidth!==e.clientWidth}function z(e){return e.offsetHeight!==e.clientHeight}function U(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 K(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=F,t.hasVerticalScrollbar=V,t.hasHorizontalScrollbar=z,t.setOverlayPosition=U,t.getCssTransform=K,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,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(2)},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]);++r<i;)o=t(o,e[r],r,e);return o}function l(e,t){for(var o=-1,n=e.length,r=-1,i=[];++o<n;){var s=e[o];t(s,o,e)&&(i[++r]=s)}return i}function a(e,t){for(var o=-1,n=e.length,r=-1,i=[];++o<n;){var s=e[o];i[++r]=t(s,o,e)}return i}function u(e,t){for(var o=-1,n=e.length;++o<n&&!1!==t(e[o],o,e););return e}function c(e){return s(e,function(e,t){return e+t},0)}function h(e){return s(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function d(e){return s(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?c(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function g(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}t.__esModule=!0,t.to2dArray=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){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(1),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(2),s=o(1),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","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(;++u<c;)if(a[u]&&!a[u].skip){var h=a[u].call(e,o,n,r,i,s,l);void 0!==h&&(o=h),a[u]&&a[u].runOnce&&this.remove(t,a[u])}var d=this.getBucket(e)[t],f=-1,p=d?d.length:0;if(p)for(;++f<p;)if(d[f]&&!d[f].skip){var g=d[f].call(e,o,n,r,i,s,l);void 0!==g&&(o=g),d[f]&&d[f].runOnce&&this.remove(t,d[f],e)}return o}},{key:"destroy",value:function(){(0,s.objectEach)(this.getBucket(arguments.length>0&&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(50),s=n(i),l=o(262),a=n(l),u=o(263),c=n(u),h=o(264),d=n(h),f=o(265),p=n(f),g=o(266),v=n(g),m=o(267),y=n(m),w=o(268),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(83)("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(97),o(114),o(123),o(124),o(108),o(122),o(105),o(106),o(107),o(96),o(119),o(117),o(115),o(120),o(121),o(116),o(118),o(109),o(110),o(111),o(113),o(112),o(94),o(95),o(90),o(93),o(92),o(91),o(67),o(99),o(100),o(102),o(101),o(98),o(104),o(103),o(125),o(128),o(126),o(127),o(130),o(129),o(132),o(131);var r=o(136),i=n(r),s=o(137),l=n(s),a=o(42),u=n(a),c=o(68),h=n(c),d=o(140),f=n(d),p=o(141),g=n(p),v=o(184),m=n(v),y=o(185),w=n(y),C=o(186),b=n(C),S=o(187),E=n(S),R=o(135),O=n(R),k=o(138),T=n(k),_=o(139),M=n(_),H=o(142),A=n(H),P=o(143),x=n(P),D=o(188),L=n(D),N=o(144),I=n(N),j=o(145),W=n(j),B=o(146),F=n(B),V=o(147),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=F.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(1),s=o(2),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(50),u=n(a),c=o(8),h=n(c),d=o(36),f=n(d),p=o(148),g=n(p),v=o(201),m=n(v),y=o(202),w=n(y),C=o(203),b=n(C),S=o(149),E=n(S),R=o(204),O=n(R),k=o(205),T=n(k),_=o(206),M=n(_),H=o(207),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,B=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=B},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(2),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'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function v(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function m(e,t){for(var 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(2),S=o(0),E=o(71)},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(86),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(77),r=o(30);e.exports=function(e){return n(r(e))}},function(e,t,o){var n=o(60),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(50),s=n(i),l=o(273),a=n(l),u=o(274),c=n(u),h=o(275),d=n(h),f=o(276),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(1),a=o(2),u=o(4),c=n(u),h=o(138),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(72);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="<tr><td>t<br>t</td></tr>";var o=document.createElement("CAPTION");o.innerHTML="c<br>c<br>c<br>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(2)},function(e,t,o){"use strict";f