1/*! 2 * (The MIT License) 3 * 4 * Copyright (c) 2012-2014 Marcin Warpechowski 5 * Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net> 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining 8 * a copy of this software and associated documentation files (the 9 * 'Software'), to deal in the Software without restriction, including 10 * without limitation the rights to use, copy, modify, merge, publish, 11 * distribute, sublicense, and/or sell copies of the Software, and to 12 * permit persons to whom the Software is furnished to do so, subject to 13 * the following conditions: 14 * 15 * The above copyright notice and this permission notice shall be 16 * included in all copies or substantial portions of the Software. 17 * 18 * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 * 26 * Version: 6.2.2 27 * Release date: 19/12/2018 (built at 18/12/2018 14:43:44) 28 */ 29!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=437)}([function(e,t,n){var o=n(6),r=n(21),i=n(28),a=n(23),s=n(37),l=function(e,t,n){var u,c,f,h,d=e&l.F,p=e&l.G,g=e&l.S,v=e&l.P,y=e&l.B,m=p?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,w=p?r:r[t]||(r[t]={}),b=w.prototype||(w.prototype={});for(u in p&&(n=t),n)f=((c=!d&&m&&void 0!==m[u])?m:n)[u],h=y&&c?s(f,o):v&&"function"==typeof f?s(Function.call,f):f,m&&a(m,u,f,e&l.U),w[u]!=f&&i(w,u,h),v&&b[u]!=f&&(b[u]=f)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";t.__esModule=!0,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null,r=e;for(;null!==r;){if(n===t){o=r;break}r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:(n+=1,r=r.parentNode)}return o},t.closest=u,t.closestDown=function(e,t,n){var o=[],r=e;for(;r&&(r=u(r,t,n))&&(!n||n.contains(r));)o.push(r),r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode;var i=o.length;return i?o[i-1]:null},t.isChildOf=function(e,t){var n=e.parentNode,o=[];"string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);for(;null!==n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isChildOfWebComponentTable=function(e){var t="hot-table",n=!1,o=c(e);function r(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===t.toUpperCase()}for(;null!==o;){if(r(o)){n=!0;break}if(o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n=r(o.host))break;o=o.host}o=o.parentNode}return n},t.polymerWrap=c,t.polymerUnwrap=f,t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.overlayContainsElement=function(e,t){var n=document.querySelector(".ht_clone_".concat(e));return n?n.contains(t):null},t.hasClass=function(e,t){return o(e,t)},t.addClass=function(e,t){return r(e,t)},t.removeClass=function(e,t){return i(e,t)},t.removeTextNodes=function e(t,n){if(3===t.nodeType)n.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var o=t.childNodes,r=o.length-1;r>=0;r--)e(o[r],t)},t.empty=g,t.fastInnerHTML=function(e,t){v.test(t)?e.innerHTML=t:w(e,t)},t.fastInnerText=w,t.isVisible=function e(t){var n=t;for(;f(n)!==document.documentElement;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return e(n.host.impl);if(n.host)return e(n.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.style.display)return!1;n=n.parentNode}return!0},t.offset=function(e){var t,n,o,r,i=document.documentElement,a=e;if((0,s.hasCaptionProblem)()&&a.firstChild&&"CAPTION"===a.firstChild.nodeName)return{top:(r=a.getBoundingClientRect()).top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};t=a.offsetLeft,n=a.offsetTop,o=a;for(;(a=a.offsetParent)&&a!==document.body;)t+=a.offsetLeft,n+=a.offsetTop,o=a;o&&"fixed"===o.style.position&&(t+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop);return{left:t,top:n}},t.getWindowScrollTop=b,t.getWindowScrollLeft=C,t.getScrollTop=function(e){if(e===window)return b();return e.scrollTop},t.getScrollLeft=function(e){if(e===window)return C();return e.scrollLeft},t.getScrollableElement=function(e){var t,n,o,r=["auto","scroll"],i=e.parentNode,a="",s="",l="",u="";for(;i&&i.style&&document.body!==i;){if(t=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"===t||"scroll"===n||"scroll"===o)return i;if(window.getComputedStyle&&(a=window.getComputedStyle(i),s=a.getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return i;if(i.clientHeight<=i.scrollHeight+1&&(-1!==r.indexOf(o)||-1!==r.indexOf(t)||-1!==r.indexOf(s)||-1!==r.indexOf(l)))return i;if(i.clientWidth<=i.scrollWidth+1&&(-1!==r.indexOf(n)||-1!==r.indexOf(t)||-1!==r.indexOf(s)||-1!==r.indexOf(u)))return i;i=i.parentNode}return window},t.getTrimmingContainer=function(e){var t=e.parentNode;for(;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;var n=S(t),o=["scroll","hidden","auto"],r=n.getPropertyValue("overflow"),i=n.getPropertyValue("overflow-y"),a=n.getPropertyValue("overflow-x");if(o.includes(r)||o.includes(i)||o.includes(a))return t;t=t.parentNode}return window},t.getStyle=function(e,t){if(!e)return;if(e===window)return"width"===t?window.innerWidth+"px":"height"===t?window.innerHeight+"px":void 0;var n,o=e.style[t];if(""!==o&&void 0!==o)return o;if(""!==(n=S(e))[t]&&void 0!==n[t])return n[t]},t.getComputedStyle=S,t.outerWidth=function(e){return e.offsetWidth},t.outerHeight=function(e){if((0,s.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.addEvent=function(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEvent=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange();return n.text.indexOf(t.text)+t.text.length}return 0},t.getSelectionText=function(){var e="";window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text);return e},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var o=e.parentNode,r=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}},t.getScrollbarWidth=function(){void 0===y&&(y=function(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;n==o&&(o=t.clientWidth);return(document.body||document.documentElement).removeChild(t),n-o}());return y},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.setOverlayPosition=function(e,t,n){(0,a.isIE8)()||(0,a.isIE9)()?(e.style.top=n,e.style.left=t):(0,a.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"},t.getCssTransform=function(e){var t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t];return-1},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.isInput=_,t.isOutsideInput=function(e){return _(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")},t.HTML_CHARACTERS=void 0;var o,r,i,a=n(42),s=n(47);function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(e,t,n){for(var o=e;null!==o&&o!==n;){if(o.nodeType===Node.ELEMENT_NODE&&(t.indexOf(o.nodeName)>-1||t.indexOf(o)>-1))return o;o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode}return null}function c(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function f(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function h(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}if(!!document.documentElement.classList){var d=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();o=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},r=function(e,t){var n,o=t;if("string"==typeof o&&(o=o.split(" ")),(o=h(o)).length>0)if(d)(n=e.classList).add.apply(n,l(o));else for(var r=0;o&&o[r];)e.classList.add(o[r]),r+=1},i=function(e,t){var n,o=t;if("string"==typeof o&&(o=o.split(" ")),(o=h(o)).length>0)if(d)(n=e.classList).remove.apply(n,l(o));else for(var r=0;o&&o[r];)e.classList.remove(o[r]),r+=1}}else{var p=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};o=function(e,t){return void 0!==e.className&&p(t).test(e.className)},r=function(e,t){var n=0,o=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),""===o)o=r.join(" ");else for(;r&&r[n];)p(r[n]).test(o)||(o+=" ".concat(r[n])),n+=1;e.className=o},i=function(e,t){var n=0,o=e.className,r=t;for("string"==typeof r&&(r=r.split(" "));r&&r[n];)o=o.replace(p(r[n])," ").trim(),n+=1;e.className!==o&&(e.className=o)}}function g(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v=/(<(.*)>|&(.*);)/;t.HTML_CHARACTERS=v;var y,m=!!document.createTextNode("test").textContent;function w(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?m?n.textContent=t:n.data=t:(g(e),e.appendChild(document.createTextNode(t)))}function b(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function C(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function S(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function _(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}},function(e,t,n){"use strict";t.__esModule=!0,t.duckSchema=function e(t){var n;Array.isArray(t)?n=[]:(n={},l(t,function(t,o){"__children"!==o&&(t&&"object"===i(t)&&!Array.isArray(t)?n[o]=e(t):Array.isArray(t)?t.length&&"object"===i(t[0])&&!Array.isArray(t[0])?n[o]=[e(t[0])]:n[o]=[]:n[o]=null)}));return n},t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.extend=function(e,t){return l(t,function(t,n){e[n]=t}),e},t.deepExtend=function e(t,n){l(n,function(o,r){n[r]&&"object"===i(n[r])?(t[r]||(Array.isArray(n[r])?t[r]=[]:"[object Date]"===Object.prototype.toString.call(n[r])?t[r]=n[r]:t[r]={}),e(t[r],n[r])):t[r]=n[r]})},t.deepClone=a,t.clone=function(e){var t={};return l(e,function(e,n){t[n]=e}),t},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,o.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),l(t,function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));"function"==typeof t?e.prototype[n]=t:Object.defineProperty(e.prototype,n,{get:function(e,t){var n="_".concat(e);return function(){return void 0===this[n]&&(this[n]=function(e){var t=e;return(Array.isArray(t)||s(t))&&(t=a(t)),t}(t)),this[n]}}(n,t),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})})}),e},t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.isObject=s,t.defineGetter=function(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)},t.objectEach=l,t.getProperty=function(e,t){var n=t.split("."),o=e;return l(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o},t.deepObjectSize=function(e){if(!s(e))return 0;return function e(t){var n=0;return s(t)?l(t,function(t){n+=e(t)}):n+=1,n}(e)},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",o="_".concat(n),i=(r(t={_touched:!1},o,e),r(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(i,n,{get:function(){return this[o]},set:function(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.hasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o=n(3);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return"object"===i(e)?JSON.parse(JSON.stringify(e)):e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}},function(e,t,n){"use strict";function o(e,t,n,o){var r=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(o&&s&&(a=i[r+=1]),r+=1;r<s;)a=t(a,i[r],r,i),r+=1;return a}function r(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));for(var r=o.length;n<r&&!1!==t(o[n],n,o);)n+=1;return e}function i(e){return o(e,function(e,t){return e+t},0)}t.__esModule=!0,t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},t.extendArray=function(e,t){var n=t.length,o=0;for(;o<n;)e.push(t[o]),o+=1},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,r=0;r<n;r++)for(var i=0;i<o;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t},t.arrayReduce=o,t.arrayFilter=function(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));var r=o.length,i=[],a=-1;for(;n<r;){var s=o[n];t(s,n,o)&&(i[a+=1]=s),n+=1}return i},t.arrayMap=function(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));var r=o.length,i=[],a=-1;for(;n<r;){var s=o[n];i[a+=1]=t(s,n,o),n+=1}return i},t.arrayEach=r,t.arraySum=i,t.arrayMax=function(e){return o(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return o(e,function(e,t){return e<t?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayFlatten=function e(t){return o(t,function(t,n){return t.concat(Array.isArray(n)?e(n):n)},[])},t.arrayUnique=function(e){var t=[];return r(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(7);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0,n(129);var o=O(n(160));t.ViewportColumnsCalculator=o.default;var r=O(n(161));t.ViewportRowsCalculator=r.default;var i=O(n(75));t.CellCoords=i.default;var a=O(n(162));t.CellRange=a.default;var s=O(n(163));t.ColumnFilter=s.default;var l=O(n(164));t.RowFilter=l.default;var u=O(n(605));t.DebugOverlay=u.default;var c=O(n(607));t.LeftOverlay=c.default;var f=O(n(608));t.TopOverlay=f.default;var h=O(n(609));t.TopLeftCornerOverlay=h.default;var d=O(n(610));t.BottomOverlay=d.default;var p=O(n(611));t.BottomLeftCornerOverlay=p.default;var g=O(n(293));t.Border=g.default;var v=O(n(165));t.default=v.default,t.Core=v.default;var y=O(n(286));t.Event=y.default;var m=O(n(287));t.Overlays=m.default;var w=O(n(288));t.Scroll=w.default;var b=O(n(612));t.Selection=b.default;var C=O(n(289));t.Settings=C.default;var S=O(n(290));t.Table=S.default;var _=O(n(291));t.TableRenderer=_.default;var E=O(n(292));function O(e){return e&&e.__esModule?e:{default:e}}t.Viewport=E.default},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.__esModule=!0,t.isNumeric=function(e){var t=o(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)},t.rangeEach=function(e,t,n){var o=-1;"function"==typeof t?(n=t,t=e):o=e-1;for(;++o<=t&&!1!==n(o););},t.rangeEachReverse=function(e,t,n){var o=e+1;"function"==typeof t&&(n=t,t=0);for(;--o>=t&&!1!==n(o););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10)}},function(e,t,n){"use strict";t.__esModule=!0,t.getListenersCounter=function(){return l},t.default=void 0;var o=n(1),r=n(2),i=n(47),a=n(18);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=0,u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"addEventListener",value:function(e,t,n){var o=this,r=this.context;function i(e){n.call(this,c(r,e))}return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i}),e.addEventListener(t,i,!1),l+=1,function(){o.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o,r=this.context.eventListeners.length;r;)if(r-=1,(o=this.context.eventListeners[r]).event===t&&o.element===e){if(n&&n!==o.callback)continue;this.context.eventListeners.splice(r,1),o.element.removeEventListener(o.event,o.callbackProxy,!1),l-=1}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e;){e-=1;var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n,o={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents")).initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on".concat(t),n)}}]),e}();function c(e,t){var n,s,l,c,f;t.isTargetWebComponent=!1,t.realTarget=t.target;var h=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){h.apply(this),(0,a.stopImmediatePropagation)(this)},!u.isHotTableEnv)return t;for(f=(t=(0,o.polymerWrap)(t)).path?t.path.length:0;f;){if(f-=1,"HOT-TABLE"===t.path[f].nodeName)n=!0;else if(n&&t.path[f].shadowRoot){c=t.path[f];break}0!==f||c||(c=t.path[f])}return c||(c=t.target),t.isTargetWebComponent=!0,(0,i.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:((0,r.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&((0,r.hasOwnProperty)(e,"hot")?s=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?s=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(s=e.wtTable.TABLE.parentNode.parentNode),l=(0,o.closest)(t.target,["HOT-TABLE"],s),t.realTarget=l&&s.querySelector("HOT-TABLE")||t.target),Object.defineProperty(t,"target",{get:function(){return(0,o.polymerWrap)(c)},enumerable:!0,configurable:!0}),t}var f=u;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_CANCEL=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_NAMESPACE=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXT_MENU_ITEMS_NAMESPACE=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var o="".concat("ContextMenu:items",".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=o;var r="".concat("ContextMenu:items",".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=r;var i="".concat("ContextMenu:items",".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=i;var a="".concat("ContextMenu:items",".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=a;var s="".concat("ContextMenu:items",".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=s;var l="".concat("ContextMenu:items",".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=l;var u="".concat("ContextMenu:items",".undo");t.CONTEXTMENU_ITEMS_UNDO=u;var c="".concat("ContextMenu:items",".redo");t.CONTEXTMENU_ITEMS_REDO=c;var f="".concat("ContextMenu:items",".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var h="".concat("ContextMenu:items",".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=h;var d="".concat("ContextMenu:items",".copy");t.CONTEXTMENU_ITEMS_COPY=d;var p="".concat("ContextMenu:items",".cut");t.CONTEXTMENU_ITEMS_CUT=p;var g="".concat("ContextMenu:items",".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=g;var v="".concat("ContextMenu:items",".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=v;var y="".concat("ContextMenu:items",".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=y;var m="".concat("ContextMenu:items",".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=m;var w="".concat("ContextMenu:items",".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=w;var b="".concat("ContextMenu:items",".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=b;var C="".concat("ContextMenu:items",".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=C;var S="".concat("ContextMenu:items",".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=S;var _="".concat("ContextMenu:items",".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=_;var E="".concat("ContextMenu:items",".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=E;var O="".concat("ContextMenu:items",".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=O;var T="".concat("ContextMenu:items",".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=T;var R="".concat("ContextMenu:items",".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=R;var k="".concat("ContextMenu:items",".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=k;var M="".concat("ContextMenu:items",".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=M;var N="".concat("ContextMenu:items",".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=N;var D="".concat("ContextMenu:items",".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var A="".concat("ContextMenu:items",".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=A;var P="".concat("ContextMenu:items",".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=P;var L="".concat("ContextMenu:items",".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=L;var H="".concat("ContextMenu:items",".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=H;var x="".concat("ContextMenu:items",".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=x;var I="".concat("ContextMenu:items",".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=I;var j="".concat("ContextMenu:items",".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=j;var F="".concat("ContextMenu:items",".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=F;var W="".concat("ContextMenu:items",".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=W;var B="".concat("ContextMenu:items",".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=B;var V="".concat("ContextMenu:items",".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=V;t.FILTERS_NAMESPACE="Filters:";var Y="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=Y;var U="".concat(Y,".none");t.FILTERS_CONDITIONS_NONE=U;var z="".concat(Y,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=z;var G="".concat(Y,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=G;var X="".concat(Y,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=X;var K="".concat(Y,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=K;var q="".concat(Y,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=q;var Z="".concat(Y,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=Z;var $="".concat(Y,".contains");t.FILTERS_CONDITIONS_CONTAINS=$;var J="".concat(Y,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=J;var Q="".concat(Y,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=Q;var ee="".concat(Y,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ee;var te="".concat(Y,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=te;var ne="".concat(Y,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=ne;var oe="".concat(Y,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=oe;var re="".concat(Y,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=re;var ie="".concat(Y,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ie;var ae="".concat(Y,".after");t.FILTERS_CONDITIONS_AFTER=ae;var se="".concat(Y,".before");t.FILTERS_CONDITIONS_BEFORE=se;var le="".concat(Y,".today");t.FILTERS_CONDITIONS_TODAY=le;var ue="".concat(Y,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=ue;var ce="".concat(Y,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ce;var fe="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=fe;var he="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=he;var de="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=de;var pe="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=pe;var ge="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=ge;var ve="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=ve;var ye="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=ye;var me="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=me;var we="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=we;var be="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=be;var Ce="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Ce;var Se="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Se},function(e,t,n){var o=n(93)("wks"),r=n(51),i=n(6).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";t.__esModule=!0,t.registerPlugin=function(e,t){var n=(0,i.toUpperCaseFirst)(e);o.default.getSingleton().add("construct",function(){a.has(this)||a.set(this,{});var e=a.get(this);e[n]||(e[n]=new t(this))}),o.default.getSingleton().add("afterDestroy",function(){if(a.has(this)){var e=a.get(this);(0,r.objectEach)(e,function(e){return e.destroy()}),a.delete(this)}})},t.getPlugin=function(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,i.toUpperCaseFirst)(t);if(!a.has(e)||!a.get(e)[n])return;return a.get(e)[n]},t.getRegistredPluginNames=function(e){return a.has(e)?Object.keys(a.get(e)):[]},t.getPluginName=function(e,t){var n=null;a.has(e)&&(0,r.objectEach)(a.get(e),function(e,o){e===t&&(n=o)});return n};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),r=n(2),i=n(48);var a=new WeakMap},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=function(e){var t;switch(a(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t},t.isDefined=function(e){return void 0!==e},t.isUndefined=s,t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t._injectProductInfo=function(e,t){var n="",a=!0,s=function(e){var t=[][u],n=t;if(e[u]!==d("Z"))return!1;for(var o="",r="B<H4P+".split(""),i=d(r.shift());i;i=d(r.shift()||"A"))--i<""[u]?n|=(f("".concat(f(c(o)+(c(h(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:o=h(e,i,i?1===r[u]?9:8:6);return n===t}(e=p(e||"")),m=v(),w=l(e)||"trial"===e;if(w||s)if(s){var b=Math.floor((0,o.default)("19/12/2018","DD/MM/YYYY").toDate().getTime()/864e5),C=g(e);(C>45e3||C!==parseInt(C,10))&&(n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly."),n||(b>C+1&&(n=(0,r.toSingleLine)(i())),a=b>C+15)}else n="Evaluation version of Handsontable Pro. Not licensed for use in a production environment.";else n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.";m&&(n=!1,a=!1);n&&!y&&(console[w?"info":"warn"](n),y=!0);if(a&&t.parentNode){var S=document.createElement("div");S.id="hot-display-license-info",S.appendChild(document.createTextNode("Evaluation version of Handsontable Pro.")),S.appendChild(document.createElement("br")),S.appendChild(document.createTextNode("Not licensed for production use.")),t.parentNode.insertBefore(S,t.nextSibling)}};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(67)),r=n(58);function i(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n Your license key of Handsontable Pro has expired. \n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "]);return i=function(){return e},e}function a(e){return(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})(e)}function s(e){return void 0===e}function l(e){return null===e||""===e||s(e)}var u="length",c=function(e){return parseInt(e,16)},f=function(e){return parseInt(e,10)},h=function(e,t,n){return e.substr(t,n)},d=function(e){return e.codePointAt(0)-65},p=function(e){return"".concat(e).replace(/\-/g,"")},g=function(e){return c(h(p(e),c("12"),d("F")))/(c(h(p(e),d("B"),~~![][u]))||9)},v=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},y=!1},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(2),r=n(3),i=n(424),a=n(13);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=new WeakMap,u=null,c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,o.defineGetter)(this,"hot",t,{writable:!1}),(0,o.defineGetter)(this,"t",(0,i.getTranslator)(t),{writable:!1}),l.set(this,{hooks:{}}),u=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return n.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(e){return n.onUpdateSettings(e)}),this.hot.addHook("beforeInit",function(){return n.init()})}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"init",value:function(){this.pluginName=(0,a.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),u||(u=(0,a.getRegistredPluginNames)(this.hot)),u.indexOf(this.pluginName)>=0&&u.splice(u.indexOf(this.pluginName),1),u.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){l.get(this).hooks[e]=l.get(this).hooks[e]||[];var n=l.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),l.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,r.arrayEach)(l.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=l.get(this).hooks;(0,o.objectEach)(t,function(t,n){return e.removeHooks(n)}),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,r.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,o.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}();t.default=c},function(e,t,n){var o=n(33),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(5),r=n(130),i=n(44),a=Object.defineProperty;t.f=n(20)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0},t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.stopPropagation=function(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.pageX=function(e){if(e.pageX)return e.pageX;return e.clientX+(0,o.getWindowScrollLeft)()},t.pageY=function(e){if(e.pageY)return e.pageY;return e.clientY+(0,o.getWindowScrollTop)()},t.isRightClick=function(e){return 2===e.button},t.isLeftClick=function(e){return 0===e.button};var o=n(1)},function(e,t,n){"use strict";t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!g(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return p(e)},t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.registerRenderer=void 0;var o=f(n(46)),r=f(n(624)),i=f(n(625)),a=f(n(626)),s=f(n(627)),l=f(n(628)),u=f(n(629)),c=f(n(630));function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)("renderers"),d=h.register,p=h.getItem,g=h.hasItem,v=h.getNames,y=h.getValues;t.getRegisteredRenderers=y,t.getRegisteredRendererNames=v,t.hasRenderer=g,t.registerRenderer=d,d("base",r.default),d("autocomplete",i.default),d("checkbox",a.default),d("html",s.default),d("numeric",l.default),d("password",u.default),d("text",c.default)},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3),r=n(2);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","modifyGetCellCoords","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","skipLengthCache","afterTrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten"],l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalBucket=this.createEmptyBucket()}return a(e,null,[{key:"getSingleton",value:function(){return u}}]),a(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,o.arrayEach)(s,function(t){return e[t]=[]}),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,o.arrayEach)(t,function(t){return n.add(e,t,r)});else{var i=this.getBucket(r);if(void 0===i[e]&&(this.register(e),i[e]=[]),t.skip=!1,-1===i[e].indexOf(t)){var a=!1;t.initialHook&&(0,o.arrayEach)(i[e],function(n,o){if(n.initialHook)return i[e][o]=t,a=!0,!1}),a||i[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,o.arrayEach)(t,function(t){return n.once(e,t,r)}):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,o,r,i,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c<u;)if(l[c]&&!l[c].skip){var f=l[c].call(e,n,o,r,i,a,s);void 0!==f&&(n=f),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],d=h?h.length:0,p=0;if(d)for(;p<d;)if(h[p]&&!h[p].skip){var g=h[p].call(e,n,o,r,i,a,s);void 0!==g&&(n=g),h[p]&&h[p].runOnce&&this.remove(t,h[p],e),p+=1}else p+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,r.objectEach)(this.getBucket(e),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||s.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&s.splice(s.indexOf(e),1)}},{key:"isRegistered",value:function(e){return s.indexOf(e)>=0}},{key:"getRegistered",value:function(){return s}}]),e}(),u=new l;var c=l;t.default=c},function(e,t,n){var o=n(6),r=n(28),i=n(27),a=n(51)("src"),s=Function.toString,l=(""+s).split("toString");n(21).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||r(n,a,e[t]?""+e[t]:l.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var o=n(40);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(0),r=n(4),i=n(40),a=/"/g,s=function(e,t,n,o){var r=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(a,""")+'"'),s+">"+r+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),o(o.P+o.F*r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";t.__esModule=!0,t.RegisteredEditor=_,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)v.get(e)||E(null,e),n=v.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=w(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)},t.registerEditor=E,t.getEditor=function(e){if(!b(e))throw Error('No registered editor found under "'.concat(e,'" name'));return w(e).getConstructor()},t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=void 0;var o=g(n(46)),r=g(n(22)),i=g(n(74)),a=g(n(294)),s=g(n(614)),l=g(n(615)),u=g(n(620)),c=g(n(295)),f=g(n(621)),h=g(n(622)),d=g(n(623)),p=g(n(77));function g(e){return e&&e.__esModule?e:{default:e}}var v=new WeakMap,y=(0,o.default)("editors"),m=y.register,w=y.getItem,b=y.hasItem,C=y.getNames,S=y.getValues;function _(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},r.default.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function E(e,t){var n=new _(t);"string"==typeof e&&m(e,n),v.set(t,n)}t.getRegisteredEditors=S,t.getRegisteredEditorNames=C,t.hasEditor=b,E("base",i.default),E("autocomplete",a.default),E("checkbox",s.default),E("date",l.default),E("dropdown",u.default),E("handsontable",c.default),E("numeric",f.default),E("password",h.default),E("select",d.default),E("text",p.default)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(17),r=n(50);e.exports=n(20)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(70),r=n(40);e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeSelection=function(e){return(0,o.arrayMap)(e,function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}})},t.isSeparator=function(e){return(0,r.hasClass)(e,"htSeparator")},t.hasSubMenu=function(e){return(0,r.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,r.hasClass)(e,"htDisabled")},t.isSelectionDisabled=function(e){return(0,r.hasClass)(e,"htSelectionDisabled")},t.getValidSelection=function(e){var t=e.getSelected();if(!t)return null;if(t[0]<0)return null;return t},t.prepareVerticalAlignClass=a,t.prepareHorizontalAlignClass=s,t.getAlignmentClasses=function(e,t){var n={};return(0,o.arrayEach)(e,function(e){for(var o=e.from,r=e.to,i=o.row;i<=r.row;i++)for(var a=o.col;a<=r.col;a++)n[i]||(n[i]=[]),n[i][a]=t(i,a)}),n},t.align=function(e,t,n,r,i){(0,o.arrayEach)(e,function(e){var o=e.from,a=e.to;if(o.row===a.row&&o.col===a.col)l(o.row,o.col,t,n,r,i);else for(var s=o.row;s<=a.row;s++)for(var u=o.col;u<=a.col;u++)l(s,u,t,n,r,i)})},t.checkSelectionConsistency=function(e,t){var n=!1;Array.isArray(e)&&(0,o.arrayEach)(e,function(e){return e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n});return n},t.markLabelAsSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=e.slice(0);return n=function(e){var t=[];return(0,o.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(n=function(e,t){var n=e.slice(0);return n.reverse(),(n=u(n,t)).reverse(),n}(n=u(n,t),t))};var o=n(3),r=n(1),i=n(126);function a(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function s(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function l(e,t,n,o,r,i){var l=r(e,t),u=o;l.className&&(u="vertical"===n?a(l.className,o):s(l.className,o)),i(e,t,"className",u)}function u(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}},function(e,t,n){"use strict";var o=n(4);e.exports=function(e,t){return!!e&&o(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";t.__esModule=!0,t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},t.isMetaKey=function(e){return-1!==[r.ARROW_DOWN,r.ARROW_UP,r.ARROW_LEFT,r.ARROW_RIGHT,r.HOME,r.END,r.DELETE,r.BACKSPACE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.TAB,r.PAGE_DOWN,r.PAGE_UP,r.ENTER,r.ESCAPE,r.SHIFT,r.CAPS_LOCK,r.ALT].indexOf(e)},t.isCtrlKey=function(e){var t=[];window.navigator.platform.includes("Mac")?t.push(r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX):t.push(r.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)},t.isKey=function(e,t){var n=t.split("|"),i=!1;return(0,o.arrayEach)(n,function(t){if(e===r[t])return i=!0,!1}),i},t.KEY_CODES=void 0;var o=n(3),r={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88};t.KEY_CODES=r},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(71),r=n(50),i=n(29),a=n(44),s=n(27),l=n(130),u=Object.getOwnPropertyDescriptor;t.f=n(20)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(0),r=n(21),i=n(4);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(37),r=n(70),i=n(24),a=n(16),s=n(529);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,h=5==e||f,d=t||s;return function(t,s,p){for(var g,v,y=i(t),m=r(y),w=o(s,p,3),b=a(m.length),C=0,S=n?d(t,b):l?d(t,0):void 0;b>C;C++)if((h||C in m)&&(v=w(g=m[C],C,y),e))if(n)S[C]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:S.push(g)}else if(c)return!1;return f?-1:u||c?c:S}}},function(e,t,n){var o=n(38);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";if(n(20)){var o=n(52),r=n(6),i=n(4),a=n(0),s=n(89),l=n(118),u=n(37),c=n(64),f=n(50),h=n(28),d=n(65),p=n(33),g=n(16),v=n(156),y=n(54),m=n(44),w=n(27),b=n(72),C=n(7),S=n(24),_=n(110),E=n(55),O=n(57),T=n(56).f,R=n(112),k=n(51),M=n(12),N=n(36),D=n(79),A=n(73),P=n(114),L=n(61),H=n(82),x=n(63),I=n(113),j=n(147),F=n(17),W=n(34),B=F.f,V=W.f,Y=r.RangeError,U=r.TypeError,z=r.Uint8Array,G=Array.prototype,X=l.ArrayBuffer,K=l.DataView,q=N(0),Z=N(2),$=N(3),J=N(4),Q=N(5),ee=N(6),te=D(!0),ne=D(!1),oe=P.values,re=P.keys,ie=P.entries,ae=G.lastIndexOf,se=G.reduce,le=G.reduceRight,ue=G.join,ce=G.sort,fe=G.slice,he=G.toString,de=G.toLocaleString,pe=M("iterator"),ge=M("toStringTag"),ve=k("typed_constructor"),ye=k("def_constructor"),me=s.CONSTR,we=s.TYPED,be=s.VIEW,Ce=N(1,function(e,t){return Te(A(e,e[ye]),t)}),Se=i(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),_e=!!z&&!!z.prototype.set&&i(function(){new z(1).set({})}),Ee=function(e,t){var n=p(e);if(n<0||n%t)throw Y("Wrong offset!");return n},Oe=function(e){if(C(e)&&we in e)return e;throw U(e+" is not a typed array!")},Te=function(e,t){if(!(C(e)&&ve in e))throw U("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return ke(A(e,e[ye]),t)},ke=function(e,t){for(var n=0,o=t.length,r=Te(e,o);o>n;)r[n]=t[n++];return r},Me=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,o,r,i,a,s=S(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,h=R(s);if(void 0!=h&&!_(h)){for(a=h.call(s),o=[],t=0;!(i=a.next()).done;t++)o.push(i.value);s=o}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),r=Te(this,n);n>t;t++)r[t]=f?c(s[t],t):s[t];return r},De=function(){for(var e=0,t=arguments.length,n=Te(this,t);t>e;)n[e]=arguments[e++];return n},Ae=!!z&&i(function(){de.call(new z(1))}),Pe=function(){return de.apply(Ae?fe.call(Oe(this)):Oe(this),arguments)},Le={copyWithin:function(e,t){return j.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return I.apply(Oe(this),arguments)},filter:function(e){return Re(this,Z(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Oe(this),arguments)},lastIndexOf:function(e){return ae.apply(Oe(this),arguments)},map:function(e){return Ce(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return le.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),o=0;o<n;)e=this[o],this[o++]=this[--t],this[t]=e;return this},some:function(e){return $(Oe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),o=n.length,r=y(e,o);return new(A(n,n[ye]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===t?o:y(t,o))-r))}},He=function(e,t){return Re(this,fe.call(Oe(this),e,t))},xe=function(e){Oe(this);var t=Ee(arguments[1],1),n=this.length,o=S(e),r=g(o.length),i=0;if(r+t>n)throw Y("Wrong length!");for(;i<r;)this[t+i]=o[i++]},Ie={entries:function(){return ie.call(Oe(this))},keys:function(){return re.call(Oe(this))},values:function(){return oe.call(Oe(this))}},je=function(e,t){return C(e)&&e[we]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Fe=function(e,t){return je(e,t=m(t,!0))?f(2,e[t]):V(e,t)},We=function(e,t,n){return!(je(e,t=m(t,!0))&&C(n)&&w(n,"value"))||w(n,"get")||w(n,"set")||n.configurable||w(n,"writable")&&!n.writable||w(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};me||(W.f=Fe,F.f=We),a(a.S+a.F*!me,"Object",{getOwnPropertyDescriptor:Fe,defineProperty:We}),i(function(){he.call({})})&&(he=de=function(){return ue.call(this)});var Be=d({},Le);d(Be,Ie),h(Be,pe,Ie.values),d(Be,{slice:He,set:xe,constructor:function(){},toString:he,toLocaleString:Pe}),Me(Be,"buffer","b"),Me(Be,"byteOffset","o"),Me(Be,"byteLength","l"),Me(Be,"length","e"),B(Be,ge,{get:function(){return this[we]}}),e.exports=function(e,t,n,l){var u=e+((l=!!l)?"Clamped":"")+"Array",f="get"+e,d="set"+e,p=r[u],y=p||{},m=p&&O(p),w=!p||!s.ABV,S={},_=p&&p.prototype,R=function(e,n){B(e,n,{get:function(){return function(e,n){var o=e._d;return o.v[f](n*t+o.o,Se)}(this,n)},set:function(e){return function(e,n,o){var r=e._d;l&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),r.v[d](n*t+r.o,o,Se)}(this,n,e)},enumerable:!0})};w?(p=n(function(e,n,o,r){c(e,p,u,"_d");var i,a,s,l,f=0,d=0;if(C(n)){if(!(n instanceof X||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return we in n?ke(p,n):Ne.call(p,n);i=n,d=Ee(o,t);var y=n.byteLength;if(void 0===r){if(y%t)throw Y("Wrong length!");if((a=y-d)<0)throw Y("Wrong length!")}else if((a=g(r)*t)+d>y)throw Y("Wrong length!");s=a/t}else s=v(n),i=new X(a=s*t);for(h(e,"_d",{b:i,o:d,l:a,e:s,v:new K(i)});f<s;)R(e,f++)}),_=p.prototype=E(Be),h(_,"constructor",p)):i(function(){p(1)})&&i(function(){new p(-1)})&&H(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=n(function(e,n,o,r){var i;return c(e,p,u),C(n)?n instanceof X||"ArrayBuffer"==(i=b(n))||"SharedArrayBuffer"==i?void 0!==r?new y(n,Ee(o,t),r):void 0!==o?new y(n,Ee(o,t)):new y(n):we in n?ke(p,n):Ne.call(p,n):new y(v(n))}),q(m!==Function.prototype?T(y).concat(T(m)):T(y),function(e){e in p||h(p,e,y[e])}),p.prototype=_,o||(_.constructor=p));var k=_[pe],M=!!k&&("values"==k.name||void 0==k.name),N=Ie.values;h(p,ve,!0),h(_,we,u),h(_,be,!0),h(_,ye,p),(l?new p(1)[ge]==u:ge in _)||B(_,ge,{get:function(){return u}}),S[u]=p,a(a.G+a.W+a.F*(p!=y),S),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*i(function(){y.of.call(p,1)}),u,{from:Ne,of:De}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",t),a(a.P,u,Le),x(u),a(a.P+a.F*_e,u,{set:xe}),a(a.P+a.F*!M,u,Ie),o||_.toString==he||(_.toString=he),a(a.P+a.F*i(function(){new p(1).slice()}),u,{slice:He}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!i(function(){_.toLocaleString.call([1,2])})),u,{toLocaleString:Pe}),L[u]=M?k:N,o||M||h(_,pe,N)}}else e.exports=function(){}},function(e,t,n){"use strict";t.__esModule=!0,t.setBrowserMeta=a,t.isChrome=function(){return i.chrome.value},t.isEdge=function(){return i.edge.value},t.isIE=function(){return i.ie.value},t.isIE8=function(){return i.ie8.value},t.isIE9=function(){return i.ie9.value},t.isMSBrowser=function(){return i.ie.value||i.edge.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value};var o=n(2),r=function(e){var t={value:!1,test:function(n,o){t.value=e(n,o)}};return t},i={chrome:r(function(e,t){return/Chrome/.test(e)&&/Google/.test(t)}),edge:r(function(e){return/Edge/.test(e)}),ie:r(function(e){return/Trident/.test(e)}),ie8:r(function(){return!document.createTextNode("test").textContent}),ie9:r(function(){return!!document.documentMode}),mobile:r(function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}),safari:r(function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)})};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,r=e.vendor,a=void 0===r?navigator.vendor:r;(0,o.objectEach)(i,function(e){(0,e.test)(n,a)})}a()},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(2),i=n(3),a=l(n(10)),s=l(n(165));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var f={},h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,r.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,o.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return c(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error("Unsupported overlay (".concat(t,")."));f[t]=n}},{key:"createOverlay",value:function(e,t){return new f[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==f[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),c(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,o.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'.concat(t,'" is not supported.'));var n=document.createElement("DIV"),r=document.createElement("TABLE");n.className="ht_clone_".concat(t," handsontable"),n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",r.className=this.wot.wtTable.TABLE.className,n.appendChild(r),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var i=this.wot.getSetting("preventOverflow");return!0===i||"horizontal"===i&&this.type===e.CLONE_TOP||"vertical"===i&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=window:this.mainTableScrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),new s.default({cloneSource:this.wot,cloneOverlay:this,table:r})}},{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,t=this.clone.wtTable.hider,n=e.style,o=t.style,r=e.parentNode.style;(0,i.arrayEach)([n,o,r],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new a.default(this.clone).destroy()}}]),e}();t.default=h},function(e,t,n){var o=n(7);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(51)("meta"),r=n(7),i=n(27),a=n(17).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(4)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!i(e,o)&&c(e),e}}},function(e,t,n){"use strict";function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.__esModule=!0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);var t=r.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return o(t.keys())},getValues:function(){return o(t.values())}}},t.collection=void 0;var r=new Map;t.collection=r},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.__esModule=!0,t.requestAnimationFrame=function(e){return l.call(window,e)},t.cancelAnimationFrame=function(e){u.call(window,e)},t.isTouchSupported=function(){return"ontouchstart"in window},t.isWebComponentSupportedNatively=function(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))},t.hasCaptionProblem=function(){void 0===r&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),r=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return r},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i)return i;i="object"===("undefined"==typeof Intl?"undefined":o(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1};return i};for(var r,i,a=0,s=["ms","moz","webkit","o"],l=window.requestAnimationFrame,u=window.cancelAnimationFrame,c=0;c<s.length&&!l;++c)l=window["".concat(s[c],"RequestAnimationFrame")],u=window["".concat(s[c],"CancelAnimationFrame")]||window["".concat(s[c],"CancelRequestAnimationFrame")];l||(l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),o=window.setTimeout(function(){e(t+n)},n);return a=t+n,o}),u||(u=function(e){clearTimeout(e)})},function(e,t,n){"use strict";t.__esModule=!0,t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length;for(;i;){i-=1;var a=(0,o.stringify)(n[i]).toLowerCase();-1===e.indexOf(a)&&e.push(a)}return 1===e.length},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.substitute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})},t.stripTags=function(e){return"".concat(e).replace(r,"")};var o=n(14);var r=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi},function(e,t,n){"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!h(e))throw Error('No registered validator found under "'.concat(e,'" name'));return f(e)},t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.registerValidator=void 0;var o=l(n(46)),r=l(n(631)),i=l(n(632)),a=l(n(633)),s=l(n(634));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.default)("validators"),c=u.register,f=u.getItem,h=u.hasItem,d=u.getNames,p=u.getValues;t.getRegisteredValidators=p,t.getRegisteredValidatorNames=d,t.hasValidator=h,t.registerValidator=c,c("autocomplete",r.default),c("date",i.default),c("numeric",a.default),c("time",s.default)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var o=n(132),r=n(96);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(33),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(5),r=n(133),i=n(96),a=n(95)("IE_PROTO"),s=function(){},l=function(){var e,t=n(92)("iframe"),o=i.length;for(t.style.display="none",n(98).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;o--;)delete l.prototype[i[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(132),r=n(96).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(27),r=n(24),i=n(95)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,o.arrayReduce)(e,function(e,t,o){var r=t.replace(/(?:\r?\n\s+)/g,""),i=n[o]?n[o]:"";return e+r+i},"").trim()};var o=n(3)},function(e,t,n){"use strict";t.__esModule=!0,t.isFunction=function(e){return"function"==typeof e},t.throttle=r,t.throttleAfterHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=r(e,t),i=n;function a(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i?(i-=1,e.apply(this,n)):o.apply(this,n)}return a.clearHits=function(){i=n},a},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];o&&clearTimeout(o);return o=setTimeout(function(){t=e.apply(r,a)},n),t}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.arrayReduce)(i,function(e,t){return t(e)},r.apply(this,t))}},t.partial=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.apply(this,n.concat(o))}},t.curry=function(e){var t=e.length;return function n(o){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var s=o.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(o){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var s=o.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])};var o=n(3);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,o={lastCallThrottled:!0},r=null;return function(){for(var i=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Date.now(),c=!1;o.lastCallThrottled=!0,n||(n=u,c=!0);var f=t-(u-n);return c?(o.lastCallThrottled=!1,e.apply(this,s)):(r&&clearTimeout(r),r=setTimeout(function(){o.lastCallThrottled=!1,e.apply(i,s),n=0,r=void 0},f)),o}}},function(e,t,n){var o=n(17).f,r=n(27),i=n(12)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var o=n(12)("unscopables"),r=Array.prototype;void 0==r[o]&&n(28)(r,o,{}),e.exports=function(e){r[o][e]=!0}},function(e,t,n){"use strict";var o=n(6),r=n(17),i=n(20),a=n(12)("species");e.exports=function(e){var t=o[e];i&&t&&!t[a]&&r.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(23);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(7);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var t,o;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Nt(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=o.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function v(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var y=r.momentProperties=[];function m(e,t){var n,o,r;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)s(r=t[o=y[n]])||(e[o]=r);return e}var w=!1;function b(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function C(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n}function E(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&_(e[o])!==_(t[o]))&&a++;return a+i}function O(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return h(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var o,i=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];i.push(o)}O(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var R,k={};function M(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(O(t),k[e]=!0)}function N(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,o=h({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(o[n]=h({},o[n]));return o}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,R=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var P={};function L(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function H(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function x(e){var t,n,o={};for(n in e)f(e,n)&&(t=H(n))&&(o[t]=e[n]);return o}var I={};function j(e,t){I[e]=t}function F(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},Y={};function U(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e,t){return e.isValid()?(t=X(t,e.localeData()),V[t]=V[t]||function(e){var t,n,o=e.match(W);for(t=0,n=o.length;t<n;t++)Y[o[t]]?o[t]=Y[o[t]]:o[t]=z(o[t]);return function(t){var r,i="";for(r=0;r<n;r++)i+=N(o[r])?o[r].call(t,e):o[r];return i}}(t),V[t](e)):e.localeData().invalidDate()}function X(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;n>=0&&B.test(e);)e=e.replace(B,o),B.lastIndex=0,n-=1;return e}var K=/\d/,q=/\d\d/,Z=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,oe=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function fe(e,t,n){ce[e]=N(t)?t:function(e,o){return e&&n?n:t}}function he(e,t){return f(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}(e))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function ge(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),l(t)&&(o=function(e,n){n[t]=_(e)}),n=0;n<e.length;n++)pe[e[n]]=o}function ve(e,t){ge(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function ye(e,t,n){null!=t&&f(pe,e)&&pe[e](t,n._a,n,e)}var me=0,we=1,be=2,Ce=3,Se=4,_e=5,Ee=6,Oe=7,Te=8;function Re(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),j("year",1),fe("Y",ae),fe("YY",Q,q),fe("YYYY",oe,$),fe("YYYYY",re,J),fe("YYYYYY",re,J),ge(["YYYYY","YYYYYY"],me),ge("YYYY",function(e,t){t[me]=2===e.length?r.parseTwoDigitYear(e):_(e)}),ge("YY",function(e,t){t[me]=r.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[me]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Me,Ne=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Pe(this,e,n),r.updateOffset(this,t),this):Ae(this,e)}}function Ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Le(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?ke(e)?29:28:31-n%7%2}Me=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),j("month",8),fe("M",Q),fe("MM",Q,q),fe("MMM",function(e,t){return t.monthsShortRegex(e)}),fe("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[we]=_(e)-1}),ge(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[we]=r:p(n).invalidMonth=e});var He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(je(this,e),r.updateOffset(this,!0),this):Ae(this,"Month")}var We=ue;var Be=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;t<12;t++)n=d([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)o[t]=de(o[t]),r[t]=de(r[t]);for(t=0;t<24;t++)i[t]=de(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var o=7+t-n;return-((7+Ye(e,0,o).getUTCDay()-t)%7)+o-1}function ze(e,t,n,o,r){var i,a,s=1+7*(t-1)+(7+n-o)%7+Ue(e,o,r);return s<=0?a=Re(i=e-1)+s:s>Re(e)?(i=e+1,a=s-Re(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Ge(e,t,n){var o,r,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Xe(r=e.year()-1,t,n):a>Xe(e.year(),t,n)?(o=a-Xe(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Xe(e,t,n){var o=Ue(e,t,n),r=Ue(e+1,t,n);return(Re(e)-o+r)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),j("week",5),j("isoWeek",5),fe("w",Q),fe("ww",Q,q),fe("W",Q),fe("WW",Q,q),ve(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=_(e)});U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),fe("d",Q),fe("e",Q),fe("E",Q),fe("dd",function(e,t){return t.weekdaysMinRegex(e)}),fe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),fe("dddd",function(e,t){return t.weekdaysRegex(e)}),ve(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ve(["d","e","E"],function(e,t,n,o){t[o]=_(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var $e=ue;var Je=ue;var Qe=ue;function et(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,tt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+tt.apply(this)+F(this.minutes(),2)}),U("hmmss",0,0,function(){return""+tt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),nt("a",!0),nt("A",!1),L("hour","h"),j("hour",13),fe("a",ot),fe("A",ot),fe("H",Q),fe("h",Q),fe("k",Q),fe("HH",Q,q),fe("hh",Q,q),fe("kk",Q,q),fe("hmm",ee),fe("hmmss",te),fe("Hmm",ee),fe("Hmmss",te),ge(["H","HH"],Ce),ge(["k","kk"],function(e,t,n){var o=_(e);t[Ce]=24===o?0:o}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Ce]=_(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var o=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o,2)),t[_e]=_(e.substr(r)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var o=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o))}),ge("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o,2)),t[_e]=_(e.substr(r))});var rt,it=De("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Ze,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},st={},lt={};function ut(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var o=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{o=rt._abbr;n(606)("./"+t),ft(o)}catch(e){}return st[t]}function ft(e,t){var n;return e&&(n=s(t)?dt(e):ht(e,t))&&(rt=n),rt._abbr}function ht(e,t){if(null!==t){var n=at;if(t.abbr=e,null!=st[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=st[e]._config;else if(null!=t.parentLocale){if(null==st[t.parentLocale])return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;n=st[t.parentLocale]._config}return st[e]=new A(D(n,t)),lt[e]&<[e].forEach(function(e){ht(e.name,e.config)}),ft(e),st[e]}return delete st[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i<e.length;){for(t=(r=ut(e[i]).split("-")).length,n=(n=ut(e[i+1]))?n.split("-"):null;t>0;){if(o=ct(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&E(r,n,!0)>=t-1)break;t--}i++}return null}(e)}function pt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[we]<0||n[we]>11?we:n[be]<1||n[be]>Le(n[me],n[we])?be:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[Se]||0!==n[_e]||0!==n[Ee])?Ce:n[Se]<0||n[Se]>59?Se:n[_e]<0||n[_e]>59?_e:n[Ee]<0||n[Ee]>999?Ee:-1,p(e)._overflowDayOfYear&&(t<me||t>be)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=Oe),p(e)._overflowWeekday&&-1===t&&(t=Te),p(e).overflow=t),e}function gt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,o,i,a,s=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[we]&&function(e){var t,n,o,r,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=gt(t.GG,e._a[me],Ge(Dt(),1,4).year),o=gt(t.W,1),((r=gt(t.E,1))<1||r>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=gt(t.gg,e._a[me],u.year),o=gt(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i}o<1||o>Xe(n,i,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=ze(n,o,r,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[me],o[me]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ye(a,0,e._dayOfYear),e._a[we]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Se]&&0===e._a[_e]&&0===e._a[Ee]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Ye:function(e,t,n,o,r,i,a){var s=new Date(e,t,n,o,r,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],St=/^\/?Date\((\-?\d+)/i;function _t(e){var t,n,o,r,i,a,s=e._i,l=yt.exec(s)||mt.exec(s);if(l){for(p(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){r=bt[t][0],o=!1!==bt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ct.length;t<n;t++)if(Ct[t][1].exec(l[3])){i=(l[2]||" ")+Ct[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!wt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(i||"")+(a||""),kt(e)}else e._isValid=!1}var Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Ot(e,t,n,o,r,i){var a=[function(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;if(t<=999)return 1900+t;return t}(e),Ie.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}var Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rt(e){var t=Et.exec(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e._i));if(t){var n=Ot(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return Tt[e];if(t)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}(t[8],t[9],t[10]),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,o,i,a,s=""+e._i,l=s.length,u=0;for(o=X(e._f,e._locale).match(W)||[],t=0;t<o.length;t++)i=o[t],(n=(s.match(he(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),Y[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[Ce]<=12&&!0===p(e).bigHour&&e._a[Ce]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var o;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),vt(e),pt(e)}else Rt(e);else _t(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new b(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,o,r,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],kt(t),g(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==o||i<o)&&(o=i,n=t));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=St.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,Rt(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=c(t.slice(0),function(e){return parseInt(e,10)}),vt(e)):a(t)?function(e){if(!e._d){var t=x(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vt(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Nt(e,t,n,o,r){var s={};return!0!==n&&!1!==n||(o=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=o,function(e){var t=new b(pt(Mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(s)}function Dt(e,t,n,o){return Nt(e,t,n,o,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var At=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Lt(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xt(e){var t=x(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Me.call(Ht,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<Ht.length;++o)if(e[Ht[o]]){if(n)return!1;parseFloat(e[Ht[o]])!==_(e[Ht[o]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=dt(),this._bubble()}function It(e){return e instanceof xt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),fe("Z",le),fe("ZZ",le),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Bt(le,e)});var Wt=/([\+\-]|\d\d)/gi;function Bt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=((n[n.length-1]||[])+"").match(Wt)||["-",0,0],r=60*o[1]+_(o[2]);return 0===r?0:"+"===o[0]?r:-r}function Vt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(C(e)||u(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Dt(e).local()}function Yt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var zt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xt(e,t){var n,o,r,i=e,a=null;return It(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=zt.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:_(a[be])*n,h:_(a[Ce])*n,m:_(a[Se])*n,s:_(a[_e])*n,ms:_(jt(1e3*a[Ee]))*n}):(a=Gt.exec(e))?(n="-"===a[1]?-1:(a[1],1),i={y:Kt(a[2],n),M:Kt(a[3],n),w:Kt(a[4],n),d:Kt(a[5],n),h:Kt(a[6],n),m:Kt(a[7],n),s:Kt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Vt(t,e),e.isBefore(t)?n=qt(e,t):((n=qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Dt(i.from),Dt(i.to)),(i={}).ms=r.milliseconds,i.M=r.months),o=new xt(i),It(e)&&f(e,"_locale")&&(o._locale=e._locale),o}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(e,t){return function(n,o){var r;return null===o||isNaN(+o)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),$t(this,Xt(n="string"==typeof n?+n:n,o),e),this}}function $t(e,t,n,o){var i=t._milliseconds,a=jt(t._days),s=jt(t._months);e.isValid()&&(o=null==o||o,s&&je(e,Ae(e,"Month")+s*n),a&&Pe(e,"Date",Ae(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}Xt.fn=xt.prototype,Xt.invalid=function(){return Xt(NaN)};var Jt=Zt(1,"add"),Qt=Zt(-1,"subtract");function en(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function on(){return this._locale}function rn(e,t){U(0,[e,e.length],0,t)}function an(e,t,n,o,r){var i;return null==e?Ge(this,o,r).year:(t>(i=Xe(e,o,r))&&(t=i),function(e,t,n,o,r){var i=ze(e,t,n,o,r),a=Ye(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,o,r))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),fe("G",ae),fe("g",ae),fe("GG",Q,q),fe("gg",Q,q),fe("GGGG",oe,$),fe("gggg",oe,$),fe("GGGGG",re,J),fe("ggggg",re,J),ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=_(e)}),ve(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),j("quarter",7),fe("Q",K),ge("Q",function(e,t){t[we]=3*(_(e)-1)}),U("D",["DD",2],"Do","date"),L("date","D"),j("date",9),fe("D",Q),fe("DD",Q,q),fe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],be),ge("Do",function(e,t){t[be]=_(e.match(Q)[0])});var sn=De("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),j("dayOfYear",4),fe("DDD",ne),fe("DDDD",Z),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),U("m",["mm",2],0,"minute"),L("minute","m"),j("minute",14),fe("m",Q),fe("mm",Q,q),ge(["m","mm"],Se);var ln=De("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),j("second",15),fe("s",Q),fe("ss",Q,q),ge(["s","ss"],_e);var un,cn=De("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),j("millisecond",16),fe("S",ne,K),fe("SS",ne,q),fe("SSS",ne,Z),un="SSSS";un.length<=9;un+="S")fe(un,ie);function fn(e,t){t[Ee]=_(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")ge(un,fn);var hn=De("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var dn=b.prototype;function pn(e){return e}dn.add=Jt,dn.calendar=function(e,t){var n=e||Dt(),o=Vt(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(N(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(!(o=Vt(e,this)).isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=H(t)){case"year":i=en(this,o)/12;break;case"month":i=en(this,o);break;case"quarter":i=en(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:S(i)},dn.endOf=function(e){return void 0===(e=H(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Dt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Dt(),e)},dn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Dt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Dt(),e)},dn.get=function(e){return N(this[e=H(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=C(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=C(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,o){return("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,o=C(e)?e:Dt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=H(t||"millisecond"))?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return g(this)},dn.lang=nn,dn.locale=tn,dn.localeData=on,dn.max=Pt,dn.min=At,dn.parsingFlags=function(){return h({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:I[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=x(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(N(this[e=H(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=H(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Qt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+r)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=Ne,dn.isLeapYear=function(){return ke(this.year())},dn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Fe,dn.daysInMonth=function(){return Le(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},dn.date=sn,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=it,dn.minute=dn.minutes=ln,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=hn,dn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Bt(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Yt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?$t(this,Xt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Yt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Bt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ut,dn.isUTC=Ut,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",sn),dn.months=T("months accessor is deprecated. Use month instead",Fe),dn.years=T("years accessor is deprecated. Use year instead",Ne),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=Mt(e))._a){var t=e._isUTC?d(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gn=A.prototype;function vn(e,t,n,o){var r=dt(),i=d().set(o,t);return r[n](i,e)}function yn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=vn(e,o,n,"month");return r}function mn(e,t,n,o){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var r,i=dt(),a=e?i._week.dow:0;if(null!=n)return vn(t,(n+a)%7,o,"day");var s=[];for(r=0;r<7;r++)s[r]=vn(t,(r+a)%7,o,"day");return s}gn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return N(o)?o.call(t,n):o},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=pn,gn.postformat=pn,gn.relativeTime=function(e,t,n,o){var r=this._relativeTime[n];return N(r)?r(e,t,n,o):r.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)N(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[He.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var o,r,i;if(this._monthsParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,a))?r:null:-1!==(r=Me.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,a))?r:-1!==(r=Me.call(this._longMonthsParse,a))?r:null:-1!==(r=Me.call(this._longMonthsParse,a))?r:-1!==(r=Me.call(this._shortMonthsParse,a))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},gn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},gn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var o,r,i;if(this._weekdaysParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",ft),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var wn=Math.abs;function bn(e,t,n,o){var r=Xt(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var On=En("ms"),Tn=En("s"),Rn=En("m"),kn=En("h"),Mn=En("d"),Nn=En("w"),Dn=En("M"),An=En("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ln=Pn("milliseconds"),Hn=Pn("seconds"),xn=Pn("minutes"),In=Pn("hours"),jn=Pn("days"),Fn=Pn("months"),Wn=Pn("years");var Bn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,M:11};var Yn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Yn(this._milliseconds)/1e3,o=Yn(this._days),r=Yn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var i=S(r/12),a=r%=12,s=o,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var h=f<0?"-":"",d=Un(this._months)!==Un(f)?"-":"",p=Un(this._days)!==Un(f)?"-":"",g=Un(this._milliseconds)!==Un(f)?"-":"";return h+"P"+(i?d+i+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Gn=xt.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Gn.add=function(e,t){return bn(this,e,t,1)},Gn.subtract=function(e,t){return bn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=H(e))||"year"===e)return t=this._days+o/864e5,n=this._months+Sn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=On,Gn.asSeconds=Tn,Gn.asMinutes=Rn,Gn.asHours=kn,Gn.asDays=Mn,Gn.asWeeks=Nn,Gn.asMonths=Dn,Gn.asYears=An,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Gn._bubble=function(){var e,t,n,o,r,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Cn(_n(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=S(i/1e3),l.seconds=e%60,t=S(e/60),l.minutes=t%60,n=S(t/60),l.hours=n%24,s+=r=S(Sn(a+=S(n/24))),a-=Cn(_n(r)),o=S(s/12),s%=12,l.days=a,l.months=s,l.years=o,this},Gn.clone=function(){return Xt(this)},Gn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Ln,Gn.seconds=Hn,Gn.minutes=xn,Gn.hours=In,Gn.days=jn,Gn.weeks=function(){return S(this.days()/7)},Gn.months=Fn,Gn.years=Wn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var o=Xt(e).abs(),r=Bn(o.as("s")),i=Bn(o.as("m")),a=Bn(o.as("h")),s=Bn(o.as("d")),l=Bn(o.as("M")),u=Bn(o.as("y")),c=r<=Vn.ss&&["s",r]||r<Vn.s&&["ss",r]||i<=1&&["m"]||i<Vn.m&&["mm",i]||a<=1&&["h"]||a<Vn.h&&["hh",a]||s<=1&&["d"]||s<Vn.d&&["dd",s]||l<=1&&["M"]||l<Vn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,function(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=zn,Gn.toString=zn,Gn.toJSON=zn,Gn.locale=tn,Gn.localeData=on,Gn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Gn.lang=nn,U("X",0,0,"unix"),U("x",0,0,"valueOf"),fe("x",ae),fe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ge("x",function(e,t,n){n._d=new Date(_(e))}),r.version="2.20.1",function(e){t=e}(Dt),r.fn=dn,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return yn(e,t,"months")},r.isDate=u,r.locale=ft,r.invalid=v,r.duration=Xt,r.isMoment=C,r.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=dt,r.isDuration=It,r.monthsShort=function(e,t){return yn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},r.defineLocale=ht,r.updateLocale=function(e,t){if(null!=t){var n,o,r=at;null!=(o=ct(e))&&(r=o._config),(n=new A(t=D(r,t))).parentLocale=st[e],st[e]=n,ft(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},r.locales=function(){return R(st)},r.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},r.normalizeUnits=H,r.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=dn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},r}),window.moment=n(67)}).call(t,n(166)(e))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3),r=n(2),i={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._localHooks[e]&&(0,o.arrayEach)(this._localHooks[e],function(e){return e.apply(t,r)})},clearLocalHooks:function(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.createId=i,t.createDefaultCustomBorder=a,t.createSingleEmptyBorder=s,t.createDefaultHtBorder=l,t.createEmptyBorders=function(e,t){return{id:i(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},right:{hide:!0},bottom:{hide:!0},left:{hide:!0}}},t.extendDefaultBorder=function(e,t){(0,o.hasOwnProperty)(t,"border")&&(e.border=t.border);(0,o.hasOwnProperty)(t,"top")&&(t.top?((0,o.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,o.hasOwnProperty)(t,"right")&&(t.right?((0,o.isObject)(t.right)||(t.right={width:1,color:"#000"}),e.right=t.right):(t.right={hide:!0},e.right=t.right));(0,o.hasOwnProperty)(t,"bottom")&&(t.bottom?((0,o.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,o.hasOwnProperty)(t,"left")&&(t.left?((0,o.isObject)(t.left)||(t.left={width:1,color:"#000"}),e.left=t.left):(t.left={hide:!0},e.left=t.left));return e},t.checkSelectionBorders=function(e,t){var n=!1;return(0,r.arrayEach)(e.getSelectedRange(),function(r){r.forAll(function(r,i){var a=e.getCellMeta(r,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,o.hasOwnProperty)(a[t],"hide")||!1===a[t].hide)return n=!0,!1}})}),n},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)};var o=n(2),r=n(3);function i(e,t){return"border_row".concat(e,"col").concat(t)}function a(){return{width:1,color:"#000"}}function s(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}},function(e,t,n){var o=n(39);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(39),r=n(12)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(5),r=n(38),i=n(12)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||void 0==(n=o(a)[i])?t:r(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EditorState=void 0;var o=n(8),r=n(14),i={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};function a(e){this.instance=e,this.state=i.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}t.EditorState=i,a.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},a.prototype.init=function(){},a.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},a.prototype.setValue=function(){throw Error("Editor setValue() method unimplemented")},a.prototype.open=function(){throw Error("Editor open() method unimplemented")},a.prototype.close=function(){throw Error("Editor close() method unimplemented")},a.prototype.prepare=function(e,t,n,o,r,a){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=r,this.cellProperties=a,this.state=i.VIRGIN},a.prototype.extend=function(){var e=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.apply(this,n)},e)},a.prototype.saveValue=function(e,t){var n,o;t?((n=this.instance.getSelectedLast())[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},a.prototype.beginEditing=function(e,t){if(this.state===i.VIRGIN){if(this.instance.view.scrollViewport(new o.CellCoords(this.row,this.col)),this.state=i.EDITING,this.isInFullEditMode()){var n="string"==typeof e?e:(0,r.stringify)(this.originalValue);this.setValue(n)}this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col)}},a.prototype.finishEditing=function(e,t,n){var o,r=this;if(n){var a=this._closeCallback;this._closeCallback=function(e){a&&a(e),n(e),r.instance.view.render()}}if(!this.isWaiting())if(this.state!==i.VIRGIN){if(this.state===i.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=i.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=i.FINISHED,r.discardEditor(e)}):(this.state=i.FINISHED,this.discardEditor(!0))}}else this.instance._registerTimeout(function(){r._fireCallbacks(!0)})},a.prototype.cancelChanges=function(){this.state=i.FINISHED,this.discardEditor()},a.prototype.discardEditor=function(e){this.state===i.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=i.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=i.VIRGIN,this._fireCallbacks(!0)))},a.prototype.enableFullEditMode=function(){this._fullEditMode=!0},a.prototype.isInFullEditMode=function(){return this._fullEditMode},a.prototype.isOpened=function(){return this._opened},a.prototype.isWaiting=function(){return this.state===i.WAITING},a.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t};var s=a;t.default=s},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.row=null,this.col=null,void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.log=function(){var e;(0,o.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,o.isDefined)(console)&&(e=console).warn.apply(e,arguments)},t.info=function(){var e;(0,o.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.error=function(){var e;(0,o.isDefined)(console)&&(e=console).error.apply(e,arguments)};var o=n(14)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=c(n(613)),i=n(42),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(74)),s=c(n(10)),l=n(32),u=n(18);function c(e){return e&&e.__esModule?e:{default:e}}var f=a.default.prototype.extend();f.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new s.default(this),this.bindEvents(),this.autoResize=(0,r.default)(),this.holderZIndex=-1,this.instance.addHook("afterDestroy",function(){e.destroy()})},f.prototype.prepare=function(e,t,n,o,r,s){for(var l=this,u=this.state,c=arguments.length,f=new Array(c>6?c-6:0),h=6;h<c;h++)f[h-6]=arguments[h];if(a.default.prototype.prepare.apply(this,[e,t,n,o,r,s].concat(f)),!s.readOnly){this.refreshDimensions(!0);var d=s.allowInvalid,p=s.fragmentSelection;d&&(this.TEXTAREA.value=""),u!==a.EditorState.FINISHED&&this.hideEditableElement(),!p&&!(0,i.isMobileBrowser)()&&this.instance._registerImmediate(function(){return l.focus()})}},f.prototype.hideEditableElement=function(){this.textareaParentStyle.top="-9999px",this.textareaParentStyle.left="-9999px",this.textareaParentStyle.zIndex="-1",this.textareaParentStyle.position="fixed"},f.prototype.showEditableElement=function(){this.textareaParentStyle.zIndex=this.holderZIndex>=0?this.holderZIndex:"",this.textareaParentStyle.position=""},f.prototype.getValue=function(){return this.TEXTAREA.value},f.prototype.setValue=function(e){this.TEXTAREA.value=e},f.prototype.beginEditing=function(){if(this.state===a.EditorState.VIRGIN){this.TEXTAREA.value="";for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.default.prototype.beginEditing.apply(this,t)}};var h=function(e){var t=this.getActiveEditor(),n=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===t.TEXTAREA&&!(0,u.isImmediatePropagationStopped)(e)){switch(e.keyCode){case l.KEY_CODES.ARROW_RIGHT:case l.KEY_CODES.ARROW_LEFT:t.isInFullEditMode()&&(!t.isWaiting()&&!t.allowKeyEventPropagation||!t.isWaiting()&&t.allowKeyEventPropagation&&!t.allowKeyEventPropagation(e.keyCode))&&(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ARROW_UP:case l.KEY_CODES.ARROW_DOWN:t.isInFullEditMode()&&(!t.isWaiting()&&!t.allowKeyEventPropagation||!t.isWaiting()&&t.allowKeyEventPropagation&&!t.allowKeyEventPropagation(e.keyCode))&&(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ENTER:var r=this.selection.isMultiple();if(n&&!r||e.altKey){if(t.isOpened()){var i=(0,o.getCaretPosition)(t.TEXTAREA),a=t.getValue(),s="".concat(a.slice(0,i),"\n").concat(a.slice(i));t.setValue(s),(0,o.setCaretPosition)(t.TEXTAREA,i+1)}else t.beginEditing("".concat(t.originalValue,"\n"));(0,u.stopImmediatePropagation)(e)}e.preventDefault();break;case l.KEY_CODES.BACKSPACE:case l.KEY_CODES.DELETE:case l.KEY_CODES.HOME:case l.KEY_CODES.END:(0,u.stopImmediatePropagation)(e)}-1===[l.KEY_CODES.ARROW_UP,l.KEY_CODES.ARROW_RIGHT,l.KEY_CODES.ARROW_DOWN,l.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&t.autoResize.resize(String.fromCharCode(e.keyCode))}};f.prototype.open=function(){this.refreshDimensions(),this.showEditableElement(),this.instance.addHook("beforeKeyDown",h)},f.prototype.close=function(){this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.hideEditableElement(),this.instance.removeHook("beforeKeyDown",h)},f.prototype.focus=function(){this.TEXTAREA.select(),(0,o.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},f.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,(0,o.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,o.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.zIndex="-1",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT)},f.prototype.getEditedCell=function(){var e;switch(this.checkEditorSection()){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.holderZIndex=-1}return-1!==e&&-2!==e?e:void 0},f.prototype.refreshValue=function(){var e=this.instance.toPhysicalRow(this.row),t=this.instance.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()},f.prototype.refreshDimensions=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===a.EditorState.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=(0,o.offset)(this.TD),r=(0,o.offset)(this.instance.rootElement),i=this.instance.view.wt.wtOverlays.topOverlay.mainTableScrollableElement,s=this.instance.view.wt.wtOverlays.leftOverlay.mainTableScrollableElement,l=this.instance.countRows(),u=i!==window?i.scrollTop:0,c=s!==window?s.scrollLeft:0,f=this.checkEditorSection(),h=["","left"].includes(f)?u:0,d=["","top","bottom"].includes(f)?c:0,p=n.top===r.top?0:1,g=this.instance.getSettings(),v=this.instance.hasColHeaders(),y=this.TD.style.backgroundColor,m=n.top-r.top-p-h,w=n.left-r.left-1-d;switch(f){case"top":t=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(v&&0===this.instance.getSelectedLast()[0]||g.fixedRowsBottom&&this.instance.getSelectedLast()[0]===l-g.fixedRowsBottom)&&(m+=1),0===this.instance.getSelectedLast()[1]&&(w+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:(0,o.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(m,"px"),this.textareaParentStyle.left="".concat(w,"px"),this.showEditableElement();var b=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,C=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,S=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),_=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),E=(0,o.getScrollbarWidth)(),O=this.TD.offsetTop+b-_,T=this.TD.offsetLeft+C-S,R=(0,o.innerWidth)(this.TD)-8,k=(0,o.hasVerticalScrollbar)(i)?E:0,M=(0,o.hasHorizontalScrollbar)(s)?E:0,N=this.instance.view.maximumVisibleElementWidth(T)-9-k,D=this.TD.scrollHeight+1,A=Math.max(this.instance.view.maximumVisibleElementHeight(O)-M,23),P=(0,o.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=P.fontSize,this.TEXTAREA.style.fontFamily=P.fontFamily,this.TEXTAREA.style.backgroundColor=y,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(D,A),maxHeight:A,minWidth:Math.min(R,N),maxWidth:N},!0)}else e||this.close(!0)},f.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,u.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,u.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()};var d=f;t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var o=n(433);t.registerRootComparator=o.registerRootComparator,t.getRootComparator=o.getRootComparator,t.getCompareFunctionFactory=o.getCompareFunctionFactory;var r=n(679);t.FIRST_AFTER_SECOND=r.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=r.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=r.DO_NOT_SWAP,t.sort=r.sort},function(e,t,n){var o=n(29),r=n(16),i=n(54);e.exports=function(e){return function(t,n,a){var s,l=o(t),u=r(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(0),r=n(40),i=n(4),a=n(100),s="["+a+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),c=function(e,t,n){var r={},s=i(function(){return!!a[e]()||" "!=" "[e]()}),l=r[e]=s?t(f):a[e];n&&(r[n]=l),o(o.P+o.F*s,"String",r)},f=c.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=c},function(e,t,n){var o=n(12)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var o=n(5);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o=n(72),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";n(149);var o=n(23),r=n(28),i=n(4),a=n(40),s=n(12),l=n(115),u=s("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),d=!i(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=d?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t}):void 0;if(!d||!p||"replace"===e&&!c||"split"===e&&!f){var g=/./[h],v=n(a,h,""[e],function(e,t,n,o,r){return t.exec===l?d&&!r?{done:!0,value:g.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),y=v[0],m=v[1];o(String.prototype,e,y),r(RegExp.prototype,h,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},function(e,t,n){var o=n(37),r=n(145),i=n(110),a=n(5),s=n(16),l=n(112),u={},c={};(t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:l(e),m=o(n,f,t?2:1),w=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(d=s(e.length);d>w;w++)if((v=t?m(a(p=e[w])[0],p[1]):m(e[w]))===u||v===c)return v}else for(g=y.call(e);!(p=g.next()).done;)if((v=r(g,m,p.value,t))===u||v===c)return v}).BREAK=u,t.RETURN=c},function(e,t,n){var o=n(6).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){"use strict";var o=n(6),r=n(0),i=n(23),a=n(65),s=n(45),l=n(86),u=n(64),c=n(7),f=n(4),h=n(82),d=n(60),p=n(101);e.exports=function(e,t,n,g,v,y){var m=o[e],w=m,b=v?"set":"add",C=w&&w.prototype,S={},_=function(e){var t=C[e];i(C,e,"delete"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof w&&(y||C.forEach&&!f(function(){(new w).entries().next()}))){var E=new w,O=E[b](y?{}:-0,1)!=E,T=f(function(){E.has(1)}),R=h(function(e){new w(e)}),k=!y&&f(function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)});R||((w=t(function(t,n){u(t,w,e);var o=p(new m,t,w);return void 0!=n&&l(n,v,o[b],o),o})).prototype=C,C.constructor=w),(T||k)&&(_("delete"),_("has"),v&&_("get")),(k||O)&&_(b),y&&C.clear&&delete C.clear}else w=g.getConstructor(t,e,v,b),a(w.prototype,n),s.NEED=!0;return d(w,e),S[e]=w,r(r.G+r.W+r.F*(w!=m),S),y||g.setStrong(w,e,v),w}},function(e,t,n){for(var o,r=n(6),i=n(28),a=n(51),s=a("typed_array"),l=a("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(o=r[h[f++]])?(i(o.prototype,s,!0),i(o.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(e,t,n){"use strict";t.__esModule=!0,t.registerLanguageDictionary=p,t.getLanguageDictionary=function(e){if(!g(e))return null;return(0,o.deepClone)(f(e))},t.hasLanguageDictionary=g,t.getDefaultLanguageDictionary=function(){return a.default},t.getLanguagesDictionaries=function(){return d()},t.DEFAULT_LANGUAGE_CODE=void 0;var o=n(2),r=n(428),i=s(n(46)),a=s(n(650));function s(e){return e&&e.__esModule?e:{default:e}}var l=a.default.languageCode;t.DEFAULT_LANGUAGE_CODE=l;var u=(0,i.default)("languagesDictionaries"),c=u.register,f=u.getItem,h=u.hasItem,d=u.getValues;function p(e,t){var n=e,i=t;return(0,o.isObject)(e)&&(n=(i=e).languageCode),function(e,t){e!==l&&(0,r.extendNotExistingKeys)(t,f(l))}(n,i),c(n,(0,o.deepClone)(i)),(0,o.deepClone)(i)}function g(e){return h(e)}p(a.default)},function(e,t,n){"use strict";t.__esModule=!0,t.detectSelectionType=v,t.normalizeSelectionFactory=y,t.transformSelectionToColumnDistance=function(e){var t=v(e);if(t===l||t===u)return[];var n=y(t),o=new Set;(0,r.arrayEach)(e,function(e){var t=n(e),i=a(t,4),s=i[1],l=i[3],u=l-s+1;(0,r.arrayEach)(Array.from(new Array(u),function(e,t){return s+t}),function(e){o.has(e)||o.add(e)})});var i=Array.from(o).sort(function(e,t){return e-t});return(0,r.arrayReduce)(i,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])},t.transformSelectionToRowDistance=function(e){var t=v(e);if(t===l||t===u)return[];var n=y(t),o=new Set;(0,r.arrayEach)(e,function(e){var t=n(e),i=a(t,3),s=i[0],l=i[2],u=l-s+1;(0,r.arrayEach)(Array.from(new Array(u),function(e,t){return s+t}),function(e){o.has(e)||o.add(e)})});var i=Array.from(o).sort(function(e,t){return e-t});return(0,r.arrayReduce)(i,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])},t.isValidCoord=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e<t},t.SELECTION_TYPES=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_UNRECOGNIZED=void 0;var o=n(8),r=n(3),i=n(14);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=0;t.SELECTION_TYPE_UNRECOGNIZED=l;var u=1;t.SELECTION_TYPE_EMPTY=u;var c=2;t.SELECTION_TYPE_ARRAY=c;var f=3;t.SELECTION_TYPE_OBJECT=f;var h=[f,c];t.SELECTION_TYPES=h;var d=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],p=Symbol("root"),g=Symbol("child");function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;if(t!==p&&t!==g)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===p,i=l;if(n){var a=e[0];if(0===e.length)i=u;else if(r&&a instanceof o.CellRange)i=f;else if(r&&Array.isArray(a))i=v(a,g);else if(e.length>=2&&e.length<=4){!e.some(function(e,t){return!d[t].includes(s(e))})&&(i=c)}}return i}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,o=void 0!==n&&n,r=t.propToCol;if(!h.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=e===f,a=n?t.from.row:t[0],s=n?t.from.col:t[1],l=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof r&&("string"==typeof s&&(s=r(s)),"string"==typeof u&&(u=r(u))),(0,i.isUndefined)(l)&&(l=a),(0,i.isUndefined)(u)&&(u=s),!o){var c=a,h=s,d=l,p=u;a=Math.min(c,d),s=Math.min(h,p),l=Math.max(c,d),u=Math.max(h,p)}return[a,s,l,u]}}},function(e,t,n){var o=n(7),r=n(6).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(21),r=n(6),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(52)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){t.f=n(12)},function(e,t,n){var o=n(93)("keys"),r=n(51);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(39);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(6).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(7),r=n(5),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(37)(Function.call,n(34).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var o=n(7),r=n(99).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&o(i)&&r&&r(e,i),e}},function(e,t,n){"use strict";var o=n(33),r=n(40);e.exports=function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var o=n(33),r=n(40);e.exports=function(e){return function(t,n){var i,a,s=String(r(t)),l=o(n),u=s.length;return l<0||l>=u?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(52),r=n(0),i=n(23),a=n(28),s=n(61),l=n(144),u=n(60),c=n(57),f=n(12)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,g,v,y){l(n,t,p);var m,w,b,C=function(e){if(!h&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",_="values"==g,E=!1,O=e.prototype,T=O[f]||O["@@iterator"]||g&&O[g],R=T||C(g),k=g?_?C("entries"):R:void 0,M="Array"==t&&O.entries||T;if(M&&(b=c(M.call(new e)))!==Object.prototype&&b.next&&(u(b,S,!0),o||"function"==typeof b[f]||a(b,f,d)),_&&T&&"values"!==T.name&&(E=!0,R=function(){return T.call(this)}),o&&!y||!h&&!E&&O[f]||a(O,f,R),s[t]=R,s[S]=d,g)if(m={values:_?R:C("values"),keys:v?R:C("keys"),entries:k},y)for(w in m)w in O||i(O,w,m[w]);else r(r.P+r.F*(h||E),t,m);return m}},function(e,t,n){var o=n(108),r=n(40);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var o=n(7),r=n(39),i=n(12)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){var o=n(12)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(61),r=n(12)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){"use strict";var o=n(17),r=n(50);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(72),r=n(12)("iterator"),i=n(61);e.exports=n(21).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){"use strict";var o=n(24),r=n(54),i=n(16);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var o=n(62),r=n(148),i=n(61),a=n(29);e.exports=n(106)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var o=n(83),r=RegExp.prototype.exec,i=String.prototype.replace,a=r,s=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=void 0!==/()??/.exec("")[1];(s||l)&&(a=function(e){var t,n,a,u,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),s&&(t=c.lastIndex),a=r.call(c,e),s&&a&&(c.lastIndex=c.global?a.index+a[0].length:t),l&&a&&a.length>1&&i.call(a[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a}),e.exports=a},function(e,t,n){"use strict";var o=n(105)(!0);e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){var o,r,i,a=n(37),s=n(138),l=n(98),u=n(92),c=n(6),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,v=0,y={},m=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},w=function(e){m.call(e.data)};h&&d||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++v]=function(){s("function"==typeof e?e:Function(e),t)},o(v),v},d=function(e){delete y[e]},"process"==n(39)(f)?o=function(e){f.nextTick(a(m,e,1))}:g&&g.now?o=function(e){g.now(a(m,e,1))}:p?(i=(r=new p).port2,r.port1.onmessage=w,o=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):o="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),e.exports={set:h,clear:d}},function(e,t,n){"use strict";var o=n(6),r=n(20),i=n(52),a=n(89),s=n(28),l=n(65),u=n(4),c=n(64),f=n(33),h=n(16),d=n(156),p=n(56).f,g=n(17).f,v=n(113),y=n(60),m="prototype",w="Wrong index!",b=o.ArrayBuffer,C=o.DataView,S=o.Math,_=o.RangeError,E=o.Infinity,O=b,T=S.abs,R=S.pow,k=S.floor,M=S.log,N=S.LN2,D=r?"_b":"buffer",A=r?"_l":"byteLength",P=r?"_o":"byteOffset";function L(e,t,n){var o,r,i,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?R(2,-24)-R(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===E?(r=e!=e?1:0,o=l):(o=k(M(e)/N),e*(i=R(2,-o))<1&&(o--,i*=2),(e+=o+u>=1?c/i:c*R(2,1-u))*i>=2&&(o++,i/=2),o+u>=l?(r=0,o=l):o+u>=1?(r=(e*i-1)*R(2,t),o+=u):(r=e*R(2,u-1)*R(2,t),o=0));t>=8;a[f++]=255&r,r/=256,t-=8);for(o=o<<t|r,s+=t;s>0;a[f++]=255&o,o/=256,s-=8);return a[--f]|=128*h,a}function H(e,t,n){var o,r=8*n-t-1,i=(1<<r)-1,a=i>>1,s=r-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(o=c&(1<<-s)-1,c>>=-s,s+=t;s>0;o=256*o+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===i)return o?NaN:u?-E:E;o+=R(2,t),c-=a}return(u?-1:1)*o*R(2,c-t)}function x(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function I(e){return[255&e]}function j(e){return[255&e,e>>8&255]}function F(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return L(e,52,8)}function B(e){return L(e,23,4)}function V(e,t,n){g(e[m],t,{get:function(){return this[n]}})}function Y(e,t,n,o){var r=d(+n);if(r+t>e[A])throw _(w);var i=e[D]._b,a=r+e[P],s=i.slice(a,a+t);return o?s:s.reverse()}function U(e,t,n,o,r,i){var a=d(+n);if(a+t>e[A])throw _(w);for(var s=e[D]._b,l=a+e[P],u=o(+r),c=0;c<t;c++)s[l+c]=u[i?c:t-c-1]}if(a.ABV){if(!u(function(){b(1)})||!u(function(){new b(-1)})||u(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var z,G=(b=function(e){return c(this,b),new O(d(e))})[m]=O[m],X=p(O),K=0;X.length>K;)(z=X[K++])in b||s(b,z,O[z]);i||(G.constructor=b)}var q=new C(new b(2)),Z=C[m].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||l(C[m],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else b=function(e){c(this,b,"ArrayBuffer");var t=d(e);this._b=v.call(new Array(t),0),this[A]=t},C=function(e,t,n){c(this,C,"DataView"),c(e,b,"DataView");var o=e[A],r=f(t);if(r<0||r>o)throw _("Wrong offset!");if(r+(n=void 0===n?o-r:h(n))>o)throw _("Wrong length!");this[D]=e,this[P]=r,this[A]=n},r&&(V(b,"byteLength","_l"),V(C,"buffer","_b"),V(C,"byteLength","_l"),V(C,"byteOffset","_o")),l(C[m],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return x(Y(this,4,e,arguments[1]))},getUint32:function(e){return x(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return H(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return H(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){U(this,1,e,I,t)},setUint8:function(e,t){U(this,1,e,I,t)},setInt16:function(e,t){U(this,2,e,j,t,arguments[2])},setUint16:function(e,t){U(this,2,e,j,t,arguments[2])},setInt32:function(e,t){U(this,4,e,F,t,arguments[2])},setUint32:function(e,t){U(this,4,e,F,t,arguments[2])},setFloat32:function(e,t){U(this,4,e,B,t,arguments[2])},setFloat64:function(e,t){U(this,8,e,W,t,arguments[2])}});y(b,"ArrayBuffer"),y(C,"DataView"),s(C[m],a.VIEW,!0),t.ArrayBuffer=b,t.DataView=C},function(e,t,n){"use strict";t.__esModule=!0,t.registerCellType=_,t.getCellType=function(e){if(!b(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method'));return w(e)},t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=void 0;var o=v(n(46)),r=n(26),i=n(19),a=n(49),s=v(n(635)),l=v(n(636)),u=v(n(637)),c=v(n(638)),f=v(n(639)),h=v(n(640)),d=v(n(641)),p=v(n(642)),g=v(n(643));function v(e){return e&&e.__esModule?e:{default:e}}var y=(0,o.default)("cellTypes"),m=y.register,w=y.getItem,b=y.hasItem,C=y.getNames,S=y.getValues;function _(e,t){var n=t.editor,o=t.renderer,s=t.validator;n&&(0,r.registerEditor)(e,n),o&&(0,i.registerRenderer)(e,o),s&&(0,a.registerValidator)(e,s),m(e,t)}t.getRegisteredCellTypes=S,t.getRegisteredCellTypeNames=C,t.hasCellType=b,_("autocomplete",s.default),_("checkbox",l.default),_("date",u.default),_("dropdown",c.default),_("handsontable",f.default),_("numeric",h.default),_("password",d.default),_("text",p.default),_("time",g.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,L,W,B,V,Y=this,U=arguments.length>2&&void 0!==arguments[2]&&arguments[2],z=!1,G=this,X=function(){},K=new f.default(G);(0,h.extend)(X.prototype,R.default.prototype),(0,h.extend)(X.prototype,t),(0,h.extend)(X.prototype,oe(t)),(0,D.applyLanguageSetting)(X.prototype,t.language),(0,E.hasValidParameter)(U)&&(0,E.registerAsRootInstance)(this);(0,A.startObserving)(),this.isDestroyed=!1,this.rootElement=e,this.isHotTableEnv=(0,o.isChildOfWebComponentTable)(this.rootElement),f.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),0;this.guid="ht_".concat((0,m.randomString)());var q=(0,_.getTranslator)(G);W=new C.default(G),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);n={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width","language"],settings:new X,selRange:null,isPopulated:null,scrollable:null,firstRun:!0};var Z=new P.Selection(n.settings,{countCols:function(){return G.countCols()},countRows:function(){return G.countRows()},propToCol:function(e){return L.propToCol(e)},isEditorOpened:function(){return!!G.getActiveEditor()&&G.getActiveEditor().isOpened()}});function $(e){var t=(0,D.normalizeLanguageCode)(e);(0,N.hasLanguageDictionary)(t)?(G.runHooks("beforeLanguageChange",t),X.prototype.language=t,G.runHooks("afterLanguageChange",t)):(0,D.warnUserAboutLanguageRegistration)(e)}function J(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function Q(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ee(e,t,n){var r=new J,s=function(e){return e.length>0&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(e)};r.onQueueEmpty=function(){var o;e.length&&(o=G.runHooks("beforeChange",e,t||"edit"),(0,i.isFunction)(o)?(0,a.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()};for(var l=e.length-1;l>=0;l--)if(null===e[l])e.splice(l,1);else{var u=I(e[l],4),c=u[0],f=u[1],h=u[3],d=L.propToCol(f),p=G.getCellMeta(c,d);"numeric"===p.type&&"string"==typeof h&&s(h)&&(e[l][3]=Q(h)),G.getCellValidator(p)&&(r.addValidatorToQueue(),G.validateCell(e[l][3],p,function(t,n){return function(i){if("boolean"!=typeof i)throw new Error("Validation error: result is not boolean");if(!1===i&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var a=G.getCell(n.visualRow,n.visualCol);null!==a&&(0,o.removeClass)(a,G.getSettings().invalidCellClassName)}r.removeValidatorFormQueue()}}(l,p),t))}r.checkIfQueueIsEmpty()}function te(e,t){var o=e.length-1;if(!(o<0)){for(;o>=0;o--){var r=!1;if(null!==e[o]){if(null!==e[o][2]&&void 0!==e[o][2]||null!==e[o][3]&&void 0!==e[o][3]){if(n.settings.allowInsertRow)for(;e[o][0]>G.countRows()-1;){var i=L.createRow(void 0,void 0,t);if(0===i){r=!0;break}}if(!r){if("array"===G.dataType&&(!n.settings.columns||0===n.settings.columns.length)&&n.settings.allowInsertColumn)for(;L.propToCol(e[o][1])>G.countCols()-1;)L.createCol(void 0,void 0,t);L.set(e[o][0],e[o][1],e[o][3])}}}else e.splice(o,1)}G.forceFullRender=!0,B.adjustRowsAndCols(),G.runHooks("beforeChangeRender",e,t),V.lockEditor(),G._refreshBorders(null),V.unlockEditor(),G.view.wt.wtOverlays.adjustElementsSize(),G.runHooks("afterChange",e,t||"edit");var a=G.getActiveEditor();a&&(0,s.isDefined)(a.refreshValue)&&a.refreshValue()}}function ne(e,t,n){return"object"===x(e)?e:[[e,t,n]]}function oe(e){if((0,h.hasOwnProperty)(e,"type")){var t,n={};for(var o in"object"===x(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,k.getCellType)(e.type)),t)(0,h.hasOwnProperty)(t,o)&&!(0,h.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}this.selection=Z,this.selection.addLocalHook("beforeSetRangeStart",function(e){Y.runHooks("beforeSetRangeStart",e)}),this.selection.addLocalHook("beforeSetRangeStartOnly",function(e){Y.runHooks("beforeSetRangeStartOnly",e)}),this.selection.addLocalHook("beforeSetRangeEnd",function(e){Y.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=Y.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=Y.view.wt.wtTable.getFirstVisibleColumn())}),this.selection.addLocalHook("afterSetRangeEnd",function(e){var t=(0,h.createObjectPropListener)(!1),n=Y.selection.getSelectedRange(),r=n.current(),i=r.from,a=r.to,s=n.size()-1;Y.runHooks("afterSelection",i.row,i.col,a.row,a.col,t,s),Y.runHooks("afterSelectionByProp",i.row,G.colToProp(i.col),a.row,G.colToProp(a.col),t,s);var l=Y.selection.isSelectedByAnyHeader(),u=Y.selection.selectedRange.current(),c=!0;z&&(c=!1),t.isTouched()&&(c=!t.value);var f=Y.selection.isSelectedByRowHeader(),d=Y.selection.isSelectedByColumnHeader();!1!==c&&(l?f?Y.view.scrollViewportVertically(e.row):d&&Y.view.scrollViewportHorizontally(e.col):u&&!Y.selection.isMultiple()?Y.view.scrollViewport(u.from):Y.view.scrollViewport(e)),f&&d?(0,o.addClass)(Y.rootElement,["ht__selection--rows","ht__selection--columns"]):f?((0,o.removeClass)(Y.rootElement,"ht__selection--columns"),(0,o.addClass)(Y.rootElement,"ht__selection--rows")):d?((0,o.removeClass)(Y.rootElement,"ht__selection--rows"),(0,o.addClass)(Y.rootElement,"ht__selection--columns")):(0,o.removeClass)(Y.rootElement,["ht__selection--rows","ht__selection--columns"]),Y._refreshBorders(null)}),this.selection.addLocalHook("afterSelectionFinished",function(e){var t=e.length-1,n=e[t],o=n.from,r=n.to;Y.runHooks("afterSelectionEnd",o.row,o.col,r.row,r.col,t),Y.runHooks("afterSelectionEndByProp",o.row,G.colToProp(o.col),r.row,G.colToProp(r.col),t)}),this.selection.addLocalHook("afterIsMultipleSelection",function(e){var t=Y.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("beforeModifyTransformStart",function(e){Y.runHooks("modifyTransformStart",e)}),this.selection.addLocalHook("afterModifyTransformStart",function(e,t,n){Y.runHooks("afterModifyTransformStart",e,t,n)}),this.selection.addLocalHook("beforeModifyTransformEnd",function(e){Y.runHooks("modifyTransformEnd",e)}),this.selection.addLocalHook("afterModifyTransformEnd",function(e,t,n){Y.runHooks("afterModifyTransformEnd",e,t,n)}),this.selection.addLocalHook("afterDeselect",function(){V.destroyEditor(),Y._refreshBorders(),(0,o.removeClass)(Y.rootElement,["ht__selection--rows","ht__selection--columns"]),Y.runHooks("afterDeselect")}),this.selection.addLocalHook("insertRowRequire",function(e){Y.alter("insert_row",e,1,"auto")}),this.selection.addLocalHook("insertColRequire",function(e){Y.alter("insert_col",e,1,"auto")}),B={alter:function(e,t){var o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;function l(e,t,n,o){var r=(0,d.arrayMap)(new Array(n),function(){return function(){var e;"array"===o?e=[]:"object"===o&&(e={});return e}()});r.unshift(t,0),e.splice.apply(e,j(r))}var u=function(e){if(0===e.length)return[];var t=j(e);t.sort(function(e,t){var n=I(e,1),o=n[0],r=I(t,1),i=r[0];return o===i?0:o>i?1:-1});var n=(0,d.arrayReduce)(t,function(e,t){var n=I(t,2),o=n[0],r=n[1],i=e[e.length-1],a=I(i,2),s=a[0],l=a[1],u=s+l;if(o<=u){var c=Math.max(r-(u-o),0);i[1]+=c}else e.push([o,r]);return e},[t[0]]);return n};switch(e){case"insert_row":var c=G.countSourceRows();if(G.getSettings().maxRows===c)return;t=(0,s.isDefined)(t)?t:c,o=L.createRow(t,r,i),l(n.cellSettings,t,r,"array"),o&&(Z.isSelected()&&Z.selectedRange.current().from.row>=t?(Z.selectedRange.current().from.row+=o,Z.transformEnd(o,0)):G._refreshBorders());break;case"insert_col":o=L.createCol(t,r,i);for(var f=0,h=G.countSourceRows();f<h;f++)n.cellSettings[f]&&l(n.cellSettings[f],t,r);if(o){if(Array.isArray(G.getSettings().colHeaders)){var p=[t,0];p.length+=o,Array.prototype.splice.apply(G.getSettings().colHeaders,p)}Z.isSelected()&&Z.selectedRange.current().from.col>=t?(Z.selectedRange.current().from.col+=o,Z.transformEnd(0,o)):G._refreshBorders()}break;case"remove_row":var g=function(e){var t=0;(0,d.arrayEach)(e,function(e){var o=I(e,2),a=o[0],l=o[1],u=(0,s.isEmpty)(a)?G.countRows()-1:Math.max(a-t,0);Number.isInteger(a)&&(a=Math.max(a-t,0)),L.removeRow(a,l,i),n.cellSettings.splice(u,r);var c=G.countRows(),f=G.getSettings().fixedRowsTop;f>=u+1&&(G.getSettings().fixedRowsTop-=Math.min(l,f-u));var h=G.getSettings().fixedRowsBottom;h&&u>=c-h&&(G.getSettings().fixedRowsBottom-=Math.min(l,h)),t+=l})};Array.isArray(t)?g(u(t)):g([[t,r]]),B.adjustRowsAndCols(),G._refreshBorders();break;case"remove_col":var v=function(e){var t=0;(0,d.arrayEach)(e,function(e){var o=I(e,2),r=o[0],a=o[1],l=(0,s.isEmpty)(r)?G.countCols()-1:Math.max(r-t,0),u=q.toPhysicalColumn(l);Number.isInteger(r)&&(r=Math.max(r-t,0)),L.removeCol(r,a,i);for(var c=0,f=G.countSourceRows();c<f;c++)n.cellSettings[c]&&n.cellSettings[c].splice(u,a);var h=G.getSettings().fixedColumnsLeft;h>=l+1&&(G.getSettings().fixedColumnsLeft-=Math.min(a,h-l)),Array.isArray(G.getSettings().colHeaders)&&(void 0===u&&(u=-1),G.getSettings().colHeaders.splice(u,a)),t+=a})};Array.isArray(t)?v(u(t)):v([[t,r]]),B.adjustRowsAndCols(),G._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}a||B.adjustRowsAndCols()},adjustRowsAndCols:function(){if(n.settings.minRows){var e=G.countRows();if(e<n.settings.minRows)for(var t=0,o=n.settings.minRows;t<o-e;t++)L.createRow(G.countRows(),1,"auto")}if(n.settings.minSpareRows){var r=G.countEmptyRows(!0);if(r<n.settings.minSpareRows)for(;r<n.settings.minSpareRows&&G.countSourceRows()<n.settings.maxRows;r++)L.createRow(G.countRows(),1,"auto")}var i;if((n.settings.minCols||n.settings.minSpareCols)&&(i=G.countEmptyCols(!0)),n.settings.minCols&&!n.settings.columns&&G.countCols()<n.settings.minCols)for(;G.countCols()<n.settings.minCols;i++)L.createCol(G.countCols(),1,"auto");if(n.settings.minSpareCols&&!n.settings.columns&&"array"===G.dataType&&i<n.settings.minSpareCols)for(;i<n.settings.minSpareCols&&G.countCols()<n.settings.maxCols;i++)L.createCol(G.countCols(),1,"auto");var a=G.countRows(),s=G.countCols();0!==a&&0!==s||Z.deselect(),Z.isSelected()&&(0,d.arrayEach)(Z.selectedRange,function(e){var t=!1,n=e.from.row,o=e.from.col,r=e.to.row,i=e.to.col;n>a-1?(t=!0,r>(n=a-1)&&(r=n)):r>a-1&&(t=!0,n>(r=a-1)&&(n=r)),o>s-1?(t=!0,i>(o=s-1)&&(i=o)):i>s-1&&(t=!0,o>(i=s-1)&&(o=i)),t&&G.selectCell(n,o,r,i)}),G.view&&G.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,o,r,i,a,l){var u,c,f,d,p,g,v,y,m=[],w={};if(0===(c=t.length))return!1;switch(i){case"shift_down":for(p=o?o.col-e.col+1:0,g=o?o.row-e.row+1:0,t=(0,S.translateRowsToColumns)(t),f=0,d=t.length,v=Math.max(d,p);f<v;f++)if(f<d){var b;for(u=0,c=t[f].length;u<g-c;u++)t[f].push(t[f][u%c]);t[f].unshift(e.col+f,e.row,0),(b=G).spliceCol.apply(b,j(t[f]))}else{var C;t[f%d][0]=e.col+f,(C=G).spliceCol.apply(C,j(t[f%d]))}break;case"shift_right":for(p=o?o.col-e.col+1:0,g=o?o.row-e.row+1:0,u=0,c=t.length,y=Math.max(c,g);u<y;u++)if(u<c){var _;for(f=0,d=t[u].length;f<p-d;f++)t[u].push(t[u][f%d]);t[u].unshift(e.row+u,e.col,0),(_=G).spliceRow.apply(_,j(t[u]))}else{var E;t[u%c][0]=e.row+u,(E=G).spliceRow.apply(E,j(t[u%c]))}break;case"overwrite":default:w.row=e.row,w.col=e.col;var O,T={row:o&&e?o.row-e.row+1:1,col:o&&e?o.col-e.col+1:1},R=0,k=0,M=!0,N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},D=t.length,A=o?o.row-e.row+1:0;for(c=o?A:Math.max(D,A),u=0;u<c&&!(o&&w.row>o.row&&A>D||!n.settings.allowInsertRow&&w.row>G.countRows()-1||w.row>=n.settings.maxRows);u++){var P=u-R,L=N(P).length,H=o?o.col-e.col+1:0;if(d=o?H:Math.max(L,H),w.col=e.col,O=G.getCellMeta(w.row,w.col),"CopyPaste.paste"!==r&&"Autofill.autofill"!==r||!O.skipRowOnPaste){for(k=0,f=0;f<d&&!(o&&w.col>o.col&&H>L||!n.settings.allowInsertColumn&&w.col>G.countCols()-1||w.col>=n.settings.maxCols);f++)if(O=G.getCellMeta(w.row,w.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!O.skipColumnOnPaste)if(O.readOnly)w.col+=1;else{var I=f-k,F=N(P,I),W=G.getDataAtCell(w.row,w.col),B={row:P,col:I};if("Autofill.fill"===r){var V=G.runHooks("beforeAutofillInsidePopulate",B,a,t,l,{},T);V&&(F=(0,s.isUndefined)(V.value)?F:V.value)}if(null!==F&&"object"===x(F))if(null===W||"object"!==x(W))M=!1;else{var Y=(0,h.duckSchema)(W[0]||W),U=(0,h.duckSchema)(F[0]||F);(0,h.isObjectEqual)(Y,U)?F=(0,h.deepClone)(F):M=!1}else null!==W&&"object"===x(W)&&(M=!1);M&&m.push([w.row,w.col,F]),M=!0,w.col+=1}else k+=1,w.col+=1,d+=1;w.row+=1}else R+=1,w.row+=1,c+=1}G.setDataAtCell(m,null,null,r||"populateFromArray")}}},this.init=function(){W.setData(n.settings.data),G.runHooks("beforeInit"),(0,l.isMobileBrowser)()&&(0,o.addClass)(G.rootElement,"mobile"),this.updateSettings(n.settings,!0),this.view=new b.default(this),V=c.default.getInstance(G,n,Z,L),this.forceFullRender=!0,G.runHooks("init"),this.view.render(),"object"===x(n.firstRun)&&(G.runHooks("afterChange",n.firstRun[0],n.firstRun[1]),n.firstRun=!1),G.runHooks("afterInit")},this.validateCell=function(e,t,n,o){var r=G.getCellValidator(t);function a(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(o&&!0!==t.hidden){var r=t.visualCol,i=t.visualRow,a=G.getCell(i,r,!0);a&&"TH"!==a.nodeName&&G.view.wt.wtSettings.settings.cellRenderer(i,r,a),n(e)}else n(e)}(0,s.isRegExp)(r)&&(r=function(e){return function(t,n){n(e.test(t))}}(r)),(0,i.isFunction)(r)?(e=G.runHooks("beforeValidate",e,t.visualRow,t.prop,o),G._registerTimeout(setTimeout(function(){r.call(t,e,function(n){n=G.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,a(n),G.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):G._registerTimeout(setTimeout(function(){t.valid=!0,a(t.valid,!1)},0))},this.setDataAtCell=function(e,t,n,o){var r,i,a,s=ne(e,t,n),l=[],u=o;for(r=0,i=s.length;r<i;r++){if("object"!==x(s[r]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof s[r][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=L.colToProp(s[r][1]),l.push([s[r][0],a,W.getAtCell(q.toPhysicalRow(s[r][0]),s[r][1]),s[r][2]])}u||"object"!==x(e)||(u=t),G.runHooks("afterSetDataAtCell",l,u),ee(l,u,function(){te(l,u)})},this.setDataAtRowProp=function(e,t,n,o){var r,i,a=ne(e,t,n),s=[],l=o;for(r=0,i=a.length;r<i;r++)s.push([a[r][0],a[r][1],W.getAtCell(q.toPhysicalRow(a[r][0]),a[r][1]),a[r][2]]);l||"object"!==x(e)||(l=t),G.runHooks("afterSetDataAtRowProp",s,l),ee(s,l,function(){te(s,l)})},this.listen=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e){var t=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;document.activeElement&&document.activeElement!==document.body&&!t?document.activeElement.blur():t&&document.body.focus()}G&&!G.isListening()&&(F=G.guid,G.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(F=null,G.runHooks("afterUnlisten"))},this.isListening=function(){return F===G.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];G._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,o,r,i,a,s,l){if("object"!==x(n)||"object"!==x(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var u="number"==typeof o?new O.CellCoords(o,r):null;return B.populateFromArray(new O.CellCoords(e,t),n,u,i,a,s,l)},this.spliceCol=function(e,t,n){for(var o,r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return(o=L).spliceCol.apply(o,[e,t,n].concat(i))},this.spliceRow=function(e,t,n){for(var o,r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return(o=L).spliceRow.apply(o,[e,t,n].concat(i))},this.getSelected=function(){if(Z.isSelected())return(0,d.arrayMap)(Z.getSelectedRange(),function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]})},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(Z.isSelected())return Array.from(Z.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(){var e=this;if(Z.isSelected()){var t=[];(0,d.arrayEach)(Z.getSelectedRange(),function(n){var o=n.getTopLeftCorner(),r=n.getBottomRightCorner();(0,w.rangeEach)(o.row,r.row,function(n){(0,w.rangeEach)(o.col,r.col,function(o){e.getCellMeta(n,o).readOnly||t.push([n,o,""])})})}),t.length>0&&this.setDataAtCell(t)}},this.render=function(){G.view&&(G.renderCall=!0,G.forceFullRender=!0,V.lockEditor(),G._refreshBorders(null),V.unlockEditor())},this.loadData=function(e){if(Array.isArray(n.settings.dataSchema)?G.dataType="array":(0,i.isFunction)(n.settings.dataSchema)?G.dataType="function":G.dataType="object",L&&L.destroy(),L=new u.default(G,n,X),"object"===x(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays (".concat(x(e)," given)"));var t,o=L.getSchema();e=[];var r=0,a=0;for(r=0,a=n.settings.startRows;r<a;r++)if("object"!==G.dataType&&"function"!==G.dataType||!n.settings.dataSchema)if("array"===G.dataType)t=(0,h.deepClone)(o[0]),e.push(t);else{t=[];for(var s=0,l=n.settings.startCols;s<l;s++)t.push(null);e.push(t)}else t=(0,h.deepClone)(o),e.push(t)}n.isPopulated=!1,X.prototype.data=e,Array.isArray(e[0])&&(G.dataType="array"),L.dataSource=e,W.data=e,W.dataType=G.dataType,W.colToProp=L.colToProp.bind(L),W.propToCol=L.propToCol.bind(L),n.cellSettings.length=0,B.adjustRowsAndCols(),G.runHooks("afterLoadData",n.firstRun),n.firstRun?n.firstRun=[null,"loadData"]:(G.runHooks("afterChange",null,"loadData"),G.render()),n.isPopulated=!0},this.getData=function(e,t,n,o){return(0,s.isUndefined)(e)?L.getAll():L.getRange(new O.CellCoords(e,t),new O.CellCoords(n,o),L.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return L.getCopyableText(new O.CellCoords(e,t),new O.CellCoords(n,o))},this.getCopyableData=function(e,t){return L.getCopyable(e,L.colToProp(t))},this.getSchema=function(){return L.getSchema()},this.updateSettings=function(e){var t,a,l,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=!1;if((0,s.isDefined)(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,s.isDefined)(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(t in e)"data"!==t&&("language"!==t?T.default.getSingleton().getRegistered().indexOf(t)>-1?((0,i.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,G.addHook(t,e[t])):!u&&(0,h.hasOwnProperty)(e,t)&&(X.prototype[t]=e[t]):$(e.language));void 0===e.data&&void 0===n.settings.data?G.loadData(null):void 0!==e.data?G.loadData(e.data):void 0!==e.columns&&L.createMap(),l=G.countCols();var f,d,p=e.columns||X.prototype.columns;if(p&&(0,i.isFunction)(p)&&(l=G.countSourceCols(),c=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(n.cellSettings.length=0),l>0)for(t=0,a=0;t<l;t++)c&&!p(t)||(n.columnSettings[a]=(0,r.columnFactory)(X,n.columnsSettingConflicts),f=n.columnSettings[a].prototype,p&&(d=c?p(t):p[a])&&((0,h.extend)(f,d),(0,h.extend)(f,oe(d))),a+=1);(0,s.isDefined)(e.cell)&&(0,h.objectEach)(e.cell,function(e){G.setCellMetaObject(e.row,e.col,e)}),G.runHooks("afterCellMetaReset"),(0,s.isDefined)(e.className)&&(X.prototype.className&&(0,o.removeClass)(G.rootElement,X.prototype.className),e.className&&(0,o.addClass)(G.rootElement,e.className));var g=G.rootElement.style.height;""!==g&&(g=parseInt(G.rootElement.style.height,10));var v=e.height;if((0,i.isFunction)(v)&&(v=v()),u){var y=G.rootElement.getAttribute("style");y&&G.rootElement.setAttribute("data-initialstyle",G.rootElement.getAttribute("style"))}if(null===v){var m=G.rootElement.getAttribute("data-initialstyle");m&&(m.indexOf("height")>-1||m.indexOf("overflow")>-1)?G.rootElement.setAttribute("style",m):(G.rootElement.style.height="",G.rootElement.style.overflow="")}else void 0!==v&&(G.rootElement.style.height="".concat(v,"px"),G.rootElement.style.overflow="hidden");if(void 0!==e.width){var w=e.width;(0,i.isFunction)(w)&&(w=w()),G.rootElement.style.width="".concat(w,"px")}u||(L.clearLengthCache(),G.view&&G.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),G.runHooks("afterUpdateSettings",e)),B.adjustRowsAndCols(),G.view&&!n.firstRun&&(G.forceFullRender=!0,V.lockEditor(),G._refreshBorders(null),V.unlockEditor()),u||!G.view||""!==g&&""!==v&&void 0!==v||g===v||G.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=G.getSelectedLast();if(X.prototype.getValue){if((0,i.isFunction)(X.prototype.getValue))return X.prototype.getValue.call(G);if(e)return G.getData()[e[0][0]][X.prototype.getValue]}else if(e)return G.getDataAtCell(e[0],e[1])},this.getSettings=function(){return n.settings},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,o,r){B.alter(e,t,n,o,r)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G.view.getCellAtCoords(new O.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return L.colToProp(e)},this.propToCol=function(e){return L.propToCol(e)},this.toVisualRow=function(e){return q.toVisualRow(e)},this.toVisualColumn=function(e){return q.toVisualColumn(e)},this.toPhysicalRow=function(e){return q.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return q.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return L.get(e,L.colToProp(t))},this.getDataAtRowProp=function(e,t){return L.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,j(L.getRange(new O.CellCoords(0,e),new O.CellCoords(n.settings.data.length-1,e),L.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,o=L.getRange(new O.CellCoords(0,L.propToCol(e)),new O.CellCoords(n.settings.data.length-1,L.propToCol(e)),L.DESTINATION_RENDERER);return(t=[]).concat.apply(t,j(o))},this.getSourceData=function(e,t,n,o){return void 0===e?W.getData():W.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?W.getData(!0):W.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return W.getAtColumn(e)},this.getSourceDataAtRow=function(e){return W.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return W.getAtCell(e,t)},this.getDataAtRow=function(e){var t=L.getRange(new O.CellCoords(e,0),new O.CellCoords(e,this.countCols()-1),L.DESTINATION_RENDERER);return t[0]||[]},this.getDataType=function(e,t,n,o){var r=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,o],a=i[0],s=i[1],l=i[2],u=i[3],c=null,f=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,w.rangeEach)(Math.min(a,l),Math.max(a,l),function(e){var t=!0;return(0,w.rangeEach)(Math.min(s,u),Math.max(s,u),function(n){var o=r.getCellMeta(e,n);return f=o.type,c?t=c===f:c=f,t}),h=t?f:"mixed",t}),h},this.removeCellMeta=function(e,t,o){var r=q.toPhysical(e,t),i=I(r,2),a=i[0],s=i[1],l=n.cellSettings[a][s][o],u=G.runHooks("beforeRemoveCellMeta",e,t,o,l);!1!==u&&(delete n.cellSettings[a][s][o],G.runHooks("afterRemoveCellMeta",e,t,o,l)),l=null},this.spliceCellsMeta=function(e,t){for(var o,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];(o=n.cellSettings).splice.apply(o,[e,t].concat(i))},this.setCellMetaObject=function(e,t,n){var o=this;"object"===x(n)&&(0,h.objectEach)(n,function(n,r){o.setCellMeta(e,t,r,n)})},this.setCellMeta=function(e,t,o,i){var a=q.toPhysical(e,t),s=I(a,2),l=s[0],u=s[1];n.columnSettings[u]||(n.columnSettings[u]=(0,r.columnFactory)(X,n.columnsSettingConflicts)),n.cellSettings[l]||(n.cellSettings[l]=[]),n.cellSettings[l][u]||(n.cellSettings[l][u]=new n.columnSettings[u]),n.cellSettings[l][u][o]=i,G.runHooks("afterSetCellMeta",e,t,o,i)},this.getCellsMeta=function(){return(0,d.arrayFlatten)(n.cellSettings)},this.getCellMeta=function(e,t){var o=L.colToProp(t),i=q.toPhysical(e,t),a=I(i,2),s=a[0],l=a[1],u=s;null===u&&(u=e),n.columnSettings[l]||(n.columnSettings[l]=(0,r.columnFactory)(X,n.columnsSettingConflicts)),n.cellSettings[u]||(n.cellSettings[u]=[]),n.cellSettings[u][l]||(n.cellSettings[u][l]=new n.columnSettings[l]);var c=n.cellSettings[u][l];if(c.row=u,c.col=l,c.visualRow=e,c.visualCol=t,c.prop=o,c.instance=G,G.runHooks("beforeGetCellMeta",e,t,c),(0,h.extend)(c,oe(c)),c.cells){var f=c.cells.call(c,u,l,o);f&&((0,h.extend)(c,f),(0,h.extend)(c,oe(f)))}return G.runHooks("afterGetCellMeta",e,t,c),c},this.getCellMetaAtRow=function(e){return n.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===G.dataType||G.getSettings().columns)};var re=(0,S.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,v.getRenderer)(re.call(this,e,t))},this.getCellEditor=(0,S.cellMethodLookupFactory)("editor");var ie=(0,S.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=ie.call(this,e,t);return"string"==typeof n&&(n=(0,y.getValidator)(n)),n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var o=new J;e&&(o.onQueueEmpty=e);for(var r=G.countRows()-1;r>=0;)if(void 0===t||-1!==t.indexOf(r)){for(var i=G.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(o.addValidatorToQueue(),G.validateCell(G.getDataAtCell(r,i),G.getCellMeta(r,i),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(o.valid=!1),o.removeValidatorFormQueue()},"validateCells"),i-=1):i-=1;r-=1}else r-=1;o.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=n.settings.rowHeaders,o=e;return void 0!==o&&(o=G.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,w.rangeEach)(G.countRows()-1,function(e){t.push(G.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,i.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!n.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==n.settings.colHeaders&&null!==n.settings.colHeaders)return!!n.settings.colHeaders;for(var e=0,t=G.countCols();e<t;e++)if(G.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=n.settings.columns&&(0,i.isFunction)(n.settings.columns),o=G.runHooks("modifyColHeader",e),r=n.settings.colHeaders;if(void 0===o){for(var a=[],s=t?G.countSourceCols():G.countCols(),l=0;l<s;l++)a.push(G.getColHeader(l));r=a}else{var u=o,c=G.runHooks("modifyCol",u),f=function(e){for(var t=[],n=G.countSourceCols(),o=0;o<n;o++)(0,i.isFunction)(G.getSettings().columns)&&G.getSettings().columns(o)&&t.push(o);return t[e]}(c);!1===n.settings.colHeaders?r=null:n.settings.columns&&(0,i.isFunction)(n.settings.columns)&&n.settings.columns(f)&&n.settings.columns(f).title?r=n.settings.columns(f).title:n.settings.columns&&n.settings.columns[c]&&n.settings.columns[c].title?r=n.settings.columns[c].title:Array.isArray(n.settings.colHeaders)&&void 0!==n.settings.colHeaders[c]?r=n.settings.colHeaders[c]:(0,i.isFunction)(n.settings.colHeaders)?r=n.settings.colHeaders(c):n.settings.colHeaders&&"string"!=typeof n.settings.colHeaders&&"number"!=typeof n.settings.colHeaders&&(r=(0,S.spreadsheetColumnLabel)(u))}return r},this._getColWidthFromSettings=function(e){var t=G.getCellMeta(0,e),o=t.width;if(void 0!==o&&o!==n.settings.width||(o=t.colWidths),void 0!==o&&null!==o){switch(x(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=G._getColWidthFromSettings(e);return void 0===(t=G.runHooks("modifyColWidth",t,e))&&(t=O.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=n.settings.rowHeights;if(void 0!==t&&null!==t){switch(x(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=G._getRowHeightFromSettings(e);return t=G.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){var e=G.runHooks("modifySourceLength");return e||(G.getSourceData()?G.getSourceData().length:0)},this.countSourceCols=function(){var e=G.getSourceData()&&G.getSourceData()[0]?G.getSourceData()[0]:[];return(0,h.isObject)(e)?(0,h.deepObjectSize)(e):e.length||0},this.countRows=function(){return L.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,o=0;if("array"===G.dataType&&(t=n.settings.data&&n.settings.data[0]&&n.settings.data[0].length),t&&(o=n.settings.data[0].length),n.settings.columns){var r=(0,i.isFunction)(n.settings.columns);if(r)if("array"===G.dataType){for(var a=0,s=0;s<o;s++)n.settings.columns(s)&&(a+=1);o=a}else"object"!==G.dataType&&"function"!==G.dataType||(o=L.colToPropCache.length);else o=n.settings.columns.length}else"object"!==G.dataType&&"function"!==G.dataType||(o=L.colToPropCache.length);return Math.min(e,o)},this.rowOffset=function(){return G.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return G.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return G.view.wt.drawn?G.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return G.view.wt.drawn?G.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return G.view.wt.drawn?G.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return G.view.wt.drawn?G.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,w.rangeEachReverse)(G.countRows()-1,function(n){if(G.isEmptyRow(n))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(G.countRows()<1)return 0;var t=0;return(0,w.rangeEachReverse)(G.countCols()-1,function(n){if(G.isEmptyCol(n))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return n.settings.isEmptyRow.call(G,e)},this.isEmptyCol=function(e){return n.settings.isEmptyCol.call(G,e)},this.selectCell=function(e,t,n,o){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,s.isUndefined)(e)&&!(0,s.isUndefined)(t)&&this.selectCells([[e,t,n,o]],r,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(z=!0);var o=Z.selectCells(e);return o&&n&&G.listen(),z=!1,o},this.selectCellByProp=function(e,t,n,o){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,a.warn)((0,p.toSingleLine)(H())),this.selectCells([[e,t,n,o]],r,i)},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectRows(e,t)},this.deselectCell=function(){Z.deselect()},this.selectAll=function(){z=!0,Z.selectAll(),z=!1},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=!n,i=!o,a=!1;return void 0!==e&&void 0!==t&&(a=G.view.scrollViewport(new O.CellCoords(e,t),r,o,n,i)),"number"==typeof e&&"number"!=typeof t&&(a=G.view.scrollViewportVertically(e,r,n)),"number"==typeof t&&"number"!=typeof e&&(a=G.view.scrollViewportHorizontally(t,o,i)),a},this.destroy=function(){G._clearTimeouts(),G._clearImmediates(),G.view&&G.view.destroy(),W&&W.destroy(),W=null,(0,A.stopObserving)(),(0,o.empty)(G.rootElement),K.destroy(),V&&V.destroy(),G.runHooks("afterDestroy"),T.default.getSingleton().destroy(G),(0,h.objectEach)(G,function(e,t,n){(0,i.isFunction)(e)?n[t]=function(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}(t):"guid"!==t&&(n[t]=null)}),G.isDestroyed=!0,L&&L.destroy(),L=null,n=null,B=null,Z=null,V=null,G=null,X=null},this.getActiveEditor=function(){return V.getActiveEditor()},this.getPlugin=function(e){return(0,g.getPlugin)(this,e)},this.getInstance=function(){return G},this.addHook=function(e,t){T.default.getSingleton().add(e,t,G)},this.hasHook=function(e){return T.default.getSingleton().has(e,G)},this.addHookOnce=function(e,t){T.default.getSingleton().once(e,t,G)},this.removeHook=function(e,t){T.default.getSingleton().remove(e,t,G)},this.runHooks=function(e,t,n,o,r,i,a){return T.default.getSingleton().run(G,e,t,n,o,r,i,a)},this.getTranslatedPhrase=function(e,t){return(0,M.getTranslatedPhrase)(n.settings.language,e,t)},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,function(e){clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,function(e){clearImmediate(e)})},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];V.destroyEditor(e),G.view.render(),t&&Z.isSelected()&&V.prepareEditor()},T.default.getSingleton().run(G,"construct")};var o=n(1),r=n(121),i=n(59),a=n(76),s=n(14),l=n(42),u=L(n(644)),c=L(n(647)),f=L(n(10)),h=n(2),d=n(3),p=n(58),g=n(13),v=n(19),y=n(49),m=n(48),w=n(9),b=L(n(648)),C=L(n(649)),S=n(122),_=n(424),E=n(425),O=n(8),T=L(n(22)),R=L(n(426)),k=n(119),M=n(427),N=n(90),D=n(428),A=n(123),P=n(429);function L(e){return e&&e.__esModule?e:{default:e}}function H(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["Deprecation warning: This method is going to be removed in the next release.\n If you want to select a cell using props, please use the `selectCell` method."],["Deprecation warning: This method is going to be removed in the next release.\n If you want to select a cell using props, please use the \\`selectCell\\` method."]);return H=function(){return e},e}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var F=null},function(e,t,n){"use strict";t.__esModule=!0,t.columnFactory=function(e,t){function n(){}(0,o.inherit)(n,e);for(var r=0,i=t.length;r<i;r++)n.prototype[t[r]]=void 0;return n};var o=n(2)},function(e,t,n){"use strict";t.__esModule=!0,t.spreadsheetColumnLabel=s,t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,o=e.length-1;n<e.length;n+=1,o-=1)t+=Math.pow(a,o)*(i.indexOf(e[n])+1);return t-=1},t.createSpreadsheetData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;e<n;e++){var i=[];for(t=0;t<o;t++)i.push(s(t)+(e+1));r.push(i)}return r},t.createSpreadsheetObjectData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;e<n;e++){var i={};for(t=0;t<o;t++)i["prop".concat(t)]=s(t)+(e+1);r.push(i)}return r},t.createEmptySpreadsheetData=function(e,t){for(var n,o=[],r=0;r<e;r++){n=[];for(var i=0;i<t;i++)n.push("");o.push(n)}return o},t.translateRowsToColumns=function(e){var t,n,o,r,i=[],a=0;for(t=0,n=e.length;t<n;t++)for(o=0,r=e[t].length;o<r;o++)o===a&&(i.push([]),a+=1),i[o].push(e[t][o]);return i},t.cellMethodLookupFactory=function(e,t){var n=void 0===t||t;return function(t,i){return function t(i){if(i){if((0,r.hasOwnProperty)(i,e)&&void 0!==i[e])return i[e];if((0,r.hasOwnProperty)(i,"type")&&i.type){if("string"!=typeof i.type)throw new Error("Cell type must be a string ");var a=(0,o.getCellType)(i.type);if((0,r.hasOwnProperty)(a,e))return a[e];if(n)return}return t(Object.getPrototypeOf(i))}}("number"==typeof t?this.getCellMeta(t,i):t)}};var o=n(119),r=n(2),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a=i.length;function s(e){for(var t,n=e+1,o="";n>0;)t=(n-1)%a,o=String.fromCharCode(65+t)+o,n=parseInt((n-t)/a,10);return o}},function(e,t,n){"use strict";t.__esModule=!0,t._getRefCount=function(){return s},t._resetState=l,t.isPressed=function(e){return Array.from(a.values()).some(function(t){return(0,r.isKey)(t,e)})},t.isPressedCtrlKey=function(){return Array.from(a.values()).some(function(e){return(0,r.isCtrlMetaKey)(e)})},t.startObserving=function(){0===s&&(i.addEventListener(document,"keydown",function(e){a.has(e.keyCode)||a.add(e.keyCode)}),i.addEventListener(document,"keyup",function(e){a.has(e.keyCode)&&a.delete(e.keyCode)}),i.addEventListener(document,"visibilitychange",function(){document.hidden&&a.clear()}),i.addEventListener(window,"blur",function(){a.clear()}));s+=1},t.stopObserving=function(){s>0&&(s-=1);0===s&&l()};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),r=n(32);var i=new o.default,a=new Set,s=0;function l(){i.clearEvents(),a.clear(),s=0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(3);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!==t&&void 0!==t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,r.arrayEach)(this.rows,function(t){e(t.row,(0,o.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,r.arrayEach)(this.columns,function(t){e(t.col,(0,o.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.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach(function(n){(0,r.arrayEach)(n.strings,function(n){t.appendChild(e.createColElement(n.col))})}),t}},{key:"createRow",value:function(e){var t=this,n=document,o=n.createDocumentFragment(),i=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(function(i){(0,r.arrayEach)(i.strings,function(r){var i=r.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");s(t.hot,l,e,i,t.hot.colToProp(i),r.value,a),o.appendChild(l)})}),o}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){(0,r.arrayEach)(o.strings,function(o){var r=o.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),n.appendChild(i)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(i){(0,r.arrayEach)(i.strings,function(r){var i=r.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),u=n.createElement("tr");l.setAttribute("ghost-table",1),s(t.hot,l,i,e,t.hot.colToProp(e),r.value,a),u.appendChild(l),o.appendChild(u)})}),o}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=document.createElement("col");return t.style.width="".concat(this.hot.view.wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),r=t.createElement("table"),i=t.createElement("thead"),a=t.createElement("tbody"),s=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&r.appendChild(s),this.isHorizontal()&&(l.appendChild(u),i.appendChild(l),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(i),this.isVertical()&&a.appendChild(l),r.appendChild(a),(0,o.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:i,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),r=t.createElement("div"),i="htGhostTable htAutoSize ".concat(e.trim());return(0,o.addClass)(r,i),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3),r=n(2),i=n(9);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s={_arrayMap:[],getValueByIndex:function(e){var t=null;return e<this._arrayMap.length&&(t=this._arrayMap[e]),t},getIndexByValue:function(e){var t;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=(0,o.arrayMax)(this._arrayMap)+1,a=[];return(0,i.rangeEach)(n-1,function(n){a.push(t._arrayMap.splice(e+n,0,r+n))}),a},removeItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[];if(Array.isArray(e)){var o=[].concat(this._arrayMap);e.sort(function(e,t){return t-e});for(var r=0,i=e.length;r<i;r++){var a=e[r];this._arrayMap.splice(a,1),n.push(o[a])}}else n=this._arrayMap.splice(e,t);return n},unshiftItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,t);this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(e){var t=e,r=function(e){return(0,o.arrayReduce)(n,function(t,n){var o=t;return e>n&&(o+=1),o},0)}(t);return r&&(t-=r),t})},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=(0,o.arrayMap)(this._arrayMap,function(t){var o=t;return o>=e&&(o+=n),o}),(0,i.rangeEach)(n-1,function(n){t._arrayMap.splice(e+n,0,e+n)})},swapIndexes:function(e,t){var n;(n=this._arrayMap).splice.apply(n,[t,0].concat(a(this._arrayMap.splice(e,1))))},clearMap:function(){this._arrayMap.length=0}};(0,r.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1});var l=s;t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{name:o}},t.KEY=void 0;var o="---------";t.KEY=o},function(e,t,n){"use strict";t.__esModule=!0,t.predefinedItems=function(){var e={};return(0,o.objectEach)(b,function(t,n){e[n]=t()}),e},t.addItem=function(e,t){-1===w.indexOf(e)&&(b[e]=t)},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 o=n(2),r=y(n(689));t.ALIGNMENT=r.KEY;var i=y(n(690));t.CLEAR_COLUMN=i.KEY;var a=y(n(691));t.COLUMN_LEFT=a.KEY;var s=y(n(692));t.COLUMN_RIGHT=s.KEY;var l=y(n(693));t.READ_ONLY=l.KEY;var u=y(n(694));t.REDO=u.KEY;var c=y(n(695));t.REMOVE_COLUMN=c.KEY;var f=y(n(696));t.REMOVE_ROW=f.KEY;var h=y(n(697));t.ROW_ABOVE=h.KEY;var d=y(n(698));t.ROW_BELOW=d.KEY;var p=y(n(126));t.SEPARATOR=p.KEY;var g,v=y(n(699));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.UNDO=v.KEY;var w=[h.KEY,d.KEY,a.KEY,s.KEY,i.KEY,f.KEY,c.KEY,v.KEY,u.KEY,l.KEY,r.KEY,p.KEY];t.ITEMS=w;var b=(m(g={},p.KEY,p.default),m(g,h.KEY,h.default),m(g,d.KEY,d.default),m(g,a.KEY,a.default),m(g,s.KEY,s.default),m(g,i.KEY,i.default),m(g,f.KEY,f.default),m(g,c.KEY,c.default),m(g,v.KEY,v.default),m(g,u.KEY,u.default),m(g,l.KEY,l.default),m(g,r.KEY,r.default),g)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8),r=n(58);function i(){var e=u(["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n "0", which is not supported. It cannot be added to the collection.']);return i=function(){return e},e}function a(){var e=u(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.']);return a=function(){return e},e}function s(){var e=u(["The merged cell declared at [",", ","] is positioned (or positioned partially) \n outside of the table range. It was not added to the table, please fix your setup."]);return s=function(){return e},e}function l(){var e=u(["The merged cell declared with {row: ",", col: ",", rowspan: \n ",", colspan: ","} contains negative values, which is not supported. It \n will not be added to the collection."]);return l=function(){return e},e}function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var f=function(){function e(t,n,o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.row=t,this.col=n,this.rowspan=o,this.colspan=r,this.removed=!1}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],o=t+Math.abs(e[0]||e[1])-1,r=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,o),s=Math.max(t,o),l=this[i],u=this[i]+this[r]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[r]+=n);else if(n<0){if(a<=l&&s>=u)return this.removed=!0,!1;if(l>=a&&l<=s){var c=s-l+1,f=Math.abs(n)-c;this[i]-=f+n,this[r]-=c}else if(l<=a&&u>=s)this[r]+=n;else if(l<=a&&u>=a&&u<s){var h=u-a+1;this[r]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new o.CellRange(new o.CellCoords(this.row,this.col),new o.CellCoords(this.row,this.col),new o.CellCoords(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,r.toSingleLine)(l(),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,r.toSingleLine)(s(),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,r.toSingleLine)(a(),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,r.toSingleLine)(i(),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),e}();t.default=f},function(e,t,n){"use strict";n(438),n(581),n(583),n(585),n(587),n(589),n(591),n(593),n(595),n(597),n(601)},function(e,t,n){e.exports=!n(20)&&!n(4)(function(){return 7!=Object.defineProperty(n(92)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(6),r=n(21),i=n(52),a=n(94),s=n(17).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var o=n(27),r=n(29),i=n(79)(!1),a=n(95)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)n!=a&&o(s,n)&&u.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var o=n(17),r=n(5),i=n(53);e.exports=n(20)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,l=0;s>l;)o.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var o=n(29),r=n(56).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(53),r=n(80),i=n(71),a=n(24),s=n(70),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=r.f,f=i.f;l>u;)for(var h,d=s(arguments[u++]),p=c?o(d).concat(c(d)):o(d),g=p.length,v=0;g>v;)f.call(d,h=p[v++])&&(n[h]=d[h]);return n}:l},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(38),r=n(7),i=n(138),a=[].slice,s={};e.exports=Function.bind||function(e){var t=o(this),n=a.call(arguments,1),l=function(){var o=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";s[t]=Function("F,a","return new F("+o.join(",")+")")}return s[t](e,n)}(t,o.length,o):i(t,o,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(6).parseInt,r=n(81).trim,i=n(100),a=/^[-+]?0[xX]/;e.exports=8!==o(i+"08")||22!==o(i+"0x16")?function(e,t){var n=r(String(e),3);return o(n,t>>>0||(a.test(n)?16:10))}:o},function(e,t,n){var o=n(6).parseFloat,r=n(81).trim;e.exports=1/o(n(100)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},function(e,t,n){var o=n(39);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=o(e))throw TypeError(t);return+e}},function(e,t,n){var o=n(7),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var o=n(55),r=n(50),i=n(60),a={};n(28)(a,n(12)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(5);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(38),r=n(24),i=n(70),a=n(16);e.exports=function(e,t,n,s,l){o(t);var u=r(e),c=i(u),f=a(u.length),h=l?f-1:0,d=l?-1:1;if(n<2)for(;;){if(h in c){s=c[h],h+=d;break}if(h+=d,l?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:f>h;h+=d)h in c&&(s=t(s,c[h],h,u));return s}},function(e,t,n){"use strict";var o=n(24),r=n(54),i=n(16);e.exports=[].copyWithin||function(e,t){var n=o(this),a=i(n.length),s=r(e,a),l=r(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:r(u,a))-l,a-s),f=1;for(l<s&&s<l+c&&(f=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(115);n(0)({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},function(e,t,n){n(20)&&"g"!=/./g.flags&&n(17).f(RegExp.prototype,"flags",{configurable:!0,get:n(83)})},function(e,t,n){"use strict";var o,r,i,a,s=n(52),l=n(6),u=n(37),c=n(72),f=n(0),h=n(7),d=n(38),p=n(64),g=n(86),v=n(73),y=n(117).set,m=n(550)(),w=n(152),b=n(551),C=n(87),S=n(153),_=l.TypeError,E=l.process,O=E&&E.versions,T=O&&O.v8||"",R=l.Promise,k="process"==c(E),M=function(){},N=r=w.f,D=!!function(){try{var e=R.resolve(1),t=(e.constructor={})[n(12)("species")]=function(e){e(M,M)};return(k||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==T.indexOf("6.6")&&-1===C.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;m(function(){for(var o=e._v,r=1==e._s,i=0,a=function(t){var n,i,a,s=r?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(r||(2==e._h&&x(e),e._h=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),a=!0)),n===t.promise?u(_("Promise-chain cycle")):(i=A(n))?i.call(n,l,u):l(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){y.call(l,function(){var t,n,o,r=e._v,i=H(e);if(i&&(t=b(function(){k?E.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",r)}),e._h=k||H(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},H=function(e){return 1!==e._h&&0===(e._a||e._c).length},x=function(e){y.call(l,function(){var t;k?E.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},I=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(t=A(e))?m(function(){var o={_w:n,_d:!1};try{t.call(e,u(j,o,1),u(I,o,1))}catch(e){I.call(o,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){I.call({_w:n,_d:!1},e)}}};D||(R=function(e){p(this,R,"Promise","_h"),d(e),o.call(this);try{e(u(j,this,1),u(I,this,1))}catch(e){I.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(65)(R.prototype,{then:function(e,t){var n=N(v(this,R));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=k?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o;this.promise=e,this.resolve=u(j,e,1),this.reject=u(I,e,1)},w.f=N=function(e){return e===R||e===a?new i(e):r(e)}),f(f.G+f.W+f.F*!D,{Promise:R}),n(60)(R,"Promise"),n(63)("Promise"),a=n(21).Promise,f(f.S+f.F*!D,"Promise",{reject:function(e){var t=N(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(e){return S(s&&this===a?R:this,e)}}),f(f.S+f.F*!(D&&n(82)(function(e){R.all(e).catch(M)})),"Promise",{all:function(e){var t=this,n=N(t),o=n.resolve,r=n.reject,i=b(function(){var n=[],i=0,a=1;g(e,!1,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||o(n))},r)}),--a||o(n)});return i.e&&r(i.v),n.promise},race:function(e){var t=this,n=N(t),o=n.reject,r=b(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},function(e,t,n){"use strict";var o=n(38);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=o(t),this.reject=o(n)}(e)}},function(e,t,n){var o=n(5),r=n(7),i=n(152);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(17).f,r=n(55),i=n(65),a=n(37),s=n(64),l=n(86),u=n(106),c=n(148),f=n(63),h=n(20),d=n(45).fastKey,p=n(66),g=h?"_s":"size",v=function(e,t){var n,o=d(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,o){s(e,c,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=o&&l(o,n,e[u],e)});return i(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete n[o.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),o=v(n,e);if(o){var r=o.n,i=o.p;delete n._i[o.i],o.r=!0,i&&(i.n=r),r&&(r.p=i),n._f==o&&(n._f=r),n._l==o&&(n._l=i),n[g]--}return!!o},forEach:function(e){p(this,t);for(var n,o=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(o(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),h&&o(c.prototype,"size",{get:function(){return p(this,t)[g]}}),c},def:function(e,t,n){var o,r,i=v(e,t);return i?i.v=n:(e._l=i={i:r=d(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=i),o&&(o.n=i),e[g]++,"F"!==r&&(e._i[r]=i)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var o=n(65),r=n(45).getWeak,i=n(5),a=n(7),s=n(64),l=n(86),u=n(36),c=n(27),f=n(66),h=u(5),d=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},y=function(e,t){return h(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,o){s(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=o&&l(o,n,e[i],e)});return o(u.prototype,{delete:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(f(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(f(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var o=r(i(t),!0);return!0===o?g(e).set(t,n):o[e._i]=n,e},ufstore:g}},function(e,t,n){var o=n(33),r=n(16);e.exports=function(e){if(void 0===e)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var o=n(56),r=n(80),i=n(5),a=n(6).Reflect;e.exports=a&&a.ownKeys||function(e){var t=o.f(i(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){var o=n(16),r=n(102),i=n(40);e.exports=function(e,t,n,a){var s=String(i(e)),l=s.length,u=void 0===n?" ":String(n),c=o(t);if(c<=l||""==u)return s;var f=c-l,h=r.call(u,Math.ceil(f/u.length));return h.length>f&&(h=h.slice(0,f)),a?h+s:s+h}},function(e,t,n){var o=n(53),r=n(29),i=n(71).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=o(a),l=s.length,u=0,c=[];l>u;)i.call(a,n=s[u++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t.__esModule=!0,t.default=void 0;var i=new WeakMap,a=function(){function e(t,n,o,r,a,s,l){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:function(e){return e};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:o,columnWidthFn:r,overrideFn:a,onlyFullyVisible:s,stretchingColumnWidthFn:u}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=l,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return r(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),r(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,o=[],r=i.get(this),a=r.onlyFullyVisible,s=r.overrideFn,l=r.scrollOffset,u=r.totalColumns,c=r.viewportWidth,f=0;f<u;f++){if(e=this._getColumnWidth(f),t<=l&&!a&&(this.startColumn=f),t>=l&&t+e<=l+(l>0?c+1:c)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=f),this.endColumn=f),o.push(t),t+=e,a||(this.endColumn=f),t>=l+c){n=!1;break}}if(this.endColumn===u-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=o[this.endColumn]+e-o[this.startColumn-1];if((h<=c||!a)&&(this.startColumn-=1),h>c)break}null!==this.startColumn&&s&&s(this),this.startPosition=o[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=i.get(this),o=n.totalColumns,r=0,a=0;a<o;a++){var s=this._getColumnWidth(a),l=n.stretchingColumnWidthFn(void 0,a);"number"==typeof l?t-=l:r+=s}var u=t-r;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/r,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(o-1),f=u+c;this.stretchLastWidth=f>=0?f:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,o=i.get(this),r=o.totalColumns;if(!this.stretchAllColumnsWidth[e]){var a=Math.round(t*this.stretchAllRatio),s=o.stretchingColumnWidthFn(a,e);this.stretchAllColumnsWidth[e]=void 0===s?a:isNaN(s)?this._getColumnWidth(e):s}if(this.stretchAllColumnsWidth.length===r&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===i.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=i.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}]),e}();t.default=a},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t.__esModule=!0,t.default=void 0;var i=new WeakMap,a=function(){function e(t,n,o,r,a,s,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i.set(this,{viewportHeight:t,scrollOffset:n,totalRows:o,rowHeightFn:r,overrideFn:a,onlyFullyVisible:s,horizontalScrollbarHeight:l}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return r(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),r(e,[{key:"calculate",value:function(){for(var t,n=0,o=!0,r=[],a=i.get(this),s=a.onlyFullyVisible,l=a.overrideFn,u=a.rowHeightFn,c=a.scrollOffset,f=a.totalRows,h=a.viewportHeight,d=a.horizontalScrollbarHeight||0,p=0;p<f;p++)if(t=u(p),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=c&&!s&&(this.startRow=p),n>=c&&n+t<=c+h-d&&(null===this.startRow&&(this.startRow=p),this.endRow=p),r.push(n),n+=t,s||(this.endRow=p),n>=c+h-d){o=!1;break}if(this.endRow===f-1&&o)for(this.startRow=this.endRow;this.startRow>0;){var g=r[this.endRow]+t-r[this.startRow-1];if((g<=h-d||!s)&&(this.startRow-=1),g>=h-d)break}null!==this.startRow&&l&&l(this),this.startPosition=r[this.startRow],void 0===this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(75));function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.highlight=t,this.from=n,this.to=o}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"setHighlight",value:function(e){return this.highlight=e,this}},{key:"setFrom",value:function(e){return this.from=e,this}},{key:"setTo",value:function(e){return this.to=e,this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),r=this.getBottomRightCorner();return o.row<=t&&r.row>=t&&o.col<=n&&r.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getTopRightCorner().col>=e.getTopLeftCorner().col&&this.getTopRightCorner().col<=e.getTopRightCorner().col||this.getTopLeftCorner().col<=e.getTopRightCorner().col&&this.getTopLeftCorner().col>=e.getTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getBottomRightCorner().row>=e.getTopRightCorner().row&&this.getBottomRightCorner().row<=e.getBottomRightCorner().row||this.getTopRightCorner().row<=e.getBottomRightCorner().row&&this.getTopRightCorner().row>=e.getTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new o.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new o.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),r=this.getDirection(),i=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=Math.min(t.row,i.row),l=Math.min(t.col,i.col),u=Math.max(n.row,a.row),c=Math.max(n.col,a.col),f=new o.default(s,l),h=new o.default(u,c);return this.from=f,this.to=h,this.setDirection(r),this.highlight.row===this.getBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var r=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=r[0],this.to=r[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopLeftCorner",value:function(){return new o.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new o.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new o.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new o.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 o.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new o.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new o.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new o.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 o.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new o.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new o.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new o.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new o.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),o=Math.min(this.from.col,this.to.col),r=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),r===l&&u.push("right"),n===a&&u.push("bottom"),o===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var i=e.col;i<=t.col;i++)this.from.row===r&&this.from.col===i||this.to.row===r&&this.to.col===i||n.push(new o.default(r,i));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var i=e.col;i<=t.col;i++)e.row===r&&e.col===i?n.push(e):t.row===r&&t.col===i?n.push(t):n.push(new o.default(r,i));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;o<=n.row;o++)for(var r=t.col;r<=n.col;r++){if(!1===e(o,r))return}}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}]),e}();t.default=i},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(t,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=o}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=r},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(t,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=o}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(2),i=n(48),a=h(n(286)),s=h(n(287)),l=h(n(288)),u=h(n(289)),c=h(n(290)),f=h(n(292));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=[];if(this.guid="wt_".concat((0,i.randomString)()),t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new c.default(this,t.table,t.wtRootElement),this.wtScroll=new l.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new a.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new u.default(this,t),this.wtTable=new c.default(this,t.table),this.wtScroll=new l.default(this),this.wtViewport=new f.default(this),this.wtEvent=new a.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new s.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var r=0,h=this.wtTable.THEAD.childNodes[0].childNodes.length;r<h;r++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[r].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,o.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return function(e,t,n){t&&d(e.prototype,t),n&&d(e,n)}(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||(0,o.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<n&&e.col<r)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<r&&e.row>=t-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<r)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>t-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollViewport",value:function(e,t,n,o,r){return this.wtScroll.scrollViewport(e,t,n,o,r)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,r.objectEach)({rowHeaders:["array"],columnHeaders:["array"]},function(o,r){o.indexOf("array")>-1&&e.getSetting(r).length&&n.push("ht".concat((0,i.toUpperCaseFirst)(r))),t.push("ht".concat((0,i.toUpperCaseFirst)(r)))}),(0,o.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,o.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getSetting",value:function(e,t,n,o,r){return this.wtSettings.getSetting(e,t,n,o,r)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}();t.default=p},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(59),i=n(47),a=n(42),s=function(e){return e&&e.__esModule?e:{default:e}}(n(10));function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=new WeakMap,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.eventManager=new s.default(t),u.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.instance.wtTable.holder,"contextmenu",function(t){return e.onContextMenu(t)}),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseout",function(t){return e.onMouseOut(t)});var t=function(){e.eventManager.addEventListener(e.instance.wtTable.holder,"touchstart",function(t){return e.onTouchStart(t)}),e.eventManager.addEventListener(e.instance.wtTable.holder,"touchend",function(t){return e.onTouchEnd(t)}),e.instance.momentumScrolling||(e.instance.momentumScrolling={}),e.eventManager.addEventListener(e.instance.wtTable.holder,"scroll",function(){clearTimeout(e.instance.momentumScrolling._timeout),e.instance.momentumScrolling.ongoing||e.instance.getSetting("onBeforeTouchScroll"),e.instance.momentumScrolling.ongoing=!0,e.instance.momentumScrolling._timeout=setTimeout(function(){e.instance.touchApplied||(e.instance.momentumScrolling.ongoing=!1,e.instance.getSetting("onAfterMomentumScroll"))},200)})};(0,a.isMobileBrowser)()?t():((0,i.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.instance.wtTable.holder,"mouseup",function(t){return e.onMouseUp(t)}),e.eventManager.addEventListener(e.instance.wtTable.holder,"mousedown",function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(window,"resize",function(){"none"!==e.instance.getSetting("stretchH")&&e.instance.draw()})}},{key:"selectedCellWasTouched",value:function(e){var t=u.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var o=[n.row,t.selectedCellBeforeTouchEnd.from.row],r=o[0],i=o[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return r===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.instance.wtTable.TABLE,r=(0,o.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.instance.wtTable.getCoords(r),t.TD=r):(0,o.hasClass)(e,"wtBorder")&&(0,o.hasClass)(e,"current")?(t.coords=this.instance.selections.getCell().cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,o.hasClass)(e,"wtBorder")&&(0,o.hasClass)(e,"area")&&this.instance.selections.createOrGetArea().cellRange&&(t.coords=this.instance.selections.createOrGetArea().cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=u.get(this),n=document.activeElement,i=(0,r.partial)(o.getParent,e.realTarget),a=e.realTarget;if(a!==n&&i(0)!==n&&i(1)!==n){var s=this.parentCell(a);(0,o.hasClass)(a,"corner")?this.instance.getSetting("onCellCornerMouseDown",e,a):s.TD&&this.instance.hasSetting("onCellMouseDown")&&this.instance.getSetting("onCellMouseDown",e,s.coords,s.TD,this.instance),2!==e.button&&s.TD&&(t.dblClickOrigin[0]=s.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){t.dblClickOrigin[0]=null},1e3))}}},{key:"onContextMenu",value:function(e){if(this.instance.hasSetting("onCellContextMenu")){var t=this.parentCell(e.realTarget);t.TD&&this.instance.getSetting("onCellContextMenu",e,t.coords,t.TD,this.instance)}}},{key:"onMouseOver",value:function(e){if(this.instance.hasSetting("onCellMouseOver")){var t=this.instance.wtTable.TABLE,n=(0,o.closestDown)(e.realTarget,["TD","TH"],t),r=this.instance.cloneSource||this.instance;n&&n!==r.lastMouseOver&&(0,o.isChildOf)(n,t)&&(r.lastMouseOver=n,this.instance.getSetting("onCellMouseOver",e,this.instance.wtTable.getCoords(n),n,this.instance))}}},{key:"onMouseOut",value:function(e){if(this.instance.hasSetting("onCellMouseOut")){var t=this.instance.wtTable.TABLE,n=(0,o.closestDown)(e.realTarget,["TD","TH"],t),r=(0,o.closestDown)(e.relatedTarget,["TD","TH"],t);n&&n!==r&&(0,o.isChildOf)(n,t)&&this.instance.getSetting("onCellMouseOut",e,this.instance.wtTable.getCoords(n),n,this.instance)}}},{key:"onMouseUp",value:function(e){if(2!==e.button){var t=u.get(this),n=this.parentCell(e.realTarget);n.TD&&this.instance.hasSetting("onCellMouseUp")&&this.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,this.instance),n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,o.hasClass)(e.realTarget,"corner")?this.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,this.instance):this.instance.getSetting("onCellDblClick",e,n.coords,n.TD,this.instance),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){t.dblClickOrigin[1]=null},500))}}},{key:"onTouchStart",value:function(e){u.get(this).selectedCellBeforeTouchEnd=this.instance.selections.getCell().cellRange,this.instance.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t=e.target;this.instance.touchApplied=!1,!1===this.selectedCellWasTouched(t)&&["A","BUTTON","INPUT"].includes(t.tagName)&&e.preventDefault(),this.onMouseUp(e)}},{key:"destroy",value:function(){var e=u.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(3),i=n(32),a=n(42),s=u(n(10)),l=u(n(43));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=parseInt(getComputedStyle(document.body).lineHeight,10),r=1.2*parseInt(getComputedStyle(document.body).fontSize,10);this.wot=t,this.instance=this.wot,this.eventManager=new s.default(this.wot),this.wot.update("scrollbarWidth",(0,o.getScrollbarWidth)()),this.wot.update("scrollbarHeight",(0,o.getScrollbarWidth)()),this.scrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.browserLineHeight=n||r,this.registerListeners()}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=l.default.createOverlay(l.default.CLONE_TOP,this.wot),l.default.hasOverlay(l.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),l.default.hasOverlay(l.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=l.default.createOverlay(l.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=l.default.createOverlay(l.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=l.default.createOverlay(l.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=l.default.createOverlay(l.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=l.default.createOverlay(l.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wot.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,o=[];for(o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]),window.devicePixelRatio&&window.devicePixelRatio>1||!(0,a.isChrome)()?o.push([this.instance.wtTable.wtRootElement.parentNode,"wheel",function(t){return e.onCloneWheel(t)}]):(this.topOverlay.needFullRender&&o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.bottomOverlay.needFullRender&&o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.leftOverlay.needFullRender&&o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&o.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&o.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}])),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n,o=t.wheelDeltaY||t.deltaY,r=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"===n&&0!==o||"left"===n&&0!==r||"bottom"===n&&0!==o||("topLeft"===n||"bottomLeft"===n)&&(0!==o||0!==r))&&t.preventDefault()}]);o.length;){var r=o.pop();this.eventManager.addEventListener(r[0],r[1],r[2]),this.registeredListeners.push(r)}}},{key:"deregisterListeners",value:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}}},{key:"onTableScroll",value:function(e){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e){this.scrollableElement!==window&&e.preventDefault();var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target,r=n!==window&&o!==window&&!e.target.contains(n),i=t!==window&&o!==window&&!e.target.contains(t);this.keyPressed&&(r||i)||this.translateMouseWheelToScroll(e)}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,i.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;return 1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight),this.scrollVertically(t),this.scrollHorizontally(n),!1}},{key:"scrollVertically",value:function(e){if(0===e)return 0;this.scrollableElement.scrollTop+=e}},{key:"scrollHorizontally",value:function(e){if(0===e)return 0;this.scrollableElement.scrollLeft+=e}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.topOverlay.clone.wtTable.holder,t=this.leftOverlay.clone.wtTable.holder,n=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=n[0],r=n[1];if(this.horizontalScrolling=e.scrollLeft!==o,this.verticalScrolling=t.scrollTop!==r,this.horizontalScrolling){e.scrollLeft=o;var i=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;i&&(i.scrollLeft=o)}this.verticalScrolling&&(t.scrollTop=r),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),r=this.wot.wtViewport.getColumnHeaderHeight(),i=this.wot.wtTable.hider.style;i.width="".concat(o+this.leftOverlay.sumCellSizes(0,t),"px"),i.height="".concat(r+this.topOverlay.sumCellSizes(0,n)+1,"px"),this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,r.arrayEach)(t,function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(9);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=t}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"scrollViewport",value:function(e,t,n,o,r){var i=this.scrollViewportHorizontally(e.col,n,r),a=this.scrollViewportVertically(e.row,t,o);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),r=o.fixedColumnsLeft,i=o.leftOverlay,a=o.totalColumns,s=!1;return e>=0&&e<=Math.max(a-1,0)&&(e>=r&&(e<this.getFirstVisibleColumn()||n)?s=i.scrollTo(e):(e>this.getLastVisibleColumn()||t)&&(s=i.scrollTo(e,!0))),s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),r=o.fixedRowsBottom,i=o.fixedRowsTop,a=o.topOverlay,s=o.totalRows,l=!1;return e>=0&&e<=Math.max(s-1,0)&&(e>=i&&(e<this.getFirstVisibleRow()||t)?l=a.scrollTo(e):(e>this.getLastVisibleRow()&&e<s-r||n)&&(l=a.scrollTo(e,!0))),l}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalRows,s=e.fixedRowsTop,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var u=(0,o.offset)(n.wtRootElement),c=(0,o.innerHeight)(n.hider),f=(0,o.innerHeight)(window),h=(0,o.getScrollTop)(window);if(u.top+c-f<=h){var d=i.getColumnHeaderHeight();d+=t.sumCellSizes(0,s),(0,r.rangeEachReverse)(a,1,function(e){if(d+=t.sumCellSizes(e-1,e),u.top+c-d<=h)return l=e,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalRows,s=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),u=(0,o.innerHeight)(window),c=(0,o.getScrollTop)(window);if(l.top>c){var f=i.getColumnHeaderHeight();(0,r.rangeEach)(1,a,function(e){if(f+=t.sumCellSizes(e-1,e),l.top+f-c>=u)return s=e-2,!1})}}return s}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalColumns,s=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),u=(0,o.innerWidth)(n.hider),c=(0,o.innerWidth)(window),f=(0,o.getScrollLeft)(window);if(l.left+u-c<=f){var h=i.getRowHeaderWidth();(0,r.rangeEachReverse)(a,1,function(e){if(h+=t.sumCellSizes(e-1,e),l.left+u-h<=f)return s=e,!1})}}return s}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalColumns,s=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),u=(0,o.innerWidth)(window),c=(0,o.getScrollLeft)(window);if(l.left>c){var f=i.getRowHeaderWidth();(0,r.rangeEach)(1,a,function(e){if(f+=t.sumCellSizes(e-1,e),l.left+f-c>=u)return s=e-2,!1})}}return s}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(2);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var r=i.getSetting("data",e,t);(0,o.fastInnerText)(n,void 0===r||null===r?"":r)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},(0,r.objectEach)(this.defaults,function(e,t){if(void 0!==n[t])i.settings[t]=n[t];else{if(void 0===e)throw new Error('A required setting "'.concat(t,'" was not provided'));i.settings[t]=e}})}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"update",value:function(e,t){var n=this;return void 0===t?(0,r.objectEach)(e,function(e,t){n.settings[t]=e}):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,o,r){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(59),i=c(n(75)),a=c(n(163)),s=c(n(164)),l=c(n(291)),u=c(n(43));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var g=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,(0,o.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var i=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return r._modifyRowHeaderWidth(i)}}return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(e,[{key:"fixTableDomTree",value:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&(0,o.hasClass)(n,"wtHolder")||((t=document.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&(0,o.hasClass)(n,"wtHolder")||((t=document.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&(0,o.hasClass)(n,"wtHolder")||((t=document.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isWorkingOnClone()||(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t}},{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,o.getTrimmingContainer)(this.wtRootElement);this.isWorkingOnClone()||(this.holder.parentNode.style.position="relative",e===window?this.wot.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible"):(this.holder.style.width=(0,o.getStyle)(e,"width"),/*this.holder.style.height=(0,o.getStyle)(e,"height"),jsontable_dokuwiki_plugin*/this.holder.style.overflow=""))}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t,n,r=this.wot,i=r.wtOverlays,l=r.wtViewport,c=this.instance.getSetting("totalRows"),f=this.wot.getSetting("rowHeaders").length,h=this.wot.getSetting("columnHeaders").length,d=!1,p=e;if(!this.isWorkingOnClone()&&(this.holderOffset=(0,o.offset)(this.holder),p=l.createRenderCalculators(p),f&&!this.wot.getSetting("fixedColumnsLeft"))){var g=i.leftOverlay.getScrollPosition(),v=this.correctHeaderWidth;this.correctHeaderWidth=g>0,v!==this.correctHeaderWidth&&(p=!1)}(this.isWorkingOnClone()||(d=i.prepareOverlays()),p)?(this.isWorkingOnClone()||l.createVisibleCalculators(),i&&i.refresh(!0)):(this.isWorkingOnClone()?this.tableOffset=this.wot.cloneSource.wtTable.tableOffset:this.tableOffset=(0,o.offset)(this.TABLE),t=u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_DEBUG)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP_LEFT_CORNER)?0:u.default.isOverlayTypeOf(this.instance.cloneOverlay,u.default.CLONE_BOTTOM)||u.default.isOverlayTypeOf(this.instance.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(c-this.wot.getSetting("fixedRowsBottom"),0):l.rowsRenderCalculator.startRow,n=u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_DEBUG)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_LEFT)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP_LEFT_CORNER)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER)?0:l.columnsRenderCalculator.startColumn,this.rowFilter=new s.default(t,c,h),this.columnFilter=new a.default(n,this.wot.getSetting("totalColumns"),f),this.alignOverlaysWithTrimmingContainer(),this._doDraw());return this.refreshSelections(p),this.isWorkingOnClone()||(i.topOverlay.resetFixedPosition(),i.bottomOverlay.clone&&i.bottomOverlay.resetFixedPosition(),i.leftOverlay.resetFixedPosition(),i.topLeftCornerOverlay&&i.topLeftCornerOverlay.resetFixedPosition(),i.bottomLeftCornerOverlay&&i.bottomLeftCornerOverlay.clone&&i.bottomLeftCornerOverlay.resetFixedPosition()),d&&i.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){new l.default(this).render()}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,o.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){if(this.wot.selections){var t=Array.from(this.wot.selections),n=t.length;if(e){for(var o=[],r=0;r<n;r++){for(var i=t[r].settings,a=i.highlightHeaderClassName,s=i.highlightRowClassName,l=i.highlightColumnClassName,u=t[r].classNames,c=u.length,f=0;f<c;f++)o.includes(u[f])||o.push(u[f]);a&&!o.includes(a)&&o.push(a),s&&!o.includes(s)&&o.push(s),l&&!o.includes(l)&&o.push(l)}var h=this.wot.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(h))for(var d=0;d<h.length;d++)o.push(h[d]);for(var p=o.length,g=0;g<p;g++)this.removeClassFromCells(o[g])}for(var v=0;v<n;v++)t[v].draw(this.wot,e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,o=this.wot.getSetting("onModifyGetCellCoords",t,n);if(o&&Array.isArray(o)){var r=d(o,2);t=r[0],n=r[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;var i=this.TBODY.childNodes[this.rowFilter.sourceToRendered(t)];return i?i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)]:void 0}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,o.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,a=(0,o.index)(n),s=t.cellIndex;return(0,o.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t)||(0,o.overlayContainsElement)(u.default.CLONE_TOP,t)?"THEAD"===r.nodeName&&(a-=r.childNodes.length):a=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(a):this.rowFilter.renderedToSource(a),s=(0,o.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t)||(0,o.overlayContainsElement)(u.default.CLONE_LEFT,t)?this.columnFilter.offsettedTH(s):this.columnFilter.visibleRowHeadedColumnToSourceColumn(s),new i.default(a,s)}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)<0&&e>=0}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(u.default.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(u.default.CLONE_LEFT)||this.wot.isOverlayName(u.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(u.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(u.default.CLONE_DEBUG)?e=t:this.wot.isOverlayName(u.default.CLONE_TOP)||this.wot.isOverlayName(u.default.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.wot.isOverlayName(u.default.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}},{key:"getColumnHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===h(t)&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getColumnWidth(e),n=null===t||void 0===t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var r=o.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,r.isFunction)(e)?e():null;return Array.isArray(t)?(t=f(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(76),i=n(58),a=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function s(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number \n of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']);return s=function(){return e},e}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=!1;function c(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function f(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wtTable=t,this.wot=t.instance,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(e,[{key:"render",value:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),!0===e.skipRender)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t,n=this.wtTable.getRenderedColumnsCount(),r=this.wtTable.getRenderedRowsCount(),i=this.wot.getSetting("totalColumns"),s=this.wot.getSetting("totalRows"),l=!1;if((a.default.isOverlayTypeOf(this.wot.cloneOverlay,a.default.CLONE_BOTTOM)||a.default.isOverlayTypeOf(this.wot.cloneOverlay,a.default.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),i>=0&&(this.adjustAvailableNodes(),l=!0,this.renderColumnHeaders(),this.renderRows(s,r,n),this.wtTable.isWorkingOnClone()||(t=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(n),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),l||this.adjustAvailableNodes(),this.removeRedundantRows(r),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(a.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(a.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var u=(0,o.outerWidth)(this.wtTable.hider),c=(0,o.outerWidth)(this.wtTable.TABLE);if(0!==u&&c!==u&&this.adjustColumnWidths(n),t!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var f=this.wtTable.getFirstRenderedColumn(),h=this.wtTable.getLastRenderedColumn(),d=this.wot.getSetting("defaultColumnWidth"),p=this.wot.getSetting("rowHeaderWidth");if(null!==(p=this.instance.getSetting("onModifyRowHeaderWidth",p))&&void 0!==p)for(var g=0;g<this.rowHeaderCount;g++){var v=Array.isArray(p)?p[g]:p;v=null===v||void 0===v?d:v,this.COLGROUP.childNodes[g].style.width="".concat(v,"px")}for(var y=f;y<h;y++){var m=this.wtTable.getStretchedColumnWidth(y),w=this.columnFilter.sourceToRendered(y);this.COLGROUP.childNodes[w+this.rowHeaderCount].style.width="".concat(m,"px")}}this.wot.getSetting("onDraw",!0)}}},{key:"removeRedundantRows",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength-=1}},{key:"renderRows",value:function(e,t,n){for(var o,l=0,c=this.rowFilter.renderedToSource(l),f=this.wtTable.isWorkingOnClone();c<e&&c>=0&&(!u&&l>1e3&&(u=!0,(0,r.warn)((0,i.toSingleLine)(s()))),void 0===t||l!==t);){if(o=this.getOrCreateTrForRow(l,o),this.renderRowHeaders(c,o),this.adjustColumns(o,n+this.rowHeaderCount),this.renderCells(c,o,n),f&&!this.wot.isOverlayName(a.default.CLONE_BOTTOM)||this.resetOversizedRow(c),o.firstChild){var h=this.wot.wtTable.getRowHeight(c);h?(h-=1,o.firstChild.style.height="".concat(h,"px")):o.firstChild.style.height=""}l+=1,c=this.rowFilter.renderedToSource(l)}}},{key:"resetOversizedRow",value:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,r,i,a=this.instance.wtTable.TBODY.childNodes.length;if(a*this.instance.wtSettings.settings.defaultRowHeight!==(0,o.innerHeight)(this.instance.wtTable.TBODY)-1||this.instance.getSetting("fixedRowsBottom"))for(;a;)a-=1,n=this.instance.wtTable.rowFilter.renderedToSource(a),e=this.instance.wtTable.getRowHeight(n),t=(i=(r=this.instance.wtTable.getTrForRow(n)).querySelector("th"))?(0,o.innerHeight)(i):(0,o.innerHeight)(r)-1,(!e&&this.instance.wtSettings.settings.defaultRowHeight<t||e<t)&&(t+=1,this.instance.wtViewport.oversizedRows[n]=t)}}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;n<this.columnHeaderCount;n++)for(var o=-1*this.rowHeaderCount;o<t;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,r=e.length;o<r;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height="".concat(n[o],"px")}}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,i=this.wot.wtTable.columnFilter.renderedToSource(e),a=this.columnHeaderCount,s=this.wot.wtSettings.settings.defaultRowHeight,l=this.wot.getSetting("columnHeaderHeight")||[];a;)a-=1,t=this.wot.wtTable.getColumnHeaderHeight(a),(n=this.wot.wtTable.getColumnHeader(i,a))&&(r=(0,o.innerHeight)(n),(!t&&s<r||t<r)&&(this.wot.wtViewport.oversizedColumnHeaders[a]=r),Array.isArray(l)?null!==l[a]&&void 0!==l[a]&&(this.wot.wtViewport.oversizedColumnHeaders[a]=l[a]):isNaN(l)||(this.wot.wtViewport.oversizedColumnHeaders[a]=l),this.wot.wtViewport.oversizedColumnHeaders[a]<(l[a]||l)&&(this.wot.wtViewport.oversizedColumnHeaders[a]=l[a]||l))}},{key:"renderCells",value:function(e,t,n){for(var r,i,a=0;a<n;a++)i=this.columnFilter.renderedToSource(a),"TH"===(r=0===a?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(i)]:r.nextSibling).nodeName&&(r=f(r,t)),(0,o.hasClass)(r,"hide")||(r.className=""),r.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,i,r);return r}},{key:"adjustColumnWidths",value:function(e){var t=0,n=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,r=this.wot.getSetting("defaultColumnWidth"),i=this.wot.getSetting("rowHeaderWidth");if(n.offsetHeight<n.scrollHeight&&(t=(0,o.getScrollbarWidth)()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),null!==(i=this.instance.getSetting("onModifyRowHeaderWidth",i))&&void 0!==i)for(var a=0;a<this.rowHeaderCount;a++){var s=Array.isArray(i)?i[a]:i;s=null===s||void 0===s?r:s,this.COLGROUP.childNodes[a].style.width="".concat(s,"px")}for(var l=0;l<e;l++){var u=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(l));this.COLGROUP.childNodes[l+this.rowHeaderCount].style.width="".concat(u,"px")}}},{key:"appendToTbody",value:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength+=1}},{key:"getOrCreateTrForRow",value:function(e,t){var n;return e>=this.wtTable.tbodyChildrenLength?(n=this.createRow(),this.appendToTbody(n)):n=0===e?this.TBODY.firstChild:t.nextSibling,n.className&&n.removeAttribute("class"),n}},{key:"createRow",value:function(){for(var e=document.createElement("TR"),t=0;t<this.rowHeaderCount;t++)e.appendChild(document.createElement("TH"));return e}},{key:"renderRowHeader",value:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)}},{key:"renderRowHeaders",value:function(e,t){for(var n=t.firstChild,o=0;o<this.rowHeaderCount;o++)n?"TD"===n.nodeName&&(n=c(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,o,n),n=n.nextSibling}},{key:"adjustAvailableNodes",value:function(){this.adjustColGroups(),this.adjustThead()}},{key:"renderColumnHeaders",value:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;t<this.columnHeaderCount;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;o<e;o++){var r=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,r,n.childNodes[o+this.rowHeaderCount])}}},{key:"adjustColGroups",value:function(){for(var e=this.wtTable.getRenderedColumnsCount();this.wtTable.colgroupChildrenLength<e+this.rowHeaderCount;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength+=1;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength-=1;this.rowHeaderCount&&(0,o.addClass)(this.COLGROUP.childNodes[0],"rowHeader")}},{key:"adjustThead",value:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,r=this.columnHeaders.length;n<r;n++){for((t=this.THEAD.childNodes[n])||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;this.theadChildrenLength<e+this.rowHeaderCount;)t.appendChild(document.createElement("TH")),this.theadChildrenLength+=1;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength-=1}var i=this.THEAD.childNodes.length;if(i>this.columnHeaders.length)for(var a=this.columnHeaders.length;a<i;a++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&(0,o.empty)(t)}},{key:"getTrForColumnHeaders",value:function(e){return this.THEAD.childNodes[e]}},{key:"renderColumnHeader",value:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)}},{key:"adjustColumns",value:function(e,t){for(var n=e.childNodes.length;n<t;){var o=document.createElement("TD");e.appendChild(o),n+=1}for(;n>t;)e.removeChild(e.lastChild),n-=1}},{key:"removeRedundantColumns",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength-=1}}]),e}();t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(2),i=l(n(10)),a=l(n(160)),s=l(n(161));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new i.default(this.wot),this.eventManager.addEventListener(window,"resize",function(){n.clientHeight=n.getWorkspaceHeight()})}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(e,[{key:"getWorkspaceHeight",value:function(){var e=this.instance.wtOverlays.topOverlay.trimmingContainer;return e===window?document.documentElement.clientHeight:(0,o.outerHeight)(e)>0&&e.clientHeight>0?e.clientHeight:1/0}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wot.getSetting("totalColumns"),r=this.instance.wtOverlays.leftOverlay.trimmingContainer,i=this.wot.getSetting("stretchH"),a=document.documentElement.offsetWidth;return this.wot.getSetting("preventOverflow")?(0,o.outerWidth)(this.instance.wtTable.wtRootElement):(e=this.wot.getSetting("freezeOverlays")?Math.min(a-this.getWorkspaceOffset().left,a):Math.min(this.getContainerFillWidth(),a-this.getWorkspaceOffset().left,a),r===window&&n>0&&this.sumColumnWidths(0,n-1)>e?document.documentElement.clientWidth:r===window||"scroll"!==(t=(0,o.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"))&&"hidden"!==t&&"auto"!==t?"none"!==i&&i?e:Math.max(e,(0,o.outerWidth)(this.instance.wtTable.TABLE)):Math.max(e,r.clientWidth))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=this.wot.wtTable,o=0,r=e;r<t;)o+=n.getColumnWidth(r),r+=1;return o}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=document.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,o.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,o.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,o.outerWidth)(this.wot.wtTable.TABLE)||(0,o.outerWidth)(this.wot.wtTable.TBODY)||(0,o.outerWidth)(this.wot.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,o.outerHeight)(this.wot.wtTable.THEAD)),this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var i=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var a=0,s=t.length;a<s;a++)i?(this.rowHeaderWidth+=(0,o.outerWidth)(i),i=i.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.rowHeaderWidth=NaN,e=this.wot.wtSettings.settings.renderAllRows&&!i?1/0:this.getViewportHeight();var a=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset();a<0&&(a=0);var l=this.wot.getSetting("fixedRowsTop"),u=this.wot.getSetting("fixedRowsBottom"),c=this.wot.getSetting("totalRows");return l&&(a+=n=this.wot.wtOverlays.topOverlay.sumCellSizes(0,l),e-=n),u&&this.wot.wtOverlays.bottomOverlay.clone&&(e-=n=this.wot.wtOverlays.bottomOverlay.sumCellSizes(c-u,c)),t=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:(0,o.getScrollbarWidth)(),new s.default(e,a,this.wot.getSetting("totalRows"),function(e){return r.wot.wtTable.getRowHeight(e)},i?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,i,t)}},{key:"createColumnsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getViewportWidth(),r=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,r<0&&(r=0);var i=this.wot.getSetting("fixedColumnsLeft");if(i){var s=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,i);r+=s,n-=s}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(n-=(0,o.getScrollbarWidth)()),new a.default(n,r,this.wot.getSetting("totalColumns"),function(t){return e.wot.wtTable.getColumnWidth(t)},t?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,t,this.wot.getSetting("stretchH"),function(t,n){return e.wot.getSetting("onBeforeStretchingColumnWidth",t,n)})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){return!!this.rowsVisibleCalculator&&(!(e.startRow<this.rowsRenderCalculator.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){return!!this.columnsVisibleCalculator&&(!(e.startColumn<this.columnsRenderCalculator.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,r.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(18),i=n(2),a=n(42),s=u(n(10)),l=u(n(75));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var h=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&(this.eventManager=new s.default(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(e,[{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",function(n){return e.onMouseEnter(n,e.main.childNodes[t])})},n=0,o=this.main.childNodes.length;n<o;n++)t(n)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,r.stopImmediatePropagation)(e);var n=this,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",function e(r){(function(e){return e.clientY<Math.floor(o.top)||e.clientY>Math.ceil(o.top+o.height)||e.clientX<Math.floor(o.left)||e.clientX>Math.ceil(o.left+o.width)||void 0})(r)&&(n.eventManager.removeEventListener(document.body,"mousemove",e),t.style.display="block")})}}},{key:"createBorders",value:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;o<5;o++){var r=t[o],i=document.createElement("div");i.className="wtBorder ".concat(this.settings.className||""),this.settings[r]&&this.settings[r].hide&&(i.className+=" hidden"),(n=i.style).backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,n.height=this.settings[r]&&this.settings[r].width?"".concat(this.settings[r].width,"px"):"".concat(e.border.width,"px"),n.width=this.settings[r]&&this.settings[r].width?"".concat(this.settings[r].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(i)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,a.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable.bordersHolder;s||((s=document.createElement("div")).className="htBorders",this.wot.wtTable.bordersHolder=s,this.wot.wtTable.spreader.appendChild(s)),s.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this;this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var t={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,i.objectEach)(t,function(t,n){e.selectionHandles.styles.bottomRightHitArea[n]=t,e.selectionHandles.styles.topLeftHitArea[n]=t});var n={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,i.objectEach)(n,function(t,n){e.selectionHandles.styles.bottomRight[n]=t,e.selectionHandles.styles.topLeft[n]=t}),this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,o,r,i){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top="".concat(parseInt(n-a,10),"px"),this.selectionHandles.styles.topLeft.left="".concat(parseInt(o-a,10),"px"),this.selectionHandles.styles.topLeftHitArea.top="".concat(parseInt(n-s/4*3,10),"px"),this.selectionHandles.styles.topLeftHitArea.left="".concat(parseInt(o-s/4*3,10),"px"),this.selectionHandles.styles.bottomRight.top="".concat(parseInt(n+i,10),"px"),this.selectionHandles.styles.bottomRight.left="".concat(parseInt(o+r,10),"px"),this.selectionHandles.styles.bottomRightHitArea.top="".concat(parseInt(n+i-s/4,10),"px"),this.selectionHandles.styles.bottomRightHitArea.left="".concat(parseInt(o+r-s/4,10),"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,s=this.wot.wtTable.getRenderedRowsCount(),u=0;u<s;u+=1){var f=this.wot.wtTable.rowFilter.renderedToSource(u);if(f>=e[0]&&f<=e[2]){t=f;break}}for(var h=s-1;h>=0;h-=1){var d=this.wot.wtTable.rowFilter.renderedToSource(h);if(d>=e[0]&&d<=e[2]){n=d;break}}for(var p=this.wot.wtTable.getRenderedColumnsCount(),g=0;g<p;g+=1){var v=this.wot.wtTable.columnFilter.renderedToSource(g);if(v>=e[1]&&v<=e[3]){r=v;break}}for(var y=p-1;y>=0;y-=1){var m=this.wot.wtTable.columnFilter.renderedToSource(y);if(m>=e[1]&&m<=e[3]){i=m;break}}if(void 0!==t&&void 0!==r){var w=this.wot.wtTable.getCell(new l.default(t,r)),b=t!==n||r!==i,C=b?this.wot.wtTable.getCell(new l.default(n,i)):w,S=(0,o.offset)(w),_=b?(0,o.offset)(C):S,E=(0,o.offset)(this.wot.wtTable.TABLE),O=S.top,T=S.left,R=T-E.left-1,k=_.left+(0,o.outerWidth)(C)-T;if(this.isEntireColumnSelected(t,n)){var M=this.getDimensionsFromHeader("columns",r,i,E),N=null;if(M){var D=c(M,3);N=D[0],R=D[1],k=D[2]}N&&(w=N)}var A=O-E.top-1,P=_.top+(0,o.outerHeight)(C)-O;if(this.isEntireRowSelected(r,i)){var L=this.getDimensionsFromHeader("rows",t,n,E),H=null;if(L){var x=c(L,3);H=x[0],A=x[1],P=x[2]}H&&(w=H)}var I=(0,o.getComputedStyle)(w);parseInt(I.borderTopWidth,10)>0&&(A+=1,P=P>0?P-1:0),parseInt(I.borderLeftWidth,10)>0&&(R+=1,k=k>0?k-1:0),this.topStyle.top="".concat(A,"px"),this.topStyle.left="".concat(R,"px"),this.topStyle.width="".concat(k,"px"),this.topStyle.display="block",this.leftStyle.top="".concat(A,"px"),this.leftStyle.left="".concat(R,"px"),this.leftStyle.height="".concat(P,"px"),this.leftStyle.display="block";var j=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(A+P-j,"px"),this.bottomStyle.left="".concat(R,"px"),this.bottomStyle.width="".concat(k,"px"),this.bottomStyle.display="block",this.rightStyle.top="".concat(A,"px"),this.rightStyle.left="".concat(R+k-j,"px"),this.rightStyle.height="".concat(P+1,"px"),this.rightStyle.display="block";var F=this.settings.border.cornerVisible;F="function"==typeof F?F(this.settings.layerLevel):F;var W=this.wot.getSetting("onModifyGetCellCoords",n,i),B=n,V=i;if(W&&Array.isArray(W)){var Y=c(W,4);B=Y[2],V=Y[3]}if((0,a.isMobileBrowser)()||!F||this.isPartRange(B,V))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(A+P-4,"px"),this.cornerStyle.left="".concat(R+k-4,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var U=(0,o.getTrimmingContainer)(this.wot.wtTable.TABLE),z=U===window;if(z&&(U=document.documentElement),i===this.wot.getSetting("totalColumns")-1)(z?C.getBoundingClientRect().left:C.offsetLeft)+(0,o.outerWidth)(C)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,o.innerWidth)(U)&&(this.cornerStyle.left="".concat(Math.floor(R+k-3-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle.borderRightWidth=0);if(n===this.wot.getSetting("totalRows")-1)(z?C.getBoundingClientRect().top:C.offsetTop)+(0,o.outerHeight)(C)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,o.innerHeight)(U)&&(this.cornerStyle.top="".concat(Math.floor(A+P-3-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,a.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,A,R,k,P)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r){var i=this,a=this.wot.wtTable.wtRootElement.parentNode,s=null,l=null,u=null,c=null,f=null,h=null,d=null,p=null;switch(e){case"rows":s=function(){var e;return(e=i.wot.wtTable).getRowHeader.apply(e,arguments)},l=function(){return o.outerHeight.apply(void 0,arguments)},u="ht__selection--rows",h="top";break;case"columns":s=function(){var e;return(e=i.wot.wtTable).getColumnHeader.apply(e,arguments)},l=function(){return o.outerWidth.apply(void 0,arguments)},u="ht__selection--columns",h="left"}if(a.className.includes(u)){var g=this.wot.getSetting("columnHeaders").length;if(d=s(t,g-1),p=s(n,g-1),!d||!p)return!1;var v=(0,o.offset)(d),y=(0,o.offset)(p);return d&&p&&(c=v[h]-r[h]-1,f=y[h]+l(p)-v[h]),[d,c,f]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,o.addClass)(this[e],"hidden"):((0,o.hasClass)(this[e],"hidden")&&(0,o.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"right"!==e&&"left"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",o=this[e].style;o.backgroundColor=n,o.width="".concat(t,"px"),o.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,o.addClass)(this[e],"hidden"):(0,o.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,a.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}}]),e}();t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(32),r=n(14),i=n(48),a=n(3),s=n(1),l=function(e){return e&&e.__esModule?e:{default:e}}(n(295));var u=l.default.prototype.extend();u.prototype.init=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.init.apply(this,t),this.query=null,this.strippedChoices=[],this.rawChoices=[]},u.prototype.getValue=function(){var e=this,t=this.rawChoices.find(function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value});return(0,r.isDefined)(t)?t:this.TEXTAREA.value},u.prototype.createElements=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.createElements.apply(this,t),(0,s.addClass)(this.htContainer,"autocompleteEditor"),(0,s.addClass)(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var c=!1;function f(e){c=!1;var t=this.getActiveEditor();if((0,o.isPrintableChar)(e.keyCode)||e.keyCode===o.KEY_CODES.BACKSPACE||e.keyCode===o.KEY_CODES.DELETE||e.keyCode===o.KEY_CODES.INSERT){var n=0;if(e.keyCode===o.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(function(){t.queryChoices(t.TEXTAREA.value),c=!0},n)}}u.prototype.prepare=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.prepare.apply(this,t)},u.prototype.open=function(){this.instance.addHook("beforeKeyDown",f),this.TEXTAREA_PARENT.style.overflow="auto";for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.open.apply(this,t),this.TEXTAREA_PARENT.style.overflow="";var o=this.htEditor.getInstance(),i=this,a=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus(),o.updateSettings({colWidths:a?[(0,s.outerWidth)(this.TEXTAREA)-2]:void 0,width:a?(0,s.outerWidth)(this.TEXTAREA)+(0,s.getScrollbarWidth)()+2:void 0,afterRenderer:function(e,t,n,o,a){var s,l,u=i.cellProperties,c=u.filteringCaseSensitive,f=u.allowHtml,h=(0,r.stringify)(a);h&&!f&&-1!==(s=!0===c?h.indexOf(this.query):h.toLowerCase().indexOf(i.query.toLowerCase()))&&(l=h.substr(s,i.query.length),h=h.replace(l,"<strong>".concat(l,"</strong>"))),e.innerHTML=h},autoColumnSize:!0,modifyColWidth:function(e,t){var n=this.getPlugin("autoColumnSize").widths,o=e;return n[t]&&(o=n[t]),a?o:o+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]="".concat((0,s.getScrollbarWidth)()+2,"px"),c&&(c=!1),i.instance._registerTimeout(function(){i.queryChoices(i.TEXTAREA.value)})},u.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties.source;"function"==typeof n?n.call(this.cellProperties,e,function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))}):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])},u.prototype.updateChoicesList=function(e){var t=(0,s.getCaretPosition)(this.TEXTAREA),n=(0,s.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,r=this.cellProperties.filter,i=null,l=null,c=e;o&&(i=u.sortByRelevance(this.stripValueIfNeeded(this.getValue()),c,this.cellProperties.filteringCaseSensitive));var f=Array.isArray(i)?i.length:0;if(!1===r)f&&(l=i[0]);else{for(var h=[],d=0,p=c.length;d<p&&!(o&&f<=d);d++)f?h.push(c[i[d]]):h.push(c[d]);l=0,c=h}this.strippedChoices=c,this.htEditor.loadData((0,a.pivot)([c])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(l),this.instance.listen(!1),(0,s.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)},u.prototype.flipDropdownIfNeeded=function(){var e=(0,s.offset)(this.TEXTAREA),t=(0,s.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),o=(0,s.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE),r=o.scrollTop,i=(0,s.outerHeight)(this.instance.view.wt.wtTable.THEAD),a={row:0,col:0};o!==window&&(a=(0,s.offset)(o));var l=e.top-a.top-i+r,u=o.scrollHeight-l-i-t,c=n>u&&l>u;return c?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(c?l:u,n),c},u.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n,o=0,r=0,i=0;do{o+=i=this.htEditor.getRowHeight(r)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,r+=1}while(o<e);n=o-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(o-i)}},u.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0},u.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},u.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+(0,s.getScrollbarWidth)()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},u.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},u.prototype.finishEditing=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];l.default.prototype.finishEditing.apply(this,[e].concat(n))},u.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()},u.sortByRelevance=function(e,t,n){var o,a,s,l,u=[],c=e.length,f=[],h=t.length;if(0===c){for(l=0;l<h;l++)f.push(l);return f}for(l=0;l<h;l++)o=(0,i.stripTags)((0,r.stringify)(t[l])),-1!==(a=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()))&&(s=o.length-a-c,u.push({baseIndex:l,index:a,charsLeft:s,value:o}));for(u.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),l=0,h=u.length;l<h;l++)f.push(u[l].baseIndex);return f},u.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8},u.prototype.stripValueIfNeeded=function(e){return this.stripValuesIfNeeded([e])[0]},u.prototype.stripValuesIfNeeded=function(e){var t=this.cellProperties.allowHtml,n=(0,a.arrayMap)(e,function(e){return(0,r.stringify)(e)});return(0,a.arrayMap)(n,function(e){return t?e:(0,i.stripTags)(e)})},u.prototype.allowKeyEventPropagation=function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===o.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===o.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r},u.prototype.close=function(){this.instance.removeHook("beforeKeyDown",f);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.close.apply(this,t)},u.prototype.discardEditor=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.default.prototype.discardEditor.apply(this,t),this.instance.view.render()};var h=u;t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(32),r=n(2),i=n(1),a=n(18),s=function(e){return e&&e.__esModule?e:{default:e}}(n(77));var l=s.default.prototype.extend();l.prototype.createElements=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.default.prototype.createElements.apply(this,t);var o=document.createElement("DIV");o.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(o),this.htContainer=o,this.assignHooks()},l.prototype.prepare=function(e,t,n,o,i,a){for(var l=arguments.length,u=new Array(l>6?l-6:0),c=6;c<l;c++)u[c-6]=arguments[c];s.default.prototype.prepare.apply(this,[e,t,n,o,i,a].concat(u));var f=this,h={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&f.setValue(n),f.instance.destroyEditor()}};this.cellProperties.handsontable&&(0,r.extend)(h,a.handsontable),this.htOptions=h};var u=function(e){if(!(0,a.isImmediatePropagationStopped)(e)){var t,n,r=this.getActiveEditor(),i=r.htEditor.getInstance();if(e.keyCode===o.KEY_CODES.ARROW_DOWN)if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)t=i.getSelectedLast()[0]+1;else if(!i.flipped){var s=i.countRows()-1;n=i.getSelectedLast()[0],t=Math.min(s,n+1)}}else t=0;else e.keyCode===o.KEY_CODES.ARROW_UP&&(!i.getSelectedLast()&&i.flipped?t=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(n=i.getSelectedLast()[0],t=Math.max(0,n-1)):t=(n=i.getSelectedLast()[0])-1));void 0!==t&&(t<0||i.flipped&&t>i.countRows()-1?i.deselectCell():i.selectCell(t,0),i.getData().length&&(e.preventDefault(),(0,a.stopImmediatePropagation)(e),r.instance.listen(),r.TEXTAREA.focus()))}};l.prototype.open=function(){this.instance.addHook("beforeKeyDown",u);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.default.prototype.open.apply(this,t),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.instance.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,i.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)},l.prototype.close=function(){this.htEditor.rootElement.style.display="none",this.instance.removeHook("beforeKeyDown",u);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.default.prototype.close.apply(this,t)},l.prototype.focus=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.default.prototype.focus.apply(this,t)},l.prototype.beginEditing=function(){var e=this.instance.getSettings().onBeginEditing;if(!e||!1!==e()){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];s.default.prototype.beginEditing.apply(this,n)}},l.prototype.finishEditing=function(){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var e=this.htEditor.getInstance().getValue();void 0!==e&&this.setValue(e)}for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s.default.prototype.finishEditing.apply(this,n)},l.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})};var c=l;t.default=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var o;!function(t){e.exports=t()}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){if(!l&&("function"==typeof o&&o))return o(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){!function(e){"use strict";function n(e){var t=0|e;return e>0||e===t?t:t-1}function o(e){for(var t,n,o=1,r=e.length,i=e[0]+"";o<r;){for(t=e[o++]+"",n=b-t.length;n--;t="0"+t);i+=t}for(r=i.length;48===i.charCodeAt(--r););return i.slice(0,r+1||1)}function r(e,t){var n,o,r=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=r&&!r[0],o=i&&!i[0],n||o)return n?o?0:-s:a;if(a!=s)return a;if(n=a<0,o=l==u,!r||!i)return o?0:!r^n?1:-1;if(!o)return l>u^n?1:-1;for(s=(l=r.length)<(u=i.length)?l:u,a=0;a<s;a++)if(r[a]!=i[a])return r[a]>i[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function i(e,t,n){return(e=c(e))>=t&&e<=n}function a(e){return"[object Array]"==Object.prototype.toString.call(e)}function s(e,t,n){for(var o,r,i=[0],a=0,s=e.length;a<s;){for(r=i.length;r--;i[r]*=t);for(i[o=0]+=m.indexOf(e.charAt(a++));o<i.length;o++)i[o]>n-1&&(null==i[o+1]&&(i[o+1]=0),i[o+1]+=i[o]/n|0,i[o]%=n)}return i.reverse()}function l(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function u(e,t){var n,o;if(t<0){for(o="0.";++t;o+="0");e=o+e}else if(++t>(n=e.length)){for(o="0",t-=n;--t;o+="0");e+=o}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}function c(e){return(e=parseFloat(e))<0?d(e):p(e)}var f,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=Math.ceil,p=Math.floor,g=" not a boolean or binary digit",v="rounding mode",y="number type has more than 15 significant digits",m="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",w=1e14,b=14,C=9007199254740991,S=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,E=1e9;(f=function e(t){function f(e,t){var n,o,r,i,a,s,l=this;if(!(l instanceof f))return Y&&N(26,"constructor call without new",e),new f(e,t);if(null!=t&&U(t,2,64,L,"base")){if(s=e+"",10==(t|=0))return D(l=new f(e instanceof f?e:s),I+l.e+1,j);if((i="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(n="["+m.slice(0,t)+"]+")+"(?:\\."+n+")?$",t<37?"i":"").test(s))return P(l,s,i,t);i?(l.s=1/e<0?(s=s.slice(1),-1):1,Y&&s.replace(/^0\.0*|\./,"").length>15&&N(L,y,e),i=!1):l.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1,s=O(s,10,t,l.s)}else{if(e instanceof f)return l.s=e.s,l.e=e.e,l.c=(e=e.c)?e.slice():e,void(L=0);if((i="number"==typeof e)&&0*e==0){if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,r=e;r>=10;r/=10,o++);return l.e=o,l.c=[e],void(L=0)}s=e+""}else{if(!h.test(s=e+""))return P(l,s,i);l.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1}}for((o=s.indexOf("."))>-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(o<0&&(o=r),o+=+s.slice(r+1),s=s.substring(0,r)):o<0&&(o=s.length),r=0;48===s.charCodeAt(r);r++);for(a=s.length;48===s.charCodeAt(--a););if(s=s.slice(r,a+1))if(a=s.length,i&&Y&&a>15&&(e>C||e!==p(e))&&N(L,y,l.s*e),(o=o-r-1)>V)l.c=l.e=null;else if(o<B)l.c=[l.e=0];else{if(l.e=o,l.c=[],r=(o+1)%b,o<0&&(r+=b),r<a){for(r&&l.c.push(+s.slice(0,r)),a-=b;r<a;)l.c.push(+s.slice(r,r+=b));s=s.slice(r),r=b-s.length}else r-=a;for(;r--;s+="0");l.c.push(+s)}else l.c=[l.e=0];L=0}function O(e,t,n,r){var i,a,l,c,h,d,p,g=e.indexOf("."),v=I,y=j;for(n<37&&(e=e.toLowerCase()),g>=0&&(l=X,X=0,e=e.replace(".",""),h=(p=new f(n)).pow(e.length-g),X=l,p.c=s(u(o(h.c),h.e),10,t),p.e=p.c.length),a=l=(d=s(e,n,t)).length;0==d[--l];d.pop());if(!d[0])return"0";if(g<0?--a:(h.c=d,h.e=a,h.s=r,d=(h=A(h,p,v,y,t)).c,c=h.r,a=h.e),g=d[i=a+v+1],l=t/2,c=c||i<0||null!=d[i+1],c=y<4?(null!=g||c)&&(0==y||y==(h.s<0?3:2)):g>l||g==l&&(4==y||c||6==y&&1&d[i-1]||y==(h.s<0?8:7)),i<1||!d[0])e=c?u("1",-v):"0";else{if(d.length=i,c)for(--t;++d[--i]>t;)d[i]=0,i||(++a,d=[1].concat(d));for(l=d.length;!d[--l];);for(g=0,e="";g<=l;e+=m.charAt(d[g++]));e=u(e,a)}return e}function T(e,t,n,r){var i,a,s,c,h;if(n=null!=n&&U(n,0,8,r,v)?0|n:j,!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)h=o(e.c),h=19==r||24==r&&s<=F?l(h,s):u(h,s);else if(a=(e=D(new f(e),t,n)).e,c=(h=o(e.c)).length,19==r||24==r&&(t<=a||a<=F)){for(;c<t;h+="0",c++);h=l(h,a)}else if(t-=s,h=u(h,a),a+1>c){if(--t>0)for(h+=".";t--;h+="0");}else if((t+=a-c)>0)for(a+1==c&&(h+=".");t--;h+="0");return e.s<0&&i?"-"+h:h}function R(e,t){var n,o,r=0;for(a(e[0])&&(e=e[0]),n=new f(e[0]);++r<e.length;){if(!(o=new f(e[r])).s){n=o;break}t.call(n,o)&&(n=o)}return n}function k(e,t,n,o,r){return(e<t||e>n||e!=c(e))&&N(o,(r||"decimal places")+(e<t||e>n?" out of range":" not an integer"),e),!0}function M(e,t,n){for(var o=1,r=t.length;!t[--r];t.pop());for(r=t[0];r>=10;r/=10,o++);return(n=o+n*b-1)>V?e.c=e.e=null:n<B?e.c=[e.e=0]:(e.e=n,e.c=t),e}function N(e,t,n){var o=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+n);throw o.name="BigNumber Error",L=0,o}function D(e,t,n,o){var r,i,a,s,l,u,c,f=e.c,h=S;if(f){e:{for(r=1,s=f[0];s>=10;s/=10,r++);if((i=t-r)<0)i+=b,a=t,c=(l=f[u=0])/h[r-a-1]%10|0;else if((u=d((i+1)/b))>=f.length){if(!o)break e;for(;f.length<=u;f.push(0));l=c=0,r=1,a=(i%=b)-b+1}else{for(l=s=f[u],r=1;s>=10;s/=10,r++);c=(a=(i%=b)-b+r)<0?0:l/h[r-a-1]%10|0}if(o=o||t<0||null!=f[u+1]||(a<0?l:l%h[r-a-1]),o=n<4?(c||o)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||o||6==n&&(i>0?a>0?l/h[r-a]:0:f[u-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,o?(t-=e.e+1,f[0]=h[(b-t%b)%b],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=u,s=1,u--):(f.length=u+1,s=h[b-i],f[u]=a>0?p(l/h[r-a]%h[a])*s:0),o)for(;;){if(0==u){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==w&&(f[0]=1));break}if(f[u]+=s,f[u]!=w)break;f[u--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>V?e.c=e.e=null:e.e<B&&(e.c=[e.e=0])}return e}var A,P,L=0,H=f.prototype,x=new f(1),I=20,j=4,F=-7,W=21,B=-1e7,V=1e7,Y=!0,U=k,z=!1,G=1,X=0,K={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return f.another=e,f.ROUND_UP=0,f.ROUND_DOWN=1,f.ROUND_CEIL=2,f.ROUND_FLOOR=3,f.ROUND_HALF_UP=4,f.ROUND_HALF_DOWN=5,f.ROUND_HALF_EVEN=6,f.ROUND_HALF_CEIL=7,f.ROUND_HALF_FLOOR=8,f.EUCLID=9,f.config=f.set=function(){var e,t,n=0,o={},r=arguments,s=r[0],l=s&&"object"==typeof s?function(){if(s.hasOwnProperty(t))return null!=(e=s[t])}:function(){if(r.length>n)return null!=(e=r[n++])};return l(t="DECIMAL_PLACES")&&U(e,0,E,2,t)&&(I=0|e),o[t]=I,l(t="ROUNDING_MODE")&&U(e,0,8,2,t)&&(j=0|e),o[t]=j,l(t="EXPONENTIAL_AT")&&(a(e)?U(e[0],-E,0,2,t)&&U(e[1],0,E,2,t)&&(F=0|e[0],W=0|e[1]):U(e,-E,E,2,t)&&(F=-(W=0|(e<0?-e:e)))),o[t]=[F,W],l(t="RANGE")&&(a(e)?U(e[0],-E,-1,2,t)&&U(e[1],1,E,2,t)&&(B=0|e[0],V=0|e[1]):U(e,-E,E,2,t)&&(0|e?B=-(V=0|(e<0?-e:e)):Y&&N(2,t+" cannot be zero",e))),o[t]=[B,V],l(t="ERRORS")&&(e===!!e||1===e||0===e?(L=0,U=(Y=!!e)?k:i):Y&&N(2,t+g,e)),o[t]=Y,l(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:Y?N(2,"crypto unavailable",e?void 0:crypto):z=!1:z=!1:Y&&N(2,t+g,e)),o[t]=z,l(t="MODULO_MODE")&&U(e,0,9,2,t)&&(G=0|e),o[t]=G,l(t="POW_PRECISION")&&U(e,0,E,2,t)&&(X=0|e),o[t]=X,l(t="FORMAT")&&("object"==typeof e?K=e:Y&&N(2,t+" not an object",e)),o[t]=K,o},f.max=function(){return R(arguments,H.lt)},f.min=function(){return R(arguments,H.gt)},f.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return p(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,o,r,i,a,s=0,l=[],u=new f(x);if(t=null!=t&&U(t,0,E,14)?0|t:I,i=d(t/b),z)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*n[s]+(n[s+1]>>>11))>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),n[s]=o[0],n[s+1]=o[1]):(l.push(a%1e14),s+=2);s=i/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&n[s])+1099511627776*n[s+1]+4294967296*n[s+2]+16777216*n[s+3]+(n[s+4]<<16)+(n[s+5]<<8)+n[s+6])>=9e15?crypto.randomBytes(7).copy(n,s):(l.push(a%1e14),s+=7);s=i/7}else z=!1,Y&&N(14,"crypto unavailable",crypto);if(!z)for(;s<i;)(a=e())<9e15&&(l[s++]=a%1e14);for(i=l[--s],t%=b,i&&t&&(a=S[b-t],l[s]=p(i/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=b);for(s=1,a=l[0];a>=10;a/=10,s++);s<b&&(r-=b-s)}return u.e=r,u.c=l,u}}(),A=function(){function e(e,t,n){var o,r,i,a,s=0,l=e.length,u=t%_,c=t/_|0;for(e=e.slice();l--;)s=((r=u*(i=e[l]%_)+(o=c*i+(a=e[l]/_|0)*u)%_*_+s)/n|0)+(o/_|0)+c*a,e[l]=r%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,o){var r,i;if(n!=o)i=n>o?1:-1;else for(r=i=0;r<n;r++)if(e[r]!=t[r]){i=e[r]>t[r]?1:-1;break}return i}function o(e,t,n,o){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*o+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,s,l){var u,c,h,d,g,v,y,m,C,S,_,E,O,T,R,k,M,N=r.s==i.s?1:-1,A=r.c,P=i.c;if(!(A&&A[0]&&P&&P[0]))return new f(r.s&&i.s&&(A?!P||A[0]!=P[0]:P)?A&&0==A[0]||!P?0*N:N/0:NaN);for(C=(m=new f(N)).c=[],N=a+(c=r.e-i.e)+1,l||(l=w,c=n(r.e/b)-n(i.e/b),N=N/b|0),h=0;P[h]==(A[h]||0);h++);if(P[h]>(A[h]||0)&&c--,N<0)C.push(1),d=!0;else{for(T=A.length,k=P.length,h=0,N+=2,(g=p(l/(P[0]+1)))>1&&(P=e(P,g,l),A=e(A,g,l),k=P.length,T=A.length),O=k,_=(S=A.slice(0,k)).length;_<k;S[_++]=0);M=P.slice(),M=[0].concat(M),R=P[0],P[1]>=l/2&&R++;do{if(g=0,(u=t(P,S,k,_))<0){if(E=S[0],k!=_&&(E=E*l+(S[1]||0)),(g=p(E/R))>1)for(g>=l&&(g=l-1),y=(v=e(P,g,l)).length,_=S.length;1==t(v,S,y,_);)g--,o(v,k<y?M:P,y,l),y=v.length,u=1;else 0==g&&(u=g=1),y=(v=P.slice()).length;if(y<_&&(v=[0].concat(v)),o(S,v,_,l),_=S.length,-1==u)for(;t(P,S,k,_)<1;)g++,o(S,k<_?M:P,_,l),_=S.length}else 0===u&&(g++,S=[0]);C[h++]=g,S[0]?S[_++]=A[O]||0:(S=[A[O]],_=1)}while((O++<T||null!=S[0])&&N--);d=null!=S[0],C[0]||C.splice(0,1)}if(l==w){for(h=1,N=C[0];N>=10;N/=10,h++);D(m,a+(m.e=h+c*b-1)+1,s,d)}else m.e=c,m.r=+d;return m}}(),P=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,a,s,l){var u,c=s?a:a.replace(r,"");if(o.test(c))i.s=isNaN(c)?null:c<0?-1:1;else{if(!s&&(c=c.replace(e,function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?e:t}),l&&(u=l,c=c.replace(t,"$1").replace(n,"0.$1")),a!=c))return new f(c,u);Y&&N(L,"not a"+(l?" base "+l:"")+" number",a),i.s=null}i.c=i.e=null,L=0}}(),H.absoluteValue=H.abs=function(){var e=new f(this);return e.s<0&&(e.s=1),e},H.ceil=function(){return D(new f(this),this.e+1,2)},H.comparedTo=H.cmp=function(e,t){return L=1,r(this,new f(e,t))},H.decimalPlaces=H.dp=function(){var e,t,o=this.c;if(!o)return null;if(e=((t=o.length-1)-n(this.e/b))*b,t=o[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},H.dividedBy=H.div=function(e,t){return L=3,A(this,new f(e,t),I,j)},H.dividedToIntegerBy=H.divToInt=function(e,t){return L=4,A(this,new f(e,t),0,1)},H.equals=H.eq=function(e,t){return L=5,0===r(this,new f(e,t))},H.floor=function(){return D(new f(this),this.e+1,3)},H.greaterThan=H.gt=function(e,t){return L=6,r(this,new f(e,t))>0},H.greaterThanOrEqualTo=H.gte=function(e,t){return L=7,1===(t=r(this,new f(e,t)))||0===t},H.isFinite=function(){return!!this.c},H.isInteger=H.isInt=function(){return!!this.c&&n(this.e/b)>this.c.length-2},H.isNaN=function(){return!this.s},H.isNegative=H.isNeg=function(){return this.s<0},H.isZero=function(){return!!this.c&&0==this.c[0]},H.lessThan=H.lt=function(e,t){return L=8,r(this,new f(e,t))<0},H.lessThanOrEqualTo=H.lte=function(e,t){return L=9,-1===(t=r(this,new f(e,t)))||0===t},H.minus=H.sub=function(e,t){var o,r,i,a,s=this,l=s.s;if(L=10,t=(e=new f(e,t)).s,!l||!t)return new f(NaN);if(l!=t)return e.s=-t,s.plus(e);var u=s.e/b,c=e.e/b,h=s.c,d=e.c;if(!u||!c){if(!h||!d)return h?(e.s=-t,e):new f(d?s:NaN);if(!h[0]||!d[0])return d[0]?(e.s=-t,e):new f(h[0]?s:3==j?-0:0)}if(u=n(u),c=n(c),h=h.slice(),l=u-c){for((a=l<0)?(l=-l,i=h):(c=u,i=d),i.reverse(),t=l;t--;i.push(0));i.reverse()}else for(r=(a=(l=h.length)<(t=d.length))?l:t,l=t=0;t<r;t++)if(h[t]!=d[t]){a=h[t]<d[t];break}if(a&&(i=h,h=d,d=i,e.s=-e.s),(t=(r=d.length)-(o=h.length))>0)for(;t--;h[o++]=0);for(t=w-1;r>l;){if(h[--r]<d[r]){for(o=r;o&&!h[--o];h[o]=t);--h[o],h[r]+=w}h[r]-=d[r]}for(;0==h[0];h.splice(0,1),--c);return h[0]?M(e,h,c):(e.s=3==j?-1:1,e.c=[e.e=0],e)},H.modulo=H.mod=function(e,t){var n,o,r=this;return L=11,e=new f(e,t),!r.c||!e.s||e.c&&!e.c[0]?new f(NaN):!e.c||r.c&&!r.c[0]?new f(r):(9==G?(o=e.s,e.s=1,n=A(r,e,0,3),e.s=o,n.s*=o):n=A(r,e,0,G),r.minus(n.times(e)))},H.negated=H.neg=function(){var e=new f(this);return e.s=-e.s||null,e},H.plus=H.add=function(e,t){var o,r=this,i=r.s;if(L=12,t=(e=new f(e,t)).s,!i||!t)return new f(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/b,s=e.e/b,l=r.c,u=e.c;if(!a||!s){if(!l||!u)return new f(i/0);if(!l[0]||!u[0])return u[0]?e:new f(l[0]?r:0*i)}if(a=n(a),s=n(s),l=l.slice(),i=a-s){for(i>0?(s=a,o=u):(i=-i,o=l),o.reverse();i--;o.push(0));o.reverse()}for((i=l.length)-(t=u.length)<0&&(o=u,u=l,l=o,t=i),i=0;t;)i=(l[--t]=l[t]+u[t]+i)/w|0,l[t]=w===l[t]?0:l[t]%w;return i&&(l=[i].concat(l),++s),M(e,l,s)},H.precision=H.sd=function(e){var t,n,o=this,r=o.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(Y&&N(13,"argument"+g,e),e!=!!e&&(e=null)),!r)return null;if(t=(n=r.length-1)*b+1,n=r[n]){for(;n%10==0;n/=10,t--);for(n=r[0];n>=10;n/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},H.round=function(e,t){var n=new f(this);return(null==e||U(e,0,E,15))&&D(n,~~e+this.e+1,null!=t&&U(t,0,8,15,v)?0|t:j),n},H.shift=function(e){var t=this;return U(e,-C,C,16,"argument")?t.times("1e"+c(e)):new f(t.c&&t.c[0]&&(e<-C||e>C)?t.s*(e<0?0:1/0):t)},H.squareRoot=H.sqrt=function(){var e,t,r,i,a,s=this,l=s.c,u=s.s,c=s.e,h=I+4,d=new f("0.5");if(1!==u||!l||!l[0])return new f(!u||u<0&&(!l||l[0])?NaN:l?s:1/0);if(0==(u=Math.sqrt(+s))||u==1/0?(((t=o(l)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=n((c+1)/2)-(c<0||c%2),r=new f(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new f(u+""),r.c[0])for((u=(c=r.e)+h)<3&&(u=0);;)if(a=r,r=d.times(a.plus(A(s,a,h,1))),o(a.c).slice(0,u)===(t=o(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(r,r.e+I+2,1),e=!r.times(r).eq(s));break}if(!i&&(D(a,a.e+I+2,0),a.times(a).eq(s))){r=a;break}h+=4,u+=4,i=1}return D(r,r.e+I+1,j,e)},H.times=H.mul=function(e,t){var o,r,i,a,s,l,u,c,h,d,p,g,v,y,m,C=this,S=C.c,E=(L=17,e=new f(e,t)).c;if(!(S&&E&&S[0]&&E[0]))return!C.s||!e.s||S&&!S[0]&&!E||E&&!E[0]&&!S?e.c=e.e=e.s=null:(e.s*=C.s,S&&E?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=n(C.e/b)+n(e.e/b),e.s*=C.s,(u=S.length)<(d=E.length)&&(v=S,S=E,E=v,i=u,u=d,d=i),i=u+d,v=[];i--;v.push(0));for(y=w,m=_,i=d;--i>=0;){for(o=0,p=E[i]%m,g=E[i]/m|0,a=i+(s=u);a>i;)o=((c=p*(c=S[--s]%m)+(l=g*c+(h=S[s]/m|0)*p)%m*m+v[a]+o)/y|0)+(l/m|0)+g*h,v[a--]=c%y;v[a]=o}return o?++r:v.splice(0,1),M(e,v,r)},H.toDigits=function(e,t){var n=new f(this);return e=null!=e&&U(e,1,E,18,"precision")?0|e:null,t=null!=t&&U(t,0,8,18,v)?0|t:j,e?D(n,e,t):n},H.toExponential=function(e,t){return T(this,null!=e&&U(e,0,E,19)?1+~~e:null,t,19)},H.toFixed=function(e,t){return T(this,null!=e&&U(e,0,E,20)?~~e+this.e+1:null,t,20)},H.toFormat=function(e,t){var n=T(this,null!=e&&U(e,0,E,21)?~~e+this.e+1:null,t,21);if(this.c){var o,r=n.split("."),i=+K.groupSize,a=+K.secondaryGroupSize,s=K.groupSeparator,l=r[0],u=r[1],c=this.s<0,f=c?l.slice(1):l,h=f.length;if(a&&(o=i,i=a,a=o,h-=o),i>0&&h>0){for(o=h%i||i,l=f.substr(0,o);o<h;o+=i)l+=s+f.substr(o,i);a>0&&(l+=s+f.slice(o)),c&&(l="-"+l)}n=u?l+K.decimalSeparator+((a=+K.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+K.fractionGroupSeparator):u):l}return n},H.toFraction=function(e){var t,n,r,i,a,s,l,u,c,h=Y,d=this,p=d.c,g=new f(x),v=n=new f(x),y=l=new f(x);if(null!=e&&(Y=!1,s=new f(e),Y=h,(h=s.isInt())&&!s.lt(x)||(Y&&N(22,"max denominator "+(h?"out of range":"not an integer"),e),e=!h&&s.c&&D(s,s.e+1,1).gte(x)?s:null)),!p)return d.toString();for(c=o(p),i=g.e=c.length-d.e-1,g.c[0]=S[(a=i%b)<0?b+a:a],e=!e||s.cmp(g)>0?i>0?g:v:s,a=V,V=1/0,s=new f(c),l.c[0]=0;u=A(s,g,0,1),1!=(r=n.plus(u.times(y))).cmp(e);)n=y,y=r,v=l.plus(u.times(r=v)),l=r,g=s.minus(u.times(r=g)),s=r;return r=A(e.minus(n),y,0,1),l=l.plus(r.times(v)),n=n.plus(r.times(y)),l.s=v.s=d.s,t=A(v,y,i*=2,j).minus(d).abs().cmp(A(l,n,i,j).minus(d).abs())<1?[v.toString(),y.toString()]:[l.toString(),n.toString()],V=a,t},H.toNumber=function(){return+this},H.toPower=H.pow=function(e,t){var n,o,r,i=p(e<0?-e:+e),a=this;if(null!=t&&(L=23,t=new f(t)),!U(e,-C,C,23,"exponent")&&(!isFinite(e)||i>C&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return n=Math.pow(+a,e),new f(t?n%t:n);for(t?e>1&&a.gt(x)&&a.isInt()&&t.gt(x)&&t.isInt()?a=a.mod(t):(r=t,t=null):X&&(n=d(X/b+2)),o=new f(x);;){if(i%2){if(!(o=o.times(a)).c)break;n?o.c.length>n&&(o.c.length=n):t&&(o=o.mod(t))}if(!(i=p(i/2)))break;a=a.times(a),n?a.c&&a.c.length>n&&(a.c.length=n):t&&(a=a.mod(t))}return t?o:(e<0&&(o=x.div(o)),r?o.mod(r):n?D(o,X,j):o)},H.toPrecision=function(e,t){return T(this,null!=e&&U(e,1,E,24,"precision")?0|e:null,t,24)},H.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=o(n.c),t=null!=e&&U(e,2,64,25,"base")?O(u(t,i),0|e,10,r):i<=F||i>=W?l(t,i):u(t,i),r<0&&n.c[0]&&(t="-"+t)),t},H.truncated=H.trunc=function(){return D(new f(this),this.e+1,1)},H.valueOf=H.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=o(t.c),e=n<=F||n>=W?l(e,n):u(e,n),t.s<0?"-"+e:e)},H.isBigNumber=!0,null!=t&&f.config(t),f}()).default=f.BigNumber=f,void 0!==t&&t.exports?t.exports=f:(e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=f)}(this)},{}],2:[function(e,t,n){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("string"==typeof t&&(t=g.parseFormat(t)),!p.validateFormat(t))return"ERROR: invalid format";var o=t.prefix||"",i=t.postfix||"",a=function(e,t,n){switch(t.output){case"currency":return t=f(t,d.currentCurrencyDefaultFormat()),function(e,t,n){var o=n.currentCurrency(),r=Object.assign({},m,t),i=void 0,a="",s=!!r.totalLength||!!r.forceAverage||r.average,l=t.currencyPosition||o.position,u=t.currencySymbol||o.symbol;r.spaceSeparated&&(a=" "),"infix"===l&&(i=a+u+a);var f=c({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(f=e._value<0&&"sign"===r.negative?"-"+a+u+f.slice(1):u+a+f),l&&"postfix"!==l||(f=f+(a=s?"":a)+u),f}(e,t,d);case"percent":return t=f(t,d.currentPercentageDefaultFormat()),function(e,t,n,o){var r=t.prefixSymbol,i=c({instance:o(100*e._value),providedFormat:t,state:n}),a=Object.assign({},m,t);return r?"%"+(a.spaceSeparated?" ":"")+i:i+(a.spaceSeparated?" ":"")+"%"}(e,t,d,n);case"byte":return t=f(t,d.currentByteDefaultFormat()),function(e,t,n,o){var i=t.base||"binary",a=y[i],s=r(e._value,a.suffixes,a.scale),l=s.value,u=s.suffix;return c({instance:o(l),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})+(n.currentAbbreviations().spaced?" ":"")+u}(e,t,d,n);case"time":return t=f(t,d.currentTimeDefaultFormat()),function(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(n<10?"0":"")+n+":"+(o<10?"0":"")+o}(e);case"ordinal":return t=f(t,d.currentOrdinalDefaultFormat()),function(e,t,n){var o=n.currentOrdinal(),r=Object.assign({},m,t),i=c({instance:e,providedFormat:t,state:n}),a=o(e._value);return i+(r.spaceSeparated?" ":"")+a}(e,t,d);case"number":default:return c({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return function(e,t){return e+t}(a=function(e,t){return t+e}(a,o),i)}function r(e,t,n){var o=t[0],r=Math.abs(e);if(r>=n){for(var i=1;i<t.length;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(r>=a&&r<s){o=t[i],e/=a;break}}o===t[0]&&(e/=Math.pow(n,t.length-1),o=t[t.length-1])}return{value:e,suffix:o}}function i(e){var t=e.value,n=e.characteristicPrecision,o=void 0===n?0:n,r=t.toExponential().split("e"),i=h(r,2),a=i[0],s=i[1],l=+a;return o?(1<o&&(l*=Math.pow(10,o-1),s=(s=+s-(o-1))>=0?"+"+s:s),{value:l,abbreviation:"e"+s}):{value:l,abbreviation:"e"+s}}function a(e){for(var t="",n=0;n<e;n++)t+="0";return t}function s(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),o=n.split("e"),r=h(o,2),i=r[0],s=r[1],l=i.split("."),u=h(l,2),c=u[0],f=u[1],d=void 0===f?"":f;if(+s>0)n=c+d+a(s-d.length);else{var p=".";p=+c<0?"-0"+p:"0"+p;var g=(a(-s-1)+Math.abs(c)+d).substr(0,t);g.length<t&&(g+=a(t-g.length)),n=p+g}return+s>0&&t>0&&(n+="."+a(t)),n}(e,t):(Math.round(+(e+"e+"+t))/Math.pow(10,t)).toFixed(t)}function l(e,t,n,o,r){if(-1===o)return e;var i=s(t,o),a=i.toString().split("."),l=h(a,2),u=l[0],c=l[1],f=void 0===c?"":c;if(f.match(/^0+$/)&&(n||r))return u;var d=f.match(/0+$/);return r&&d?u+"."+f.toString().slice(0,d.index):i.toString()}function u(e,t,n,o){var r=e,i=r.toString().split("."),a=h(i,2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?s.replace("0","")+"."+l:s.replace("0","");if(s.length<o)for(var u=o-s.length,c=0;c<u;c++)r="0"+r;return r.toString()}function c(e){var t=e.instance,n=e.providedFormat,o=e.state,r=void 0===o?d:o,a=e.decimalSeparator,s=e.defaults,c=void 0===s?r.currentDefaults():s,f=t._value;if(0===f&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(f))return f.toString();var h=Object.assign({},m,c,n),p=h.totalLength,g=p?0:h.characteristic,v=h.optionalCharacteristic,y=h.forceAverage,w=!!p||!!y||h.average,b=p?-1:w&&void 0===n.mantissa?0:h.mantissa,C=!p&&(void 0===n.optionalMantissa?-1===b:h.optionalMantissa),S=h.trimMantissa,_=h.thousandSeparated,E=h.spaceSeparated,O=h.negative,T=h.forceSign,R=h.exponential,k="";if(w){var M=function(e){var t=e.value,n=e.forceAverage,o=e.abbreviations,r=e.spaceSeparated,i=void 0!==r&&r,a=e.totalLength,s=void 0===a?0:a,l="",u=Math.abs(t),c=-1;if(u>=Math.pow(10,12)&&!n||"trillion"===n?(l=o.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=o.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=o.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=o.thousand,t/=Math.pow(10,3)),l&&(l=(i?" ":"")+l),s){var f=t.toString().split(".")[0];c=Math.max(s-f.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:f,forceAverage:y,abbreviations:r.currentAbbreviations(),spaceSeparated:E,totalLength:p});f=M.value,k+=M.abbreviation,p&&(b=M.mantissaPrecision)}if(R){var N=i({value:f,characteristicPrecision:g});f=N.value,k=N.abbreviation+k}var D=l(f.toString(),f,C,b,S);return D=function(e,t,n,o,r){var i=o.currentDelimiters(),a=i.thousands;r=r||i.decimal;var s=i.thousandsSize||3,l=e.toString(),u=l.split(".")[0],c=l.split(".")[1];return n&&(t<0&&(u=u.slice(1)),function(e,t){for(var n=[],o=0,r=e;r>0;r--)o===t&&(n.unshift(r),o=0),o++;return n}(u.length,s).forEach(function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)}),t<0&&(u="-"+u)),c?u+r+c:u}(D=u(D,0,v,g),f,_,r,a),(w||R)&&(D=function(e,t){return e+t}(D,k)),(T||f<0)&&(D=function(e,t,n){return 0===t?e:0==+e?e.replace("-",""):t>0?"+"+e:"sign"===n?e:"("+e.replace("-","")+")"}(D,f,O)),D}function f(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}var h=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=e("./globalState"),p=e("./validating"),g=e("./parsing"),v=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],y={general:{scale:1024,suffixes:v,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:v,marker:"d"}},m={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};t.exports=function(e){return{format:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return o.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e){var t=y.general;return r(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e){var t=y.binary;return r(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e){var t=y.decimal;return r(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:f}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";function o(e){u=e}function r(){return c[u]}var i=e("./en-US"),a=e("./validating"),s=e("./parsing"),l={},u=void 0,c={},f=null,h={};l.languages=function(){return Object.assign({},c)},l.currentLanguage=function(){return u},l.currentCurrency=function(){return r().currency},l.currentAbbreviations=function(){return r().abbreviations},l.currentDelimiters=function(){return r().delimiters},l.currentOrdinal=function(){return r().ordinal},l.currentDefaults=function(){return Object.assign({},r().defaults,h)},l.currentOrdinalDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().ordinalFormat)},l.currentByteDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().byteFormat)},l.currentPercentageDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().percentageFormat)},l.currentCurrencyDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().currencyFormat)},l.currentTimeDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().timeFormat)},l.setDefaults=function(e){e=s.parseFormat(e),a.validateFormat(e)&&(h=e)},l.getZeroFormat=function(){return f},l.setZeroFormat=function(e){return f="string"==typeof e?e:null},l.hasZeroFormat=function(){return null!==f},l.languageData=function(e){if(e){if(c[e])return c[e];throw new Error('Unknown tag "'+e+'"')}return r()},l.registerLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a.validateLanguage(e))throw new Error("Invalid language data");c[e.languageTag]=e,t&&o(e.languageTag)},l.setLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.languageTag;if(!c[e]){var n=e.split("-")[0],r=Object.keys(c).find(function(e){return e.split("-")[0]===n});return c[r]?void o(r):void o(t)}o(e)},l.registerLanguage(i),u=i.languageTag,t.exports=l},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";function o(t,n){t.forEach(function(t){var o=void 0;try{o=e("../languages/"+t)}catch(e){console.error('Unable to load "'+t+'". No matching language file found.')}o&&n.registerLanguage(o)})}t.exports=function(e){return{loadLanguagesInNode:function(t){return o(t,e)}}}},{}],6:[function(e,t,n){"use strict";function o(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.minus(i).toNumber(),e}var r=e("bignumber.js");t.exports=function(e){return{add:function(t,n){return function(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.add(i).toNumber(),e}(t,n,e)},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return function(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.times(i).toNumber(),e}(t,n,e)},divide:function(t,n){return function(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.dividedBy(i).toNumber(),e}(t,n,e)},set:function(t,n){return function(e,t,n){var o=t;return n.isNumbro(t)&&(o=t._value),e._value=o,e}(t,n,e)},difference:function(t,n){return function(e,t,n){var r=n(e._value);return o(r,t,n),Math.abs(r._value)}(t,n,e)}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function o(e){var t=e;return r.isNumbro(e)?t=e._value:"string"==typeof e?t=r.unformat(e):isNaN(e)&&(t=NaN),t}function r(e){return new d(o(e))}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=e("./globalState"),s=e("./validating"),l=e("./loading")(r),u=e("./unformatting"),c=e("./formatting")(r),f=e("./manipulating")(r),h=e("./parsing"),d=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._value=t}return i(e,[{key:"clone",value:function(){return r(this._value)}},{key:"format",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=h.parseFormat(e)),(e=c.formatOrDefault(e,a.currentCurrencyDefaultFormat())).output="currency",c.format(this,e)}},{key:"formatTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",c.format(this,e)}},{key:"binaryByteUnits",value:function(){return c.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return c.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return c.getByteUnit(this)}},{key:"difference",value:function(e){return f.difference(this,e)}},{key:"add",value:function(e){return f.add(this,e)}},{key:"subtract",value:function(e){return f.subtract(this,e)}},{key:"multiply",value:function(e){return f.multiply(this,e)}},{key:"divide",value:function(e){return f.divide(this,e)}},{key:"set",value:function(e){return f.set(this,o(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}]),e}();r.version="2.1.1",r.isNumbro=function(e){return e instanceof d},r.language=a.currentLanguage,r.registerLanguage=a.registerLanguage,r.setLanguage=a.setLanguage,r.languages=a.languages,r.languageData=a.languageData,r.zeroFormat=a.setZeroFormat,r.defaultFormat=a.currentDefaults,r.setDefaults=a.setDefaults,r.defaultCurrencyFormat=a.currentCurrencyDefaultFormat,r.validate=s.validate,r.loadLanguagesInNode=l.loadLanguagesInNode,r.unformat=u.unformat,t.exports=r},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";t.exports={parseFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}(e=function(e,t){var n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}(e=function(e,t){var n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}(e,t),t),t),function(e,t){var n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}(e,t),function(e,t){var n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}(e,t),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,t),function(e,t){-1!==e.indexOf("a")&&(t.average=!0)}(e,t),function(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}(e,t),function(e,t){var n=e.split(".")[1];if(n){var o=n.match(/0+/);o&&(t.mantissa=o[0].length)}}(e,t),function(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}(e,t),function(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}(e,t),function(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0)}(e,t),function(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}(e,t),function(e,t){e.match(/^\+/)&&(t.forceSign=!0)}(e,t),t)}}},{}],9:[function(e,t,n){"use strict";function o(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments[3],a=arguments[4],l=arguments[5],u=arguments[6];if(!isNaN(+e))return+e;var c="",f=e.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==e)return-1*r(f,t,n,i,a,l,u);for(var h=0;h<s.length;h++){var d=s[h];if((c=e.replace(d.key,""))!==e)return r(c,t,n,i,a,l,u)*d.factor}if((c=e.replace("%",""))!==e)return r(c,t,n,i,a,l,u)/100;var p=parseFloat(e);if(!isNaN(p)){var g=i(p);if(g&&"."!==g&&(c=e.replace(new RegExp(o(g)+"$"),""))!==e)return r(c,t,n,i,a,l,u);var v={};Object.keys(l).forEach(function(e){v[l[e]]=e});for(var y=Object.keys(v).sort().reverse(),m=y.length,w=0;w<m;w++){var b=y[w],C=v[b];if((c=e.replace(b,""))!==e){var S=void 0;switch(C){case"thousand":S=Math.pow(10,3);break;case"million":S=Math.pow(10,6);break;case"billion":S=Math.pow(10,9);break;case"trillion":S=Math.pow(10,12)}return r(c,t,n,i,a,l,u)*S}}}}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=e.replace(n,"");return(r=r.replace(new RegExp("([0-9])"+o(t.thousands)+"([0-9])","g"),"$1$2")).replace(t.decimal,".")}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6];if(""!==e)return isNaN(+e)?e===a?0:r(i(e,t,n),t,n,o,a,s,l):+e}var s=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];t.exports={unformat:function(t,n){var o=e("./globalState"),r=o.currentDelimiters(),i=o.currentCurrency().symbol,s=o.currentOrdinal(),l=o.getZeroFormat(),u=o.currentAbbreviations(),c=void 0;if("string"==typeof t)c=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var o=+n[0],r=+n[1],i=+n[2];return!isNaN(o)&&!isNaN(r)&&!isNaN(i)}(t,r)?function(e){var t=e.split(":"),n=+t[0],o=+t[1];return+t[2]+60*o+3600*n}(t):a(t,r,i,s,l,u,n);else{if("number"!=typeof t)return;c=t}if(void 0!==c)return c}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function o(e){return!!s.unformat(e)}function r(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object.keys(e).map(function(o){if(!t[o])return console.error(n+" Invalid key: "+o),!1;var i=e[o],s=t[o];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!r(i,u,"[Validate "+o+"]",!0))return!1}else if((void 0===i?"undefined":a(i))!==s.type)return console.error(n+" "+o+' type mismatched: "'+s.type+'" expected, "'+(void 0===i?"undefined":a(i))+'" provided'),!1;if(s.restrictions&&s.restrictions.length)for(var l=s.restrictions.length,c=0;c<l;c++){var f=s.restrictions[c],h=f.restriction,d=f.message;if(!h(i,e))return console.error(n+" "+o+" invalid value: "+d),!1}return s.restriction&&!s.restriction(i,e)?(console.error(n+" "+o+" invalid value: "+s.message),!1):s.validValues&&-1===s.validValues.indexOf(i)?(console.error(n+" "+o+" invalid value: must be among "+JSON.stringify(s.validValues)+', "'+i+'" provided'),!1):!(s.children&&!r(i,s.children,"[Validate "+o+"]"))});return o||i.push.apply(i,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(t).map(function(o){var r=t[o];if("string"==typeof r&&(r={type:r}),r.mandatory){var i=r.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[o])return console.error(n+' Missing mandatory key "'+o+'"'),!1}return!0}))),i.reduce(function(e,t){return e&&t},!0)}function i(e){return r(e,u,"[Validate format]")}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},s=e("./unformatting"),l=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,u={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return e>=0},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return e>=0},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return e>=0},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},c={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(l)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};t.exports={validate:function(e,t){var n=o(e),r=i(t);return n&&r},validateFormat:i,validateInput:o,validateLanguage:function(e){return r(e,c,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)}),window.numbro=n(420)},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);if(!isNaN(new Date("".concat(e,"T00:00")).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},function(e,t,n){"use strict";!function(e){function n(e){return e.split('"').length-1}var o={parse:function(e){var t,o,r,i,a,s,l,u=[],c=0;for((r=e.replace(/\r\n|\r/g,"\n").split("\n")).length>1&&""===r[r.length-1]&&r.pop(),t=0,o=r.length;t<o;t+=1){for(r[t]=r[t].split("\t"),i=0,a=r[t].length;i<a;i+=1)u[c]||(u[c]=[]),s&&0===i?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+r[t][0],s&&1&n(r[t][0])&&(s=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):i===a-1&&0===r[t][i].indexOf('"')&&1&n(r[t][i])?(u[c].push(r[t][i].substring(1).replace(/""/g,'"')),s=!0):(u[c].push(r[t][i].replace(/""/g,'"')),s=!1);s||(c+=1)}return u},stringify:function(e){var t,n,o,r,i,a="";for(t=0,n=e.length;t<n;t+=1){for(r=e[t].length,o=0;o<r;o+=1)o>0&&(a+="\t"),"string"==typeof(i=e[t][o])?i.indexOf("\n")>-1?a+='"'+i.replace(/"/g,'""')+'"':a+=i:a+=null===i||void 0===i?"":i;t!==n-1&&(a+="\n")}return a}};t.parse=o.parse,t.stringify=o.stringify}(window)},function(e,t,n){"use strict";t.__esModule=!0,t.mouseDown=i,t.mouseOver=a,t.handleMouseEvent=function(e,t){var n=t.coords,r=t.selection,i=t.controller;s.get(e.type)({coords:n,selection:r,controller:i,isShiftKey:e.shiftKey,isLeftClick:(0,o.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,o.isRightClick)(e)})};var o=n(18),r=n(8);function i(e){var t=e.isShiftKey,n=e.isLeftClick,o=e.isRightClick,i=e.coords,a=e.selection,s=e.controller,l=a.isSelected()?a.getSelectedRange().current():null,u=a.isSelectedByCorner(),c=a.isSelectedByRowHeader();if(t&&l)i.row>=0&&i.col>=0&&!s.cells?a.setRangeEnd(i):(u||c)&&i.row>=0&&i.col>=0&&!s.cells?a.setRangeEnd(new r.CellCoords(i.row,i.col)):u&&i.row<0&&!s.column?a.setRangeEnd(new r.CellCoords(l.to.row,i.col)):c&&i.col<0&&!s.row?a.setRangeEnd(new r.CellCoords(i.row,l.to.col)):(!u&&!c&&i.col<0||u&&i.col<0)&&!s.row?a.selectRows(l.from.row,i.row):(!u&&!c&&i.row<0||c&&i.row<0)&&!s.column&&a.selectColumns(l.from.col,i.col);else{var f=new r.CellCoords(i.row,i.col);f.row<0&&(f.row=0),f.col<0&&(f.col=0);var h=!a.inInSelection(f),d=n||o&&h;i.row<0&&i.col>=0&&!s.column?d&&a.selectColumns(i.col):i.col<0&&i.row>=0&&!s.row?d&&a.selectRows(i.row):i.col>=0&&i.row>=0&&!s.cells?d&&a.setRangeStart(i):i.col<0&&i.row<0&&a.setRangeStart(i)}}function a(e){var t=e.isLeftClick,n=e.coords,o=e.selection,i=e.controller;if(t){var a=o.isSelectedByRowHeader(),s=o.isSelectedByColumnHeader(),l=o.tableProps.countCols(),u=o.tableProps.countRows();s&&!i.column?o.setRangeEnd(new r.CellCoords(u-1,n.col)):a&&!i.row?o.setRangeEnd(new r.CellCoords(n.row,l-1)):i.cell||o.setRangeEnd(n)}}var s=new Map([["mousedown",i],["mouseover",a],["touchstart",i]])},function(e,t,n){"use strict";t.__esModule=!0,t.registerIdentity=function(e,t){s.set(e,t)},t.getTranslator=function(e){var t,n=e instanceof o.default?e:u(e);l.has(n)?t=l.get(n):(t=new a(n),l.set(n,t));return t},t.getIdentity=u,t.RecordTranslator=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(120)),r=n(2);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,r.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,r.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),e}();t.RecordTranslator=a;var s=new WeakMap,l=new WeakMap;function u(e){if(!s.has(e))throw Error("Record translator was not registered for this object identity");return s.get(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.registerAsRootInstance=function(e){o.set(e,!0)},t.hasValidParameter=function(e){return e===r},t.isRootInstance=function(e){return o.has(e)},t.rootInstanceSymbol=t.holder=void 0;var o=new WeakMap;t.holder=o;var r=Symbol("rootInstance");t.rootInstanceSymbol=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(14),r=n(2);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){}a.prototype={licenseKey:"trial",data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,selectionMode:"multiple",fillHandle:{autoInsertRow:!1},fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!0,autoWrapCol:!0,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",activeHeaderClassName:"ht__active_highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,a,s;for(t=0,n=this.countCols();t<n;t++)if(""!==(a=this.getDataAtCell(e,t))&&null!==a&&(0,o.isDefined)(a))return"object"===i(a)&&(s=this.getCellMeta(e,t),(0,r.isObjectEqual)(this.getSchema()[s.prop],a));return!0},isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(""!==(r=this.getDataAtCell(t,e))&&null!==r&&(0,o.isDefined)(r))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:void 0,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,multiColumnSorting:void 0,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,manualColumnFreeze:void 0,trimWhitespace:!0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,numericFormat:void 0,language:"en-US",selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:"DD/MM/YYYY",correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1,dragToScroll:!0,nestedRows:void 0};var s=a;t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.getTranslatedPhrase=function(e,t,n){var s=(0,r.getLanguageDictionary)(e);if(null===s)return null;var l=s[t];if((0,a.isUndefined)(l))return null;var u=function(e,t){var n=e;return(0,o.arrayEach)((0,i.getPhraseFormatters)(),function(o){n=o(e,t)}),n}(l,n);if(Array.isArray(u))return u[0];return u};var o=n(3),r=n(90),i=n(651),a=n(14)},function(e,t,n){"use strict";t.__esModule=!0,t.extendNotExistingKeys=function(e,t){return(0,r.objectEach)(t,function(t,n){(0,o.isUndefined)(e[n])&&(e[n]=t)}),e},t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=n,i=o;if(e>t){var a=[i,r];r=a[0],i=a[1]}return"".concat(r,"-").concat(i)},t.normalizeLanguageCode=u,t.applyLanguageSetting=function(e,t){var n=u(t);(0,s.hasLanguageDictionary)(n)?e.language=n:(e.language=s.DEFAULT_LANGUAGE_CODE,c(t))},t.warnUserAboutLanguageRegistration=c;var o=n(14),r=n(2),i=n(76),a=n(58),s=n(90);function l(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.']);return l=function(){return e},e}function u(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);return t?"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase()):e}function c(e){(0,o.isDefined)(e)&&(0,i.error)((0,a.toSingleLine)(l(),e))}},function(e,t,n){"use strict";t.__esModule=!0;var o=s(n(430));t.Highlight=o.default;var r=s(n(660));t.Selection=r.default;var i=n(423);t.handleMouseEvent=i.handleMouseEvent;var a=n(91);function s(e){return e&&e.__esModule?e:{default:e}}t.detectSelectionType=a.detectSelectionType,t.normalizeSelectionFactory=a.normalizeSelectionFactory},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.CUSTOM_SELECTION=t.HEADER_TYPE=t.FILL_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;var o=n(653),r=n(3);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){s(e,t,n[t])})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.ACTIVE_HEADER_TYPE="active-header";t.AREA_TYPE="area";var u="cell";t.CELL_TYPE=u;var c="fill";t.FILL_TYPE=c;t.HEADER_TYPE="header";t.CUSTOM_SELECTION="custom-selection";var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.layerLevel=0,this.cell=(0,o.createHighlight)(u,t),this.fill=(0,o.createHighlight)(c,t),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(e,[{key:"isEnabledFor",value:function(e){var t="current"===e?u:e,n=this.options.disableHighlight;return"string"==typeof n&&(n=[n]),!1===n||Array.isArray(n)&&!n.includes(t)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,o.createHighlight)("area",a({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return i(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,o.createHighlight)("header",a({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return i(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,o.createHighlight)("active-header",a({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return i(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return i(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,o.createHighlight)("custom-selection",a({},e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,r.arrayEach)(this.areas.values(),function(e){e.clear()}),(0,r.arrayEach)(this.headers.values(),function(e){e.clear()}),(0,r.arrayEach)(this.activeHeaders.values(),function(e){e.clear()})}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat(i(this.areas.values()),i(this.headers.values()),i(this.activeHeaders.values()),i(this.customSelections))[Symbol.iterator]()}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(2),r=n(9),i=n(14);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return s(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),s(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var o=this,i=new Map,a="number"==typeof n?{from:n,to:n}:n,s=a.from,l=a.to;return(0,r.rangeEach)(s,l,function(n){var r=o.generateSample(e,t,n);i.set(n,r)}),i}},{key:"generateSample",value:function(e,t,n){var a=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var s=new Map,l="row"===e?"col":"row",u=[];return(0,r.rangeEach)(t.from,t.to,function(t){var r,c="row"===e?a.dataFactory(n,t):a.dataFactory(t,n),f=c.value,h=c.bundleCountSeed,d=h>0;r=(0,o.isObject)(f)?Object.keys(f).length:Array.isArray(f)?f.length:(0,i.stringify)(f).length,d&&(r+=h),s.has(r)||s.set(r,{needed:a.getSampleCount(),strings:[]});var p=s.get(r);p.needed&&((!(u.indexOf(f)>-1)||a.allowDuplicates||d)&&(p.strings.push(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({value:f},l,t)),u.push(f),p.needed-=1))}),s}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.areValidSortStates=function(e){if(!1===Array.isArray(e)||!1===e.every(function(e){return(0,r.isObject)(e)}))return!1;var t=e.map(function(e){var t=e.column;return t});return new Set(t).size===t.length&&e.every(u)},t.getNextSortOrder=function(e){if(e===s)return;if(e===a)return s;return a},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat(l))},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;if(Array.from(n).indexOf(t.parentNode)-n.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&t>=0&&!1===(0,i.isRightClick)(n)},t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0;var o=n(14),r=n(2),i=n(18),a="asc";t.ASC_SORT_STATE=a;var s="desc";t.DESC_SORT_STATE=s;var l="colHeader";function u(e){if((0,o.isUndefined)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[a,s].includes(n)}t.HEADER_SPAN_CLASS=l},function(e,t,n){"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(c(e))return u(e);return u(o.COLUMN_DATA_TYPE)},t.getRootComparator=t.registerRootComparator=void 0;var o=n(676),r=n(677),i=n(678),a=function(e){return e&&e.__esModule?e:{default:e}}(n(46));var s=(0,a.default)("sorting.compareFunctionFactory"),l=s.register,u=s.getItem,c=s.hasItem,f=(0,a.default)("sorting.mainSortComparator"),h=f.register,d=f.getItem;t.getRootComparator=d,t.registerRootComparator=h,l(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),l(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),l(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(9);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=0,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=i}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=i}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.__esModule=!0,t.default=void 0;var r=0,i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=r}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=r}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,o){t?t.row===n&&t.col===o?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(129),n(602),n(603),n(604);var o=n(26),r=n(19),i=n(49),a=n(119),s=L(n(120)),l=L(n(663)),u=P(n(10)),c=L(n(22)),f=L(n(124)),h=P(n(3)),d=P(n(42)),p=P(n(122)),g=P(n(421)),v=P(n(47)),y=P(n(59)),m=P(n(14)),w=P(n(9)),b=P(n(2)),C=P(n(121)),S=P(n(48)),_=P(n(32)),E=P(n(1)),O=P(n(18)),T=P(n(664)),R=n(13),k=L(n(426)),M=n(425),N=n(427),D=P(n(11)),A=n(90);function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}function L(e){return e&&e.__esModule?e:{default:e}}function H(e,t){var n=new s.default(e,t||{},M.rootInstanceSymbol);return n.init(),n}(0,l.default)(H),H.Core=s.default,H.DefaultSettings=k.default,H.EventManager=u.default,H._getListenersCounter=u.getListenersCounter,H.buildDate="18/12/2018 14:43:44",H.packageName="handsontable",H.version="6.2.2";H.hooks=c.default.getSingleton(),H.__GhostTable=f.default;var x=[h,d,p,g,v,y,m,w,b,C,S,_],I=[E,O];H.helper={},H.dom={},h.arrayEach(x,function(e){h.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(H.helper[t]=e[t])})}),h.arrayEach(I,function(e){h.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(H.dom[t]=e[t])})}),H.cellTypes={},h.arrayEach((0,a.getRegisteredCellTypeNames)(),function(e){H.cellTypes[e]=(0,a.getCellType)(e)}),H.cellTypes.registerCellType=a.registerCellType,H.cellTypes.getCellType=a.getCellType,H.editors={},h.arrayEach((0,o.getRegisteredEditorNames)(),function(e){H.editors["".concat(S.toUpperCaseFirst(e),"Editor")]=(0,o.getEditor)(e)}),H.editors.registerEditor=o.registerEditor,H.editors.getEditor=o.getEditor,H.renderers={},h.arrayEach((0,r.getRegisteredRendererNames)(),function(e){var t=(0,r.getRenderer)(e);"base"===e&&(H.renderers.cellDecorator=t),H.renderers["".concat(S.toUpperCaseFirst(e),"Renderer")]=t}),H.renderers.registerRenderer=r.registerRenderer,H.renderers.getRenderer=r.getRenderer,H.validators={},h.arrayEach((0,i.getRegisteredValidatorNames)(),function(e){H.validators["".concat(S.toUpperCaseFirst(e),"Validator")]=(0,i.getValidator)(e)}),H.validators.registerValidator=i.registerValidator,H.validators.getValidator=i.getValidator,H.plugins={},h.arrayEach(Object.getOwnPropertyNames(T),function(e){var t=T[e];"Base"===e?H.plugins["".concat(e,"Plugin")]=t:H.plugins[e]=t}),H.plugins.registerPlugin=R.registerPlugin,H.languages={},H.languages.dictionaryKeys=D,H.languages.getLanguageDictionary=A.getLanguageDictionary,H.languages.getLanguagesDictionaries=A.getLanguagesDictionaries,H.languages.registerLanguageDictionary=A.registerLanguageDictionary,H.languages.getTranslatedPhrase=function(){return N.getTranslatedPhrase.apply(void 0,arguments)};var j=H;t.default=j},function(e,t,n){n(439),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(519),n(520),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(114),n(544),n(149),n(545),n(150),n(546),n(547),n(548),n(549),n(151),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),e.exports=n(21)},function(e,t,n){"use strict";var o=n(6),r=n(27),i=n(20),a=n(0),s=n(23),l=n(45).KEY,u=n(4),c=n(93),f=n(60),h=n(51),d=n(12),p=n(94),g=n(131),v=n(440),y=n(97),m=n(5),w=n(7),b=n(29),C=n(44),S=n(50),_=n(55),E=n(134),O=n(34),T=n(17),R=n(53),k=O.f,M=T.f,N=E.f,D=o.Symbol,A=o.JSON,P=A&&A.stringify,L=d("_hidden"),H=d("toPrimitive"),x={}.propertyIsEnumerable,I=c("symbol-registry"),j=c("symbols"),F=c("op-symbols"),W=Object.prototype,B="function"==typeof D,V=o.QObject,Y=!V||!V.prototype||!V.prototype.findChild,U=i&&u(function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(W,t);o&&delete W[t],M(e,t,n),o&&e!==W&&M(W,t,o)}:M,z=function(e){var t=j[e]=_(D.prototype);return t._k=e,t},G=B&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},X=function(e,t,n){return e===W&&X(F,t,n),m(e),t=C(t,!0),m(n),r(j,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=_(n,{enumerable:S(0,!1)})):(r(e,L)||M(e,L,S(1,{})),e[L][t]=!0),U(e,t,n)):M(e,t,n)},K=function(e,t){m(e);for(var n,o=v(t=b(t)),r=0,i=o.length;i>r;)X(e,n=o[r++],t[n]);return e},q=function(e){var t=x.call(this,e=C(e,!0));return!(this===W&&r(j,e)&&!r(F,e))&&(!(t||!r(this,e)||!r(j,e)||r(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=b(e),t=C(t,!0),e!==W||!r(j,t)||r(F,t)){var n=k(e,t);return!n||!r(j,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=N(b(e)),o=[],i=0;n.length>i;)r(j,t=n[i++])||t==L||t==l||o.push(t);return o},J=function(e){for(var t,n=e===W,o=N(n?F:b(e)),i=[],a=0;o.length>a;)!r(j,t=o[a++])||n&&!r(W,t)||i.push(j[t]);return i};B||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(F,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),U(this,e,S(1,n))};return i&&Y&&U(W,e,{configurable:!0,set:t}),z(e)}).prototype,"toString",function(){return this._k}),O.f=Z,T.f=X,n(56).f=E.f=$,n(71).f=q,n(80).f=J,i&&!n(52)&&s(W,"propertyIsEnumerable",q,!0),p.f=function(e){return z(d(e))}),a(a.G+a.W+a.F*!B,{Symbol:D});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)d(Q[ee++]);for(var te=R(d.store),ne=0;te.length>ne;)g(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return r(I,e+="")?I[e]:I[e]=D(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?_(e):K(_(e),t)},defineProperty:X,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:J}),A&&a(a.S+a.F*(!B||u(function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(w(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),o[1]=t,P.apply(A,o)}}),D.prototype[H]||n(28)(D.prototype,H,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){var o=n(53),r=n(80),i=n(71);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,s=n(e),l=i.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var o=n(0);o(o.S,"Object",{create:n(55)})},function(e,t,n){var o=n(0);o(o.S+o.F*!n(20),"Object",{defineProperty:n(17).f})},function(e,t,n){var o=n(0);o(o.S+o.F*!n(20),"Object",{defineProperties:n(133)})},function(e,t,n){var o=n(29),r=n(34).f;n(35)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(24),r=n(57);n(35)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(24),r=n(53);n(35)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){n(35)("getOwnPropertyNames",function(){return n(134).f})},function(e,t,n){var o=n(7),r=n(45).onFreeze;n(35)("freeze",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(7),r=n(45).onFreeze;n(35)("seal",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(7),r=n(45).onFreeze;n(35)("preventExtensions",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(7);n(35)("isFrozen",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(7);n(35)("isSealed",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(7);n(35)("isExtensible",function(e){return function(t){return!!o(t)&&(!e||e(t))}})},function(e,t,n){var o=n(0);o(o.S+o.F,"Object",{assign:n(135)})},function(e,t,n){var o=n(0);o(o.S,"Object",{is:n(136)})},function(e,t,n){var o=n(0);o(o.S,"Object",{setPrototypeOf:n(99).set})},function(e,t,n){"use strict";var o=n(72),r={};r[n(12)("toStringTag")]="z",r+""!="[object z]"&&n(23)(Object.prototype,"toString",function(){return"[object "+o(this)+"]"},!0)},function(e,t,n){var o=n(0);o(o.P,"Function",{bind:n(137)})},function(e,t,n){var o=n(17).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(20)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(7),r=n(57),i=n(12)("hasInstance"),a=Function.prototype;i in a||n(17).f(a,i,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=r(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var o=n(0),r=n(139);o(o.G+o.F*(parseInt!=r),{parseInt:r})},function(e,t,n){var o=n(0),r=n(140);o(o.G+o.F*(parseFloat!=r),{parseFloat:r})},function(e,t,n){"use strict";var o=n(6),r=n(27),i=n(39),a=n(101),s=n(44),l=n(4),u=n(56).f,c=n(34).f,f=n(17).f,h=n(81).trim,d=o.Number,p=d,g=d.prototype,v="Number"==i(n(55)(g)),y="trim"in String.prototype,m=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,o,r,i=(t=y?t.trim():h(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+t}for(var a,l=t.slice(2),u=0,c=l.length;u<c;u++)if((a=l.charCodeAt(u))<48||a>r)return NaN;return parseInt(l,o)}}return+t};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof d&&(v?l(function(){g.valueOf.call(n)}):"Number"!=i(n))?a(new p(m(t)),n,d):m(t)};for(var w,b=n(20)?u(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;b.length>C;C++)r(p,w=b[C])&&!r(d,w)&&f(d,w,c(p,w));d.prototype=g,g.constructor=d,n(23)(o,"Number",d)}},function(e,t,n){"use strict";var o=n(0),r=n(33),i=n(141),a=n(102),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*u[n],u[n]=o%1e7,o=l(o/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=l(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)};o(o.P+o.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,o,s,l=i(this,c),u=r(e),g="",v="0";if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*p(2,69,1))-69)<0?l*p(2,-t,1):l/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(p(10,o,1),0),o=t-1;o>=23;)h(1<<23),o-=23;h(1<<o),f(1,1),h(2),v=d()}else f(0,n),f(1<<-t,0),v=d()+a.call("0",u);return v=u>0?g+((s=v.length)<=u?"0."+a.call("0",u-s)+v:v.slice(0,s-u)+"."+v.slice(s-u)):g+v}})},function(e,t,n){"use strict";var o=n(0),r=n(4),i=n(141),a=1..toPrecision;o(o.P+o.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var o=n(0);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var o=n(0),r=n(6).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},function(e,t,n){var o=n(0);o(o.S,"Number",{isInteger:n(142)})},function(e,t,n){var o=n(0);o(o.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var o=n(0),r=n(142),i=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){var o=n(0);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var o=n(0);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var o=n(0),r=n(140);o(o.S+o.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(e,t,n){var o=n(0),r=n(139);o(o.S+o.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(e,t,n){var o=n(0),r=n(143),i=Math.sqrt,a=Math.acosh;o(o.S+o.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var o=n(0),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var o=n(0),r=Math.atanh;o(o.S+o.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var o=n(0),r=n(103);o(o.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var o=n(0);o(o.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var o=n(0),r=Math.exp;o(o.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},function(e,t,n){var o=n(0),r=n(104);o(o.S+o.F*(r!=Math.expm1),"Math",{expm1:r})},function(e,t,n){var o=n(0);o(o.S,"Math",{fround:n(483)})},function(e,t,n){var o=n(103),r=Math.pow,i=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),l=r(2,-126);e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),u=o(e);return r<l?u*function(e){return e+1/i-1/i}(r/l/a)*l*a:(n=(t=(1+a/i)*r)-(t-r))>s||n!=n?u*(1/0):u*n}},function(e,t,n){var o=n(0),r=Math.abs;o(o.S,"Math",{hypot:function(e,t){for(var n,o,i=0,a=0,s=arguments.length,l=0;a<s;)l<(n=r(arguments[a++]))?(i=i*(o=l/n)*o+1,l=n):i+=n>0?(o=n/l)*o:n;return l===1/0?1/0:l*Math.sqrt(i)}})},function(e,t,n){var o=n(0),r=Math.imul;o(o.S+o.F*n(4)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){var o=n(0);o(o.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var o=n(0);o(o.S,"Math",{log1p:n(143)})},function(e,t,n){var o=n(0);o(o.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var o=n(0);o(o.S,"Math",{sign:n(103)})},function(e,t,n){var o=n(0),r=n(104),i=Math.exp;o(o.S+o.F*n(4)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var o=n(0),r=n(104),i=Math.exp;o(o.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var o=n(0);o(o.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var o=n(0),r=n(54),i=String.fromCharCode,a=String.fromCodePoint;o(o.S+o.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var o=n(0),r=n(29),i=n(16);o(o.S,"String",{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<o&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";n(81)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var o=n(105)(!0);n(106)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(0),r=n(105)(!1);o(o.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o=n(0),r=n(16),i=n(107),a="".endsWith;o(o.P+o.F*n(109)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,o=r(t.length),s=void 0===n?o:Math.min(r(n),o),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var o=n(0),r=n(107);o(o.P+o.F*n(109)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(0);o(o.P,"String",{repeat:n(102)})},function(e,t,n){"use strict";var o=n(0),r=n(16),i=n(107),a="".startsWith;o(o.P+o.F*n(109)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return a?a.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";n(25)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){"use strict";n(25)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(25)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(25)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(25)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(25)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(25)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(25)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(25)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(25)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(25)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(25)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(25)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var o=n(0);o(o.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var o=n(0),r=n(24),i=n(44);o(o.P+o.F*n(4)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=r(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var o=n(0),r=n(518);o(o.P+o.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(e,t,n){"use strict";var o=n(4),r=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=o(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!o(function(){i.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),o=t<0?"-":t>9999?"+":"";return o+("00000"+Math.abs(t)).slice(o?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var o=Date.prototype,r=o.toString,i=o.getTime;new Date(NaN)+""!="Invalid Date"&&n(23)(o,"toString",function(){var e=i.call(this);return e==e?r.call(this):"Invalid Date"})},function(e,t,n){var o=n(12)("toPrimitive"),r=Date.prototype;o in r||n(28)(r,o,n(521))},function(e,t,n){"use strict";var o=n(5),r=n(44);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!=e)}},function(e,t,n){var o=n(0);o(o.S,"Array",{isArray:n(97)})},function(e,t,n){"use strict";var o=n(37),r=n(0),i=n(24),a=n(145),s=n(110),l=n(16),u=n(111),c=n(112);r(r.S+r.F*!n(82)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,f,h=i(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,y=0,m=c(h);if(v&&(g=o(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&s(m))for(n=new d(t=l(h.length));t>y;y++)u(n,y,v?g(h[y],y):h[y]);else for(f=m.call(h),n=new d;!(r=f.next()).done;y++)u(n,y,v?a(f,g,[r.value,y],!0):r.value);return n.length=y,n}})},function(e,t,n){"use strict";var o=n(0),r=n(111);o(o.S+o.F*n(4)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(0),r=n(29),i=[].join;o(o.P+o.F*(n(70)!=Object||!n(31)(i)),"Array",{join:function(e){return i.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var o=n(0),r=n(98),i=n(39),a=n(54),s=n(16),l=[].slice;o(o.P+o.F*n(4)(function(){r&&l.call(r)}),"Array",{slice:function(e,t){var n=s(this.length),o=i(this);if(t=void 0===t?n:t,"Array"==o)return l.call(this,e,t);for(var r=a(e,n),u=a(t,n),c=s(u-r),f=new Array(c),h=0;h<c;h++)f[h]="String"==o?this.charAt(r+h):this[r+h];return f}})},function(e,t,n){"use strict";var o=n(0),r=n(38),i=n(24),a=n(4),s=[].sort,l=[1,2,3];o(o.P+o.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n(31)(s)),"Array",{sort:function(e){return void 0===e?s.call(i(this)):s.call(i(this),r(e))}})},function(e,t,n){"use strict";var o=n(0),r=n(36)(0),i=n(31)([].forEach,!0);o(o.P+o.F*!i,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var o=n(530);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){var o=n(7),r=n(97),i=n(12)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),o(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var o=n(0),r=n(36)(1);o(o.P+o.F*!n(31)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(0),r=n(36)(2);o(o.P+o.F*!n(31)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(0),r=n(36)(3);o(o.P+o.F*!n(31)([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(0),r=n(36)(4);o(o.P+o.F*!n(31)([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(0),r=n(146);o(o.P+o.F*!n(31)([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var o=n(0),r=n(146);o(o.P+o.F*!n(31)([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var o=n(0),r=n(79)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;o(o.P+o.F*(a||!n(31)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(0),r=n(29),i=n(33),a=n(16),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;o(o.P+o.F*(l||!n(31)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=Math.min(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}})},function(e,t,n){var o=n(0);o(o.P,"Array",{copyWithin:n(147)}),n(62)("copyWithin")},function(e,t,n){var o=n(0);o(o.P,"Array",{fill:n(113)}),n(62)("fill")},function(e,t,n){"use strict";var o=n(0),r=n(36)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(62)("find")},function(e,t,n){"use strict";var o=n(0),r=n(36)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),o(o.P+o.F*a,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(62)(i)},function(e,t,n){n(63)("Array")},function(e,t,n){var o=n(6),r=n(101),i=n(17).f,a=n(56).f,s=n(108),l=n(83),u=o.RegExp,c=u,f=u.prototype,h=/a/g,d=/a/g,p=new u(h)!==h;if(n(20)&&(!p||n(4)(function(){return d[n(12)("match")]=!1,u(h)!=h||u(d)==d||"/a/i"!=u(h,"i")}))){u=function(e,t){var n=this instanceof u,o=s(e),i=void 0===t;return!n&&o&&e.constructor===u&&i?e:r(p?new c(o&&!i?e.source:e,t):c((o=e instanceof u)?e.source:e,o&&i?l.call(e):t),n?this:f,u)};for(var g=function(e){e in u||i(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},v=a(c),y=0;v.length>y;)g(v[y++]);f.constructor=u,u.prototype=f,n(23)(o,"RegExp",u)}n(63)("RegExp")},function(e,t,n){"use strict";n(150);var o=n(5),r=n(83),i=n(20),a=/./.toString,s=function(e){n(23)(RegExp.prototype,"toString",e,!0)};n(4)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?r.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){"use strict";var o=n(5),r=n(16),i=n(116),a=n(84);n(85)("match",1,function(e,t,n,s){return[function(n){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=o(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;for(var f,h=[],d=0;null!==(f=a(l,u));){var p=String(f[0]);h[d]=p,""===p&&(l.lastIndex=i(u,r(l.lastIndex),c)),d++}return 0===d?null:h}]})},function(e,t,n){"use strict";var o=n(5),r=n(24),i=n(16),a=n(33),s=n(116),l=n(84),u=Math.max,c=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n(85)("replace",2,function(e,t,n,g){return[function(o,r){var i=e(this),a=void 0==o?void 0:o[t];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(e,t){var r=g(n,e,this,t);if(r.done)return r.value;var f=o(e),h=String(this),d="function"==typeof t;d||(t=String(t));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}for(var w=[];;){var b=l(f,h);if(null===b)break;if(w.push(b),!y)break;""===String(b[0])&&(f.lastIndex=s(h,i(f.lastIndex),m))}for(var C="",S=0,_=0;_<w.length;_++){b=w[_];for(var E=String(b[0]),O=u(c(a(b.index),h.length),0),T=[],R=1;R<b.length;R++)T.push(p(b[R]));var k=b.groups;if(d){var M=[E].concat(T,O,h);void 0!==k&&M.push(k);var N=String(t.apply(void 0,M))}else N=v(E,h,O,T,k,t);O>=S&&(C+=h.slice(S,O)+N,S=O+E.length)}return C+h.slice(S)}];function v(e,t,o,i,a,s){var l=o+e.length,u=i.length,c=d;return void 0!==a&&(a=r(a),c=h),n.call(s,c,function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return r;if(c>u){var h=f(c/10);return 0===h?r:h<=u?void 0===i[h-1]?r.charAt(1):i[h-1]+r.charAt(1):r}s=i[c-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var o=n(5),r=n(136),i=n(84);n(85)("search",1,function(e,t,n,a){return[function(n){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=o(e),l=String(this),u=s.lastIndex;r(u,0)||(s.lastIndex=0);var c=i(s,l);return r(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]})},function(e,t,n){"use strict";var o=n(108),r=n(5),i=n(73),a=n(116),s=n(16),l=n(84),u=n(115),c=Math.min,f=[].push,h=!!function(){try{return new RegExp("x","y")}catch(e){}}();n(85)("split",2,function(e,t,n,d){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!o(e))return n.call(r,e,t);for(var i,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(i=u.call(p,r))&&!((a=p.lastIndex)>h&&(l.push(r.slice(h,i.index)),i.length>1&&i.index<r.length&&f.apply(l,i.slice(1)),s=i[0].length,h=a,l.length>=d));)p.lastIndex===i.index&&p.lastIndex++;return h===r.length?!s&&p.test("")||l.push(""):l.push(r.slice(h)),l.length>d?l.slice(0,d):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,o){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,o):p.call(String(r),n,o)},function(e,t){var o=d(p,e,this,t,p!==n);if(o.done)return o.value;var u=r(e),f=String(this),g=i(u,RegExp),v=u.unicode,y=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),m=new g(h?u:"^(?:"+u.source+")",y),w=void 0===t?4294967295:t>>>0;if(0===w)return[];if(0===f.length)return null===l(m,f)?[f]:[];for(var b=0,C=0,S=[];C<f.length;){m.lastIndex=h?C:0;var _,E=l(m,h?f:f.slice(C));if(null===E||(_=c(s(m.lastIndex+(h?0:C)),f.length))===b)C=a(f,C,v);else{if(S.push(f.slice(b,C)),S.length===w)return S;for(var O=1;O<=E.length-1;O++)if(S.push(E[O]),S.length===w)return S;C=b=_}}return S.push(f.slice(b)),S}]})},function(e,t,n){var o=n(6),r=n(117).set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,s=o.Promise,l="process"==n(39)(a);e.exports=function(){var e,t,n,u=function(){var o,r;for(l&&(o=a.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(l)n=function(){a.nextTick(u)};else if(!i||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(o,u)};else{var f=!0,h=document.createTextNode("");new i(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){"use strict";var o=n(154),r=n(66);e.exports=n(88)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(r(this,"Map"),0===e?0:e,t)}},o,!0)},function(e,t,n){"use strict";var o=n(154),r=n(66);e.exports=n(88)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"Set"),e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o,r=n(36)(0),i=n(23),a=n(45),s=n(135),l=n(155),u=n(7),c=n(4),f=n(66),h=a.getWeak,d=Object.isExtensible,p=l.ufstore,g={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(u(e)){var t=h(e);return!0===t?p(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(f(this,"WeakMap"),e,t)}},m=e.exports=n(88)("WeakMap",v,y,l,!0,!0);c(function(){return 7!=(new m).set((Object.freeze||Object)(g),7).get(g)})&&(s((o=l.getConstructor(v,"WeakMap")).prototype,y),a.NEED=!0,r(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];i(t,e,function(t,r){if(u(t)&&!d(t)){this._f||(this._f=new o);var i=this._f[e](t,r);return"set"==e?this:i}return n.call(this,t,r)})}))},function(e,t,n){"use strict";var o=n(155),r=n(66);n(88)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"WeakSet"),e,!0)}},o,!1,!0)},function(e,t,n){"use strict";var o=n(0),r=n(89),i=n(118),a=n(5),s=n(54),l=n(16),u=n(7),c=n(6).ArrayBuffer,f=n(73),h=i.ArrayBuffer,d=i.DataView,p=r.ABV&&c.isView,g=h.prototype.slice,v=r.VIEW;o(o.G+o.W+o.F*(c!==h),{ArrayBuffer:h}),o(o.S+o.F*!r.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||u(e)&&v in e}}),o(o.P+o.U+o.F*n(4)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(a(this),e);for(var n=a(this).byteLength,o=s(e,n),r=s(void 0===t?n:t,n),i=new(f(this,h))(l(r-o)),u=new d(this),c=new d(i),p=0;o<r;)c.setUint8(p++,u.getUint8(o++));return i}}),n(63)("ArrayBuffer")},function(e,t,n){var o=n(0);o(o.G+o.W+o.F*!n(89).ABV,{DataView:n(118).DataView})},function(e,t,n){n(41)("Int8",1,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Uint8",1,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Uint8",1,function(e){return function(t,n,o){return e(this,t,n,o)}},!0)},function(e,t,n){n(41)("Int16",2,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Uint16",2,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Int32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Uint32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Float32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(41)("Float64",8,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){var o=n(0),r=n(38),i=n(5),a=(n(6).Reflect||{}).apply,s=Function.apply;o(o.S+o.F*!n(4)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var o=r(e),l=i(n);return a?a(o,t,l):s.call(o,t,l)}})},function(e,t,n){var o=n(0),r=n(55),i=n(38),a=n(5),s=n(7),l=n(4),u=n(137),c=(n(6).Reflect||{}).construct,f=l(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),h=!l(function(){c(function(){})});o(o.S+o.F*(f||h),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!f)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(u.apply(e,o))}var l=n.prototype,d=r(s(l)?l:Object.prototype),p=Function.apply.call(e,d,t);return s(p)?p:d}})},function(e,t,n){var o=n(17),r=n(0),i=n(5),a=n(44);r(r.S+r.F*n(4)(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return o.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var o=n(0),r=n(34).f,i=n(5);o(o.S,"Reflect",{deleteProperty:function(e,t){var n=r(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(0),r=n(5),i=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(144)(i,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),o(o.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var o=n(34),r=n(57),i=n(27),a=n(0),s=n(7),l=n(5);a(a.S,"Reflect",{get:function e(t,n){var a,u,c=arguments.length<3?t:arguments[2];return l(t)===c?t[n]:(a=o.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(u=r(t))?e(u,n,c):void 0}})},function(e,t,n){var o=n(34),r=n(0),i=n(5);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return o.f(i(e),t)}})},function(e,t,n){var o=n(0),r=n(57),i=n(5);o(o.S,"Reflect",{getPrototypeOf:function(e){return r(i(e))}})},function(e,t,n){var o=n(0);o(o.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var o=n(0),r=n(5),i=Object.isExtensible;o(o.S,"Reflect",{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){var o=n(0);o(o.S,"Reflect",{ownKeys:n(157)})},function(e,t,n){var o=n(0),r=n(5),i=Object.preventExtensions;o(o.S,"Reflect",{preventExtensions:function(e){r(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var o=n(17),r=n(34),i=n(57),a=n(27),s=n(0),l=n(50),u=n(5),c=n(7);s(s.S,"Reflect",{set:function e(t,n,s){var f,h,d=arguments.length<4?t:arguments[3],p=r.f(u(t),n);if(!p){if(c(h=i(t)))return e(h,n,s,d);p=l(0)}if(a(p,"value")){if(!1===p.writable||!c(d))return!1;if(f=r.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,o.f(d,n,f)}else o.f(d,n,l(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},function(e,t,n){var o=n(0),r=n(99);r&&o(o.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(582),e.exports=n(21).Array.includes},function(e,t,n){"use strict";var o=n(0),r=n(79)(!0);o(o.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(62)("includes")},function(e,t,n){n(584),e.exports=n(21).String.padStart},function(e,t,n){"use strict";var o=n(0),r=n(158),i=n(87);o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(586),e.exports=n(21).String.padEnd},function(e,t,n){"use strict";var o=n(0),r=n(158),i=n(87);o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(588),e.exports=n(94).f("asyncIterator")},function(e,t,n){n(131)("asyncIterator")},function(e,t,n){n(590),e.exports=n(21).Object.getOwnPropertyDescriptors},function(e,t,n){var o=n(0),r=n(157),i=n(29),a=n(34),s=n(111);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=i(e),l=a.f,u=r(o),c={},f=0;u.length>f;)void 0!==(n=l(o,t=u[f++]))&&s(c,t,n);return c}})},function(e,t,n){n(592),e.exports=n(21).Object.values},function(e,t,n){var o=n(0),r=n(159)(!1);o(o.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){n(594),e.exports=n(21).Object.entries},function(e,t,n){var o=n(0),r=n(159)(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){"use strict";n(151),n(596),e.exports=n(21).Promise.finally},function(e,t,n){"use strict";var o=n(0),r=n(21),i=n(6),a=n(73),s=n(153);o(o.P+o.R,"Promise",{finally:function(e){var t=a(this,r.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){n(598),n(599),n(600),e.exports=n(21)},function(e,t,n){var o=n(6),r=n(0),i=n(87),a=[].slice,s=/MSIE .\./.test(i),l=function(e){return function(t,n){var o=arguments.length>2,r=!!o&&a.call(arguments,2);return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};r(r.G+r.B+r.F*s,{setTimeout:l(o.setTimeout),setInterval:l(o.setInterval)})},function(e,t,n){var o=n(0),r=n(117);o(o.G+o.B,{setImmediate:r.set,clearImmediate:r.clear})},function(e,t,n){for(var o=n(114),r=n(53),i=n(23),a=n(6),s=n(28),l=n(61),u=n(12),c=u("iterator"),f=u("toStringTag"),h=l.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),g=0;g<p.length;g++){var v,y=p[g],m=d[y],w=a[y],b=w&&w.prototype;if(b&&(b[c]||s(b,c,h),b[f]||s(b,f,y),l[y]=h,m))for(v in o)b[v]||i(b,v,o[v],!0)}},function(e,t){!function(t){"use strict";var n,o=Object.prototype,r=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=b;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(D([])));m&&m!==o&&r.call(m,a)&&(v=m);var w=E.prototype=S.prototype=Object.create(v);_.prototype=w.constructor=E,E.constructor=_,E[l]=_.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(w),e},c.awrap=function(e){return{__await:e}},O(T.prototype),T.prototype[s]=function(){return this},c.AsyncIterator=T,c.async=function(e,t,n,o){var r=new T(b(e,t,n,o));return c.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},O(w),w[l]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},c.values=D,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,r){return s.type="throw",s.arg=e,t.next=o,r&&(t.method="next",t.arg=n),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:D(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),g}}}function b(e,t,n,o){var r=t&&t.prototype instanceof S?t:S,i=Object.create(r.prototype),a=new N(o||[]);return i._invoke=function(e,t,n){var o=f;return function(r,i){if(o===d)throw new Error("Generator is already running");if(o===p){if("throw"===r)throw i;return A()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=R(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=C(e,t,n);if("normal"===l.type){if(o=n.done?p:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function C(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function S(){}function _(){}function E(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function T(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,a){var s=C(e[n],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){l.value=e,i(l)},a)}a(s.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function R(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,R(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=C(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(r.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=a(this,s(t).call(this,e))).clone=n.makeClone(r.default.CLONE_DEBUG),n.clone.wtTable.holder.style.opacity=.4,n.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",(0,o.addClass)(n.clone.wtTable.holder.parentNode,"wtDebugVisible"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),t}();r.default.registerOverlay(r.default.CLONE_DEBUG,u);var c=u;t.default=c},function(e,t,n){var o={"./af":167,"./af.js":167,"./ar":168,"./ar-dz":169,"./ar-dz.js":169,"./ar-kw":170,"./ar-kw.js":170,"./ar-ly":171,"./ar-ly.js":171,"./ar-ma":172,"./ar-ma.js":172,"./ar-sa":173,"./ar-sa.js":173,"./ar-tn":174,"./ar-tn.js":174,"./ar.js":168,"./az":175,"./az.js":175,"./be":176,"./be.js":176,"./bg":177,"./bg.js":177,"./bm":178,"./bm.js":178,"./bn":179,"./bn.js":179,"./bo":180,"./bo.js":180,"./br":181,"./br.js":181,"./bs":182,"./bs.js":182,"./ca":183,"./ca.js":183,"./cs":184,"./cs.js":184,"./cv":185,"./cv.js":185,"./cy":186,"./cy.js":186,"./da":187,"./da.js":187,"./de":188,"./de-at":189,"./de-at.js":189,"./de-ch":190,"./de-ch.js":190,"./de.js":188,"./dv":191,"./dv.js":191,"./el":192,"./el.js":192,"./en-au":193,"./en-au.js":193,"./en-ca":194,"./en-ca.js":194,"./en-gb":195,"./en-gb.js":195,"./en-ie":196,"./en-ie.js":196,"./en-nz":197,"./en-nz.js":197,"./eo":198,"./eo.js":198,"./es":199,"./es-do":200,"./es-do.js":200,"./es-us":201,"./es-us.js":201,"./es.js":199,"./et":202,"./et.js":202,"./eu":203,"./eu.js":203,"./fa":204,"./fa.js":204,"./fi":205,"./fi.js":205,"./fo":206,"./fo.js":206,"./fr":207,"./fr-ca":208,"./fr-ca.js":208,"./fr-ch":209,"./fr-ch.js":209,"./fr.js":207,"./fy":210,"./fy.js":210,"./gd":211,"./gd.js":211,"./gl":212,"./gl.js":212,"./gom-latn":213,"./gom-latn.js":213,"./gu":214,"./gu.js":214,"./he":215,"./he.js":215,"./hi":216,"./hi.js":216,"./hr":217,"./hr.js":217,"./hu":218,"./hu.js":218,"./hy-am":219,"./hy-am.js":219,"./id":220,"./id.js":220,"./is":221,"./is.js":221,"./it":222,"./it.js":222,"./ja":223,"./ja.js":223,"./jv":224,"./jv.js":224,"./ka":225,"./ka.js":225,"./kk":226,"./kk.js":226,"./km":227,"./km.js":227,"./kn":228,"./kn.js":228,"./ko":229,"./ko.js":229,"./ky":230,"./ky.js":230,"./lb":231,"./lb.js":231,"./lo":232,"./lo.js":232,"./lt":233,"./lt.js":233,"./lv":234,"./lv.js":234,"./me":235,"./me.js":235,"./mi":236,"./mi.js":236,"./mk":237,"./mk.js":237,"./ml":238,"./ml.js":238,"./mr":239,"./mr.js":239,"./ms":240,"./ms-my":241,"./ms-my.js":241,"./ms.js":240,"./mt":242,"./mt.js":242,"./my":243,"./my.js":243,"./nb":244,"./nb.js":244,"./ne":245,"./ne.js":245,"./nl":246,"./nl-be":247,"./nl-be.js":247,"./nl.js":246,"./nn":248,"./nn.js":248,"./pa-in":249,"./pa-in.js":249,"./pl":250,"./pl.js":250,"./pt":251,"./pt-br":252,"./pt-br.js":252,"./pt.js":251,"./ro":253,"./ro.js":253,"./ru":254,"./ru.js":254,"./sd":255,"./sd.js":255,"./se":256,"./se.js":256,"./si":257,"./si.js":257,"./sk":258,"./sk.js":258,"./sl":259,"./sl.js":259,"./sq":260,"./sq.js":260,"./sr":261,"./sr-cyrl":262,"./sr-cyrl.js":262,"./sr.js":261,"./ss":263,"./ss.js":263,"./sv":264,"./sv.js":264,"./sw":265,"./sw.js":265,"./ta":266,"./ta.js":266,"./te":267,"./te.js":267,"./tet":268,"./tet.js":268,"./th":269,"./th.js":269,"./tl-ph":270,"./tl-ph.js":270,"./tlh":271,"./tlh.js":271,"./tr":272,"./tr.js":272,"./tzl":273,"./tzl.js":273,"./tzm":274,"./tzm-latn":275,"./tzm-latn.js":275,"./tzm.js":274,"./uk":276,"./uk.js":276,"./ur":277,"./ur.js":277,"./uz":278,"./uz-latn":279,"./uz-latn.js":279,"./uz.js":278,"./vi":280,"./vi.js":280,"./x-pseudo":281,"./x-pseudo.js":281,"./yo":282,"./yo.js":282,"./zh-cn":283,"./zh-cn.js":283,"./zh-hk":284,"./zh-hk.js":284,"./zh-tw":285,"./zh-tw.js":285};function r(e){return n(i(e))}function i(e){var t=o[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=606},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,l(t).call(this,e))).clone=n.makeClone(r.default.CLONE_LEFT),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,r.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),(0,o.resetCssTransform)(e);else{var r,i,a=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(a.left),l=Math.ceil(a.right);i=""===(i=this.wot.wtTable.hider.style.top)?0:i,t=r=s<0&&l-e.offsetWidth>0?-s:0,r+="px",(0,o.setOverlayPosition)(e,r,i)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=!1;return this.mainTableScrollableElement===window&&window.scrollX!==e?(window.scrollTo(e,(0,o.getWindowScrollTop)()),t=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,t=!0),t}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.defaultColumnWidth,o=e,r=0;o<t;)r+=this.wot.wtTable.getStretchedColumnWidth(o)||n,o+=1;return r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientHeight===e.offsetHeight?0:(0,o.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===r){var i=this.wot.wtViewport.getWorkspaceHeight()-t;i=Math.min(i,(0,o.innerHeight)(this.wot.wtTable.wtRootElement)),n.height="".concat(i,"px")}else n.height="";this.clone.wtTable.holder.style.height=n.height;var a=(0,o.outerWidth)(this.clone.wtTable.TABLE);n.width="".concat(0===a?a:a+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,o.getScrollbarWidth)();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=0;return t&&r.offsetWidth!==r.clientWidth&&(i=(0,o.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wot.getSetting("preventOverflow")||this.trimmingContainer!==window||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return(0,o.getScrollLeft)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),r=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,o.removeClass)(t,"emptyRows"):(0,o.addClass)(t,"emptyRows"),r&&!n.length)(0,o.addClass)(t,"innerBorderLeft");else if(!r&&n.length){var i=(0,o.hasClass)(t,"innerBorderLeft");e?(0,o.addClass)(t,"innerBorderLeft"):(0,o.removeClass)(t,"innerBorderLeft"),(!i&&e||i&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),t}();r.default.registerOverlay(r.default.CLONE_LEFT,c);var f=c;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function a(e){return(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})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,u(t).call(this,e))).clone=n.makeClone(i.default.CLONE_TOP),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,i.default),function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),(0,o.resetCssTransform)(e);else{var r,i,a=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(a.top),l=Math.ceil(a.bottom);r=""===(r=this.wot.wtTable.hider.style.left)?0:r,t=i=s<0&&l-e.offsetHeight>0?-s:0,i+="px",(0,o.setOverlayPosition)(e,r,i)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=!1;return this.mainTableScrollableElement===window&&window.scrollY!==e?(window.scrollTo((0,o.getWindowScrollLeft)(),e),t=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,t=!0),t}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.settings.defaultRowHeight,o=e,r=0;o<t;){var i=this.wot.wtTable.getRowHeight(o);r+=void 0===i?n:i,o+=1}return r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientWidth===e.offsetWidth?0:(0,o.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===r){var i=this.wot.wtViewport.getWorkspaceWidth()-t;i=Math.min(i,(0,o.innerWidth)(this.wot.wtTable.wtRootElement)),n.width="".concat(i,"px")}else n.width="";this.clone.wtTable.holder.style.width=n.width;var a=(0,o.outerHeight)(this.clone.wtTable.TABLE);n.height="".concat(0===a?a:a+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,o.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=(0,o.getScrollbarWidth)()),t){var a=this.wot.getSetting("fixedRowsBottom"),s=this.wot.getSetting("totalRows");n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(s-a,s),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);return n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,o.getScrollTop)(this.mainTableScrollableElement)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot),n=e.getCorners();t.disappear(),t.appear(n)}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this,t=this.wot.selections;this.redrawSelectionBorders(t.getCell()),(0,r.arrayEach)(t.getAreas(),function(t){e.redrawSelectionBorders(t)}),this.redrawSelectionBorders(t.getFill()),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,o.removeClass)(t,"emptyColumns"):(0,o.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=(0,o.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,o.addClass)(t,"innerBorderTop"):(0,o.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var r=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(r)for(var i=0;i<r.length;i++)r[i].style["border-left-width"]=0}}}]),t}();i.default.registerOverlay(i.default.CLONE_TOP,f);var h=f;t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,l(t).call(this,e))).clone=n.makeClone(r.default.CLONE_TOP_LEFT_CORNER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,r.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,o.outerHeight)(this.clone.wtTable.TABLE),n=(0,o.outerWidth)(this.clone.wtTable.TABLE),r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var i=this.wot.wtTable.hider.getBoundingClientRect(),a=Math.ceil(i.top),s=Math.ceil(i.left),l=Math.ceil(i.bottom),u=Math.ceil(i.right),c="0",f="0";r&&"vertical"!==r||s<0&&u-e.offsetWidth>0&&(c="".concat(-s,"px")),r&&"horizontal"!==r||a<0&&l-e.offsetHeight>0&&(f="".concat(-a,"px")),(0,o.setOverlayPosition)(e,c,f)}else(0,o.resetCssTransform)(e);e.style.height="".concat(0===t?t:t+4,"px"),e.style.width="".concat(0===n?n:n+4,"px")}}}]),t}();r.default.registerOverlay(r.default.CLONE_TOP_LEFT_CORNER,c);var f=c;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,l(t).call(this,e))).clone=n.makeClone(r.default.CLONE_BOTTOM),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,r.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"repositionOverlay",value:function(){var e=(0,o.getScrollbarWidth)(),t=this.clone.wtTable.holder.parentNode;this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight&&(e=0),t.style.top="",t.style.bottom="".concat(e,"px")}},{key:"shouldBeRendered",value:function(){return!!this.wot.getSetting("fixedRowsBottom")}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0;if(e.style.top="",this.wot.wtOverlays.leftOverlay.trimmingContainer===window){var n,r,i=this.wot.wtTable.hider.getBoundingClientRect(),a=Math.ceil(i.bottom),s=document.body.offsetHeight;n=""===(n=this.wot.wtTable.hider.style.left)?0:n,t=r=a>s?a-s:0,r+="px",e.style.top="",e.style.left=n,e.style.bottom=r}else t=this.getScrollPosition(),(0,o.resetCssTransform)(e),this.repositionOverlay();this.adjustHeaderBordersPosition(t)}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo((0,o.getWindowScrollLeft)(),e):this.mainTableScrollableElement.scrollTop=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=e,o=0,r=this.wot.wtSettings.settings.defaultRowHeight;n<t;){var i=this.wot.wtTable.getRowHeight(n);o+=void 0===i?r:i,n+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientWidth===e.offsetWidth?0:(0,o.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode.style;this.trimmingContainer===window?n.width="":n.width="".concat(this.wot.wtViewport.getWorkspaceWidth()-t,"px"),this.clone.wtTable.holder.style.width=n.width;var r=(0,o.outerHeight)(this.clone.wtTable.TABLE);n.height="".concat(r,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=(0,o.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=0;t&&r.offsetHeight!==r.clientHeight&&(i=(0,o.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,o.getScrollTop)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){if(0===this.wot.getSetting("fixedRowsBottom")&&this.wot.getSetting("columnHeaders").length>0){var t=this.wot.wtTable.holder.parentNode,n=(0,o.hasClass)(t,"innerBorderTop");e?(0,o.addClass)(t,"innerBorderTop"):(0,o.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var r=this.clone.wtTable.THEAD.querySelector("th:nth-of-type(2)");r&&(r.style["border-left-width"]=0)}}}]),t}();r.default.registerOverlay(r.default.CLONE_BOTTOM,c);var f=c;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(43));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,l(t).call(this,e))).clone=n.makeClone(r.default.CLONE_BOTTOM_LEFT_CORNER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,r.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsBottom")||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"repositionOverlay",value:function(){var e=(0,o.getScrollbarWidth)(),t=this.clone.wtTable.holder.parentNode;this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight&&(e=0),t.style.top="",t.style.bottom="".concat(e,"px")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,o.outerHeight)(this.clone.wtTable.TABLE),n=(0,o.outerWidth)(this.clone.wtTable.TABLE);if(e.style.top="",this.trimmingContainer===window){var r,i,a=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(a.bottom),l=Math.ceil(a.left),u=document.body.offsetHeight;r=l<0?-l:0,i=s>u?s-u:0,i+="px",r+="px",e.style.top="",e.style.left=r,e.style.bottom=i}else(0,o.resetCssTransform)(e),this.repositionOverlay();e.style.height="".concat(t,"px"),e.style.width="".concat(n,"px")}}}]),t}();r.default.registerOverlay(r.default.CLONE_BOTTOM_LEFT_CORNER,c);var f=c;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=s(n(293)),i=s(n(75)),a=s(n(162));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new r.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=new a.default(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=e.wtTable.getCell(new i.default(t,n));if("object"===u(s)){var l=r;a&&(l=this.classNameGenerator(s),this.classNames.includes(l)||this.classNames.push(l)),(0,o.addClass)(s,l)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===i)return e;var a=i>=0?i:t,s=e,l=0===(a-=1)?e:"".concat(e,"-").concat(a);if((0,o.hasClass)(r,l)){var u=a+1;s="".concat(e,"-").concat(u)}else s=n(r,a);return s}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{for(var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=l(r,4),a=i[0],s=i[1],u=i[2],c=i[3],f=0;f<n;f+=1){var h=e.wtTable.columnFilter.renderedToSource(f);if(h>=s&&h<=c){var d=e.wtTable.getColumnHeader(h);if(d){var p=[];this.settings.highlightHeaderClassName&&p.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&p.push(this.settings.highlightColumnClassName),(0,o.addClass)(d,p)}}}for(var g=0;g<t;g+=1){var v=e.wtTable.rowFilter.renderedToSource(g);if(v>=a&&v<=u){var y=e.wtTable.getRowHeader(v);if(y){var m=[];this.settings.highlightHeaderClassName&&m.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&m.push(this.settings.highlightRowClassName),(0,o.addClass)(y,m)}}for(var w=0;w<n;w+=1){var b=e.wtTable.columnFilter.renderedToSource(w);v>=a&&v<=u&&b>=s&&b<=c?this.settings.className&&this.addClassAtCoords(e,v,b,this.settings.className,this.settings.markIntersections):v>=a&&v<=u?this.settings.highlightRowClassName&&this.addClassAtCoords(e,v,b,this.settings.highlightRowClassName):b>=s&&b<=c&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,v,b,this.settings.highlightColumnClassName);var C=e.getSetting("onAfterDrawSelection",v,b,r,this.settings.layerLevel);"string"==typeof C&&this.addClassAtCoords(e,v,b,C)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}}]),e}();t.default=f},function(e,t,n){"use strict";e.exports=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,o=document.createTextNode(""),r=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==o.textContent?o.textContent=e.value+i:o.data=e.value+i,r.style.fontSize=c(e).fontSize,r.style.fontFamily=c(e).fontFamily,r.style.whiteSpace="pre",n.appendChild(r),a=r.clientWidth+2,n.removeChild(r),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}r.firstChild||(r.className="autoResize",r.style.display="inline-block",r.appendChild(o))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(74)),r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,o.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,r.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=f(n(67)),r=f(n(616));n(619);var i=n(1),a=n(2),s=f(n(10)),l=n(32),u=n(18),c=f(n(77));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=p(this,v(t).call(this,e))).defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,c.default),function(e,t,n){t&&d(e.prototype,t),n&&d(e,n)}(t,[{key:"init",value:function(){var e=this;if("function"!=typeof o.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof r.default)throw new Error("You need to include Pikaday to your project.");g(v(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){g(v(t.prototype),"createElements",this).call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,i.addClass)(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new r.default(this.getDatePickerConfig()),new s.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,u.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){this.$datePicker.destroy()}},{key:"prepare",value:function(e,n,o,r,i,a){g(v(t.prototype),"prepare",this).call(this,e,n,o,r,i,a)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;g(v(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(function(){e.instance._refreshBorders()}),g(v(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var o=this.originalValue;void 0!==o&&this.setValue(o)}this.hideDatepicker(),g(v(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,a=this.$datePicker.config(),s=this.instance.view.isMouseDown(),u=!!e&&(0,l.isMetaKey)(e.keyCode);this.datePickerStyle.top="".concat(window.pageYOffset+n.top+(0,i.outerHeight)(this.TD),"px"),this.datePickerStyle.left="".concat(window.pageXOffset+n.left,"px"),this.$datePicker._onInputFocus=function(){},a.format=r,this.originalValue?(t=this.originalValue,(0,o.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,o.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),u||s||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,a.defaultDate=t,(0,o.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,o.default)(t,r),!0),u||s||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,a.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,i=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,o.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),i&&i()},n}}]),t}();t.default=m},function(e,t,n){ 30/*! 31 * Pikaday 32 * 33 * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday 34 */ 35!function(t,o){"use strict";var r;try{r=n(617)}catch(e){}e.exports=o(r)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,r=window.setTimeout,i=function(e,t,o,r){n?e.addEventListener(t,o,!!r):e.attachEvent("on"+t,o)},a=function(e,t,o,r){n?e.removeEventListener(t,o,!!r):e.detachEvent("on"+t,o)},s=function(e,t,n){var r;o.createEvent?((r=o.createEvent("HTMLEvents")).initEvent(t,!0,!1),r=g(r,n),e.dispatchEvent(r)):o.createEventObject&&(r=o.createEventObject(),r=g(r,n),e.fireEvent("on"+t,r))},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},u=function(e){return/Array/.test(Object.prototype.toString.call(e))},c=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},f=function(e){var t=e.getDay();return 0===t||6===t},h=function(e,t){return[31,function(e){return e%4==0&&e%100!=0||e%400==0}(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},d=function(e){c(e)&&e.setHours(0,0,0,0)},p=function(e,t){return e.getTime()===t.getTime()},g=function(e,t,n){var o,r;for(o in t)(r=void 0!==e[o])&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?c(t[o])?n&&(e[o]=new Date(t[o].getTime())):u(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=g({},t[o],n):!n&&r||(e[o]=t[o]);return e},v=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},y={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},m=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},w=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},b=function(e,t,n){var o=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7)+"</td>"},C=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},S=function(e,t,n,o,r,i){var a,s,l,c,f,h=e._o,d=n===h.minYear,p=n===h.maxYear,g='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',v=!0,y=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-t:12+a-t)+'"'+(a===o?' selected="selected"':"")+(d&&a<h.minMonth||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(c='<div class="pika-label">'+h.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",u(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),l=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return f='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?g+=f+c:g+=c+f,d&&(0===o||h.minMonth>=o)&&(v=!1),p&&(11===o||h.maxMonth<=o)&&(y=!1),0===t&&(g+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+"</div>"},_=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+m(e,t)+'">'+m(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+function(e){return"<tbody>"+e.join("")+"</tbody>"}(t)+"</table>"},E=function(a){var s=this,u=s.config(a);s._onMouseDown=function(e){if(s._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?s.prevMonth():l(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&r(function(){s.hide(),u.field&&u.field.blur()},100))),l(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.value):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:u.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var o;n.firedBy!==s&&(o=t?(o=e(u.field.value,u.format,u.formatStrict))&&o.isValid()?o.toDate():null:new Date(Date.parse(u.field.value)),c(o)&&s.setDate(o),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=o.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=r(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,o=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",s._onChange)));do{if(l(o,"pika-single")||o===u.trigger)return}while(o=o.parentNode);s._v&&t!==u.trigger&&o!==u.trigger&&s.hide()}},s.el=o.createElement("div"),s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(s.el,"mousedown",s._onMouseDown,!0),i(s.el,"touchend",s._onMouseDown,!0),i(s.el,"change",s._onChange),i(o,"keydown",s._onKeyChange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?o.body.appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSibling),i(u.field,"change",s._onInputChange),u.defaultDate||(t&&u.field.value?u.defaultDate=e(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var f=u.defaultDate;c(f)?u.setDefaultDate?s.setDate(f,!0):s.gotoDate(f):s.gotoDate(new Date),u.bound?(this.hide(),s.el.className+=" is-bound",i(u.trigger,"click",s._onInputClick),i(u.trigger,"focus",s._onInputFocus),i(u.trigger,"blur",s._onInputBlur)):this.show()};return E.prototype={config:function(e){this._o||(this._o=g({},y,!0));var t=g(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,c(t.minDate)||(t.minDate=!1),c(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),u(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||y.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return c(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return c(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),c(e)){var n=this._o.minDate,o=this._o.maxDate;c(n)&&e<n?e=n:c(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),d(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(c(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=r<n.getTime()||o.getTime()<r}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,o){var r,i=this.getDate(),a=24*parseInt(o)*60*60*1e3;"add"===n?r=new Date(i.valueOf()+a):"subtract"===n&&(r=new Date(i.valueOf()-a)),t&&("add"===n?r=e(i).add(o,"days").toDate():"subtract"===n&&(r=e(i).subtract(o,"days").toDate())),this.setDate(r)},adjustCalendars:function(){this.calendars[0]=v(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=v({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(d(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=y.minDate,this._o.minYear=y.minYear,this._o.minMonth=y.minMonth,this._o.startRange=y.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(d(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=y.maxDate,this._o.maxYear=y.maxYear,this._o.maxMonth=y.maxMonth,this._o.endRange=y.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=o&&(this._y=o,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+S(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,r,i,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,r=this.el.offsetHeight,i=window.innerWidth||o.documentElement.clientWidth,a=window.innerHeight||o.documentElement.clientHeight,s=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)l=(c=e.getBoundingClientRect()).left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+r>a+s||this._o.position.indexOf("top")>-1&&u-r-e.offsetHeight>0)&&(u=u-r-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var o=this._o,r=new Date,i=h(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];d(r),o.firstDay>0&&(a-=o.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,g=11===t?0:t+1,v=0===t?e-1:e,y=11===t?e+1:e,m=h(v,u),S=i+a,E=S;E>7;)E-=7;S+=7-E;for(var O=0,T=0;O<S;O++){var R=new Date(e,t,O-a+1),k=!!c(this._d)&&p(R,this._d),M=p(R,r),N=O<a||O>=i+a,D=O-a+1,A=t,P=e,L=o.startRange&&p(o.startRange,R),H=o.endRange&&p(o.endRange,R),x=o.startRange&&o.endRange&&o.startRange<R&&R<o.endRange,I=o.minDate&&R<o.minDate||o.maxDate&&R>o.maxDate||o.disableWeekends&&f(R)||o.disableDayFn&&o.disableDayFn(R);N&&(O<a?(D=m+D,A=u,P=v):(D-=i,A=g,P=y));var j={day:D,month:A,year:P,isSelected:k,isToday:M,isDisabled:I,isEmpty:N,isStartRange:L,isEndRange:H,isInRange:x,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};l.push(w(j)),7==++T&&(o.showWeekNumber&&l.unshift(b(O-a,t,e)),s.push(C(l,o.isRTL)),l=[],T=0)}return _(o,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(!function(e,t){e.className=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}((" "+e.className+" ").replace(" "+t+" "," "))}(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(i(o,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)}(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},E})},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var t,o;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Nt(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=o.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function v(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var y=r.momentProperties=[];function m(e,t){var n,o,r;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)s(r=t[o=y[n]])||(e[o]=r);return e}var w=!1;function b(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function C(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n}function E(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&_(e[o])!==_(t[o]))&&a++;return a+i}function O(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return h(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var o,i=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];i.push(o)}O(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var R,k={};function M(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(O(t),k[e]=!0)}function N(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,o=h({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(o[n]=h({},o[n]));return o}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,R=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var P={};function L(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function H(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function x(e){var t,n,o={};for(n in e)f(e,n)&&(t=H(n))&&(o[t]=e[n]);return o}var I={};function j(e,t){I[e]=t}function F(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},Y={};function U(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e,t){return e.isValid()?(t=X(t,e.localeData()),V[t]=V[t]||function(e){var t,n,o=e.match(W);for(t=0,n=o.length;t<n;t++)Y[o[t]]?o[t]=Y[o[t]]:o[t]=z(o[t]);return function(t){var r,i="";for(r=0;r<n;r++)i+=N(o[r])?o[r].call(t,e):o[r];return i}}(t),V[t](e)):e.localeData().invalidDate()}function X(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;n>=0&&B.test(e);)e=e.replace(B,o),B.lastIndex=0,n-=1;return e}var K=/\d/,q=/\d\d/,Z=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,oe=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function fe(e,t,n){ce[e]=N(t)?t:function(e,o){return e&&n?n:t}}function he(e,t){return f(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}(e))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function ge(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),l(t)&&(o=function(e,n){n[t]=_(e)}),n=0;n<e.length;n++)pe[e[n]]=o}function ve(e,t){ge(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function ye(e,t,n){null!=t&&f(pe,e)&&pe[e](t,n._a,n,e)}var me=0,we=1,be=2,Ce=3,Se=4,_e=5,Ee=6,Oe=7,Te=8;function Re(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),j("year",1),fe("Y",ae),fe("YY",Q,q),fe("YYYY",oe,$),fe("YYYYY",re,J),fe("YYYYYY",re,J),ge(["YYYYY","YYYYYY"],me),ge("YYYY",function(e,t){t[me]=2===e.length?r.parseTwoDigitYear(e):_(e)}),ge("YY",function(e,t){t[me]=r.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[me]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Me,Ne=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Pe(this,e,n),r.updateOffset(this,t),this):Ae(this,e)}}function Ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Le(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?ke(e)?29:28:31-n%7%2}Me=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),j("month",8),fe("M",Q),fe("MM",Q,q),fe("MMM",function(e,t){return t.monthsShortRegex(e)}),fe("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[we]=_(e)-1}),ge(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[we]=r:p(n).invalidMonth=e});var He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(je(this,e),r.updateOffset(this,!0),this):Ae(this,"Month")}var We=ue;var Be=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;t<12;t++)n=d([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)o[t]=de(o[t]),r[t]=de(r[t]);for(t=0;t<24;t++)i[t]=de(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var o=7+t-n;return-((7+Ye(e,0,o).getUTCDay()-t)%7)+o-1}function ze(e,t,n,o,r){var i,a,s=1+7*(t-1)+(7+n-o)%7+Ue(e,o,r);return s<=0?a=Re(i=e-1)+s:s>Re(e)?(i=e+1,a=s-Re(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Ge(e,t,n){var o,r,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Xe(r=e.year()-1,t,n):a>Xe(e.year(),t,n)?(o=a-Xe(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Xe(e,t,n){var o=Ue(e,t,n),r=Ue(e+1,t,n);return(Re(e)-o+r)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),j("week",5),j("isoWeek",5),fe("w",Q),fe("ww",Q,q),fe("W",Q),fe("WW",Q,q),ve(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=_(e)});U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),fe("d",Q),fe("e",Q),fe("E",Q),fe("dd",function(e,t){return t.weekdaysMinRegex(e)}),fe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),fe("dddd",function(e,t){return t.weekdaysRegex(e)}),ve(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ve(["d","e","E"],function(e,t,n,o){t[o]=_(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var $e=ue;var Je=ue;var Qe=ue;function et(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,tt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+tt.apply(this)+F(this.minutes(),2)}),U("hmmss",0,0,function(){return""+tt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),nt("a",!0),nt("A",!1),L("hour","h"),j("hour",13),fe("a",ot),fe("A",ot),fe("H",Q),fe("h",Q),fe("k",Q),fe("HH",Q,q),fe("hh",Q,q),fe("kk",Q,q),fe("hmm",ee),fe("hmmss",te),fe("Hmm",ee),fe("Hmmss",te),ge(["H","HH"],Ce),ge(["k","kk"],function(e,t,n){var o=_(e);t[Ce]=24===o?0:o}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Ce]=_(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var o=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o,2)),t[_e]=_(e.substr(r)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var o=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o))}),ge("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Ce]=_(e.substr(0,o)),t[Se]=_(e.substr(o,2)),t[_e]=_(e.substr(r))});var rt,it=De("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Ze,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},st={},lt={};function ut(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var o=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{o=rt._abbr;n(618)("./"+t),ft(o)}catch(e){}return st[t]}function ft(e,t){var n;return e&&((n=s(t)?dt(e):ht(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ht(e,t){if(null!==t){var n,o=at;if(t.abbr=e,null!=st[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])o=st[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;o=n._config}return st[e]=new A(D(o,t)),lt[e]&<[e].forEach(function(e){ht(e.name,e.config)}),ft(e),st[e]}return delete st[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i<e.length;){for(t=(r=ut(e[i]).split("-")).length,n=(n=ut(e[i+1]))?n.split("-"):null;t>0;){if(o=ct(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&E(r,n,!0)>=t-1)break;t--}i++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[we]<0||n[we]>11?we:n[be]<1||n[be]>Le(n[me],n[we])?be:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[Se]||0!==n[_e]||0!==n[Ee])?Ce:n[Se]<0||n[Se]>59?Se:n[_e]<0||n[_e]>59?_e:n[Ee]<0||n[Ee]>999?Ee:-1,p(e)._overflowDayOfYear&&(t<me||t>be)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=Oe),p(e)._overflowWeekday&&-1===t&&(t=Te),p(e).overflow=t),e}function gt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,o,i,a,s=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[we]&&function(e){var t,n,o,r,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=gt(t.GG,e._a[me],Ge(Dt(),1,4).year),o=gt(t.W,1),((r=gt(t.E,1))<1||r>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=gt(t.gg,e._a[me],u.year),o=gt(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i}o<1||o>Xe(n,i,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=ze(n,o,r,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[me],o[me]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ye(a,0,e._dayOfYear),e._a[we]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Se]&&0===e._a[_e]&&0===e._a[Ee]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Ye:function(e,t,n,o,r,i,a){var s=new Date(e,t,n,o,r,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],St=/^\/?Date\((\-?\d+)/i;function _t(e){var t,n,o,r,i,a,s=e._i,l=yt.exec(s)||mt.exec(s);if(l){for(p(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){r=bt[t][0],o=!1!==bt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ct.length;t<n;t++)if(Ct[t][1].exec(l[3])){i=(l[2]||" ")+Ct[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!wt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(i||"")+(a||""),kt(e)}else e._isValid=!1}var Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Ot(e,t,n,o,r,i){var a=[function(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;if(t<=999)return 1900+t;return t}(e),Ie.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}var Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rt(e){var t=Et.exec(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(t){var n=Ot(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return Tt[e];if(t)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}(t[8],t[9],t[10]),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,o,i,a,s=""+e._i,l=s.length,u=0;for(o=X(e._f,e._locale).match(W)||[],t=0;t<o.length;t++)i=o[t],(n=(s.match(he(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),Y[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[Ce]<=12&&!0===p(e).bigHour&&e._a[Ce]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var o;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),vt(e),pt(e)}else Rt(e);else _t(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new b(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,o,r,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],kt(t),g(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==o||i<o)&&(o=i,n=t));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=St.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,Rt(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=c(t.slice(0),function(e){return parseInt(e,10)}),vt(e)):a(t)?function(e){if(!e._d){var t=x(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vt(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Nt(e,t,n,o,r){var s={};return!0!==n&&!1!==n||(o=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=o,function(e){var t=new b(pt(Mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(s)}function Dt(e,t,n,o){return Nt(e,t,n,o,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var At=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Lt(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xt(e){var t=x(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Me.call(Ht,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<Ht.length;++o)if(e[Ht[o]]){if(n)return!1;parseFloat(e[Ht[o]])!==_(e[Ht[o]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=dt(),this._bubble()}function It(e){return e instanceof xt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),fe("Z",le),fe("ZZ",le),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Bt(le,e)});var Wt=/([\+\-]|\d\d)/gi;function Bt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=((n[n.length-1]||[])+"").match(Wt)||["-",0,0],r=60*o[1]+_(o[2]);return 0===r?0:"+"===o[0]?r:-r}function Vt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(C(e)||u(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Dt(e).local()}function Yt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var zt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xt(e,t){var n,o,r,i=e,a=null;return It(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=zt.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:_(a[be])*n,h:_(a[Ce])*n,m:_(a[Se])*n,s:_(a[_e])*n,ms:_(jt(1e3*a[Ee]))*n}):(a=Gt.exec(e))?(n="-"===a[1]?-1:1,i={y:Kt(a[2],n),M:Kt(a[3],n),w:Kt(a[4],n),d:Kt(a[5],n),h:Kt(a[6],n),m:Kt(a[7],n),s:Kt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Vt(t,e),e.isBefore(t)?n=qt(e,t):((n=qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Dt(i.from),Dt(i.to)),(i={}).ms=r.milliseconds,i.M=r.months),o=new xt(i),It(e)&&f(e,"_locale")&&(o._locale=e._locale),o}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(e,t){return function(n,o){var r;return null===o||isNaN(+o)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),$t(this,Xt(n="string"==typeof n?+n:n,o),e),this}}function $t(e,t,n,o){var i=t._milliseconds,a=jt(t._days),s=jt(t._months);e.isValid()&&(o=null==o||o,s&&je(e,Ae(e,"Month")+s*n),a&&Pe(e,"Date",Ae(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}Xt.fn=xt.prototype,Xt.invalid=function(){return Xt(NaN)};var Jt=Zt(1,"add"),Qt=Zt(-1,"subtract");function en(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function on(){return this._locale}function rn(e,t){U(0,[e,e.length],0,t)}function an(e,t,n,o,r){var i;return null==e?Ge(this,o,r).year:(t>(i=Xe(e,o,r))&&(t=i),function(e,t,n,o,r){var i=ze(e,t,n,o,r),a=Ye(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,o,r))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),fe("G",ae),fe("g",ae),fe("GG",Q,q),fe("gg",Q,q),fe("GGGG",oe,$),fe("gggg",oe,$),fe("GGGGG",re,J),fe("ggggg",re,J),ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=_(e)}),ve(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),j("quarter",7),fe("Q",K),ge("Q",function(e,t){t[we]=3*(_(e)-1)}),U("D",["DD",2],"Do","date"),L("date","D"),j("date",9),fe("D",Q),fe("DD",Q,q),fe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],be),ge("Do",function(e,t){t[be]=_(e.match(Q)[0])});var sn=De("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),j("dayOfYear",4),fe("DDD",ne),fe("DDDD",Z),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),U("m",["mm",2],0,"minute"),L("minute","m"),j("minute",14),fe("m",Q),fe("mm",Q,q),ge(["m","mm"],Se);var ln=De("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),j("second",15),fe("s",Q),fe("ss",Q,q),ge(["s","ss"],_e);var un,cn=De("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),j("millisecond",16),fe("S",ne,K),fe("SS",ne,q),fe("SSS",ne,Z),un="SSSS";un.length<=9;un+="S")fe(un,ie);function fn(e,t){t[Ee]=_(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")ge(un,fn);var hn=De("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var dn=b.prototype;function pn(e){return e}dn.add=Jt,dn.calendar=function(e,t){var n=e||Dt(),o=Vt(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(N(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(!(o=Vt(e,this)).isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=H(t)){case"year":i=en(this,o)/12;break;case"month":i=en(this,o);break;case"quarter":i=en(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:S(i)},dn.endOf=function(e){return void 0===(e=H(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Dt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Dt(),e)},dn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Dt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Dt(),e)},dn.get=function(e){return N(this[e=H(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=C(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=C(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,o){var r=C(e)?e:Dt(e),i=C(t)?t:Dt(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(o=o||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===o[1]?this.isBefore(i,n):!this.isAfter(i,n))},dn.isSame=function(e,t){var n,o=C(e)?e:Dt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return g(this)},dn.lang=nn,dn.locale=tn,dn.localeData=on,dn.max=Pt,dn.min=At,dn.parsingFlags=function(){return h({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:I[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=x(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(N(this[e=H(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=H(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Qt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+r)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=Ne,dn.isLeapYear=function(){return ke(this.year())},dn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Fe,dn.daysInMonth=function(){return Le(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},dn.date=sn,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=it,dn.minute=dn.minutes=ln,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=hn,dn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Bt(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Yt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?$t(this,Xt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Yt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Bt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ut,dn.isUTC=Ut,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",sn),dn.months=T("months accessor is deprecated. Use month instead",Fe),dn.years=T("years accessor is deprecated. Use year instead",Ne),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=Mt(e))._a){var t=e._isUTC?d(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gn=A.prototype;function vn(e,t,n,o){var r=dt(),i=d().set(o,t);return r[n](i,e)}function yn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=vn(e,o,n,"month");return r}function mn(e,t,n,o){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var r,i=dt(),a=e?i._week.dow:0;if(null!=n)return vn(t,(n+a)%7,o,"day");var s=[];for(r=0;r<7;r++)s[r]=vn(t,(r+a)%7,o,"day");return s}gn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return N(o)?o.call(t,n):o},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=pn,gn.postformat=pn,gn.relativeTime=function(e,t,n,o){var r=this._relativeTime[n];return N(r)?r(e,t,n,o):r.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)N(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[He.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var o,r,i;if(this._monthsParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,a))?r:null:-1!==(r=Me.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,a))?r:-1!==(r=Me.call(this._longMonthsParse,a))?r:null:-1!==(r=Me.call(this._longMonthsParse,a))?r:-1!==(r=Me.call(this._shortMonthsParse,a))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},gn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},gn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var o,r,i;if(this._weekdaysParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,a))?r:-1!==(r=Me.call(this._weekdaysParse,a))?r:-1!==(r=Me.call(this._shortWeekdaysParse,a))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",ft),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var wn=Math.abs;function bn(e,t,n,o){var r=Xt(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var On=En("ms"),Tn=En("s"),Rn=En("m"),kn=En("h"),Mn=En("d"),Nn=En("w"),Dn=En("M"),An=En("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ln=Pn("milliseconds"),Hn=Pn("seconds"),xn=Pn("minutes"),In=Pn("hours"),jn=Pn("days"),Fn=Pn("months"),Wn=Pn("years");var Bn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,M:11};var Yn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Yn(this._milliseconds)/1e3,o=Yn(this._days),r=Yn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var i=S(r/12),a=r%=12,s=o,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var h=f<0?"-":"",d=Un(this._months)!==Un(f)?"-":"",p=Un(this._days)!==Un(f)?"-":"",g=Un(this._milliseconds)!==Un(f)?"-":"";return h+"P"+(i?d+i+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Gn=xt.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Gn.add=function(e,t){return bn(this,e,t,1)},Gn.subtract=function(e,t){return bn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=H(e))||"year"===e)return t=this._days+o/864e5,n=this._months+Sn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=On,Gn.asSeconds=Tn,Gn.asMinutes=Rn,Gn.asHours=kn,Gn.asDays=Mn,Gn.asWeeks=Nn,Gn.asMonths=Dn,Gn.asYears=An,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Gn._bubble=function(){var e,t,n,o,r,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Cn(_n(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=S(i/1e3),l.seconds=e%60,t=S(e/60),l.minutes=t%60,n=S(t/60),l.hours=n%24,s+=r=S(Sn(a+=S(n/24))),a-=Cn(_n(r)),o=S(s/12),s%=12,l.days=a,l.months=s,l.years=o,this},Gn.clone=function(){return Xt(this)},Gn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Ln,Gn.seconds=Hn,Gn.minutes=xn,Gn.hours=In,Gn.days=jn,Gn.weeks=function(){return S(this.days()/7)},Gn.months=Fn,Gn.years=Wn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var o=Xt(e).abs(),r=Bn(o.as("s")),i=Bn(o.as("m")),a=Bn(o.as("h")),s=Bn(o.as("d")),l=Bn(o.as("M")),u=Bn(o.as("y")),c=r<=Vn.ss&&["s",r]||r<Vn.s&&["ss",r]||i<=1&&["m"]||i<Vn.m&&["mm",i]||a<=1&&["h"]||a<Vn.h&&["hh",a]||s<=1&&["d"]||s<Vn.d&&["dd",s]||l<=1&&["M"]||l<Vn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,function(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=zn,Gn.toString=zn,Gn.toJSON=zn,Gn.locale=tn,Gn.localeData=on,Gn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Gn.lang=nn,U("X",0,0,"unix"),U("x",0,0,"valueOf"),fe("x",ae),fe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ge("x",function(e,t,n){n._d=new Date(_(e))}),r.version="2.23.0",function(e){t=e}(Dt),r.fn=dn,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return yn(e,t,"months")},r.isDate=u,r.locale=ft,r.invalid=v,r.duration=Xt,r.isMoment=C,r.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=dt,r.isDuration=It,r.monthsShort=function(e,t){return yn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},r.defineLocale=ht,r.updateLocale=function(e,t){if(null!=t){var n,o,r=at;null!=(o=ct(e))&&(r=o._config),(n=new A(t=D(r,t))).parentLocale=st[e],st[e]=n,ft(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},r.locales=function(){return R(st)},r.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},r.normalizeUnits=H,r.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=dn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})}).call(t,n(166)(e))},function(e,t,n){var o={"./af":296,"./af.js":296,"./ar":297,"./ar-dz":298,"./ar-dz.js":298,"./ar-kw":299,"./ar-kw.js":299,"./ar-ly":300,"./ar-ly.js":300,"./ar-ma":301,"./ar-ma.js":301,"./ar-sa":302,"./ar-sa.js":302,"./ar-tn":303,"./ar-tn.js":303,"./ar.js":297,"./az":304,"./az.js":304,"./be":305,"./be.js":305,"./bg":306,"./bg.js":306,"./bm":307,"./bm.js":307,"./bn":308,"./bn.js":308,"./bo":309,"./bo.js":309,"./br":310,"./br.js":310,"./bs":311,"./bs.js":311,"./ca":312,"./ca.js":312,"./cs":313,"./cs.js":313,"./cv":314,"./cv.js":314,"./cy":315,"./cy.js":315,"./da":316,"./da.js":316,"./de":317,"./de-at":318,"./de-at.js":318,"./de-ch":319,"./de-ch.js":319,"./de.js":317,"./dv":320,"./dv.js":320,"./el":321,"./el.js":321,"./en-au":322,"./en-au.js":322,"./en-ca":323,"./en-ca.js":323,"./en-gb":324,"./en-gb.js":324,"./en-ie":325,"./en-ie.js":325,"./en-il":326,"./en-il.js":326,"./en-nz":327,"./en-nz.js":327,"./eo":328,"./eo.js":328,"./es":329,"./es-do":330,"./es-do.js":330,"./es-us":331,"./es-us.js":331,"./es.js":329,"./et":332,"./et.js":332,"./eu":333,"./eu.js":333,"./fa":334,"./fa.js":334,"./fi":335,"./fi.js":335,"./fo":336,"./fo.js":336,"./fr":337,"./fr-ca":338,"./fr-ca.js":338,"./fr-ch":339,"./fr-ch.js":339,"./fr.js":337,"./fy":340,"./fy.js":340,"./gd":341,"./gd.js":341,"./gl":342,"./gl.js":342,"./gom-latn":343,"./gom-latn.js":343,"./gu":344,"./gu.js":344,"./he":345,"./he.js":345,"./hi":346,"./hi.js":346,"./hr":347,"./hr.js":347,"./hu":348,"./hu.js":348,"./hy-am":349,"./hy-am.js":349,"./id":350,"./id.js":350,"./is":351,"./is.js":351,"./it":352,"./it.js":352,"./ja":353,"./ja.js":353,"./jv":354,"./jv.js":354,"./ka":355,"./ka.js":355,"./kk":356,"./kk.js":356,"./km":357,"./km.js":357,"./kn":358,"./kn.js":358,"./ko":359,"./ko.js":359,"./ku":360,"./ku.js":360,"./ky":361,"./ky.js":361,"./lb":362,"./lb.js":362,"./lo":363,"./lo.js":363,"./lt":364,"./lt.js":364,"./lv":365,"./lv.js":365,"./me":366,"./me.js":366,"./mi":367,"./mi.js":367,"./mk":368,"./mk.js":368,"./ml":369,"./ml.js":369,"./mn":370,"./mn.js":370,"./mr":371,"./mr.js":371,"./ms":372,"./ms-my":373,"./ms-my.js":373,"./ms.js":372,"./mt":374,"./mt.js":374,"./my":375,"./my.js":375,"./nb":376,"./nb.js":376,"./ne":377,"./ne.js":377,"./nl":378,"./nl-be":379,"./nl-be.js":379,"./nl.js":378,"./nn":380,"./nn.js":380,"./pa-in":381,"./pa-in.js":381,"./pl":382,"./pl.js":382,"./pt":383,"./pt-br":384,"./pt-br.js":384,"./pt.js":383,"./ro":385,"./ro.js":385,"./ru":386,"./ru.js":386,"./sd":387,"./sd.js":387,"./se":388,"./se.js":388,"./si":389,"./si.js":389,"./sk":390,"./sk.js":390,"./sl":391,"./sl.js":391,"./sq":392,"./sq.js":392,"./sr":393,"./sr-cyrl":394,"./sr-cyrl.js":394,"./sr.js":393,"./ss":395,"./ss.js":395,"./sv":396,"./sv.js":396,"./sw":397,"./sw.js":397,"./ta":398,"./ta.js":398,"./te":399,"./te.js":399,"./tet":400,"./tet.js":400,"./tg":401,"./tg.js":401,"./th":402,"./th.js":402,"./tl-ph":403,"./tl-ph.js":403,"./tlh":404,"./tlh.js":404,"./tr":405,"./tr.js":405,"./tzl":406,"./tzl.js":406,"./tzm":407,"./tzm-latn":408,"./tzm-latn.js":408,"./tzm.js":407,"./ug-cn":409,"./ug-cn.js":409,"./uk":410,"./uk.js":410,"./ur":411,"./ur.js":411,"./uz":412,"./uz-latn":413,"./uz-latn.js":413,"./uz.js":412,"./vi":414,"./vi.js":414,"./x-pseudo":415,"./x-pseudo.js":415,"./yo":416,"./yo.js":416,"./zh-cn":417,"./zh-cn.js":417,"./zh-hk":418,"./zh-hk.js":418,"./zh-tw":419,"./zh-tw.js":419};function r(e){return n(i(e))}function i(e){var t=o[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=618},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(294)),r=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(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})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,c(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o.default),function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(t,[{key:"prepare",value:function(e,n,o,r,i,a){u(c(t.prototype),"prepare",this).call(this,e,n,o,r,i,a),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),t}();r.default.getSingleton().add("beforeValidate",function(e,t,n){var o=this.getCellMeta(t,this.propToCol(n));o.editor===h&&void 0===o.strict&&(o.filter=!1,o.strict=!0)});var d=h;t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(77));function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,a(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o.default),t}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(77));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"createElements",value:function(){l(u(t.prototype),"createElements",this).call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,o.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(18),i=n(32),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(74)),s=n(2);function l(e){return(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})(e)}var u=a.default.prototype.extend();u.prototype.init=function(){this.select=document.createElement("SELECT"),(0,o.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},u.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},u.prototype.prepare=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.default.prototype.prepare.apply(this,n);var i,l=this.cellProperties.selectOptions;i="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,o.empty)(this.select),(0,s.objectEach)(i,function(t,n){var r=document.createElement("OPTION");r.value=n,(0,o.fastInnerHTML)(r,t),e.select.appendChild(r)})},u.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t[e[n]]=e[n];else"object"===l(e)&&(t=e);return t},u.prototype.getValue=function(){return this.select.value},u.prototype.setValue=function(e){this.select.value=e};var c=function(e){var t=this.getActiveEditor(),n=t.select.selectedIndex-1,o=t.select.selectedIndex+1;switch(e.keyCode){case i.KEY_CODES.ARROW_UP:n>=0&&(t.select[n].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault();break;case i.KEY_CODES.ARROW_DOWN:o<=t.select.length-1&&(t.select[o].selected=!0),(0,r.stopImmediatePropagation)(e),e.preventDefault()}};u.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",c)},u.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",c)},u.prototype.focus=function(){this.select.focus()},u.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},u.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=(0,o.offset)(this.TD),n=(0,o.offset)(this.instance.rootElement),r=(0,o.getScrollableElement)(this.TD),i=this.checkEditorSection(),s=(0,o.outerWidth)(this.TD)+1,l=(0,o.outerHeight)(this.TD)+1,u=t.top-n.top-1-(r.scrollTop||0),c=t.left-n.left-1-(r.scrollLeft||0);switch(i){case"top":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelectedLast()[0]&&(u+=1),0===this.instance.getSelectedLast()[1]&&(c+=1);var f=this.select.style;e&&-1!==e?f[e[0]]=e[1]:(0,o.resetCssTransform)(this.select);var h=(0,o.getComputedStyle)(this.TD);parseInt(h.borderTopWidth,10)>0&&(l-=1),parseInt(h.borderLeftWidth,10)>0&&(s-=1),f.height="".concat(l,"px"),f.minWidth="".concat(s,"px"),f.top="".concat(u,"px"),f.left="".concat(c,"px"),f.margin="0px"}else this.close()},u.prototype.getEditedCell=function(){var e;switch(this.checkEditorSection()){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!==e&&-2!==e?e:void 0};var f=u;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1);var r=function(e,t,n,r,i,a,s){var l=[],u=[];s.className&&(t.className?t.className="".concat(t.className," ").concat(s.className):t.className=s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,o.removeClass)(t,u),(0,o.addClass)(t,l)};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),i=n(8),a=n(19);document.createElement("DIV").className="htAutocompleteWrapper";var s=document.createElement("DIV");s.className="htAutocompleteArrow",s.appendChild(document.createTextNode(String.fromCharCode(9660)));var l=function(e,t,n,l,u,c,f){for(var h=f.allowHtml?"html":"text",d=s.cloneNode(!0),p=arguments.length,g=new Array(p>7?p-7:0),v=7;v<p;v++)g[v-7]=arguments[v];if((0,a.getRenderer)(h).apply(this,[e,t,n,l,u,c,f].concat(g)),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),t.insertBefore(d,t.firstChild),(0,o.addClass)(t,"htAutocomplete"),!e.acArrowListener){var y=new r.default(e);e.acArrowListener=function(r){(0,o.hasClass)(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new i.CellCoords(n,l),t)},y.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){y.destroy()})}};t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(48),i=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),a=n(32),s=n(59),l=n(18),u=n(19);var c=new WeakMap,f=new WeakMap,h="htBadValue";function d(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}var p=function(e,t,n,p,g,v,y){for(var m=arguments.length,w=new Array(m>7?m-7:0),b=7;b<m;b++)w[b-7]=arguments[b];(0,u.getRenderer)("base").apply(this,[e,t,n,p,g,v,y].concat(w)),function(e){var t=f.get(e);t||((t=new i.default(e)).addEventListener(e.rootElement,"click",function(t){return function(e,t){if(!d(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10);t.getCellMeta(n,o).readOnly&&e.preventDefault()}(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return function(e,t){d(e.target)&&setTimeout(t.listen,10)}(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return function(e,t){if(!d(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),r=t.getCellMeta(n,o);if(!r.readOnly){var i=null;i=e.target.checked?void 0===r.uncheckedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(n,o,i)}}(t,e)}),f.set(e,t))}(e);var C=function(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}(),S=y.label,_=!1;if(void 0===y.checkedTemplate&&(y.checkedTemplate=!0),void 0===y.uncheckedTemplate&&(y.uncheckedTemplate=!1),(0,o.empty)(t),v===y.checkedTemplate||(0,r.equalsIgnoreCase)(v,y.checkedTemplate)?C.checked=!0:v===y.uncheckedTemplate||(0,r.equalsIgnoreCase)(v,y.uncheckedTemplate)?C.checked=!1:null===v?(0,o.addClass)(C,"noValue"):(C.style.display="none",(0,o.addClass)(C,h),_=!0),C.setAttribute("data-row",n),C.setAttribute("data-col",p),!_&&S){var E="";S.value?E="function"==typeof S.value?S.value.call(this,n,p,g,v):S.value:S.property&&(E=e.getDataAtRowProp(n,S.property));var O=function(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}(E);"before"===S.position?O.appendChild(C):O.insertBefore(C,O.firstChild),C=O}function T(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRangeLast();if(n){for(var o=n.getTopLeftCorner(),r=o.row,i=o.col,a=n.getBottomRightCorner(),s=a.row,l=a.col,u=[],c=r;c<=s;c+=1)for(var f=i;f<=l;f+=1){var h=e.getCellMeta(c,f);if("checkbox"!==h.type)return;if(!0!==h.readOnly){void 0===h.checkedTemplate&&(h.checkedTemplate=!0),void 0===h.uncheckedTemplate&&(h.uncheckedTemplate=!1);var d=e.getDataAtCell(c,f);!1===t?[h.checkedTemplate,h.checkedTemplate.toString()].includes(d)?u.push([c,f,h.uncheckedTemplate]):[h.uncheckedTemplate,h.uncheckedTemplate.toString(),null,void 0].includes(d)&&u.push([c,f,h.checkedTemplate]):u.push([c,f,h.uncheckedTemplate])}}u.length>0&&e.setDataAtCell(u)}}t.appendChild(C),_&&t.appendChild(document.createTextNode("#bad-value#")),c.has(e)||(c.set(e,!0),e.addHook("beforeKeyDown",function(t){var n=(0,s.partial)(a.isKey,t.keyCode);!e.getSettings().enterBeginsEditing&&n("ENTER")||(n("".concat("SPACE|ENTER","|").concat("DELETE|BACKSPACE"))&&!(0,l.isImmediatePropagationStopped)(t)&&function(t){var n=e.getSelectedRangeLast();if(n)for(var o=n.getTopLeftCorner(),r=n.getBottomRightCorner(),i=o.row;i<=r.row;i++)for(var a=o.col;a<=r.col;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return;var l=e.getCell(i,a);if(null===l||void 0===l)t(i,a,s);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!s.readOnly&&t(u)}}}(function(){(0,l.stopImmediatePropagation)(t),t.preventDefault()}),n("SPACE|ENTER")&&T(),n("DELETE|BACKSPACE")&&T(!0))}))};t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(19);var i=function(e,t,n,i,a,s){for(var l=arguments.length,u=new Array(l>6?l-6:0),c=6;c<l;c++)u[c-6]=arguments[c];(0,r.getRenderer)("base").apply(this,[e,t,n,i,a,s].concat(u)),(0,o.fastInnerHTML)(t,null===s||void 0===s?"":s)};t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(420)),r=n(19),i=n(9);var a=function(e,t,n,a,s,l,u){var c=l;if((0,i.isNumeric)(c)){var f=u.numericFormat,h=f&&f.culture||"-",d=f&&f.pattern,p=u.className||"",g=p.length?p.split(" "):[];if(void 0!==h&&!o.default.languages()[h]){var v=h.replace("-",""),y=o.default.allLanguages?o.default.allLanguages[h]:o.default[v];y&&o.default.registerLanguage(y)}o.default.setLanguage(h),c=(0,o.default)(c).format(d||"0"),g.indexOf("htLeft")<0&&g.indexOf("htCenter")<0&&g.indexOf("htRight")<0&&g.indexOf("htJustify")<0&&g.push("htRight"),g.indexOf("htNumeric")<0&&g.push("htNumeric"),u.className=g.join(" ")}(0,r.getRenderer)("text")(e,t,n,a,s,c,u)};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(19),i=n(9);var a=function(e,t,n,a,s,l,u){for(var c=arguments.length,f=new Array(c>7?c-7:0),h=7;h<c;h++)f[h-7]=arguments[h];(0,r.getRenderer)("text").apply(this,[e,t,n,a,s,l,u].concat(f));var d=u.hashLength||t.innerHTML.length,p=u.hashSymbol||"*",g="";(0,i.rangeEach)(d-1,function(){g+=p}),(0,o.fastInnerHTML)(t,g)};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(14),i=n(19);var a=function(e,t,n,a,s,l,u){for(var c=arguments.length,f=new Array(c>7?c-7:0),h=7;h<c;h++)f[h-7]=arguments[h];(0,i.getRenderer)("base").apply(this,[e,t,n,a,s,l,u].concat(f));var d=l;if(!d&&u.placeholder&&(d=u.placeholder),d=(0,r.stringify)(d),e.getSettings().trimWhitespace||(d=d.replace(/ /g,String.fromCharCode(160))),u.rendererTemplate){(0,o.empty)(t);var p=document.createElement("TEMPLATE");p.setAttribute("bind","{{}}"),p.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(p),p.model=e.getSourceDataAtRow(n),t.appendChild(p)}else(0,o.fastInnerText)(t,d)};t.default=a},function(e,t,n){"use strict";function o(e,t){var n=e;return function(e){for(var o=!1,r=0,i=e.length;r<i;r++)if(n===e[r]){o=!0;break}t(o)}}t.__esModule=!0,t.default=function(e,t){var n=e;null!==n&&void 0!==n||(n="");if(this.allowEmpty&&""===n)return void t(!0);this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=(0,i.getEditorInstance)("date",this.instance),r=e,s=!0;null!==r&&void 0!==r||(r="");var l=(0,o.default)(new Date(r)).isValid()||(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),u=(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid();this.allowEmpty&&""===r&&(l=!0,u=!0);l||(s=!1);!l&&u&&(s=!0);if(l&&!u)if(!0===this.correctFormat){var c=a(r,this.dateFormat),f=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(f,h,c,"dateValidator"),s=!0}else s=!1;t(s)},t.correctFormat=a;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(67)),r=n(421),i=n(26);function a(e,t){var n=(0,o.default)((0,r.getNormalizedDate)(e)),i=(0,o.default)(e,t),a=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===i.format("x")||!i.isValid()||a?n:i).format(t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=e;null!==n&&void 0!==n||(n="");this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,o.isNumeric)(e))};var o=n(9)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=this.timeFormat||"h:mm:ss a",i=!0,a=e;null===a&&(a="");a=/^\d{3,}$/.test(a)?parseInt(a,10):a;var s=/^\d{1,2}$/.test(a);s&&(a+=":00");var l=(0,o.default)(a,r,!0).isValid()?(0,o.default)(a):(0,o.default)(a,n),u=l.isValid(),c=(0,o.default)(a,n,!0).isValid()&&!s;this.allowEmpty&&""===a&&(u=!0,c=!0);u||(i=!1);!u&&c&&(i=!0);if(u&&!c)if(!0===this.correctFormat){var f=l.format(n),h=this.instance.runHooks("unmodifyRow",this.row),d=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(h,d,f,"timeValidator"),i=!0}else i=!1;t(i)};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(67));var r=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i=n(49),a={editor:(0,o.getEditor)("autocomplete"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("autocomplete")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i={editor:(0,o.getEditor)("checkbox"),renderer:(0,r.getRenderer)("checkbox")};t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i=n(49),a={editor:(0,o.getEditor)("date"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("date")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i=n(49),a={editor:(0,o.getEditor)("dropdown"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("autocomplete")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i={editor:(0,o.getEditor)("handsontable"),renderer:(0,r.getRenderer)("autocomplete")};t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i=n(49),a={editor:(0,o.getEditor)("numeric"),renderer:(0,r.getRenderer)("numeric"),validator:(0,i.getValidator)("numeric"),dataType:"number"};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i={editor:(0,o.getEditor)("password"),renderer:(0,r.getRenderer)("password"),copyable:!1};t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i={editor:(0,o.getEditor)("text"),renderer:(0,r.getRenderer)("text")};t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(26),r=n(19),i=n(49),a={editor:(0,o.getEditor)("text"),renderer:(0,r.getRenderer)("text"),validator:(0,i.getValidator)("time")};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=f(n(422)),r=n(122),i=n(121),a=n(2),s=n(3),l=f(n(645)),u=n(9),c=f(n(646));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.dataSource&&this.dataSource[0]?this.duckSchema=this.recursiveDuckSchema(this.dataSource[0]):this.duckSchema={},this.createMap(),this.interval=l.default.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}d.prototype.DESTINATION_RENDERER=1,d.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,d.prototype.recursiveDuckSchema=function(e){return(0,a.duckSchema)(e)},d.prototype.recursiveDuckColumns=function(e,t,n){var o,r=this,i=t,s=n;return void 0===i&&(i=0,s=""),"object"!==h(e)||Array.isArray(e)||(0,a.objectEach)(e,function(e,t){null===e?(o=s+t,r.colToPropCache.push(o),r.propToColCache.set(o,i),i+=1):i=r.recursiveDuckColumns(e,i,"".concat(t,"."))}),i},d.prototype.createMap=function(){var e,t=this.getSchema();if(void 0===t)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new c.default;var n=this.instance.getSettings().columns;if(n){var o=this.instance.getSettings().maxCols,r=Math.min(o,n.length),i=0,s=!1,l=(0,a.deepObjectSize)(t);for("function"==typeof n&&(r=l>0?l:this.instance.countSourceCols(),s=!0),e=0;e<r;e++){var u=s?n(e):n[e];if((0,a.isObject)(u)){if(void 0!==u.data){var f=s?i:e;this.colToPropCache[f]=u.data,this.propToColCache.set(u.data,f)}i+=1}}}else this.recursiveDuckColumns(t)},d.prototype.colToProp=function(e){var t=this.instance.runHooks("modifyCol",e);return!isNaN(t)&&this.colToPropCache&&void 0!==this.colToPropCache[t]?this.colToPropCache[t]:t},d.prototype.propToCol=function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),t=this.instance.runHooks("unmodifyCol",t)},d.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},d.prototype.createRow=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,r=0,i=e;if(("number"!=typeof i||i>=this.instance.countSourceRows())&&(i=this.instance.countSourceRows()),!1===this.instance.runHooks("beforeCreateRow",i,n,o))return 0;for(var s=this.instance.getSettings().maxRows,l=this.instance.countCols(),c=function(){var e=null;"array"===t.instance.dataType?t.instance.getSettings().dataSchema?e=(0,a.deepClone)(t.getSchema()):(e=[],(0,u.rangeEach)(l-1,function(){return e.push(null)})):"function"===t.instance.dataType?e=t.instance.getSettings().dataSchema(i):(e={},(0,a.deepExtend)(e,t.getSchema())),i===t.instance.countSourceRows()?t.dataSource.push(e):t.spliceData(i,0,e),r+=1};r<n&&this.instance.countSourceRows()<s;)c();return this.instance.runHooks("afterCreateRow",i,r,o),this.instance.forceFullRender=!0,r},d.prototype.createCol=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var o,r,a=this.instance.countSourceRows(),s=this.dataSource,l=this.instance.countCols(),u="number"!=typeof e||e>=l?l:e,c=0;this.instance.runHooks("beforeCreateCol",u,t,n),r=u;for(var f=this.instance.getSettings().maxCols;c<t&&this.instance.countCols()<f;){if(o=(0,i.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof u||u>=this.instance.countCols()){if(a>0)for(var h=0;h<a;h++)void 0===s[h]&&(s[h]=[]),s[h].push(null);else s.push([null]);this.priv.columnSettings.push(o)}else{for(var d=0;d<a;d++)s[d].splice(r,0,null);this.priv.columnSettings.splice(r,0,o)}c+=1,r+=1}return this.instance.runHooks("afterCreateCol",u,c,n),this.instance.forceFullRender=!0,c},d.prototype.removeRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,o="number"!=typeof e?-t:e,r=this.instance.runHooks("modifyRemovedAmount",t,o);o=(this.instance.countSourceRows()+o)%this.instance.countSourceRows();var i=this.visualRowsToPhysical(o,r);if(!1!==this.instance.runHooks("beforeRemoveRow",o,r,i,n)){var a=this.dataSource,s=this.filterData(o,r);s&&(a.length=0,Array.prototype.push.apply(a,s)),this.instance.runHooks("afterRemoveRow",o,r,i,n),this.instance.forceFullRender=!0}},d.prototype.removeCol=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");var o="number"!=typeof e?-t:e;o=(this.instance.countCols()+o)%this.instance.countCols();var r=this.visualColumnsToPhysical(o,t),i=r.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",o,t,r,n)){for(var a=!0,s=i.length,l=this.dataSource,u=0;u<s;u++)a&&r[0]!==r[u]-u&&(a=!1);if(a)for(var c=0,f=this.instance.countSourceRows();c<f;c++)l[c].splice(r[0],t);else{for(var h=0,d=this.instance.countSourceRows();h<d;h++)for(var p=0;p<s;p++)l[h].splice(i[p],1);for(var g=0;g<s;g++)this.priv.columnSettings.splice(r[g],1)}this.instance.runHooks("afterRemoveCol",o,t,r,n),this.instance.forceFullRender=!0}},d.prototype.spliceCol=function(e,t,n){for(var o=this.instance.getDataAtCol(e),r=o.slice(t,t+n),i=o.slice(t+n),a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];(0,s.extendArray)(l,i);for(var c=0;c<n;)l.push(null),c+=1;return(0,s.to2dArray)(l),this.instance.populateFromArray(t,e,l,null,null,"spliceCol"),r},d.prototype.spliceRow=function(e,t,n){for(var o=this.instance.getSourceDataAtRow(e),r=o.slice(t,t+n),i=o.slice(t+n),a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];(0,s.extendArray)(l,i);for(var c=0;c<n;)l.push(null),c+=1;return this.instance.populateFromArray(e,t,[l],null,null,"spliceRow"),r},d.prototype.spliceData=function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)},d.prototype.filterData=function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1===n.indexOf(t)})},d.prototype.get=function(e,t){var n=this.instance.runHooks("modifyRow",e),o=this.dataSource[n],r=this.instance.runHooks("modifyRowData",n),i=null;if((o=isNaN(r)?r:o)&&o.hasOwnProperty&&(0,a.hasOwnProperty)(o,t))i=o[t];else if("string"==typeof t&&t.indexOf(".")>-1){var s=t.split("."),l=o;if(!l)return null;for(var u=0,c=s.length;u<c;u++)if(void 0===(l=l[s[u]]))return null;i=l}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var f=(0,a.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),f,"get"),f.isTouched()&&(i=f.value)}return i};var p=(0,r.cellMethodLookupFactory)("copyable",!1);d.prototype.getCopyable=function(e,t){return p.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},d.prototype.set=function(e,t,n,o){var r=this.instance.runHooks("modifyRow",e,o||"datamapGet"),i=n,s=this.dataSource[r],l=this.instance.runHooks("modifyRowData",r);if(s=isNaN(l)?l:s,this.instance.hasHook("modifyData")){var u=(0,a.createObjectPropListener)(i);this.instance.runHooks("modifyData",r,this.propToCol(t),u,"set"),u.isTouched()&&(i=u.value)}if(s&&s.hasOwnProperty&&(0,a.hasOwnProperty)(s,t))s[t]=i;else if("string"==typeof t&&t.indexOf(".")>-1){var c,f=t.split("."),h=s,d=0;for(d=0,c=f.length-1;d<c;d++)void 0===h[f[d]]&&(h[f[d]]={}),h=h[f[d]];h[f[d]]=i}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],i):s[t]=i},d.prototype.visualRowsToPhysical=function(e,t){for(var n,o=this.instance.countSourceRows(),r=[],i=(o+e)%o,a=t;i<o&&a;)n=this.instance.runHooks("modifyRow",i),r.push(n),a-=1,i+=1;return r},d.prototype.visualColumnsToPhysical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,r=[],i=t;o<n&&i;){var a=this.instance.runHooks("modifyCol",o);r.push(a),i-=1,o+=1}return r},d.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},d.prototype.clearLengthCache=function(){this.cachedLength=null},d.prototype.getLength=function(){var e,t=this,n=this.instance.getSettings().maxRows;e=n<0||0===n?0:n||1/0;var o=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var r=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(r=!0),this.latestSourceRowsCount=o,null===this.cachedLength||r?((0,u.rangeEach)(o-1,function(e){null===t.instance.runHooks("modifyRow",e)&&(o-=1)}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,e)},d.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,d.prototype.DESTINATION_RENDERER):[]},d.prototype.getRange=function(e,t,n){var o,r,i,a=[],s=this.instance.getSettings().maxRows,l=this.instance.getSettings().maxCols;if(0===s||0===l)return[];var u=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(s-1,0),Math.max(e.row,t.row)),f=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=c;o++){i=[];var h=this.instance.runHooks("modifyRow",o);for(r=Math.min(e.col,t.col);r<=f&&null!==h;r++)i.push(u.call(this,o,this.colToProp(r)));null!==h&&a.push(i)}return a},d.prototype.getText=function(e,t){return o.default.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},d.prototype.getCopyableText=function(e,t){return o.default.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},d.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},d.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null};var g=d;t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.parseDelay=s,t.default=void 0;var o=n(47);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var a=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timer=null,this.func=t,this.delay=s(n),this.stopped=!0,this._then=null,this._callback=function(){return o.__callback()}}return i(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),i(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,o.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,o.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,o.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}();function s(e){var t=e;return"string"==typeof t&&/fps$/.test(t)&&(t=1e3/parseInt(t.replace("fps","")||0,10)),t}t.default=a},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.__esModule=!0,t.default=void 0;var r=function(){var e={arrayMap:[],weakMap:new WeakMap};return{get:function(o){return t(o)?e.arrayMap[o]:n(o)?e.weakMap.get(o):void 0},set:function(o,r){if(t(o))e.arrayMap[o]=r;else{if(!n(o))throw new Error("Invalid key type");e.weakMap.set(o,r)}},delete:function(o){t(o)?delete e.arrayMap[o]:n(o)&&e.weakMap.delete(o)}};function t(e){return null!==e&&!function(e){return e!=e}(e)&&("string"==typeof e||"number"==typeof e)}function n(e){return null!==e&&("object"===o(e)||"function"==typeof e)}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8),r=n(32),i=n(18),a=n(26),s=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),l=n(74);function u(e,t,n){var u,c=this,f=new s.default(e),h=!1,d=!1;function p(e){var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function g(a){if(e.isListening()&&(e.runHooks("beforeKeyDown",a),!h&&229!==a.keyCode&&!(0,i.isImmediatePropagationStopped)(a)&&(t.lastKeyCode=a.keyCode,n.isSelected()))){var s=(a.ctrlKey||a.metaKey)&&!a.altKey;if(!u||u.isWaiting()||(0,r.isMetaKey)(a.keyCode)||(0,r.isCtrlMetaKey)(a.keyCode)||s||c.isEditorOpened()){var f,d=a.shiftKey?n.setRangeEnd:n.setRangeStart;switch(a.keyCode){case r.KEY_CODES.A:!c.isEditorOpened()&&s&&(e.selectAll(),a.preventDefault(),(0,i.stopPropagation)(a));break;case r.KEY_CODES.ARROW_UP:c.isEditorOpened()&&!u.isWaiting()&&c.closeEditorAndSaveChanges(s),function(e){e?n.transformEnd(-1,0):n.transformStart(-1,0)}(a.shiftKey),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.ARROW_DOWN:c.isEditorOpened()&&!u.isWaiting()&&c.closeEditorAndSaveChanges(s),function(e){e?n.transformEnd(1,0):n.transformStart(1,0)}(a.shiftKey),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.ARROW_RIGHT:c.isEditorOpened()&&!u.isWaiting()&&c.closeEditorAndSaveChanges(s),function(e){e?n.transformEnd(0,1):n.transformStart(0,1)}(a.shiftKey),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.ARROW_LEFT:c.isEditorOpened()&&!u.isWaiting()&&c.closeEditorAndSaveChanges(s),function(e){e?n.transformEnd(0,-1):n.transformStart(0,-1)}(a.shiftKey),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.TAB:f="function"==typeof t.settings.tabMoves?t.settings.tabMoves(a):t.settings.tabMoves,a.shiftKey?n.transformStart(-f.row,-f.col):n.transformStart(f.row,f.col,!0),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.BACKSPACE:case r.KEY_CODES.DELETE:e.emptySelectedCells(),c.prepareEditor(),a.preventDefault();break;case r.KEY_CODES.F2:u&&u.enableFullEditMode(),c.openEditor(null,a),a.preventDefault();break;case r.KEY_CODES.ENTER:c.isEditorOpened()?(u&&u.state!==l.EditorState.WAITING&&c.closeEditorAndSaveChanges(s),p(a.shiftKey)):e.getSettings().enterBeginsEditing?(u&&u.enableFullEditMode(),c.openEditor(null,a)):p(a.shiftKey),a.preventDefault(),(0,i.stopImmediatePropagation)(a);break;case r.KEY_CODES.ESCAPE:c.isEditorOpened()&&(c.closeEditorAndRestoreOriginalValue(s),u.focus()),a.preventDefault();break;case r.KEY_CODES.HOME:a.ctrlKey||a.metaKey?d.call(n,new o.CellCoords(0,n.selectedRange.current().from.col)):d.call(n,new o.CellCoords(n.selectedRange.current().from.row,0)),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.END:a.ctrlKey||a.metaKey?d.call(n,new o.CellCoords(e.countRows()-1,n.selectedRange.current().from.col)):d.call(n,new o.CellCoords(n.selectedRange.current().from.row,e.countCols()-1)),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.PAGE_UP:n.transformStart(-e.countVisibleRows(),0),a.preventDefault(),(0,i.stopPropagation)(a);break;case r.KEY_CODES.PAGE_DOWN:n.transformStart(e.countVisibleRows(),0),a.preventDefault(),(0,i.stopPropagation)(a)}}else c.openEditor("",a)}}this.lockEditor=function(){d=!0},this.unlockEditor=function(){d=!1},this.destroyEditor=function(e){d||this.closeEditor(e)},this.getActiveEditor=function(){return u},this.prepareEditor=function(){if(!d)if(u&&u.isWaiting())this.closeEditor(!1,!1,function(e){e&&c.prepareEditor()});else{var t=e.selection.selectedRange.current().highlight.row,n=e.selection.selectedRange.current().highlight.col,o=e.colToProp(n),r=e.getCell(t,n),i=e.getSourceDataAtCell(e.runHooks("modifyRow",t),n),s=e.getCellMeta(t,n),l=e.getCellEditor(s);l?(u=(0,a.getEditorInstance)(l,e)).prepare(t,n,o,r,i,s):u=void 0}},this.isEditorOpened=function(){return u&&u.isOpened()},this.openEditor=function(e,t){u&&(u.cellProperties.readOnly?t&&t.keyCode===r.KEY_CODES.ENTER&&p():u.beginEditing(e,t))},this.closeEditor=function(e,t,n){u?u.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},this.destroy=function(){h=!0},e.addHook("afterDocumentKeyDown",g),f.addEventListener(document.documentElement,"keydown",function(t){h||e.runHooks("afterDocumentKeyDown",t)}),f.addEventListener(document.documentElement,"compositionstart",function(t){!h&&u&&!u.isOpened()&&e.isListening()&&c.openEditor("",t)}),e.view.wt.update("onCellDblClick",function(e,t,n){"TD"===n.nodeName&&(u&&u.enableFullEditMode(),c.openEditor(null,e))})}var c=new WeakMap;u.getInstance=function(e,t,n,o){var r=c.get(e);return r||(r=new u(e,t,n,o),c.set(e,r)),r};var f=u;t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=l(n(10)),i=n(18),a=l(n(8)),s=n(423);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()};function f(e){var t=this,n=this;this.eventManager=new r.default(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var l=e.rootElement.getAttribute("style");l&&e.rootElement.setAttribute("data-originalstyle",l),(0,o.addClass)(e.rootElement,"handsontable");var u,f=document.createElement("TABLE");(0,o.addClass)(f,"htCore"),e.getSettings().tableClassName&&(0,o.addClass)(f,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),f.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),f.appendChild(this.TBODY),e.table=f,e.container.insertBefore(f,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){t.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(c(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(){t.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){t.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(t.settings.fragmentSelection&&c(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()}),this.isMouseDown=function(){return u},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&(0,i.isLeftClick)(t)&&e.selection.finish(),u=!1,((0,o.isOutsideInput)(document.activeElement)||!e.selection.isSelected()&&!(0,i.isRightClick)(t))&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"contextmenu",function(t){e.selection.isInProgress()&&(0,i.isRightClick)(t)&&(e.selection.finish(),u=!1)}),this.eventManager.addEventListener(document.documentElement,"touchend",function(){e.selection.isInProgress()&&e.selection.finish(),u=!1}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var r=t.target,i=t.x||t.clientX,a=t.y||t.clientY,s=t.target;if(!u&&e.rootElement){if(s===e.view.wt.wtTable.holder){var l=(0,o.getScrollbarWidth)();if(document.elementFromPoint(i+l,a)!==e.view.wt.wtTable.holder||document.elementFromPoint(i,a+l)!==e.view.wt.wtTable.holder)return}else for(;s!==document.documentElement;){if(null===s){if(t.isTargetWebComponent)break;return}if(s===e.rootElement)return;s=s.parentNode}("function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(r):n.settings.outsideClickDeselects)?e.deselectCell():e.destroyEditor(!1,!1)}}),this.eventManager.addEventListener(f,"selectstart",function(e){n.settings.fragmentSelection||(0,o.isInput)(e.target)||e.preventDefault()});var h={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:f,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){return n.appendRowHeader(e,t)}),e.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),e.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var r=n.instance.getCellMeta(e,t),i=n.instance.colToProp(t),a=n.instance.getDataAtRowProp(e,i);n.instance.hasHook("beforeValueRender")&&(a=n.instance.runHooks("beforeValueRender",a,r)),n.instance.runHooks("beforeRenderer",o,e,t,i,a,r),n.instance.getCellRenderer(r)(n.instance,o,e,t,i,a,r),n.instance.runHooks("afterRenderer",o,e,t,i,a,r)},selections:n.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,r,a){var l={row:!1,column:!1,cell:!1};e.listen(),n.activeWt=a,u=!0,e.runHooks("beforeOnCellMouseDown",t,o,r,l),(0,i.isImmediatePropagationStopped)(t)||((0,s.handleMouseEvent)(t,{coords:o,selection:e.selection,controller:l}),e.runHooks("afterOnCellMouseDown",t,o,r),n.activeWt=n.wt)},onCellContextMenu:function(t,o,r,a){n.activeWt=a,u=!1,e.selection.isInProgress()&&e.selection.finish(),e.runHooks("beforeOnCellContextMenu",t,o,r),(0,i.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellContextMenu",t,o,r),n.activeWt=n.wt)},onCellMouseOut:function(t,o,r,a){n.activeWt=a,e.runHooks("beforeOnCellMouseOut",t,o,r),(0,i.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellMouseOut",t,o,r),n.activeWt=n.wt)},onCellMouseOver:function(t,o,r,a){var l={row:!1,column:!1,cell:!1};n.activeWt=a,e.runHooks("beforeOnCellMouseOver",t,o,r,l),(0,i.isImmediatePropagationStopped)(t)||(u&&(0,s.handleMouseEvent)(t,{coords:o,selection:e.selection,controller:l}),e.runHooks("afterOnCellMouseOver",t,o,r),n.activeWt=n.wt)},onCellMouseUp:function(t,o,r,i){n.activeWt=i,e.runHooks("beforeOnCellMouseUp",t,o,r),e.runHooks("afterOnCellMouseUp",t,o,r),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.runHooks("beforeRemoveCellClassNames")},onAfterDrawSelection:function(t,n,o,r){return e.runHooks("afterDrawSelection",t,n,o,r)},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,o){return e.runHooks("modifyGetCellCoords",t,n,o)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),r=n.settings.viewportRowRenderingOffset;if("auto"===r&&n.settings.fixedRowsTop&&(r=10),"number"==typeof r&&(t.startRow=Math.max(t.startRow-r,0),t.endRow=Math.min(t.endRow+r,o-1)),"auto"===r){var i=t.startRow+t.endRow-t.startRow,a=Math.ceil(i/o*12);t.startRow=Math.max(t.startRow-a,0),t.endRow=Math.min(t.endRow+a,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),r=n.settings.viewportColumnRenderingOffset;if("auto"===r&&n.settings.fixedColumnsLeft&&(r=10),"number"==typeof r&&(t.startColumn=Math.max(t.startColumn-r,0),t.endColumn=Math.min(t.endColumn+r,o-1)),"auto"===r){var i=t.startColumn+t.endColumn-t.startColumn,a=Math.ceil(i/o*12);t.startRow=Math.max(t.startColumn-a,0),t.endColumn=Math.min(t.endColumn+a,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};e.runHooks("beforeInitWalkontable",h),this.wt=new a.default(h),this.activeWt=this.wt,this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,i.stopPropagation)(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,i.stopPropagation)(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}f.prototype.isTextSelectionAllowed=function(e){if((0,o.isInput)(e))return!0;var t=(0,o.isChildOf)(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))},f.prototype.isSelectedOnlyCell=function(){var e=u(this.instance.getSelectedLast()||[],4),t=e[0],n=e[1],o=e[2],r=e[3];return void 0!==t&&t===o&&n===r},f.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},f.prototype.beforeRender=function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)},f.prototype.onDraw=function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)},f.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},f.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n},f.prototype.scrollViewport=function(e,t,n,o,r){return this.wt.scrollViewport(e,t,n,o,r)},f.prototype.scrollViewportHorizontally=function(e,t,n){return this.wt.scrollViewportHorizontally(e,t,n)},f.prototype.scrollViewportVertically=function(e,t,n){return this.wt.scrollViewportVertically(e,t,n)},f.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,o.hasClass)(n,"relative"))return(0,o.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=document.createElement("div"),i=document.createElement("span");r.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,this.instance.getRowHeader),r.appendChild(i),t.appendChild(r)}this.instance.runHooks("afterGetRowHeader",e,t)},f.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;(0,o.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,o.empty)(t),this.appendColHeader(e,t))}else{var r=document.createElement("div"),i=document.createElement("span");r.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),r.appendChild(i),t.appendChild(r)}this.instance.runHooks("afterGetColHeader",e,t)},f.prototype.updateCellHeader=function(e,t,n){var r=t,i=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,o.hasClass)(e,"colHeader")?r=i.wtTable.columnFilter.sourceToRendered(t):(0,o.hasClass)(e,"rowHeader")&&(r=i.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,o.fastInnerHTML)(e,n(t)):((0,o.fastInnerText)(e,String.fromCharCode(160)),(0,o.addClass)(e,"cornerHeader"))},f.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0},f.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0},f.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},f.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()};var h=f;t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(2),r=n(3),i=n(9);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,r.arrayEach)(this.data,function(r){var i,a=t.colToProp(e);i="string"==typeof a?(0,o.getProperty)(r,a):"function"==typeof a?a(r):r[a],n.push(i)}),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,r=this.hot.runHooks("modifyRowData",e),i=isNaN(r)?r:this.data[e];if(i){var a=this.colToProp(t);n="string"==typeof a?(0,o.getProperty)(i,a):"function"==typeof a?a(this.data.slice(e,e+1)[0]):i[a]}return n}},{key:"getByRange",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Math.min(e.row,t.row),a=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col),u=[];return(0,i.rangeEach)(r,s,function(e){var t,r=n.getAtRow(e);"array"===n.dataType?t=r.slice(a,l+1):"object"===n.dataType&&(t=o?[]:{},(0,i.rangeEach)(a,l,function(e){var i=n.colToProp(e);o?t.push(r[i]):t[i]=r[i]})),u.push(t)}),u}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(i(o={languageCode:"en-US"},r.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),i(o,r.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),i(o,r.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),i(o,r.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),i(o,r.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),i(o,r.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),i(o,r.CONTEXTMENU_ITEMS_UNDO,"Undo"),i(o,r.CONTEXTMENU_ITEMS_REDO,"Redo"),i(o,r.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),i(o,r.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),i(o,r.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),i(o,r.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),i(o,r.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),i(o,r.CONTEXTMENU_ITEMS_BORDERS,"Borders"),i(o,r.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),i(o,r.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),i(o,r.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),i(o,r.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),i(o,r.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),i(o,r.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),i(o,r.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),i(o,r.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),i(o,r.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),i(o,r.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),i(o,r.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),i(o,r.CONTEXTMENU_ITEMS_COPY,"Copy"),i(o,r.CONTEXTMENU_ITEMS_CUT,"Cut"),i(o,r.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),i(o,r.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),i(o,r.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),i(o,r.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),i(o,r.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),i(o,r.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),i(o,r.FILTERS_CONDITIONS_NONE,"None"),i(o,r.FILTERS_CONDITIONS_EMPTY,"Is empty"),i(o,r.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),i(o,r.FILTERS_CONDITIONS_EQUAL,"Is equal to"),i(o,r.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),i(o,r.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),i(o,r.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),i(o,r.FILTERS_CONDITIONS_CONTAINS,"Contains"),i(o,r.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),i(o,r.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),i(o,r.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),i(o,r.FILTERS_CONDITIONS_LESS_THAN,"Less than"),i(o,r.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),i(o,r.FILTERS_CONDITIONS_BETWEEN,"Is between"),i(o,r.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),i(o,r.FILTERS_CONDITIONS_AFTER,"After"),i(o,r.FILTERS_CONDITIONS_BEFORE,"Before"),i(o,r.FILTERS_CONDITIONS_TODAY,"Today"),i(o,r.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),i(o,r.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),i(o,r.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),i(o,r.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),i(o,r.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),i(o,r.FILTERS_LABELS_CONJUNCTION,"And"),i(o,r.FILTERS_LABELS_DISJUNCTION,"Or"),i(o,r.FILTERS_BUTTONS_SELECT_ALL,"Select all"),i(o,r.FILTERS_BUTTONS_CLEAR,"Clear"),i(o,r.FILTERS_BUTTONS_OK,"OK"),i(o,r.FILTERS_BUTTONS_CANCEL,"Cancel"),i(o,r.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),i(o,r.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),i(o,r.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),o);t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.registerPhraseFormatter=t.register=u,t.getPhraseFormatters=t.getAll=function(){return l()};var o=i(n(46)),r=i(n(652));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",r.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},function(e,t,n){"use strict";t.__esModule=!0,t.createHighlight=function(e,t){return d(e)(t)};var o=c(n(46)),r=c(n(654)),i=c(n(655)),a=c(n(656)),s=c(n(657)),l=c(n(658)),u=c(n(659));function c(e){return e&&e.__esModule?e:{default:e}}var f=(0,o.default)("highlight/types"),h=f.register,d=f.getItem;h("active-header",r.default),h("area",i.default),h("cell",a.default),h("custom-selection",s.default),h("fill",l.default),h("header",u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(e){var t=e.activeHeaderClassName;return new o.Selection({highlightHeaderClassName:t})};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(e){var t=e.layerLevel,n=e.areaCornerVisible;return new o.Selection({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}})};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(e){var t=e.cellCornerVisible;return new o.Selection({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}})};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(e){var t=e.border,n=e.cellRange;return new o.Selection(t,n)};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(){return new o.Selection({className:"fill",border:{width:1,color:"#ff0000"}})};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);var r=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName;return new o.Selection({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r})};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(430)),r=p(n(661)),i=n(8),a=n(123),s=n(2),l=n(14),u=n(3),c=p(n(68)),f=p(n(662)),h=n(91),d=n(58);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, columnEnd/columnPropEnd]]) \n or as an array of CellRange objects."]);return v=function(){return e},e}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var m=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new r.default,this.highlight=new o.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disableHighlight:this.settings.disableVisualSelection,cellCornerVisible:function(){return i.isCellCornerVisible.apply(i,arguments)},areaCornerVisible:function(){return i.isAreaCornerVisible.apply(i,arguments)}}),this.transformation=new f.default(this.selectedRange,{countRows:function(){return i.tableProps.countRows()},countCols:function(){return i.tableProps.countCols()},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["beforeModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["afterModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["beforeModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["afterModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["insertRowRequire"].concat(t))}),this.transformation.addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.runLocalHooks.apply(i,["insertColRequire"].concat(t))})}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n)}(e,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="multiple"===this.settings.selectionMode,r=(0,l.isUndefined)(t)?(0,a.isPressedCtrlKey)():t,i=e.row<0,s=e.col<0,u=i&&s;i&&(e.row=0),s&&(e.col=0),this.selectedByCorner=u,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),e),(!o||o&&!r&&(0,l.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!u&&s&&this.selectedByRowHeader.add(this.getLayerLevel()),!u&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new i.CellCoords(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(o.CELL_TYPE)&&this.highlight.getCell().add(this.selectedRange.current().highlight);var n=this.getLayerLevel();n<this.highlight.layerLevel&&((0,u.arrayEach)(this.highlight.getAreas(),function(e){e.clear()}),(0,u.arrayEach)(this.highlight.getHeaders(),function(e){e.clear()}),(0,u.arrayEach)(this.highlight.getActiveHeaders(),function(e){e.clear()})),this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),a=this.highlight.createOrGetHeader(),s=this.highlight.createOrGetActiveHeader();if(r.clear(),a.clear(),s.clear(),this.highlight.isEnabledFor(o.AREA_TYPE)&&(this.isMultiple()||n>=1)&&(r.add(t.from).add(t.to),1===n&&(this.highlight.useLayerLevel(n-1).createOrGetArea().add(this.selectedRange.previous().from),this.highlight.useLayerLevel(n))),this.highlight.isEnabledFor(o.HEADER_TYPE)&&("single"===this.settings.selectionMode?a.add(t.highlight):a.add(t.from).add(t.to)),this.isSelectedByRowHeader())this.tableProps.countCols()===t.getWidth()&&s.add(new i.CellCoords(t.from.row,-1)).add(new i.CellCoords(t.to.row,-1));if(this.isSelectedByColumnHeader())this.tableProps.countRows()===t.getHeight()&&s.add(new i.CellCoords(-1,t.from.col)).add(new i.CellCoords(-1,t.to.col));this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,s.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t,n){this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){this.clear(),this.setRangeStart(new i.CellCoords(-1,-1)),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new i.CellCoords(this.tableProps.countRows()-1,this.tableProps.countCols()-1))}},{key:"selectCells",value:function(e){var t=this,n=(0,h.detectSelectionType)(e);if(n===h.SELECTION_TYPE_EMPTY)return!1;if(n===h.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,d.toSingleLine)(v()));var o=(0,h.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),r=this.tableProps.countRows(),a=this.tableProps.countCols(),s=!e.some(function(e){var t=g(o(e),4),n=t[0],i=t[1],s=t[2],l=t[3];return!((0,h.isValidCoord)(n,r)&&(0,h.isValidCoord)(i,a)&&(0,h.isValidCoord)(s,r)&&(0,h.isValidCoord)(l,a))});return s&&(this.clear(),(0,u.arrayEach)(e,function(e){var n=g(o(e),4),r=n[0],a=n[1],s=n[2],l=n[3];t.setRangeStartOnly(new i.CellCoords(r,a),!1),t.setRangeEnd(new i.CellCoords(s,l)),t.finish()})),s}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,r=this.tableProps.countCols(),a=(0,h.isValidCoord)(n,r)&&(0,h.isValidCoord)(o,r);return a&&(this.setRangeStartOnly(new i.CellCoords(-1,n)),this.setRangeEnd(new i.CellCoords(this.tableProps.countRows()-1,o)),this.finish()),a}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.tableProps.countRows(),o=(0,h.isValidCoord)(e,n)&&(0,h.isValidCoord)(t,n);return o&&(this.setRangeStartOnly(new i.CellCoords(e,-1)),this.setRangeEnd(new i.CellCoords(t,this.tableProps.countCols()-1)),this.finish()),o}}]),e}();(0,s.mixin)(m,c.default);var w=m;t.default=w},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ranges=[]}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(new o.CellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(new o.CellRange(e)),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some(function(t){return t.includes(e)})}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}]),e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(n(68));function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.range=t,this.options=n}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"transformStart",value:function(e,t,n){var r=new o.CellCoords(e,t);this.runLocalHooks("beforeTransformStart",r);var i=this.options.countRows(),a=this.options.countCols(),s=this.options.fixedRowsBottom(),l=this.options.minSpareRows(),u=this.options.minSpareCols(),c=this.options.autoWrapRow(),f=this.options.autoWrapCol(),h=this.range.current().highlight;h.row+e>i-1?n&&l>0&&!(s&&h.row>=i-s-1)?(this.runLocalHooks("insertRowRequire",i),i=this.options.countRows()):f&&(r.row=1-i,r.col=h.col+r.col===a-1?1-a:1):f&&h.row+r.row<0&&h.col+r.col>=0&&(r.row=i-1,r.col=h.col+r.col===0?a-1:-1),h.col+r.col>a-1?n&&u>0?(this.runLocalHooks("insertColRequire",a),a=this.options.countCols()):c&&(r.row=h.row+r.row===i-1?1-i:1,r.col=1-a):c&&h.col+r.col<0&&h.row+r.row>=0&&(r.row=h.row+r.row===0?i-1:-1,r.col=a-1);var d=new o.CellCoords(h.row+r.row,h.col+r.col),p=0,g=0;return d.row<0?(p=-1,d.row=0):d.row>0&&d.row>=i&&(p=1,d.row=i-1),d.col<0?(g=-1,d.col=0):d.col>0&&d.col>=a&&(g=1,d.col=a-1),this.runLocalHooks("afterTransformStart",d,p,g),d}},{key:"transformEnd",value:function(e,t){var n=new o.CellCoords(e,t);this.runLocalHooks("beforeTransformEnd",n);var r=this.options.countRows(),i=this.options.countCols(),a=this.range.current(),s=new o.CellCoords(a.to.row+n.row,a.to.col+n.col),l=0,u=0;return s.row<0?(l=-1,s.row=0):s.row>0&&s.row>=r&&(l=1,s.row=r-1),s.col<0?(u=-1,s.col=0):s.col>0&&s.col>=i&&(u=1,s.col=i-1),this.runLocalHooks("afterTransformEnd",s,l,u),s}}]),e}();(0,r.mixin)(s,i.default);var l=s;t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){var n,o=this.first(),r=o.data("handsontable");if("string"!=typeof t){var i=t||{};return r?r.updateSettings(i):(r=new e.Core(o[0],i),o.data("handsontable",r),r.init()),o}if(r){if(void 0===r[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];n=(a=r[t]).call.apply(a,[r].concat(l)),"destroy"===t&&o.removeData()}return n}}},function(e,t,n){"use strict";t.__esModule=!0;var o=O(n(665));t.PersistentState=o.default;var r=O(n(667));t.AutoColumnSize=r.default;var i=O(n(668));t.AutoFill=i.default;var a=O(n(670));t.AutoRowSize=a.default;var s=O(n(671));t.ColumnSorting=s.default;var l=O(n(682));t.Comments=l.default;var u=O(n(686));t.ContextMenu=u.default;var c=O(n(703));t.CopyPaste=c.default;var f=O(n(711));t.CustomBorders=f.default;var h=O(n(718));t.DragToScroll=h.default;var d=O(n(719));t.ManualColumnFreeze=d.default;var p=O(n(723));t.ManualColumnMove=p.default;var g=O(n(728));t.ManualColumnResize=g.default;var v=O(n(729));t.ManualRowMove=v.default;var y=O(n(734));t.ManualRowResize=y.default;var m=O(n(735));t.MergeCells=m.default;var w=O(n(741));t.MultipleSelectionHandles=w.default;var b=O(n(742));t.ObserveChanges=b.default;var C=O(n(746));t.Search=C.default;var S=O(n(747));t.TouchScroll=S.default;var _=O(n(748));t.UndoRedo=_.default;var E=O(n(15));function O(e){return e&&e.__esModule?e:{default:e}}t.Base=E.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=s(n(15)),r=n(13),i=s(n(666)),a=s(n(22));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}a.default.getSingleton().register("persistentStateSave"),a.default.getSingleton().register("persistentStateLoad"),a.default.getSingleton().register("persistentStateReset");var p=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,h(t).call(this,e))).storage=void 0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,o.default),function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new i.default(this.hot.rootElement.id)),this.addHook("persistentStateSave",function(t,n){return e.saveValue(t,n)}),this.addHook("persistentStateLoad",function(t,n){return e.loadValue(t,n)}),this.addHook("persistentStateReset",function(){return e.resetValue()}),f(h(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,f(h(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),f(h(t.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(e,t){t.value=this.storage.loadValue(e)}},{key:"saveValue",value:function(e,t){this.storage.saveValue(e,t)}},{key:"resetValue",value:function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}},{key:"destroy",value:function(){f(h(t.prototype),"destroy",this).call(this)}}]),t}();(0,r.registerPlugin)("persistentState",p);var g=p;t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"saveValue",value:function(e,t){window.localStorage.setItem("".concat(this.prefix,"_").concat(e),JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n=void 0===e?t:e,o=window.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===o?void 0:JSON.parse(o)}},{key:"reset",value:function(e){window.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;(0,o.arrayEach)(this.savedKeys,function(t,n){window.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))}),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=window.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys")),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}},{key:"saveSavedKeys",value:function(){window.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}]),e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=p(n(15)),r=n(3),i=n(47),a=n(1),s=p(n(124)),l=n(2),u=n(9),c=n(13),f=p(n(431)),h=n(48),d=n(8);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var _=new WeakMap,E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?S(e):t}(this,m(t).call(this,e)),_.set(S(S(n)),{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new s.default(n.hot),n.samplesGenerator=new f.default(function(e,t){var o=n.hot.getCellMeta(e,t),r="";o.spanned||(r=n.hot.getDataAtCell(e,t));var i=0;if(o.label){var a=o.label,s=a.value,l=a.property,u="";s?u="function"==typeof s?s(e,t,n.hot.colToProp(t),r):s:l&&(u=n.hot.getDataAtRowProp(e,l)),i=u.length}return{value:r,bundleCountSeed:i}}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",function(e,t,o){return n.onBeforeColumnResize(e,t,o)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,o.default),b(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),b(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!==n.useHeaders&&void 0!==n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),y(m(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),y(m(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;(0,u.rangeEach)(i.from,i.to,function(t){if(o||void 0===e.widths[t]&&!e.hot._getColWidthFromSettings(t)){var n=e.samplesGenerator.generateColumnSamples(t,a);(0,r.arrayEach)(n,function(t){var n=v(t,2),o=n[0],r=n[1];return e.ghostTable.addColumn(o,r)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(t,n){e.widths[t]=n}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},o=0,r=this.hot.countCols()-1,a=null;this.inProgress=!0;var s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateColumnsWidth({from:0,to:s},n),this.firstCalculation=!1,o=s+1),o<r?function s(){if(!e.hot)return(0,i.cancelAnimationFrame)(a),void(e.inProgress=!1);e.calculateColumnsWidth({from:o,to:Math.min(o+t.CALCULATION_STEP,r)},n),(o=o+t.CALCULATION_STEP+1)<r?a=(0,i.requestAnimationFrame)(s):((0,i.cancelAnimationFrame)(a),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,l.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,l.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&(0,a.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return(0,l.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,h.isPercentValue)(e)?e=(0,u.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,d.ViewportColumnsCalculator.DEFAULT_WIDTH))),o}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=_.get(this).cachedColumnHeaders;return(0,r.arrayReduce)(e,function(e,n,o){var r=t.length;return(r-1<o||t[o]!==n)&&e.push(o),r-1<o?t.push(n):t[o]=n,e},[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?(0,r.arrayEach)(t,function(t){e.widths[t]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,r.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.countRows(),n=this.getFirstVisibleColumn(),o=this.getLastVisibleColumn();null!==n&&null!==o&&t&&(this.calculateColumnsWidth({from:n,to:o},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var t=this,n=(0,r.arrayMap)(e,function(e){var n=v(e,2)[1];return t.hot.propToCol(n)});this.clearCache(n)}},{key:"onBeforeColumnResize",value:function(e,t,n){var o=t;return n&&(this.calculateColumnsWidth(e,void 0,!0),o=this.getColumnWidth(e,void 0,!1)),o}},{key:"onAfterInit",value:function(){_.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,c.registerPlugin)("autoColumnSize",E);var O=E;t.default=O},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(15)),r=c(n(22)),i=n(1),a=c(n(10)),s=n(13),l=n(8),u=n(669);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.default.getSingleton().register("modifyAutofillRange"),r.default.getSingleton().register("beforeAutofill");var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}(this,g(t).call(this,e))).eventManager=new a.default(y(y(n))),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,o.default),function(e,t,n){t&&d(e.prototype,t),n&&d(e,n)}(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(t){return e.onAfterCellCornerMouseDown(t)}),this.addHook("afterOnCellCornerDblClick",function(t){return e.onCellCornerDblClick(t)}),this.addHook("beforeOnCellMouseOver",function(t,n){return e.onBeforeCellMouseOver(n)}),p(g(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),p(g(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),p(g(t.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e={from:this.hot.getSelectedRangeLast().from,to:this.hot.getSelectedRangeLast().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)}},{key:"fillIn",value:function(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;var e=this.hot.selection.highlight.getFill().getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells();e=this.hot.runHooks("modifyAutofillRange",e,t);var n=(0,u.getDragDirectionAndRange)(t,e),o=n.directionOfDrag,r=n.startOfDragCoords,i=n.endOfDragCoords;if(r&&r.row>-1&&r.col>-1){var a=this.getSelectionData();this.hot.runHooks("beforeAutofill",r,i,a);var s=(0,u.getDeltas)(r,i,a,o),l=a;if(["up","left"].indexOf(o)>-1){l=[];var c=null,f=null;if("up"===o){f=(c=i.row-r.row+1)%a.length;for(var h=0;h<c;h++)l.push(a[(h+(a.length-f))%a.length])}else{f=(c=i.col-r.col+1)%a[0].length;for(var d=0;d<a.length;d++){l.push([]);for(var p=0;p<c;p++)l[d].push(a[d][(p+(a[d].length-f))%a[d].length])}}}this.hot.populateFromArray(r.row,r.col,l,i.row,i.col,"".concat(this.pluginName,".fill"),null,o,s),this.setSelection(e)}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t,n=this.hot.getSelectedRangeLast().getTopLeftCorner(),o=this.hot.getSelectedRangeLast().getBottomRightCorner();if(this.directions.includes(u.DIRECTIONS.vertical)&&(o.row<e.row||n.row>e.row))t=new l.CellCoords(e.row,o.col);else{if(!this.directions.includes(u.DIRECTIONS.horizontal))return;t=new l.CellCoords(o.row,e.col)}return this.reduceSelectionAreaIfNeeded(t)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.selection.highlight.getFill().cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.selection.highlight.createOrGetArea().getCorners():this.hot.selection.highlight.getCell().getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),o=this.hot.countRows(),r=e[2]+1;r<o;r++){for(var i=e[1];i<=e[3];i++){if(n[r][i])return-1}var a=n[r][e[1]-1],s=n[r][e[3]+1];(a||s)&&(t=r)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(new l.CellCoords(e[0],e[1])).add(new l.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,h(e).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=(0,i.offset)(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+(0,i.outerHeight)(this.hot.table),n=(0,i.offset)(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+(0,i.outerWidth)(this.hot.table);return e.clientY>t&&e.clientX<=n}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)})}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=(0,u.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){p(g(t.prototype),"destroy",this).call(this)}}]),t}();(0,s.registerPlugin)("autofill",m);var w=m;t.default=w},function(e,t,n){"use strict";t.__esModule=!0,t.getDeltas=function(e,t,n,o){var r=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(o)){for(var u=[],c=0;c<=l;c++){var f=parseInt(n[0][c],10),h=parseInt(n[r-1][c],10),d=("down"===o?h-f:f-h)/(r-1)||0;u.push(d)}a.push(u)}if(-1!==["right","left"].indexOf(o))for(var p=0;p<=s;p++){var g=parseInt(n[p][0],10),v=parseInt(n[p][i-1],10),y=("right"===o?v-g:g-v)/(i-1)||0;a.push([y])}return a},t.getDragDirectionAndRange=function(e,t){var n,o,r;t[0]===e[0]&&t[1]<e[1]?(r="left",n=new i.CellCoords(t[0],t[1]),o=new i.CellCoords(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(r="right",n=new i.CellCoords(t[0],e[3]+1),o=new i.CellCoords(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(r="up",n=new i.CellCoords(t[0],t[1]),o=new i.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(r="down",n=new i.CellCoords(e[2]+1,t[1]),o=new i.CellCoords(t[2],t[3]));return{directionOfDrag:r,startOfDragCoords:n,endOfDragCoords:o}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(a),t.autoInsertRow=!0):(0,o.isObject)(e)?((0,r.isDefined)(e.autoInsertRow)?e.direction===a.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,r.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(a)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t},t.DIRECTIONS=void 0;var o=n(2),r=n(14),i=n(8),a={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=d(n(15)),r=n(3),i=n(47),a=n(1),s=d(n(124)),l=n(2),u=n(9),c=n(13),f=d(n(431)),h=n(48);function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=v(this,m(t).call(this,e))).heights=[],n.ghostTable=new s.default(n.hot),n.samplesGenerator=new f.default(function(e,t){var o;return e>=0?o=n.hot.getDataAtCell(e,t):-1===e&&(o=n.hot.getColHeader(t)),{value:o}}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",function(e,t,o){return n.onBeforeRowResize(e,t,o)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,o.default),b(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),b(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,l.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),y(m(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var s=this.samplesGenerator.generateRowSamples(-1,a);this.ghostTable.addColumnHeadersRow(s.get(-1))}(0,u.rangeEach)(i.from,i.to,function(t){if(o||void 0===e.heights[t]){var n=e.samplesGenerator.generateRowSamples(t,a);(0,r.arrayEach)(n,function(t){var n=g(t,2),o=n[0],r=n[1];return e.ghostTable.addRow(o,r)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(t,n){e.heights[t]=n}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},o=0,r=this.hot.countRows()-1,a=null;this.inProgress=!0;var s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateRowsHeight({from:0,to:s},n),this.firstCalculation=!1,o=s+1),o<r?function s(){if(!e.hot)return(0,i.cancelAnimationFrame)(a),void(e.inProgress=!1);e.calculateRowsHeight({from:o,to:Math.min(o+t.CALCULATION_STEP,r)},n),(o=o+t.CALCULATION_STEP+1)<r?a=(0,i.requestAnimationFrame)(s):((0,i.cancelAnimationFrame)(a),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,l.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,l.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,a.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return(0,l.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,h.isPercentValue)(e)?e=(0,u.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,o=n.from,r=n.to;(0,u.rangeEach)(Math.min(o,r),Math.max(o,r),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,r.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),o=this.getLastVisibleRow();if(null!==n&&null!==o){if(this.calculateRowsHeight({from:n,to:o},void 0,e),t){var r=this.hot.countRows()-1;this.calculateRowsHeight({from:r-t,to:r})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var o=t;return n&&(this.calculateRowsHeight(e,void 0,!0),o=this.getRowHeight(e)),o}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,c.registerPlugin)("autoRowSize",S);var _=S;t.default=_},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(14),i=n(2),a=n(3),s=n(9),l=m(n(15)),u=n(13),c=m(n(22)),f=n(123),h=n(672),d=n(432),p=n(673),g=m(n(674)),v=n(675),y=n(78);function m(e){return e&&e.__esModule?e:{default:e}}function w(e){return(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})(e)}function b(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){S(e,t,n[t])})}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t,n){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=T(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var M="columnSorting";(0,y.registerRootComparator)(M,v.rootComparator),c.default.getSingleton().register("beforeColumnSort"),c.default.getSingleton().register("afterColumnSort");var N=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?k(e):t}(this,T(t).call(this,e))).columnStatesManager=new h.ColumnStatesManager,n.rowsMapper=new g.default(k(k(n))),n.blockPluginTranslation=!0,n.columnMetaCache=new Map,n.pluginKey=M,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(t,l.default),function(e,t,n){t&&E(e.prototype,t),n&&E(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||((0,r.isUndefined)(this.hot.getSettings().observeChanges)&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(){return e.sortByPresetSortStates()}),this.addHook("afterUntrimRow",function(){return e.sortByPresetSortStates()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("unmodifyRow",function(t,n){return e.onUnmodifyRow(t,n)}),this.addHook("afterGetColHeader",function(t,n){return e.onAfterGetColHeader(t,n)}),this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterInit",function(){return e.loadOrSortBySettings()}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("afterCreateCol",function(){return e.onAfterCreateCol()}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol()}),this.hot.view&&this.loadOrSortBySettings(),O(T(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,n=function(t,n){var o=(0,d.getHeaderSpanElement)(n);!1!==(0,d.isFirstLevelColumnHeader)(t,n)&&null!==o&&e.updateHeaderClasses(o)};this.hot.addHook("afterGetColHeader",n),this.hot.addHookOnce("afterRender",function(){e.hot.removeHook("afterGetColHeader",n)}),this.rowsMapper.clearMap(),O(T(t.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this,n=this.getSortConfig(),o=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(o);if(!1!==this.hot.runHooks("beforeColumnSort",n,o,r)){if(r){var i=(0,a.arrayMap)(o,function(e){return function(e){var n=e.column,o=_(e,["column"]);return C({column:t.hot.toPhysicalColumn(n)},o)}(e)});this.columnStatesManager.setSortStates(i),this.sortByPresetSortStates(),this.saveAllSortSettings(),this.hot.render(),this.hot.view.wt.draw(!0)}this.hot.runHooks("afterColumnSort",n,this.getSortConfig(),r)}}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){var t=this,n=function(e){var n=e.column,o=_(e,["column"]);return C({column:t.hot.toVisualColumn(n)},o)};if((0,r.isDefined)(e)){var o=this.hot.toPhysicalColumn(e),i=this.columnStatesManager.getColumnSortState(o);return(0,r.isDefined)(i)?n(i):void 0}var s=this.columnStatesManager.getSortStates();return(0,a.arrayMap)(s,function(e){return n(e)})}},{key:"setSortConfig",value:function(e){var t=this,n=this.getNormalizedSortConfigs(e);if(this.areValidSortConfigs(n)){var o=(0,a.arrayMap)(n,function(e){return function(e){var n=e.column,o=_(e,["column"]);return C({column:t.hot.toPhysicalColumn(n)},o)}(e)});this.columnStatesManager.setSortStates(o)}}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e].slice(0,1)}},{key:"areValidSortConfigs",value:function(e){if(!1===Array.isArray(e))return!1;var t=e.map(function(e){return e.column}),n=this.hot.countCols(),o=t.every(function(e){return e<=n&&e>=0});return(0,d.areValidSortStates)(e)&&o}},{key:"saveAllSortSettings",value:function(){var e=this.columnStatesManager.getAllColumnsProperties();e.initialConfig=this.columnStatesManager.getSortStates(),this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value;return(0,r.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,a.arrayMap)(n.initialConfig,function(t){var n=t.column,o=_(t,["column"]);return C({column:e.hot.toVisualColumn(n)},o)})),n}},{key:"getColumnNextConfig",value:function(e){var t=this.hot.toPhysicalColumn(e);if(this.columnStatesManager.isColumnSorted(t)){var n=this.getSortConfig(e),o=(0,d.getNextSortOrder)(n.sortOrder);return(0,r.isDefined)(o)?(n.sortOrder=o,n):void 0}var i=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<i)return{column:e,sortOrder:(0,d.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"append",n=this.hot.toPhysicalColumn(e),o=this.columnStatesManager.getIndexOfColumnInSortQueue(n),i=this.columnStatesManager.isColumnSorted(n),a=this.getSortConfig(),s=this.getColumnNextConfig(e);if(i){if((0,r.isUndefined)(s))return[].concat(b(a.slice(0,o)),b(a.slice(o+1)));if("append"===t)return[].concat(b(a.slice(0,o)),b(a.slice(o+1)),[s]);if("replace"===t)return[].concat(b(a.slice(0,o)),[s],b(a.slice(o+1)))}return(0,r.isDefined)(s)?a.concat(s):a}},{key:"setMergedPluginSettings",value:function(e){var t=this.hot.toPhysicalColumn(e),n=this.hot.getSettings()[this.pluginKey],o=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),i=Object.getPrototypeOf(r),a=Object.hasOwnProperty.call(i,this.pluginKey)?i[this.pluginKey]:{};this.columnMetaCache.set(t,Object.assign(o,n,a))}},{key:"getFirstCellSettings",value:function(e){var t=this.blockPluginTranslation;this.blockPluginTranslation=!0,(0===this.columnMetaCache.size||this.columnMetaCache.size<this.hot.countCols())&&this.rebuildColumnMetaCache();var n=this.hot.getCellMeta(0,e);this.blockPluginTranslation=t;var o=Object.create(n);return o[this.pluginKey]=this.columnMetaCache.get(this.hot.toPhysicalColumn(e)),o}},{key:"rebuildColumnMetaCache",value:function(){var e=this,t=this.hot.countCols();0===t?this.columnMetaCache.clear():(0,s.rangeEach)(t-1,function(t){return e.setMergedPluginSettings(t)})}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(){var e=this;if(this.columnStatesManager.isListOfSortedColumnsEmpty())this.rowsMapper.clearMap();else{var t=[],n=this.columnStatesManager.getSortedColumns(),o=this.hot.countRows();this.blockPluginTranslation=!0;for(var r=function(t){return(0,a.arrayMap)(n,function(n){return e.hot.getDataAtCell(t,e.hot.toVisualColumn(n))})},i=0;i<this.getNumberOfRowsToSort(o);i+=1)t.push([i].concat(r(i)));(0,y.sort)(t,this.pluginKey,(0,a.arrayMap)(n,function(t){return e.columnStatesManager.getSortOrderOfColumn(t)}),(0,a.arrayMap)(n,function(t){return e.getFirstCellSettings(e.hot.toVisualColumn(t))}));for(var s=t.length;s<o;s+=1)t.push([s].concat(r(s)));this.blockPluginTranslation=!1,this.rowsMapper._arrayMap=(0,a.arrayMap)(t,function(e){return e[0]})}}},{key:"loadOrSortBySettings",value:function(){this.columnMetaCache.clear();var e=this.getAllSavedSortSettings();if((0,i.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,i.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,i.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"onModifyRow",value:function(e,t){if(!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e,t){return!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()&&(e=this.rowsMapper.getIndexByValue(e)),e}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,d.getHeaderSpanElement)(t);if(!1!==(0,d.isFirstLevelColumnHeader)(e,t)&&null!==n){var o=this.hot.toPhysicalColumn(e),r=this.getFirstCellSettings(e)[this.pluginKey],i=r.indicator,a=r.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,o,i,a)}}},{key:"updateHeaderClasses",value:function(e){if((0,o.removeClass)(e,(0,p.getClassedToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,o.addClass)(e,p.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){O(T(t.prototype),"onUpdateSettings",this).call(this),this.columnMetaCache.clear(),(0,r.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){this.rowsMapper.clearMap(),this.columnMetaCache.clear(),!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(e,t)}},{key:"onAfterCreateCol",value:function(){this.columnMetaCache.clear()}},{key:"onAfterRemoveCol",value:function(){this.columnMetaCache.clear()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.realTarget.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){!1!==(0,d.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(0,f.isPressedCtrlKey)()&&(o.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,d.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&((0,f.isPressedCtrlKey)()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){this.rowsMapper.destroy(),this.columnStatesManager.destroy(),O(T(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)(M,N);var D=N;t.default=D},function(e,t,n){"use strict";t.__esModule=!0,t.ColumnStatesManager=void 0;var o=n(2),r=n(3);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],s=!1,l=!0,u=!0,c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sortedColumnsStates=[],this.sortEmptyCells=s,this.indicator=l,this.headerAction=u,this.compareFunctionFactory=void 0}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"updateAllColumnsProperties",value:function(e){var t=this;(0,o.isObject)(e)&&(0,o.objectEach)(e,function(e,n){a.includes(n)&&(t[n]=e)})}},{key:"getAllColumnsProperties",value:function(){var e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}},{key:"getFirstSortedColumn",value:function(){var e;return this.getNumberOfSortedColumns()>0&&(e=this.sortedColumnsStates[0].column),e}},{key:"getSortOrderOfColumn",value:function(e){var t,n=this.sortedColumnsStates.find(function(t){var n=t.column;return e===n});return(0,o.isObject)(n)&&(t=n.sortOrder),t}},{key:"getSortedColumns",value:function(){return(0,r.arrayMap)(this.sortedColumnsStates,function(e){return e.column})}},{key:"getIndexOfColumnInSortQueue",value:function(e){return this.getSortedColumns().indexOf(e)}},{key:"getNumberOfSortedColumns",value:function(){return this.sortedColumnsStates.length}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return this.getSortedColumns().includes(e)}},{key:"getSortStates",value:function(){return(0,o.deepClone)(this.sortedColumnsStates)}},{key:"getColumnSortState",value:function(e){if(this.isColumnSorted(e))return(0,o.deepClone)(this.sortedColumnsStates[this.getIndexOfColumnInSortQueue(e)])}},{key:"setSortStates",value:function(e){this.sortedColumnsStates=e}},{key:"destroy",value:function(){this.sortedColumnsStates.length=0,this.sortedColumnsStates=null}}]),e}();t.ColumnStatesManager=c},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n,o){var l=[i];o&&l.push(a);if(!1===n)l.push(r);else if(e.isColumnSorted(t)){var u=e.getSortOrderOfColumn(t);l.push(s.get(u))}return l},t.getClassedToRemove=function(){return Array.from(s.values()).concat(a,r,i)};var o=n(432),r="indicatorDisabled",i="columnSorting",a="sortAction",s=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(125)),r=n(2),i=n(9);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,i.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}}]),e}();(0,r.mixin)(s,o.default);var l=s;t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(n,i){var a=r(n),s=a.slice(1),l=r(i),u=l.slice(1);return function(n){var r=e[n],i=t[n],a=s[n],l=u[n],c=i.columnSorting,f=c.compareFunctionFactory?c.compareFunctionFactory:(0,o.getCompareFunctionFactory)(i.type),h=f(r,i,c)(a,l);return h}(0)}};var o=n(78);function r(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){return function(t,i){var a=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLowerCase()),"string"==typeof i&&(i=i.toLowerCase()),t===i?r.DO_NOT_SWAP:(0,o.isEmpty)(t)?(0,o.isEmpty)(i)?r.DO_NOT_SWAP:a&&"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:(0,o.isEmpty)(i)?a&&"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(i)?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(i)?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(i)||(t=parseFloat(t),i=parseFloat(i)),t<i?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:t>i?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP)}},t.COLUMN_DATA_TYPE=void 0;var o=n(14),r=n(78);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){return function(t,i){var a=parseFloat(t),s=parseFloat(i),l=n.sortEmptyCells;if(a===s||isNaN(a)&&isNaN(s))return r.DO_NOT_SWAP;if(l){if((0,o.isEmpty)(t))return"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND;if((0,o.isEmpty)(i))return"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND}return isNaN(a)?r.FIRST_AFTER_SECOND:isNaN(s)?r.FIRST_BEFORE_SECOND:a<s?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:a>s?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}},t.COLUMN_DATA_TYPE=void 0;var o=n(14),r=n(78);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){return function(a,s){var l=n.sortEmptyCells;if(a===s)return i.DO_NOT_SWAP;if((0,r.isEmpty)(a))return(0,r.isEmpty)(s)?i.DO_NOT_SWAP:l&&"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND;if((0,r.isEmpty)(s))return l&&"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND;var u=t.dateFormat,c=(0,o.default)(a,u),f=(0,o.default)(s,u);return c.isValid()?f.isValid()?f.isAfter(c)?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:f.isBefore(c)?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP:i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND}},t.COLUMN_DATA_TYPE=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(67)),r=n(14),i=n(78);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";t.__esModule=!0,t.sort=function(e,t){for(var n=(0,r.getRootComparator)(t),i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];(0,o.default)(e,n.apply(void 0,a))},t.FIRST_AFTER_SECOND=t.FIRST_BEFORE_SECOND=t.DO_NOT_SWAP=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(680)),r=n(433);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";t.__esModule=!0,t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(Math.abs(a-i)<=1)return[];var s=Math.ceil((i+a)/2);e(t,n,i,s);e(t,n,s,a);return function(e,t,n,r,i){for(var a=new o.default,s=new o.default,l=r-n,u=i-r,c=Math.max(l,u),f=i-n,h=0;h<c;h+=1)h<l&&a.push(e[n+h]),h<u&&s.push(e[r+h]);var d=0;for(;d<f;)a.first&&s.first?t(a.first.data,s.first.data)>0?e[n+d]=s.shift().data:e[n+d]=a.shift().data:a.first?e[n+d]=a.shift().data:e[n+d]=s.shift().data,d+=1;return e}(t,n,i,s,a)};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(681));var r=function(e,t){var n=e.toString(),o=t.toString();return n===o?0:n<o?-1:1}},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=t.NodeStructure=void 0;var i=function e(t){r(this,e),this.data=t,this.next=null,this.prev=null};t.NodeStructure=i;var a=function(){function e(){r(this,e),this.first=null,this.last=null}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"push",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t,n,o=this.first;o;){if(o.data===e)return t=o.next,n=o.prev,t&&(t.prev=n),n&&(n.next=t),o===this.first&&(this.first=t),o===this.last&&(this.last=n),!0;o=o.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if((e=e.next)===(t=t.next))return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){if(this.first){!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;var e=this.first;this.first=this.last,this.last=e}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e,t=this.first.next,n=this.first;t;)e=t.next,t.next=n,n.prev=t,n=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(2),i=d(n(10)),a=n(8),s=n(13),l=d(n(15)),u=d(n(683)),c=n(30),f=d(n(684)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(685);var C=new WeakMap,S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?b(e):t}(this,m(t).call(this,e))).editor=null,n.displaySwitch=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,C.set(b(b(n)),{tempEditorDimensions:{},cellBelowCursor:null}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,l.default),function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new u.default),this.eventManager||(this.eventManager=new i.default(this)),this.displaySwitch||(this.displaySwitch=new f.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,r,i,a){return e.onAfterRenderer(t,a)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(){return e.onAfterBeginEditing()}),this.displaySwitch.addLocalHook("hide",function(){return e.hide()}),this.displaySwitch.addLocalHook("show",function(t,n){return e.showAtCell(t,n)}),this.registerListeners(),y(m(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),y(m(t.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(){return e.onEditorBlur()}),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(t){return e.onEditorMouseDown(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(t){return e.onEditorMouseUp(t)})}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,o.closest)(e.target,"TD","TBODY");return!!(t&&(0,o.hasClass)(t,"htCommentCell")&&(0,o.closest)(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!==e&&void 0!==e?n=e:null!==t&&void 0!==t&&(n=t);var o=this.range.from.row,r=this.range.from.col;this.updateCommentMeta(o,r,g({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new a.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,"comment",void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:new a.CellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{key:"show",value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e.comment?e.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new a.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=(0,o.getScrollableElement)(this.hot.view.wt.wtTable.TABLE),t=this.hot.view.wt.wtTable.getCell(this.range.from),n=this.range.from.row,r=this.range.from.col,i=(0,o.offset)(t),a=this.hot.view.wt.wtTable.getStretchedColumnWidth(r),s=i.top<0?0:i.top,l=i.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&e!==window&&(s-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&e!==window&&(l-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var u=l+a,c=s,f=this.getCommentMeta(n,r,"style"),h=this.getCommentMeta(n,r,"readOnly");f?this.editor.setSize(f.width,f.height):this.editor.resetSize(),this.editor.setReadOnlyState(h),this.editor.setPosition(u,c)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var o,i=this.hot.getCellMeta(e,t).comment;i?(o=(0,r.deepClone)(i),(0,r.deepExtend)(o,n)):o=n,this.hot.setCellMeta(e,t,"comment",o)}},{key:"getCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o.comment)return o.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,o.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=C.get(this);if(t.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,o.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var n=this.hot.view.wt.wtTable.getCoords(e.target),r={from:new a.CellCoords(n.row,n.col)};this.displaySwitch.show(r)}else(0,o.isChildOf)(e.target,document)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,o.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){C.get(this).tempEditorDimensions={width:(0,o.outerWidth)(e.target),height:(0,o.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=C.get(this),n=(0,o.outerWidth)(e.target),r=(0,o.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,g({},"style",{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;o<=n.row;o++)for(var r=t.col;r<=n.col;r++)this.removeCommentAtCell(o,r,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;o<=n.row;o++)for(var r=t.col;r<=n.col;r++){var i=!!this.getCommentMeta(o,r,"readOnly");this.updateCommentMeta(o,r,g({},"readOnly",!i))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelectedLast()&&!this.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return t.hot.selection.isSelectedByCorner()}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,c.checkSelectionConsistency)(this.getSelectedRangeLast(),function(t,n){var o=e.getCellMeta(t,n).comment;if(o&&(o=o.readOnly),o)return!0})&&(t=(0,c.markLabelAsSelected)(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return t.hot.selection.isSelectedByCorner()||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,r.isObject)(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,s.registerPlugin)("comments",S);var _=S;t.default=_},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return i(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),i(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left="".concat(e,"px"),this.editorStyle.top="".concat(t,"px")}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px")}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return document.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=document.createElement("div"),n=document.createElement("textarea"),r=document.querySelector(".".concat(e.CLASS_EDITOR_CONTAINER));return r||(r=document.createElement("div"),(0,o.addClass)(r,e.CLASS_EDITOR_CONTAINER),document.body.appendChild(r)),(0,o.addClass)(t,e.CLASS_EDITOR),(0,o.addClass)(n,e.CLASS_INPUT),t.appendChild(n),r.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.CLASS_INPUT))}},{key:"destroy",value:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(59),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(n(68));function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"hide",value:function(){var e=this;this.wasLastActionShow=!1,this.hidingTimer=setTimeout(function(){!1===e.wasLastActionShow&&e.runLocalHooks("hide")},250)}},{key:"show",value:function(e){this.wasLastActionShow=!0,this.showDebounced(e)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}},{key:"updateDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,o.debounce)(function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)},t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();(0,r.mixin)(s,i.default);var l=s;t.default=l},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=p(n(15)),r=p(n(22)),i=n(3),a=p(n(687)),s=p(n(10)),l=p(n(688)),u=p(n(700)),c=n(13),f=n(18),h=n(1),d=n(127);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(702),r.default.getSingleton().register("afterContextMenuDefaultOptions"),r.default.getSingleton().register("beforeContextMenuShow"),r.default.getSingleton().register("afterContextMenuShow"),r.default.getSingleton().register("afterContextMenuHide"),r.default.getSingleton().register("afterContextMenuExecute");var S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?C(e):t}(this,y(t).call(this,e))).eventManager=new s.default(C(C(n))),n.commandExecutor=new a.default(n.hot),n.itemsFactory=null,n.menu=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,o.default),w(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[d.ROW_ABOVE,d.ROW_BELOW,d.SEPARATOR,d.COLUMN_LEFT,d.COLUMN_RIGHT,d.SEPARATOR,d.REMOVE_ROW,d.REMOVE_COLUMN,d.SEPARATOR,d.UNDO,d.REDO,d.SEPARATOR,d.READ_ONLY,d.SEPARATOR,d.ALIGNMENT]}}]),w(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new l.default(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(n)};"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),v(y(t.prototype),"enablePlugin",this).call(this);var r=function(){if(e.hot){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var t=e.itemsFactory.getItems(n);e.menu=new u.default(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("beforeOpen",function(){return e.onMenuBeforeOpen()}),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.executeCommand).call.apply(t,[e].concat(o))}),e.addHook("afterOnCellContextMenu",function(t){return e.onAfterOnCellContextMenu(t)}),(0,i.arrayEach)(t,function(t){return e.commandExecutor.registerCommand(t.key,t)})}};this.callOnPluginsReady(function(){e.isPluginsReady?setTimeout(r,0):r()})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),v(y(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),v(y(t.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt((0,f.pageY)(e),10)-(0,h.getWindowScrollTop)(),left:parseInt((0,f.pageX)(e),10)-(0,h.getWindowScrollLeft)()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];(t=this.commandExecutor).execute.apply(t,[e].concat(o))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders;var r=e.realTarget;this.close(),(0,h.hasClass)(r,"handsontableInput")||(e.preventDefault(),(0,f.stopPropagation)(e),(n||o||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(r)||(0,h.hasClass)(r,"current")&&(0,h.hasClass)(r,"wtBorder"))&&this.open(e))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),v(y(t.prototype),"destroy",this).call(this)}}]),t}();S.SEPARATOR={name:d.SEPARATOR},(0,c.registerPlugin)("contextMenu",S);var _=S;t.default=_},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(3),r=n(2);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.commands={},this.commonCallback=null}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=e.split(":"),l=s[0],u=2===s.length?s[1]:null,c=this.commands[l];if(!c)throw new Error("Menu command '".concat(l,"' not exists."));if(u&&c.submenu&&(c=function(e,t){var n;return(0,o.arrayEach)(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}(u,c.submenu.items)),!0!==c.disabled&&("function"!=typeof c.disabled||!0!==c.disabled.call(this.hot))&&!(0,r.hasOwnProperty)(c,"submenu")){var f=[];"function"==typeof c.callback&&f.push(c.callback),"function"==typeof this.commonCallback&&f.push(this.commonCallback),i.unshift(s.join(":")),(0,o.arrayEach)(f,function(e){return e.apply(t.hot,i)})}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(2),r=n(3),i=n(127);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.predefinedItems=(0,i.predefinedItems)(),this.defaultOrderPattern=n}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,o.objectEach)(e,function(e,o){var r="";e.name===i.SEPARATOR?(n[i.SEPARATOR]=e,r=i.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,r=e.key):(n[e.key]=e,r=e.key),t.defaultOrderPattern.push(r)}),this.predefinedItems=n}},{key:"getItems",value:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,o.isObject)(s)?(0,o.objectEach)(s,function(e,t){var r=n["string"==typeof e?e:t];r||(r=e),(0,o.isObject)(e)?(0,o.extend)(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),a.push(r)}):(0,r.arrayEach)(s,function(e,t){var r=n[e];!r&&i.ITEMS.indexOf(e)>=0||(r||(r={name:e,key:"".concat(t)}),(0,o.isObject)(e)&&(0,o.extend)(r,e),void 0===r.key&&(r.key=t),a.push(r))});return a}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:a,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(a,":left"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htLeft"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,o.align)(t,"horizontal","htLeft",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:"".concat(a,":center"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htCenter"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,o.align)(t,"horizontal","htCenter",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:"".concat(a,":right"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htRight"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,o.align)(t,"horizontal","htRight",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:"".concat(a,":justify"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htJustify"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,o.align)(t,"horizontal","htJustify",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{name:r.KEY},{key:"".concat(a,":top"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_TOP),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htTop"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,o.align)(t,"vertical","htTop",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:"".concat(a,":middle"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htMiddle"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,o.align)(t,"vertical","htMiddle",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:"".concat(a,":bottom"),name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htBottom"))return!0});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,o.align)(t,"vertical","htBottom",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1}]}}},t.KEY=void 0;var o=n(30),r=n(126),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var a="alignment";t.KEY=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,o.getValidSelection)(this);if(!e)return!0;var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e[0],3),n=t[0],r=t[1],i=t[2],a=[n,0,i,this.countCols()-1],s=a.join(",")===e.join(",");return r<0||this.countCols()>=this.getSettings().maxCols||s}}},t.KEY=void 0;var o=n(30),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var i="clear_column";t.KEY=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,o.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e[0],3),n=t[0],r=t[1],i=t[2],a=[n,0,i,this.countCols()-1],s=a.join(",")===e.join(","),l=1===this.countCols();return r<0||this.countCols()>=this.getSettings().maxCols||!l&&s},hidden:function(){return!this.getSettings().allowInsertColumn}}},t.KEY=void 0;var o=n(30),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var i="col_left";t.KEY=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,o.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e[0],3),n=t[0],r=t[1],i=t[2],a=[n,0,i,this.countCols()-1],s=a.join(",")===e.join(","),l=1===this.countCols();return r<0||this.countCols()>=this.getSettings().maxCols||!l&&s},hidden:function(){return!this.getSettings().allowInsertColumn}}},t.KEY=void 0;var o=n(30),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var i="col_right";t.KEY=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:a,name:function(){var e=this,t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY),n=(0,o.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly});return n&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.checkSelectionConsistency)(t,function(t,n){return e.getCellMeta(t,n).readOnly});(0,r.arrayEach)(t,function(t){t.forAll(function(t,o){e.setCellMeta(t,o,"readOnly",!n)})}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())}}},t.KEY=void 0;var o=n(30),r=n(3),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var a="make_read_only";t.KEY=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:r,name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}},t.KEY=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var r="redo";t.KEY=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:a,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e[0],4),o=n[1],r=n[3];o-r!=0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback:function(){this.alter("remove_col",(0,r.transformSelectionToColumnDistance)(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){var e=(0,o.getValidSelection)(this),t=this.countCols();return!e||(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner()||!this.isColumnModificationAllowed()||!t)},hidden:function(){return!this.getSettings().allowRemoveColumn}}},t.KEY=void 0;var o=n(30),r=n(91),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var a="remove_col";t.KEY=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:a,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e[0],3),o=n[0],r=n[2];o-r!=0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback:function(){this.alter("remove_row",(0,r.transformSelectionToRowDistance)(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){var e=(0,o.getValidSelection)(this),t=this.countRows();return!e||(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner()||!t)},hidden:function(){return!this.getSettings().allowRemoveRow}}},t.KEY=void 0;var o=n(30),r=n(91),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var a="remove_row";t.KEY=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.start.row,1,"ContextMenu.rowAbove")},disabled:function(){var e=(0,o.getValidSelection)(this);return!e||(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}},t.KEY=void 0;var o=n(30),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var i="row_above";t.KEY=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){var e=(0,o.getValidSelection)(this);return!e||(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}},t.KEY=void 0;var o=n(30),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var i="row_below";t.KEY=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:r,name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}},t.KEY=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11));var r="undo";t.KEY=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=v(n(120)),r=n(1),i=n(3),a=v(n(701)),s=v(n(10)),l=n(2),u=n(14),c=n(59),f=n(30),h=n(32),d=v(n(68)),p=n(127),g=n(18);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var m=215,w=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:m},this.eventManager=new s.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n)}(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,c.debounce)(function(t){return e.openSubMenu(t)},300),n=this.options.minWidth||m,r=(0,i.arrayFilter)(this.menuItems,function(t){return(0,f.isItemHidden)(t,e.hot)}),a={data:r=(0,f.filterSeparators)(r,p.SEPARATOR),colHeaders:!1,autoColumnSize:!0,modifyColWidth:function(e){return(0,u.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,r,i,a){return e.menuItemRenderer(t,n,o,r,i,a)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)},rowHeights:function(e){return r[e].name===p.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new o.default(this.container,a),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.addHook("afterSelection",function(){return e.onAfterSelection.apply(e,arguments)}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,f.hasSubMenu)(n))return!1;var o=this.hotMenu.getSourceDataAtRow(t),r=new e(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0});return r.setMenuItems(o.submenu.items),r.open(),r.setPosition(n.getBoundingClientRect()),this.hotSubMenus[o.key]=r,r}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,i.arrayEach)(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelectedLast()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==p.SEPARATOR){var n=this.hot.getSelectedRange(),o=n?(0,f.normalizeSelection)(n):[],r=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(r=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),r&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new a.default(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+(0,r.getScrollbarWidth)()+4;this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,f.isSeparator)(e)||(0,f.isDisabled)(e)||(0,f.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,f.isSeparator)(t)||(0,f.isDisabled)(t)||(0,f.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&((0,f.isSeparator)(o)||(0,f.isDisabled)(o)||(0,f.isSelectionDisabled)(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,o=n>=0?this.hotMenu.getCell(n,t):null;o&&((0,f.isSeparator)(o)||(0,f.isDisabled)(o)||(0,f.isSelectionDisabled)(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,o,i,a){var s=this,u=e.getSourceDataAtRow(n),c=document.createElement("div"),f=function(e){return e.disableSelection},h=a;"function"==typeof h&&(h=h.call(this.hot)),(0,r.empty)(t),(0,r.addClass)(c,"htItemWrapper"),t.appendChild(c),!function(e){return new RegExp(p.SEPARATOR,"i").test(e.name)}(u)?"function"==typeof u.renderer?((0,r.addClass)(t,"htCustomMenuRenderer"),t.appendChild(u.renderer(e,c,n,o,i,h))):(0,r.fastInnerHTML)(c,h):(0,r.addClass)(t,"htSeparator"),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(u)?f(u)?((0,r.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):!function(e){return(0,l.hasOwnProperty)(e,"submenu")}(u)?((0,r.removeClass)(t,"htSubmenu"),(0,r.removeClass)(t,"htDisabled"),f(u)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,r.addClass)(t,"htSubmenu"),f(u)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,r.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?((0,c.isFunction)(t)&&(t=null===(t=t.call(this.hot))||(0,u.isUndefined)(t)?"":t.toString()),t=t.replace(/[^A-z0-9]/g,"_"),t="".concat(this.options.className,"Sub_").concat(t),e=document.querySelector(".".concat(this.options.className,".").concat(t))):e=document.querySelector(".".concat(this.options.className)),e||(e=document.createElement("div"),(0,r.addClass)(e,"htMenu ".concat(this.options.className)),t&&(0,r.addClass)(e,t),document.getElementsByTagName("body")[0].appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case h.KEY_CODES.ESCAPE:this.close(),n=!0;break;case h.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case h.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case h.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case h.KEY_CODES.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case h.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,g.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),r=(0,i.arrayReduce)(e,function(e,t){return e+(t.name===p.SEPARATOR?1:26)},0);n.width="".concat(o+22,"px"),n.height="".concat(r+4,"px"),t.height=n.height}},{key:"onAfterSelection",value:function(e,t,n,o,r){!1===this.keyEvent&&(r.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,r.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,r.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,r.isChildOf)(e.target,".htMenu")&&(0,r.isChildOf)(e.target,document)&&this.close(!0))}}]),e}();(0,l.mixin)(w,d.default);var b=w;t.default=b},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(18);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n,i,a,s,l,u,c=(0,o.getWindowScrollTop)(),f=(0,o.getWindowScrollLeft)();this.type=this.getSourceType(t),"literal"===this.type?(n=parseInt(t.top,10),a=parseInt(t.left,10),l=t.height||0,u=t.width||0,i=n,s=a,n+=c,a+=f):"event"===this.type&&(n=parseInt((0,r.pageY)(t),10),a=parseInt((0,r.pageX)(t),10),l=t.target.clientHeight,u=t.target.clientWidth,i=n-c,s=a-f),this.top=n,this.topRelative=i,this.left=a,this.leftRelative=s,this.scrollTop=c,this.scrollLeft=f,this.cellHeight=l,this.cellWidth=u}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}();t.default=a},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=g(n(15)),r=g(n(22)),i=g(n(422)),a=n(3),s=n(9),l=n(1),u=n(13),c=g(n(704)),f=g(n(705)),h=g(n(706)),d=n(708),p=n(709);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t,n){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(710),r.default.getSingleton().register("afterCopyLimit"),r.default.getSingleton().register("modifyCopyableRange"),r.default.getSingleton().register("beforeCut"),r.default.getSingleton().register("afterCut"),r.default.getSingleton().register("beforePaste"),r.default.getSingleton().register("afterPaste"),r.default.getSingleton().register("beforeCopy"),r.default.getSingleton().register("afterCopy");var _=1e3,E=1e3,O=new WeakMap,T=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?S(e):t}(this,b(t).call(this,e))).columnsLimit=E,n.copyableRanges=[],n.pasteMode="overwrite",n.rowsLimit=_,O.set(S(S(n)),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,o.default),function(e,t,n){t&&m(e.prototype,t),n&&m(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings();O.get(this).isFragmentSelectionEnabled=n.fragmentSelection,"object"===y(n.copyPaste)&&(this.pasteMode=n.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=n.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=n.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterOnCellMouseUp",function(){return e.onAfterOnCellMouseUp()}),this.addHook("afterSelectionEnd",function(){return e.onAfterSelectionEnd()}),this.addHook("beforeKeyDown",function(){return e.onBeforeKeyDown()}),this.focusableElement=(0,d.createElement)(),this.focusableElement.addLocalHook("copy",function(t){return e.onCopy(t)}).addLocalHook("cut",function(t){return e.onCut(t)}).addLocalHook("paste",function(t){return e.onPaste(t)}),w(b(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),w(b(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,d.destroyElement)(this.focusableElement),w(b(t.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){O.get(this).isTriggeredByCopy=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),document.execCommand("copy")}},{key:"cut",value:function(){O.get(this).isTriggeredByCut=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),document.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],o=[],r=[];return(0,a.arrayEach)(e,function(e){(0,s.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,s.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,a.arrayEach)(o,function(e){var o=[];(0,a.arrayEach)(r,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),i.default.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],o=[],r=[];return(0,a.arrayEach)(e,function(e){(0,s.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,s.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,a.arrayEach)(o,function(e){var o=[];(0,a.arrayEach)(r,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new h.default;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,r=t.col,i=n.row,a=n.col,s=Math.min(i,o+this.rowsLimit-1),l=Math.min(a,r+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:o,startCol:r,endRow:s,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),i===s&&a===l||this.hot.runHooks("afterCopyLimit",i-o+1,a-r+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var e=this.hot.getActiveEditor(),t=e?e.TEXTAREA:void 0;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e=this.hot.getActiveEditor();return e&&e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedLast();if(e.length){for(var n=e.length-1,o=e[0].length-1,r=Math.min(t[0],t[2]),i=Math.max(t[0],t[2],n+r),a=Math.min(t[1],t[3]),s=Math.max(t[1],t[3],o+a),l=[],u=r,c=0;u<=i;u+=1){for(var f=[],h=a,d=0;h<=s;h+=1)f.push(e[c][d]),d=d===o?0:d+=1;l.push(f),c=c===n?0:c+=1}return this.hot.populateFromArray(r,a,l,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,a,i,s]}}},{key:"onCopy",value:function(e){var t=O.get(this);if((this.hot.isListening()||t.isTriggeredByCopy)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCopy=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",n,this.copyableRanges)){var o=i.default.stringify(n);if(e&&e.clipboardData){var r=(0,p.arrayToTable)(n);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",r)}else"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",o);this.hot.runHooks("afterCopy",n,this.copyableRanges)}e.preventDefault()}}},{key:"onCut",value:function(e){var t=O.get(this);if((this.hot.isListening()||t.isTriggeredByCut)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCut=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",n,this.copyableRanges)){var o=i.default.stringify(n);if(e&&e.clipboardData){var r=(0,p.arrayToTable)(n);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",r)}else"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",o);this.hot.emptySelectedCells(),this.hot.runHooks("afterCut",n,this.copyableRanges)}e.preventDefault()}}},{key:"onPaste",value:function(e){if(this.hot.isListening()&&!this.isEditorOpened()){var t;if(e&&e.preventDefault&&e.preventDefault(),e&&void 0!==e.clipboardData){var n=e.clipboardData.getData("text/html");t=n&&/(<table)|(<TABLE)/.test(n)?(0,p.tableToArray)(n):e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==window.clipboardData&&(t=window.clipboardData.getData("Text"));var o="string"!=typeof t?t:i.default.parse(t);if(0!==o.length&&!1!==this.hot.runHooks("beforePaste",o,this.copyableRanges)){var r=v(this.populateValues(o),4),a=r[0],s=r[1],l=r[2],u=r[3];this.hot.selectCell(a,s,Math.min(this.hot.countRows()-1,l),Math.min(this.hot.countCols()-1,u)),this.hot.runHooks("afterPaste",o,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,c.default)(this),(0,f.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){this.hot.isListening()&&!this.isEditorOpened()&&(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){var e=O.get(this).isFragmentSelectionEnabled;this.isEditorOpened()||(this.getOrCreateFocusableElement(),e&&this.focusableElement.getFocusableElement()!==document.activeElement&&(0,l.getSelectionText)()||(this.setCopyableText(),this.focusableElement.focus()))}},{key:"onBeforeKeyDown",value:function(){if(this.hot.isListening()&&!this.isEditorOpened()){var e=document.activeElement,t=this.hot.getActiveEditor();!t||e!==this.focusableElement.getFocusableElement()&&e!==t.select||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}}},{key:"destroy",value:function(){this.focusableElement&&((0,d.destroyElement)(this.focusableElement),this.focusableElement=null),w(b(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)("CopyPaste",T);var R=T;t.default=R},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copy()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(707));t.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clipboardData=new o.default}},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data={}}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.createElement=function(){var e=new u;return c+=1,e},t.deactivateElement=f,t.destroyElement=function(e){if(!(e instanceof u))return;c>0&&(c-=1);f(e),c<=0&&(c=0,h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),e.mainElement=null)};var o=s(n(10)),r=s(n(68)),i=n(2),a=n(42);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mainElement=null,this.eventManager=new o.default(this),this.listenersCount=new WeakSet}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(e,[{key:"useSecondaryElement",value:function(){var e=function(){if(h)return h.parentElement||document.body.appendChild(h),h;var e=document.createElement("textarea");return h=e,e.id="HandsontableCopyPaste",e.className="copyPaste",e.tabIndex=-1,e.autocomplete="off",e.wrap="hard",e.value=" ",document.body.appendChild(e),e}();this.listenersCount.has(e)||(this.listenersCount.add(e),p(this.eventManager,e,this)),this.mainElement=e}},{key:"setFocusableElement",value:function(e){this.listenersCount.has(e)||(this.listenersCount.add(e),p(this.eventManager,e,this)),this.mainElement=e}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ",(0,a.isMobileBrowser)()||this.mainElement.select()}}]),e}();(0,i.mixin)(u,r.default);var c=0;function f(e){e.eventManager.clear()}var h,d=function(e,t){return function(n){return t.runLocalHooks(e,n)}};function p(e,t,n){e.addEventListener(t,"copy",d("copy",n)),e.addEventListener(t,"cut",d("cut",n)),e.addEventListener(t,"paste",d("paste",n))}},function(e,t,n){"use strict";t.__esModule=!0,t.arrayToTable=function(e){var t=e.length,n=["<table>"],r=document.createElement("div");document.documentElement.appendChild(r);for(var i=0;i<t;i+=1){var a=e[i],s=a.length,l=[];0===i&&n.push("<tbody>");for(var u=0;u<s;u+=1)r.innerText="".concat((0,o.isEmpty)(a[u])?"":a[u]),l.push("<td>".concat(r.innerHTML,"</td>"));n.push.apply(n,["<tr>"].concat(l,["</tr>"])),i+1===t&&n.push("</tbody>")}return document.documentElement.removeChild(r),n.push("</table>"),n.join("")},t.tableToArray=function(e){var t=[],n=e;if("string"==typeof n){var o=document.createElement("div");o.innerHTML=n.replace(/\n/g,""),n=o.querySelector("table")}if(n&&function(e){return"table"===(e&&e.nodeName||"").toLowerCase()}(n)){for(var r=n.rows,i=r&&r.length,a=[],s=0;s<i;s+=1){for(var l=r[s].cells,u=l.length,c=[],f=0;f<u;f+=1){var h=l[f];h.innerHTML=h.innerHTML.trim().replace(/<br(.|)>(\n?)/,"\n");var d=h.innerText;c.push(d)}a.push(c)}t.push.apply(t,a)}return t};var o=n(14)},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),r=n(13),i=n(2),a=n(9),s=n(3),l=n(8),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),c=n(712),f=n(69),h=n(429);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=v(this,m(t).call(this,e))).savedBorders=[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,o.default),function(e,t,n){t&&g(e.prototype,t),n&&g(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),y(m(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),y(m(t.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,o=t?Object.keys(t):["top","right","bottom","left"],r=(0,h.detectSelectionType)(e),i=(0,h.normalizeSelectionFactory)(r);(0,s.arrayEach)(e,function(e){for(var r=p(i(e),4),a=r[0],l=r[1],u=r[2],c=r[3],f=function(e){for(var r=function(r){(0,s.arrayEach)(o,function(o){n.prepareBorderFromCustomAdded(e,r,t,o)})},i=l;i<=c;i+=1)r(i)},h=a;h<=u;h+=1)f(h)})}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=(0,h.detectSelectionType)(e),o=(0,h.normalizeSelectionFactory)(n),r=[];return(0,s.arrayEach)(e,function(e){for(var n=p(o(e),4),i=n[0],a=n[1],l=n[2],u=n[3],c=function(e){for(var n=function(n){(0,s.arrayEach)(t.savedBorders,function(t){t.row===e&&t.col===n&&r.push(t)})},o=a;o<=u;o+=1)n(o)},f=i;f<=l;f+=1)c(f)}),r}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,s.arrayEach)(this.savedBorders,function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange(),t.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);var n={row:e.row,col:e.col},o=new l.CellRange(n,n,n);this.checkCustomSelections(e,o,t)||(this.hot.selection.highlight.addCustomSelection({border:e,cellRange:o}),this.hot.view.wt.draw(!0))}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,o){var r=(0,f.createEmptyBorders)(e,t);n&&(r=(0,f.extendDefaultBorder)(r,n),(0,s.arrayEach)(this.hot.selection.highlight.customSelections,function(e){if(r.id===e.settings.id)return Object.assign(e.settings,n),r=e.settings,!1})),this.hot.setCellMeta(e,t,"borders",r),this.insertBorderIntoSettings(r,o)}},{key:"prepareBorderFromCustomAddedRange",value:function(e){var t=this,n=e.range;(0,a.rangeEach)(n.from.row,n.to.row,function(o){(0,a.rangeEach)(n.from.col,n.to.col,function(r){var a=(0,f.createEmptyBorders)(o,r),s=0;o===n.from.row&&(s+=1,(0,i.hasOwnProperty)(e,"top")&&(a.top=e.top)),o===n.to.row&&(s+=1,(0,i.hasOwnProperty)(e,"bottom")&&(a.bottom=e.bottom)),r===n.from.col&&(s+=1,(0,i.hasOwnProperty)(e,"left")&&(a.left=e.left)),r===n.to.col&&(s+=1,(0,i.hasOwnProperty)(e,"right")&&(a.right=e.right)),s>0&&(t.hot.setCellMeta(o,r,"borders",a),t.insertBorderIntoSettings(a))})})}},{key:"removeAllBorders",value:function(e,t){var n=(0,f.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,o){var r=this.hot.getCellMeta(e,t).borders;(r&&void 0!==r.border||(r=(0,f.createEmptyBorders)(e,t)),o)?(r[n]=(0,f.createSingleEmptyBorder)(),4===this.countHide(r)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(r,n,o)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",r))):(r[n]=(0,f.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(r,n,o)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",r))}},{key:"prepareBorder",value:function(e,t,n){var o=this;(0,s.arrayEach)(e,function(e){var r=e.start,i=e.end;if(r.row===i.row&&r.col===i.col)"noBorders"===t?o.removeAllBorders(r.row,r.col):o.setBorder(r.row,r.col,t,n);else switch(t){case"noBorders":(0,a.rangeEach)(r.col,i.col,function(e){(0,a.rangeEach)(r.row,i.row,function(t){o.removeAllBorders(t,e)})});break;case"top":(0,a.rangeEach)(r.col,i.col,function(e){o.setBorder(r.row,e,t,n)});break;case"right":(0,a.rangeEach)(r.row,i.row,function(e){o.setBorder(e,i.col,t,n)});break;case"bottom":(0,a.rangeEach)(r.col,i.col,function(e){o.setBorder(i.row,e,t,n)});break;case"left":(0,a.rangeEach)(r.row,i.row,function(e){o.setBorder(e,r.col,t,n)})}})}},{key:"createCustomBorders",value:function(e){var t=this;(0,s.arrayEach)(e,function(e){e.range?t.prepareBorderFromCustomAddedRange(e):t.prepareBorderFromCustomAdded(e.row,e.col,e)})}},{key:"countHide",value:function(e){var t=Object.values(e);return(0,s.arrayReduce)(t,function(e,t){var n=e;return t.hide&&(n+=1),n},0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,s.arrayMap)(this.hot.selection.highlight.customSelections,function(e){return e.settings.id}).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear(),this.hot.view.wt.draw(!0)}},{key:"clearNullCellRange",value:function(){var e=this;(0,s.arrayEach)(this.hot.selection.highlight.customSelections,function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections.splice(n,1),!1})}},{key:"hideBorders",value:function(){var e=this;(0,s.arrayEach)(this.savedBorders,function(t){e.clearBordersFromSelectionSettings(t.id)})}},{key:"spliceBorder",value:function(e){var t=(0,s.arrayMap)(this.savedBorders,function(e){return e.id}).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):(0,s.arrayEach)(this.savedBorders,function(o,r){if(e.id===o.id)return t.savedBorders[r]=e,n=!0,!1}),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var o=!1;return(0,s.arrayEach)(this.hot.selection.highlight.customSelections,function(r){if(e.id===r.settings.id)return(0,i.objectEach)(r.instanceBorders,function(e){e.toggleHiddenClass(t,n)}),o=!0,!1}),o}},{key:"checkCustomSelections",value:function(e,t,n){var o=!1;return 4===this.countHide(e)?(this.removeAllBorders(e.row,e.col),this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),o=!0):(0,s.arrayEach)(this.hot.selection.highlight.customSelections,function(r){if(e.id===r.settings.id)return r.cellRange=t,n&&(0,i.objectEach)(r.instanceBorders,function(t){t.changeBorderStyle(n,e)}),o=!0,!1}),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;Array.isArray(e)?(e.length||(this.savedBorders=e),this.createCustomBorders(e)):void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_BORDERS)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,r.registerPlugin)("customBorders",b);var C=b;t.default=C},function(e,t,n){"use strict";t.__esModule=!0;var o=l(n(713));t.bottom=o.default;var r=l(n(714));t.left=r.default;var i=l(n(715));t.noBorders=i.default;var a=l(n(716));t.right=a.default;var s=l(n(717));function l(e){return e&&e.__esModule?e:{default:e}}t.top=s.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_BOTTOM),t=(0,r.checkSelectionBorders)(this,"bottom");return t&&(e=(0,r.markSelected)(e)),e},callback:function(t,n){var o=(0,r.checkSelectionBorders)(this,"bottom");e.prepareBorder(n,"bottom",o)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(69)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_LEFT),t=(0,r.checkSelectionBorders)(this,"left");return t&&(e=(0,r.markSelected)(e)),e},callback:function(t,n){var o=(0,r.checkSelectionBorders)(this,"left");e.prepareBorder(n,"left",o)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(69)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!(0,r.checkSelectionBorders)(this)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(69)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_RIGHT),t=(0,r.checkSelectionBorders)(this,"right");return t&&(e=(0,r.markSelected)(e)),e},callback:function(t,n){var o=(0,r.checkSelectionBorders)(this,"right");e.prepareBorder(n,"right",o)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(69)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_TOP),t=(0,r.checkSelectionBorders)(this,"top");return t&&(e=(0,r.markSelected)(e)),e},callback:function(t,n){var o=(0,r.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",o)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(69)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=a(n(15)),r=a(n(10)),i=n(13);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var d=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?h(e):t}(this,c(t).call(this,e))).eventManager=new r.default(h(h(n))),n.boundaries=null,n.callback=null,n.listening=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o.default),function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",function(){return e.setupListening()}),this.addHook("afterOnCellCornerMouseDown",function(){return e.setupListening()}),this.registerEvents(),u(c(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(c(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),u(c(t.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(e){this.boundaries=e}},{key:"setCallback",value:function(e){this.callback=e}},{key:"check",value:function(e,t){var n=0,o=0;t<this.boundaries.top?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document,"mousemove",function(t){return e.onMouseMove(t)})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(){var e=this.hot.view.wt.wtTable.holder;e!==window&&(this.setBoundaries(e.getBoundingClientRect()),this.setCallback(function(t,n){t<0?e.scrollLeft-=50:t>0&&(e.scrollLeft+=50),n<0?e.scrollTop-=20:n>0&&(e.scrollTop+=20)}),this.listening=!0)}},{key:"onMouseMove",value:function(e){this.listening&&this.check(e.clientX,e.clientY)}},{key:"onMouseUp",value:function(){this.listening=!1}},{key:"destroy",value:function(){u(c(t.prototype),"destroy",this).call(this)}}]),t}();(0,i.registerPlugin)("dragToScroll",d);var p=d;t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=l(n(15)),r=n(13),i=n(3),a=l(n(720)),s=l(n(721));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(722);var g=new WeakMap,v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,h(t).call(this,e)),g.set(p(p(n)),{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,o.default),function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.addContextMenuEntry(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),f(h(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=g.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,f(h(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),f(h(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=g.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft===this.hot.countCols()||e<=n.fixedColumnsLeft-1||(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft),n.fixedColumnsLeft+=1)}},{key:"unfreezeColumn",value:function(e){var t=g.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),!(n.fixedColumnsLeft<=0||e>n.fixedColumnsLeft-1)){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft-=1,this.getMovePlugin().moveColumn(e,o+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t,n=this.getMovePlugin(),o=this.hot.getSettings().fixedColumnsLeft,r=n.columnsMapper.getValueByIndex(o);if(null===this.frozenColumnsBasePositions[e]||void 0===this.frozenColumnsBasePositions[e])for(t=n.columnsMapper.getValueByIndex(e);null!==r&&r<=t;)o+=1,r=n.columnsMapper.getValueByIndex(o);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;null!==r&&r<=t;)o+=1,r=n.columnsMapper.getValueByIndex(o);o=r}return o-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,a.default)(this),(0,s.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=g.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,r=t<o;if(r||(0,i.arrayEach)(e,function(e){if(e<o)return r=!0,!1}),r)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){f(h(t.prototype),"destroy",this).call(this)}}]),t}();(0,r.registerPlugin)("manualColumnFreeze",v);var y=v;t.default=y},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(t,n){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,1),r=o[0].start.col;e.freezeColumn(r),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.length>1?t=!0:(e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(t,n){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,1),r=o[0].start.col;e.unfreezeColumn(r),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.length>1?t=!0:(e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11))},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=d(n(15)),r=d(n(22)),i=n(3),a=n(1),s=n(9),l=d(n(10)),u=n(13),c=d(n(724)),f=d(n(725)),h=d(n(726));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(727),r.default.getSingleton().register("beforeColumnMove"),r.default.getSingleton().register("afterColumnMove"),r.default.getSingleton().register("unmodifyCol");var C=new WeakMap,S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?b(e):t}(this,m(t).call(this,e)),C.set(b(b(n)),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new c.default(b(b(n))),n.eventManager=new l.default(b(b(n))),n.backlight=new f.default(e),n.guideline=new h.default(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,o.default),function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol()}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,"ht__manualColumnMove"),y(m(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),y(m(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,a.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=this,o=g(e),r=C.get(this),a=this.hot.runHooks("beforeColumnMove",o,t);r.disallowMoving=!a,!1!==a&&((0,i.arrayEach)(e,function(e,t,o){o[t]=n.columnsMapper.getValueByIndex(e)}),(0,i.arrayEach)(e,function(e,o){var r=n.columnsMapper.getIndexByValue(e);r!==t&&n.columnsMapper.moveColumn(r,t+o)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",o,t)}},{key:"changeSelection",value:function(e,t){this.hot.selectColumns(e,t)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,o=e;o<t;o++){n+=o<0?this.hot.view.wt.wtViewport.getRowHeaderWidth()||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,s.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=C.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,r=this.hot.view.wt.wtOverlays.scrollableElement,i="number"==typeof r.scrollX?r.scrollX:r.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),s=e.target.eventPageX-(e.rootElementOffset-(void 0===r.scrollX?i:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,f=this.backlight.getSize().width,h=0;if(e.rootElementOffset+o.holder.offsetWidth+i<e.target.eventPageX&&e.coordsColumn<e.countCols&&(e.coordsColumn+=1),e.hasRowHeaders&&(h=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(a+=i),a+=h,e.coordsColumn<0)e.fixedColumns>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+a<=s){var d=e.coordsColumn>=e.countCols?e.countCols-1:e.coordsColumn;e.target.col=d+1,a+=e.target.TD.offsetWidth,e.target.col>n&&n<e.countCols&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.coordsColumn,e.target.col<=t&&e.target.col>=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);var p=s,g=a;s+f+c>=l?p=l-f-c:s+c<u+h&&(p=u+h+Math.abs(c)),a>=l-1?g=l-1:0===g?g=1:void 0!==r.scrollX&&e.coordsColumn<e.fixedColumns&&(g-=e.rootElementOffset<=r.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,p),this.guideline.setPosition(null,g)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(t<e){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];(0,i.arrayEach)(this.columnsMapper._arrayMap,function(e,t){e>o&&r.push(t)}),this.columnsMapper.removeItems(r)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),s=this.hot.getSelectedRangeLast(),l=C.get(this),u=e.realTarget.className.indexOf("sortAction")>-1;if(!s||!i||l.pressed||0!==e.button||u)return l.pressed=!1,l.columnsToMove.length=0,void(0,a.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),f=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&f&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var h=s.from,d=s.to,p=Math.min(h.col,d.col),g=Math.max(h.col,d.col);if(t.row<0&&t.col>=p&&t.col<=g){o.column=!0,l.pressed=!0,l.target.eventPageX=e.pageX,l.coordsColumn=t.col,l.target.TD=n,l.target.col=t.col,l.columnsToMove=this.prepareColumnsToMoving(p,g),l.hasRowHeaders=!!this.hot.getSettings().rowHeaders,l.countCols=this.hot.countCols(),l.fixedColumns=this.hot.getSettings().fixedColumnsLeft,l.rootElementOffset=(0,a.offset)(this.hot.rootElement).left;var v=l.hasRowHeaders?-1:0,y=r.holder.scrollTop+r.getColumnHeaderHeight(0)+1,m=t.col<l.fixedColumns,w=this.hot.view.wt.wtOverlays.scrollableElement,b=w.scrollX?w.scrollX-l.rootElementOffset:0,S=e.layerX-(m?b:0),_=Math.abs(this.getColumnsWidth(p,t.col)+S);this.backlight.setPosition(y,this.getColumnsWidth(v,p)+_),this.backlight.setSize(this.getColumnsWidth(p,g+1),r.hider.offsetHeight-y),this.backlight.setOffset(null,-1*_),(0,a.addClass)(this.hot.rootElement,"on-moving--columns")}else(0,a.removeClass)(this.hot.rootElement,"after-selection--columns"),l.pressed=!1,l.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=C.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var r=this.hot.getSelectedRangeLast(),i=C.get(this);r&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?(0,a.removeClass)(this.hot.rootElement,"show-ui"):(0,a.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,i.coordsColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=C.get(this);if(e.coordsColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,a.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,a.addClass)(this.hot.rootElement,"after-selection--columns"),!(e.columnsToMove.length<1||void 0===e.target.col||e.columnsToMove.indexOf(e.target.col)>-1)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){var t=this.columnsMapper.getIndexByValue(e.columnsToMove[0]),n=this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]);this.changeSelection(t,n)}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;this.backlight.setPosition(t),this.backlight.setSize(null,e.hider.offsetHeight-t)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,s.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.columnsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)("ManualColumnMove",S);var _=S;t.default=_},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(125)),r=n(3),i=n(2),a=n(9);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualColumnMove=t}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,a.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,r.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,i.mixin)(l,o.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(434)),r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"build",value:function(){l(u(t.prototype),"build",this).call(this),(0,r.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(434)),r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"build",value:function(){l(u(t.prototype),"build",this).call(this),(0,r.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}();t.default=f},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(15)),r=n(1),i=c(n(10)),a=n(18),s=n(3),l=n(9),u=n(13);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?v(e):t}(this,p(t).call(this,e))).currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new i.default(v(v(n))),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],(0,r.addClass)(n.handle,"manualColumnResizer"),(0,r.addClass)(n.guide,"manualColumnResizerGuide"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,o.default),function(e,t,n){t&&h(e.prototype,t),n&&h(e,n)}(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,o=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,n){return e.onModifyColWidth(t,n)}),this.addHook("beforeStretchingColumnWidth",function(t,n){return e.onBeforeStretchingColumnWidth(t,n)}),this.addHook("beforeColumnResize",function(t,n,o){return e.onBeforeColumnResize(t,n,o)}),void 0!==o?this.manualColumnWidths=o:Array.isArray(n)?this.manualColumnWidths=n:this.manualColumnWidths=[],this.bindEvents(),d(p(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){d(p(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,o=(0,r.outerHeight)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByColumnHeader()){var a=this.hot.getSelectedRangeLast(),s=a.from,u=a.to,c=s.col,f=u.col;c>=f&&(c=u.col,f=s.col),this.currentCol>=c&&this.currentCol<=f?(0,l.rangeEach)(c,f,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=i.left-6,this.startWidth=parseInt(i.width,10),this.handle.style.top="".concat(i.top,"px"),this.handle.style.left="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(o,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,r.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,r.addClass)(this.handle,"active"),(0,r.addClass)(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.guide.style.left=this.handle.style.left,this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,r.removeClass)(this.handle,"active"),(0,r.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedCols.length>1?((0,s.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,s.arrayEach)(this.selectedCols,function(e){n(e,!0)}));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,r.hasClass)(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=(0,a.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,a.pageX)(e)-this.startX),(0,s.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){e.hot.runHooks("beforeColumnResize",n,e.newSize,!1),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)this.selectedCols.length>1?((0,s.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,s.arrayEach)(this.selectedCols,function(e){n(e,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(){return e.onMouseUp()})}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),o=this.hot.runHooks("modifyCol",e);return this.manualColumnWidths[o]=n,n}},{key:"clearManualSize",value:function(e){var t=this.hot.runHooks("modifyCol",e);this.manualColumnWidths[t]=void 0}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var o=this.hot.runHooks("modifyCol",t),r=this.manualColumnWidths[o];this.hot.getSettings().manualColumnResize&&r&&(n=r)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),t}();(0,u.registerPlugin)("manualColumnResize",y);var m=y;t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=d(n(15)),r=d(n(22)),i=n(3),a=n(1),s=n(9),l=d(n(10)),u=n(13),c=d(n(730)),f=d(n(731)),h=d(n(732));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(733),r.default.getSingleton().register("beforeRowMove"),r.default.getSingleton().register("afterRowMove"),r.default.getSingleton().register("unmodifyRow");var C=new WeakMap,S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?b(e):t}(this,m(t).call(this,e)),C.set(b(b(n)),{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new c.default(b(b(n))),n.eventManager=new l.default(b(b(n))),n.backlight=new f.default(e),n.guideline=new h.default(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,o.default),function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow()}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,"ht__manualRowMove"),y(m(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),y(m(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,a.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),y(m(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=this,o=g(e),r=C.get(this),a=this.hot.runHooks("beforeRowMove",o,t);r.disallowMoving=!1===a,r.disallowMoving||((0,i.arrayEach)(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),(0,i.arrayEach)(e,function(e,o){var r=n.rowsMapper.getIndexByValue(e);r!==t&&n.rowsMapper.moveRow(r,t+o)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",o,t)}},{key:"changeSelection",value:function(e,t){this.hot.selectRows(e,t)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,o=e;o<t;o++){n+=this.hot.view.wt.wtTable.getRowHeight(o)||23}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,o=e.to,r=Math.min(n.row,o.row),i=Math.max(n.row,o.row);return(0,s.rangeEach)(r,i,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=C.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),r=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();t.row<r&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=o&&o<i&&this.hot.scrollViewportTo(o+1,void 0,!0);var s=this.hot.view.wt.wtTable,l=e.target.TD,u=(0,a.offset)(this.hot.rootElement),c=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),f=e.target.eventPageY-u.top+s.holder.scrollTop,h=s.hider.offsetHeight,d=s.TBODY.offsetTop,p=this.backlight.getOffset().top,g=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(c+=s.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:l.offsetHeight/2+c<=f?(e.target.row=t.row+1,c+=0===t.row?l.offsetHeight-1:l.offsetHeight):e.target.row=t.row;var v=f,y=c;f+g+p>=h?v=h-g-p:f+p<d&&(v=d+Math.abs(p)),c>=h-1&&(y=h-1);var m=0;this.hot.view.wt.wtOverlays.topOverlay&&(m=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=r&&y-s.holder.scrollTop<m&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(v),this.guideline.setPosition(y)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(t<e){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];(0,i.arrayEach)(this.rowsMapper._arrayMap,function(e,t){e>o&&r.push(t)}),this.rowsMapper.removeItems(r)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){C.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.isSelectedByRowHeader(),s=this.hot.getSelectedRangeLast(),l=C.get(this);if(!s||!i||l.pressed||0!==e.button)return l.pressed=!1,l.rowsToMove.length=0,void(0,a.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var f=s.from,h=s.to,d=Math.min(f.row,h.row),p=Math.max(f.row,h.row);if(t.col<0&&t.row>=d&&t.row<=p){o.row=!0,l.pressed=!0,l.target.eventPageY=e.pageY,l.target.coords=t,l.target.TD=n,l.rowsToMove=this.prepareRowsToMoving();var g=r.holder.scrollLeft+this.hot.view.wt.wtViewport.getRowHeaderWidth();this.backlight.setPosition(null,g),this.backlight.setSize(r.hider.offsetWidth-g,this.getRowsHeight(d,p+1)),this.backlight.setOffset(-1*(this.getRowsHeight(d,t.row)+e.layerY),null),(0,a.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,"after-selection--rows"),l.pressed=!1,l.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=C.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var r=this.hot.getSelectedRangeLast(),i=C.get(this);r&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,"show-ui"):(0,a.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=C.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,a.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,"after-selection--rows"),!(n<1||void 0===t||e.rowsToMove.indexOf(t)>-1||e.rowsToMove[n-1]===t-1)){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){var o=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),r=this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]);this.changeSelection(o,r)}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;this.backlight.setPosition(null,t),this.backlight.setSize(e.hider.offsetWidth-t)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,s.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.rowsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),this.rowsMapper.destroy(),y(m(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)("ManualRowMove",S);var _=S;t.default=_},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(125)),r=n(3),i=n(2),a=n(9);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualRowMove=t}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,a.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,r.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,i.mixin)(l,o.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(435)),r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"build",value:function(){l(u(t.prototype),"build",this).call(this),(0,r.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(435)),r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"build",value:function(){l(u(t.prototype),"build",this).call(this),(0,r.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}();t.default=f},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(15)),r=n(1),i=c(n(10)),a=n(18),s=n(3),l=n(9),u=n(13);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?v(e):t}(this,p(t).call(this,e))).currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new i.default(v(v(n))),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],(0,r.addClass)(n.handle,"manualRowResizer"),(0,r.addClass)(n.guide,"manualRowResizerGuide"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,o.default),function(e,t,n){t&&h(e.prototype,t),n&&h(e,n)}(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,o=this.loadManualRowHeights();void 0!==o?this.manualRowHeights=o:Array.isArray(n)?this.manualRowHeights=n:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),this.bindEvents(),d(p(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){d(p(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,o=(0,r.outerWidth)(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByRowHeader()){var a=this.hot.getSelectedRangeLast(),s=a.from,u=a.to,c=s.row,f=u.row;c>=f&&(c=u.row,f=s.row),this.currentRow>=c&&this.currentRow<=f?(0,l.rangeEach)(c,f,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=i.top-6,this.startHeight=parseInt(i.height,10),this.handle.style.left="".concat(i.left,"px"),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style.width="".concat(o,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,r.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,r.addClass)(this.handle,"active"),(0,r.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left="".concat(t,"px"),this.guide.style.width="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,r.removeClass)(this.handle,"active"),(0,r.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedRows.length>1?((0,s.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,s.arrayEach)(this.selectedRows,function(e){n(e,!0)}));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,r.hasClass)(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=(0,a.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,a.pageY)(e)-this.startY),(0,s.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){e.hot.runHooks("beforeRowResize",n,e.newSize),o&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",n,e.newSize,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)this.selectedRows.length>1?((0,s.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,s.arrayEach)(this.selectedRows,function(e){n(e,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(){return e.onMouseUp()})}},{key:"setManualSize",value:function(e,t){var n=this.hot.runHooks("modifyRow",e);return this.manualRowHeights[n]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null,r=this.hot.runHooks("modifyRow",t),i=this.manualRowHeights[r];if(void 0!==i&&(i===o||i>(e||0)))return i}return e}}]),t}();(0,u.registerPlugin)("manualRowResize",y);var m=y;t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=m(n(15)),r=m(n(22)),i=n(13),a=n(18),s=n(8),l=m(n(736)),u=m(n(128)),c=m(n(737)),f=m(n(738)),h=m(n(739)),d=n(3),p=n(2),g=n(76),v=n(9),y=n(436);function m(e){return e&&e.__esModule?e:{default:e}}function w(e){return(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})(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function C(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e,t,n){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(740),r.default.getSingleton().register("beforeMergeCells"),r.default.getSingleton().register("afterMergeCells"),r.default.getSingleton().register("beforeUnmergeCells"),r.default.getSingleton().register("afterUnmergeCells");var R=new WeakMap,k=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?T(e):t}(this,E(t).call(this,e)),R.set(T(T(n)),{lastDesiredCoords:null}),n.mergedCellsCollection=null,n.autofillCalculations=null,n.selectionCalculations=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,o.default),function(e,t,n){t&&S(e.prototype,t),n&&S(e,n)}(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new c.default(this),this.selectionCalculations=new f.default(this),this.addHook("afterInit",function(){return e.onAfterInit.apply(e,arguments)}),this.addHook("beforeKeyDown",function(){return e.onBeforeKeyDown.apply(e,arguments)}),this.addHook("modifyTransformStart",function(){return e.onModifyTransformStart.apply(e,arguments)}),this.addHook("afterModifyTransformStart",function(){return e.onAfterModifyTransformStart.apply(e,arguments)}),this.addHook("modifyTransformEnd",function(){return e.onModifyTransformEnd.apply(e,arguments)}),this.addHook("modifyGetCellCoords",function(){return e.onModifyGetCellCoords.apply(e,arguments)}),this.addHook("beforeSetRangeEnd",function(){return e.onBeforeSetRangeEnd.apply(e,arguments)}),this.addHook("afterIsMultipleSelection",function(){return e.onAfterIsMultipleSelection.apply(e,arguments)}),this.addHook("afterRenderer",function(){return e.onAfterRenderer.apply(e,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return e.addMergeActionsToContextMenu.apply(e,arguments)}),this.addHook("afterGetCellMeta",function(){return e.onAfterGetCellMeta.apply(e,arguments)}),this.addHook("afterViewportRowCalculatorOverride",function(){return e.onAfterViewportRowCalculatorOverride.apply(e,arguments)}),this.addHook("afterViewportColumnCalculatorOverride",function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)}),this.addHook("modifyAutofillRange",function(){return e.onModifyAutofillRange.apply(e,arguments)}),this.addHook("afterCreateCol",function(){return e.onAfterCreateCol.apply(e,arguments)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol.apply(e,arguments)}),this.addHook("afterCreateRow",function(){return e.onAfterCreateRow.apply(e,arguments)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow.apply(e,arguments)}),this.addHook("afterChange",function(){return e.onAfterChange.apply(e,arguments)}),this.addHook("beforeDrawBorders",function(){return e.onBeforeDrawAreaBorders.apply(e,arguments)}),this.addHook("afterDrawSelection",function(){return e.onAfterDrawSelection.apply(e,arguments)}),this.addHook("beforeRemoveCellClassNames",function(){return e.onBeforeRemoveCellClassNames.apply(e,arguments)}),_(E(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.hot.render(),_(E(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().mergeCells;this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(e),_(E(t.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(u.default.containsNegativeValues(e)?((0,g.warn)(u.default.NEGATIVE_VALUES_WARNING(e)),t=!1):u.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,g.warn)(u.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):u.default.isSingleCell(e)?((0,g.warn)(u.default.IS_SINGLE_CELL(e)),t=!1):u.default.containsZeroSpan(e)&&((0,g.warn)(u.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n,o=[];(0,d.arrayEach)(e,function(e){if(t.validateSetting(e)){var n=new s.CellCoords(e.row,e.col),r=new s.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),i=new s.CellRange(n,n,r);o.push(t.mergeRange(i,!0,!0))}}),o=o.filter(function(e){return!0!==e});var r=this.getBulkCollectionData(o);(n=this.hot).populateFromArray.apply(n,C(r))}}},{key:"getBulkCollectionData",value:function(e){var t,n=this.getBulkCollectionDataRange(e),o=(t=this.hot).getData.apply(t,C(n)).splice(0);return(0,d.arrayEach)(e,function(e){var t=b(e,3),r=t[0],i=t[1],a=t[2];(0,d.arrayEach)(a,function(e,t){(0,d.arrayEach)(e,function(e,a){o[r-n[0]+t][i-n[1]+a]=e})})}),[n[0],n[1],o]}},{key:"getBulkCollectionDataRange",value:function(e){var t=[0,0],n=[0,0],o=null,r=null,i=null;return(0,d.arrayEach)(e,function(e){o=e[0],r=e[1],i=e[2],t[0]=Math.min(o,t[0]),t[1]=Math.min(r,t[1]),n[0]=Math.max(o+i.length-1,n[0]),n[1]=Math.max(r+i[0].length-1,n[1])}),[].concat(t,n)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getTopLeftCorner(),i=e.getBottomRightCorner(),a={row:r.row,col:r.col,rowspan:i.row-r.row+1,colspan:i.col-r.col+1},s=[],l=null;return!!this.canMergeRange(a,n)&&(this.hot.runHooks("beforeMergeCells",e,n),(0,v.rangeEach)(0,a.rowspan-1,function(e){(0,v.rangeEach)(0,a.colspan-1,function(n){var o=null;s[e]||(s[e]=[]),0===e&&0===n?o=t.hot.getDataAtCell(a.row,a.col):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=o})}),this.hot.setCellMeta(a.row,a.col,"spanned",!0),!this.mergedCellsCollection.add(a)||(o?l=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),l))}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.mergedCellsCollection.getWithinRange(e);o&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,d.arrayEach)(o,function(e){t.mergedCellsCollection.remove(e.row,e.col),(0,v.rangeEach)(0,e.rowspan-1,function(n){(0,v.rangeEach)(0,e.colspan-1,function(o){t.hot.removeCellMeta(e.row+n,e.col+o,"hidden")})}),t.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.render(),this.hot.runHooks("afterUnmergeCells",e,n))}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,o){var r=new s.CellCoords(e,t),i=new s.CellCoords(n,o);this.mergeRange(new s.CellRange(r,r,i))}},{key:"unmerge",value:function(e,t,n,o){var r=new s.CellCoords(e,t),i=new s.CellCoords(n,o);this.unmergeRange(new s.CellRange(r,r,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"onBeforeKeyDown",value:function(e){(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.toggleMerge(this.hot.getSelectedRangeLast()),this.hot.render(),(0,a.stopImmediatePropagation)(e))}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),o=0;o<t.length;o+=1)if(n.highlight.row===t[o].row&&n.highlight.col===t[o].col&&n.to.row===t[o].row+t[o].rowspan-1&&n.to.col===t[o].col+t[o].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=R.get(this),o=this.hot.getSelectedRangeLast(),r={row:e.row,col:e.col},i=new s.CellCoords(o.highlight.row,o.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=new s.CellCoords(null,null)),a){var l=new s.CellCoords(a.row,a.col),u=new s.CellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);new s.CellRange(l,l,u).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=new s.CellCoords(null,null)),r.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-i.row:r.row,r.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-i.col:r.col,e.row>0?r.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(r.row=i.row-a.row+e.row),e.col>0?r.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(r.col=i.col-a.col+e.col)}t=new s.CellCoords(o.highlight.row+r.row,o.highlight.col+r.col);var c=this.mergedCellsCollection.get(t.row,t.col);c&&(n.lastDesiredCoords=t,r={row:c.row-i.row,col:c.col-i.col}),0!==r.row&&(e.row=r.row),0!==r.col&&(e.col=r.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),o=(0,p.clone)(e),r=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=(0,p.clone)(o),a=this.mergedCellsCollection.getWithinRange(r,!0);do{i=(0,p.clone)(o),this.selectionCalculations.getUpdatedSelectionRange(n,o),(0,d.arrayEach)(a,function(e){t.selectionCalculations.snapDelta(o,n,e)})}while(o.row!==i.row||o.col!==i.col);e.row=o.row,e.col=o.col}},{key:"onModifyGetCellCoords",value:function(e,t){var n=this.mergedCellsCollection.get(e,t);return n?[n.row,n.col,n.row+n.rowspan-1,n.col+n.colspan-1]:void 0}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,h.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var o=this.mergedCellsCollection.get(t,n);(0,y.applySpanProperties)(e,o,t,n)}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=new s.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!(0===t.from.row&&t.to.row===this.hot.countRows()-1||0===t.from.col&&t.to.col===this.hot.countCols()-1))do{n=!1;for(var o=0;o<this.mergedCellsCollection.mergedCells.length;o+=1){var r=this.mergedCellsCollection.mergedCells[o].getRange();t.expandByRange(r)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var o=this.mergedCellsCollection.get(e,t);!o||o.row===e&&o.col===t||(n.copyable=!1)}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t,n=this,o=this.hot.countCols();(0,v.rangeEach)(0,o-1,function(o){if((t=n.mergedCellsCollection.get(e.startRow,o))&&t.row<e.startRow)return e.startRow=t.row,n.onAfterViewportRowCalculatorOverride.call(n,e);if(t=n.mergedCellsCollection.get(e.endRow,o)){var r=t.row+t.rowspan-1;if(r>e.endRow)return e.endRow=r,n.onAfterViewportRowCalculatorOverride.call(n,e)}return!0})}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t,n=this,o=this.hot.countRows();(0,v.rangeEach)(0,o-1,function(o){if((t=n.mergedCellsCollection.get(o,e.startColumn))&&t.col<e.startColumn)return e.startColumn=t.col,n.onAfterViewportColumnCalculatorOverride.call(n,e);if(t=n.mergedCellsCollection.get(o,e.endColumn)){var r=t.col+t.colspan-1;if(r>e.endColumn)return e.endColumn=r,n.onAfterViewportColumnCalculatorOverride.call(n,e)}return!0})}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),o=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,o,n))return o=t;var r=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return r?o=this.autofillCalculations.snapDragArea(t,o,n,r):o}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(n);(0,d.arrayEach)(o,function(t){n.getBottomRightCorner().row===t.getLastRow()&&n.getBottomRightCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)})}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var o=this.mergedCellsCollection.get(e.row,e.col);if(o){var r=t>0,i=t<0,a=n<0,s=n>0,l=o.row+o.rowspan-1==this.hot.countRows()-1,u=0===o.row,c=o.col+o.colspan-1==this.hot.countCols()-1,f=0===o.col;(r&&l||i&&u||s&&c||a&&f)&&(e.row=o.row,e.col=o.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,o){return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,o)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}]),t}();(0,i.registerPlugin)("mergeCells",k);var M=k;t.default=M},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(128)),r=n(8),i=n(9),a=n(76),s=n(3),l=n(436),u=n(58);function c(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["The merged cell declared at [",", ","], overlaps with the other declared merged \n cell. The overlapping merged cell was not added to the table, please fix your setup."]);return c=function(){return e},e}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}return function(e,t,n){t&&h(e.prototype,t),n&&h(e,n)}(e,[{key:"get",value:function(e,t){var n=this.mergedCells,o=!1;return(0,s.arrayEach)(n,function(n){return!(n.row<=e&&n.row+n.rowspan-1>=e&&n.col<=t&&n.col+n.colspan-1>=t)||(o=n,!1)}),o}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return(0,s.arrayEach)(t,function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t)}),n}},{key:"getWithinRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.mergedCells,o=[],i=e;if(!i.includesRange){var a=new r.CellCoords(i.from.row,i.from.col),l=new r.CellCoords(i.to.row,i.to.col);i=new r.CellRange(a,a,l)}return(0,s.arrayEach)(n,function(e){var n=new r.CellCoords(e.row,e.col),a=new r.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),s=new r.CellRange(n,n,a);t?i.overlaps(s)&&o.push(e):i.includesRange(s)&&o.push(e)}),!!o.length&&o}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,i=t.col,s=t.rowspan,l=t.colspan,u=new o.default(r,i,s,l),c=this.get(r,i),f=this.isOverlapping(u);return c||f?((0,a.warn)(e.IS_OVERLAPPING_WARNING(u)),!1):(this.hot&&u.normalize(this.hot),n.push(u),u)}},{key:"remove",value:function(e,t){var n=this.mergedCells,o=this.get(e,t),r=o?this.mergedCells.indexOf(o):null;return!(!o||!1===r)&&(n.splice(r,1),o)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],o=[];(0,s.arrayEach)(t,function(t){var o=e.hot.getCell(t.row,t.col);o&&n.push([o,e.get(t.row,t.col),t.row,t.col])}),this.mergedCells.length=0,(0,s.arrayEach)(n,function(t,r){(0,i.rangeEach)(0,t.rowspan-1,function(n){(0,i.rangeEach)(0,t.colspan-1,function(r){if(0!==r||0!==n){var i=e.hot.getCell(t.row+n,t.col+r);i&&o.push([i,null,null,null])}})}),n[r][1]=null}),(0,s.arrayEach)(n,function(e){l.applySpanProperties.apply(void 0,f(e))}),(0,s.arrayEach)(o,function(e){l.applySpanProperties.apply(void 0,f(e))})}},{key:"isOverlapping",value:function(e){var t=new r.CellRange(null,new r.CellCoords(e.row,e.col),new r.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),n=!1;return(0,s.arrayEach)(this.mergedCells,function(e){return!new r.CellRange(null,new r.CellCoords(e.row,e.col),new r.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(t)||(n=!0,!1)}),n}},{key:"isMergedParent",value:function(e,t){var n=this.mergedCells,o=!1;return(0,s.arrayEach)(n,function(n){return n.row!==e||n.col!==t||(o=!0,!1)}),o}},{key:"shiftCollections",value:function(e,t,n){var o=this,r=[0,0];switch(e){case"right":r[0]+=n;break;case"left":r[0]-=n;break;case"down":r[1]+=n;break;case"up":r[1]-=n}(0,s.arrayEach)(this.mergedCells,function(e){e.shift(r,t)}),(0,i.rangeEachReverse)(this.mergedCells.length-1,0,function(e){var t=o.mergedCells[e];t&&t.removed&&o.mergedCells.splice(o.mergedCells.indexOf(t),1)})}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,u.toSingleLine)(c(),e.row,e.col)}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(2),r=n(8),i=n(3);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"correctSelectionAreaSize",value:function(e){if(e[0]===e[2]&&e[1]===e[3]){var t=this.mergedCellsCollection.get(e[0],e[1]);t&&(e[2]=e[0]+t.rowspan-1,e[3]=e[1]+t.colspan-1)}}},{key:"getDirection",value:function(e,t){return t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left"}},{key:"snapDragArea",value:function(e,t,n,o){var r=t.slice(0),i=this.getAutofillSize(e,t,n),s=a(e,4),l=s[0],u=s[1],c=s[2],f=s[3],h=["up","down"].indexOf(n)>-1?c-l+1:f-u+1,d=i-Math.floor(i/h)*h,p=this.getFarthestCollection(e,t,n,o);if(p)if("down"===n){var g=p.row+p.rowspan-l-d;r[2]+g>=this.plugin.hot.countRows()?r[2]-=d:r[2]+=d?g:0}else if("right"===n){var v=p.col+p.colspan-u-d;r[3]+v>=this.plugin.hot.countCols()?r[3]-=d:r[3]+=d?v:0}else if("up"===n){var y=c-d-p.row+1;r[0]+y<0?r[0]+=d:r[0]-=d?y:0}else if("left"===n){var m=f-d-p.col+1;r[1]+m<0?r[1]+=d:r[1]-=d?m:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:o,fillSize:i,dragArea:r,cycleLength:h}),r}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,o.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var o=a(e,4),r=o[0],i=o[1],s=o[2],l=o[3],u=a(t,4),c=u[0],f=u[1],h=u[2],d=u[3];switch(n){case"up":return r-c;case"down":return h-s;case"left":return i-f;case"right":return d-l;default:return null}}},{key:"getDragArea",value:function(e,t,n){var o=a(e,4),r=o[0],i=o[1],s=o[2],l=o[3],u=a(t,4),c=u[0],f=u[1],h=u[2],d=u[3];switch(n){case"up":return[c,f,r-1,l];case"down":return[s+1,i,h,l];case"left":return[c,f,s,i-1];case"right":return[r,l+1,h,d];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,o){var r=a(e,4),s=r[0],l=r[1],u=r[2],c=r[3],f=["up","down"].indexOf(n)>-1,h=f?u:c,d=f?s:l,p=this.getAutofillSize(e,t,n),g=f?u-s+1:c-l+1,v=p-Math.floor(p/g)*g,y=null,m=null,w=null;switch(n){case"up":y="includesVertically",w=h-v+1;break;case"left":y="includesHorizontally",w=h-v+1;break;case"down":y="includesVertically",w=d+v-1;break;case"right":y="includesHorizontally",w=d+v-1}return(0,i.arrayEach)(o,function(e){e[y](w)&&e.isFarther(m,n)&&(m=e)}),m}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,o=this.currentFillData.dragDirection,r=function(e,n){switch(o){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}},i=0,a=null,s=1;do{for(var l=0;l<n.length;l+=1){if(r(a=n[l],i=s*this.currentFillData.cycleLength))switch(o){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"left":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}l===n.length-1&&(s+=1)}}while(r(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t=this,n={min:null,max:null},o={min:null,max:null};return(0,i.arrayEach)(e,function(e){var r=e[0],i=t.plugin.hot.propToCol(e[1]);(null===n.min||r<n.min)&&(n.min=r),(null===n.max||r>n.max)&&(n.max=r),(null===o.min||i<o.min)&&(o.min=i),(null===o.max||i>o.max)&&(o.max=i)}),{from:{row:n.min,column:o.min},to:{row:n.max,column:o.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var o=a(this.getDragArea(e,t,n),4),i=o[0],s=o[1],l=o[2],u=o[3],c=new r.CellCoords(i,s),f=new r.CellCoords(l,u),h=new r.CellRange(c,c,f);return!!this.mergedCellsCollection.getWithinRange(h,!0)}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(8);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"snapDelta",value:function(e,t,n){var o=t.to,r=o.row+e.row,i=o.col+e.col;e.row?this.jumpOverMergedCell(e,n,r):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var o=e.row||e.col,r=null,i=null,a=null;e.row?(r=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(r=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==o&&(o>0?r&&n!==i&&(o+=a-n+1):r&&n!==a&&(o-=n-i+1),e.row?e.row=o:e.col&&(e.col=o))}},{key:"getUpdatedSelectionRange",value:function(e,t){return new o.CellRange(e.highlight,e.from,new o.CellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,o){var i=r(n,4),a=i[0],s=i[1],l=i[2],u=i[3];if(void 0!==o&&e>=a&&e<=l&&t>=s&&t<=u){if(!this.plugin.mergedCellsCollection.isMergedParent(e,t))return;var c=this.plugin.mergedCellsCollection.get(e,t);if(!c)return;if(c.row+c.rowspan-1<=l&&c.col+c.colspan-1<=u)return"".concat(this.fullySelectedMergedCellClassName,"-").concat(o);if(this.plugin.selectionCalculations.isMergeCellFullySelected(c,this.plugin.hot.getSelectedRange()))return"".concat(this.fullySelectedMergedCellClassName,"-multiple")}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;r<e.rowspan;r+=1)for(var i=0;i<e.colspan;i+=1)n.push(new o.CellCoords(e.row+r,e.col+i));for(var a=0;a<n.length;a+=1){for(var s=[],l=0;l<t.length;l+=1)s[l]=t[l].includes(n[a]);if(!s.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove",value:function(){for(var e=[],t=0;t<=7;t+=1)e.push("".concat(this.fullySelectedMergedCellClassName,"-").concat(t));return e.push("".concat(this.fullySelectedMergedCellClassName,"-multiple")),e}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name:function(){var t=this.getSelectedLast();if(t){var n=e.mergedCellsCollection.get(t[0],t[1]);if(n.row===t[0]&&n.col===t[1]&&n.row+n.rowspan-1===t[2]&&n.col+n.colspan-1===t[3])return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){e.toggleMergeOnSelection()},disabled:function(){var e=this.getSelectedLast();if(!e)return!0;var t=r.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1});return t||this.selection.isSelectedByCorner()},hidden:!1}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=function(e){return e&&e.__esModule?e:{default:e}}(n(128))},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(42),i=u(n(15)),a=u(n(10)),s=n(13),l=n(8);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(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})(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=h(this,p(t).call(this,e))).dragged=[],n.eventManager=null,n.lastSetCell=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,i.default),function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(t,[{key:"isEnabled",value:function(){return(0,r.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new a.default(this)),this.registerListeners(),d(p(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this;function t(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;var n=e.dragged.indexOf(t);if(-1===n)return!1;0===n?e.dragged=e.dragged.slice(0,1):1===n&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(t){var n;return(0,o.hasClass)(t.target,"topLeftSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("topLeft"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):(0,o.hasClass)(t.target,"bottomRightSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("bottomRight"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return(0,o.hasClass)(n.target,"topLeftSelectionHandle-HitArea")?(t.call(e,"topLeft"),e.touchStartRange=void 0,n.preventDefault(),!1):(0,o.hasClass)(n.target,"bottomRightSelectionHandle-HitArea")?(t.call(e,"bottomRight"),e.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(t){var n,r,i,a,s,l,u=(0,o.getWindowScrollTop)(),c=(0,o.getWindowScrollLeft)();if(0!==e.dragged.length){var f=document.elementFromPoint(t.touches[0].screenX-c,t.touches[0].screenY-u);f&&f!==e.lastSetCell&&("TD"!==f.nodeName&&"TH"!==f.nodeName||(-1===(n=e.hot.getCoords(f)).col&&(n.col=0),i=(r=e.hot.getSelectedRangeLast()).getWidth(),a=r.getHeight(),s=r.getDirection(),1===i&&1===a&&e.hot.selection.setRangeEnd(n),null!==(l=e.getCurrentRangeCoords(r,n,e.touchStartRange.direction,s,e.dragged[0])).start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=f),t.preventDefault())}})}},{key:"getCurrentRangeCoords",value:function(e,t,n,o,r){var i=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=e.getBottomLeftCorner(),u=e.getTopRightCorner(),c={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":c="topLeft"===r?{start:new l.CellCoords(t.row,e.highlight.col),end:new l.CellCoords(s.row,t.col)}:{start:new l.CellCoords(e.highlight.row,t.col),end:new l.CellCoords(t.row,i.col)};break;case"SE-NW":"bottomRight"===r&&(c={start:new l.CellCoords(a.row,t.col),end:new l.CellCoords(t.row,i.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"===r?c={start:t,end:s}:c.end=t;break;case"NW-SE":"topLeft"===r?c={start:t,end:a}:c.end=t;break;case"SE-NW":"topLeft"===r?c={start:t,end:i}:c.end=t;break;case"SW-NE":"topLeft"===r?c={start:t,end:u}:c.end=t}break;case"SW-NE":switch(o){case"NW-SE":c="bottomRight"===r?{start:new l.CellCoords(t.row,i.col),end:new l.CellCoords(s.row,t.col)}:{start:new l.CellCoords(i.row,t.col),end:new l.CellCoords(t.row,a.col)};break;case"SW-NE":c="topLeft"===r?{start:new l.CellCoords(e.highlight.row,t.col),end:new l.CellCoords(t.row,a.col)}:{start:new l.CellCoords(t.row,i.col),end:new l.CellCoords(i.row,t.col)};break;case"SE-NW":"bottomRight"===r?c={start:new l.CellCoords(t.row,u.col),end:new l.CellCoords(i.row,t.col)}:"topLeft"===r&&(c={start:s,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"===r&&(c.end=t);break;case"SE-NW":"topLeft"===r?c.end=t:c={start:t,end:i}}}return c}},{key:"isDragged",value:function(){return this.dragged.length>0}}]),t}();(0,s.registerPlugin)("multipleSelectionHandles",v);var y=v;t.default=y},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=s(n(15)),r=s(n(743)),i=n(3),a=n(13);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,h(t).call(this,e))).observer=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,o.default),function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new r.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),f(h(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),f(h(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n="".concat(this.pluginName,".change"),o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[[e.row,e.col,null,e.value]],n)}};(0,i.arrayEach)(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),f(h(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),t}(),g=p;t.default=g,(0,a.registerPlugin)("observeChanges",p)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=s(n(744)),r=s(n(68)),i=n(2),a=n(745);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(e,[{key:"setObservedData",value:function(e){var t=this;this.observer&&o.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=o.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,a.cleanPatches)(e))}},{key:"destroy",value:function(){o.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),e}();(0,i.mixin)(u,r.default);var c=u;t.default=c},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} 36/*! 37 * https://github.com/Starcounter-Jack/JSON-Patch 38 * json-patch-duplex.js version: 0.5.7 39 * (c) 2013 Joachim Wester 40 * MIT license 41 */var r,i=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},a=Error;!function(e){var t=function(e){if(u(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t};var n={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return y(n,[o]),y(n,[{op:"remove",path:this.from}]),y(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return y(n,[o]),y(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return function e(n,r){switch(o(n)){case"undefined":case"boolean":case"string":case"number":return n===r;case"object":if(null===n)return null===r;if(u(n)){if(!u(r)||n.length!==r.length)return!1;for(var i=0,a=n.length;i<a;i++)if(!e(n[i],r[i]))return!1;return!0}var s=t(r).length;if(t(n).length!==s)return!1;for(i=0;i<s;i++)if(!e(n[i],r[i]))return!1;return!0;default:return!1}}(e[n],this.value)},_get:function(e,t){this.value=e[t]}},r={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:n.move,copy:n.copy,test:n.test,_get:n._get},s={add:function(e){for(var t in s.remove.call(this,e),this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&n.remove.call(this,e,t);return!0},replace:function(e){return y(e,[{op:"remove",path:this.path}]),y(e,[{op:"add",path:this.path,value:this.value}]),!0},move:n.move,copy:n.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}};function l(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}var u,c=[],f=function(){return function(e){this.observers=[],this.obj=e}}(),h=function(){return function(e,t){this.callback=e,this.observer=t}}();function d(e){return"object"===o(e)?JSON.parse(JSON.stringify(e)):e}function p(e){for(var t,n=0,o=c.length;n<o;n++)if(c[n].obj===e.object){t=c[n];break}g(t.value,e.object,e.patches,""),e.patches.length&&y(t.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function g(e,n,r,i){for(var a=t(n),s=t(e),u=!1,c=s.length-1;c>=0;c--){var f=e[p=s[c]];if(n.hasOwnProperty(p)){var h=n[p];"object"==o(f)&&null!=f&&"object"==o(h)&&null!=h?g(f,h,r,i+"/"+l(p)):f!=h&&(!0,r.push({op:"replace",path:i+"/"+l(p),value:d(h)}))}else r.push({op:"remove",path:i+"/"+l(p)}),u=!0}if(u||a.length!=s.length)for(c=0;c<a.length;c++){var p=a[c];e.hasOwnProperty(p)||r.push({op:"add",path:i+"/"+l(p),value:d(n[p])})}}function v(e){for(var t,n=0,o=e.length;n<o;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function y(e,t,o){for(var i,a,l=!1,c=0,f=t.length;c<f;){i=t[c],c++;for(var h=(i.path||"").split("/"),d=e,p=1,g=h.length,y=void 0;;){if(a=h[p],o&&void 0===y&&(void 0===d[a]?y=h.slice(0,p).join("/"):p==g-1&&(y=i.path),void 0!==y&&this.validator(i,c-1,e,y)),p++,void 0===a&&p>=g){l=s[i.op].call(i,d,a,e);break}if(u(d)){if("-"===a)a=d.length;else{if(o&&!v(a))throw new m("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c-1,i.path,i);a=parseInt(a,10)}if(p>=g){if(o&&"add"===i.op&&a>d.length)throw new m("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c-1,i.path,i);l=r[i.op].call(i,d,a,e);break}}else if(a&&-1!=a.indexOf("~")&&(a=a.replace(/~1/g,"/").replace(/~0/g,"~")),p>=g){l=n[i.op].call(i,d,a,e);break}d=d[a]}}return l}e.unobserve=function(e,t){t.unobserve()},e.observe=function(e,t){var n,o=function(e){for(var t=0,n=c.length;t<n;t++)if(c[t].obj===e)return c[t]}(e);if(o?n=function(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].callback===t)return e.observers[n].observer}(o,t):(o=new f(e),c.push(o)),n)return n;if(n={},o.value=d(e),t){n.callback=t,n.next=null;var r=this.intervals||[100,1e3,1e4,6e4];if(void 0===r.push)throw new a("jsonpatch.intervals must be an array");var i=0,s=function(){p(n)},l=function(){clearTimeout(n.next),n.next=setTimeout(function(){s(),i=0,n.next=setTimeout(u,r[i++])},0)},u=function e(){s(),i==r.length&&(i=r.length-1),n.next=setTimeout(e,r[i++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",l),window.addEventListener("mouseup",l),window.addEventListener("keydown",l)):(document.documentElement.attachEvent("onmousedown",l),document.documentElement.attachEvent("onmouseup",l),document.documentElement.attachEvent("onkeydown",l))),n.next=setTimeout(u,r[i++])}return n.patches=[],n.object=e,n.unobserve=function(){p(n),clearTimeout(n.next),function(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}(o,n),0===o.observers.length&&c.splice(c.indexOf(o),1),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",l),window.removeEventListener("mouseup",l),window.removeEventListener("keydown",l)):(document.documentElement.detachEvent("onmousedown",l),document.documentElement.detachEvent("onmouseup",l),document.documentElement.detachEvent("onkeydown",l)))},o.observers.push(new h(t,n)),n},e.generate=p,u=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=y,e.compare=function(e,t){var n=[];return g(e,t,n,""),n};var m=function(e){function t(t,n,o,r,i){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=r,this.tree=i}return i(t,e),t}(a);e.JsonPatchError=m,e.Error=m,e.validator=function(t,r,i,a){if("object"!==o(t)||null===t||u(t))throw new m("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(!n[t.op])throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i);if("string"!=typeof t.path)throw new m("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new m("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&function e(t){if(void 0===t)return!0;if("array"==typeof t||"object"==o(t))for(var n in t)if(e(t[n]))return!0;return!1}(t.value))throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i)if("add"==t.op){var s=t.path.split("/").length,l=a.split("/").length;if(s!==l+1&&s!==l)throw new m("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==a)throw new m("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if("move"===t.op||"copy"===t.op){var c={op:"_get",path:t.from,value:void 0},f=e.validate([c],i);if(f&&"OPERATION_PATH_UNRESOLVABLE"===f.name)throw new m("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}},e.validate=function(e,t){try{if(!u(e))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),y.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof m)return e;throw e}}}(r||(r={})),t.apply=r.apply,t.observe=r.observe,t.unobserve=r.unobserve,t.generate=r.generate,t.compare=r.compare,t.validate=r.validate,t.validator=r.validator,t.JsonPatchError=r.JsonPatchError,t.Error=r.Error},function(e,t,n){"use strict";t.__esModule=!0,t.cleanPatches=function(e){var t=[],n=(0,o.arrayFilter)(e,function(e){return!/[/]length/gi.test(e.path)&&!!i(e.path)});return n=(0,o.arrayMap)(n,function(e){var t=i(e.path);return e.row=t.row,e.col=t.col,e}),n=(0,o.arrayFilter)(n,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,n},t.parsePath=i;var o=n(3);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=r(t,3),o=n[1],i=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(i)?parseInt(i,10):i}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),r=n(13),i=n(2),a=n(9),s=n(14);function l(e){return(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})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g="htSearchResult",v=function(e,t,n,o,r){e.getCellMeta(t,n).isSearchResult=r},y=function(e,t){return!((0,s.isUndefined)(e)||null===e||!e.toLowerCase||0===e.length)&&(!(0,s.isUndefined)(t)&&null!==t&&-1!==t.toString().toLowerCase().indexOf(e.toLowerCase()))},m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=f(this,d(t).call(this,e))).callback=v,n.queryMethod=y,n.searchResultClass=g,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,o.default),function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().search;this.updatePluginSettings(n),this.addHook("beforeRenderer",function(){return e.onBeforeRenderer.apply(e,arguments)}),h(d(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,n=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",n),this.hot.addHookOnce("afterRender",function(){e.hot.removeHook("beforeRenderer",n)}),h(d(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),h(d(t.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),r=this.hot.countRows(),i=this.hot.countCols(),s=[],l=this.hot;return(0,a.rangeEach)(0,r-1,function(r){(0,a.rangeEach)(0,i-1,function(i){var a=t.hot.getDataAtCell(r,i),u=t.hot.getCellMeta(r,i),c=u.search.callback||n,f=(u.search.queryMethod||o)(e,a);if(f){var h={row:r,col:i,data:a};s.push(h)}c&&c(l,r,i,a,f)})}),s}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){(0,i.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,o,r,i){var a,s=i.className||[],l=[];"string"==typeof s?l=s.split(" "):(a=l).push.apply(a,u(s));this.isEnabled()&&i.isSearchResult?l.includes(this.searchResultClass)||l.push("".concat(this.searchResultClass)):l.includes(this.searchResultClass)&&l.splice(l.indexOf(this.searchResultClass),1),i.className=l.join(" ")}},{key:"destroy",value:function(){h(d(t.prototype),"destroy",this).call(this)}}]),t}();(0,r.registerPlugin)("search",m);var w=m;t.default=w},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(1),r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),a=n(13),s=n(47);function l(e){return(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})(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,h(t).call(this,e))).scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,i.default),function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(t,[{key:"isEnabled",value:function(){return(0,s.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),f(h(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,f(h(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){f(h(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,r=e.topLeftCornerOverlay,i=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),r&&this.scrollbars.push(r),i&&i.clone&&this.scrollbars.push(i),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),r&&this.clones.push(r.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,r.arrayEach)(this.clones,function(e){(0,o.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,r.arrayEach)(this.clones,function(e){(0,o.removeClass)(e,"hide-tween"),(0,o.addClass)(e,"show-tween")}),setTimeout(function(){(0,r.arrayEach)(e.clones,function(e){(0,o.removeClass)(e,"show-tween")})},400),(0,r.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),t}();(0,a.registerPlugin)("touchScroll",p);var g=p;t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),r=n(3),i=n(9),a=n(2),s=n(18),l=n(30);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&"MergeCells"!==n&&t.done(new y.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,o){if("UndoRedo.undo"!==o&&"UndoRedo.undo"!==o&&"auto"!==o){var r=new y.CreateRowAction(e,n);t.done(r)}}),e.addHook("beforeRemoveRow",function(n,o,r,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var s=t.instance.getSourceDataArray(),l=(s.length+n)%s.length,u=e.toPhysicalRow(l),c=(0,a.deepClone)(s.slice(u,u+o));t.done(new y.RemoveRowAction(l,c))}}),e.addHook("afterCreateCol",function(e,n,o){"UndoRedo.undo"!==o&&"UndoRedo.redo"!==o&&"auto"!==o&&t.done(new y.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,o,r,a){if("UndoRedo.undo"!==a&&"UndoRedo.redo"!==a&&"auto"!==a){var s=t.instance.getSourceDataArray(),l=(t.instance.countCols()+n)%t.instance.countCols(),u=[],c=[],f=[];(0,i.rangeEach)(s.length-1,function(t){var n=[],r=s[t];(0,i.rangeEach)(l,l+(o-1),function(t){n.push(r[e.runHooks("modifyCol",t)])}),u.push(n)}),(0,i.rangeEach)(o-1,function(t){f.push(e.runHooks("modifyCol",l+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,i.rangeEach)(o-1,function(t){c.push(e.getSettings().colHeaders[e.runHooks("modifyCol",l+t)]||null)});var h=t.instance.getPlugin("manualColumnMove"),d=h.isEnabled()?h.columnsMapper.__arrayMap:[],p=new y.RemoveColumnAction(l,f,u,c,d);t.done(p)}}),e.addHook("beforeCellAlignment",function(e,n,o,r){var i=new y.CellAlignmentAction(e,n,o,r);t.done(i)}),e.addHook("beforeFilter",function(e){t.done(new y.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){!1!==e&&t.done(new y.RowMoveAction(e,n))}),e.addHook("beforeMergeCells",function(n,o){o||t.done(new y.MergeCellsAction(e,n))}),e.addHook("afterUnmergeCells",function(n,o){o||t.done(new y.UnmergeCellsAction(e,n))})}y.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},y.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,a.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,function(){o.ignoreNewActions=!1,o.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},y.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,a.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,function(){o.ignoreNewActions=!1,o.doneActions.push(e)}),n.runHooks("afterRedo",t)}},y.prototype.isUndoAvailable=function(){return this.doneActions.length>0},y.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},y.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},y.Action=function(){},y.Action.prototype.undo=function(){},y.Action.prototype.redo=function(){},y.ChangeAction=function(e){this.changes=e,this.actionType="change"},(0,a.inherit)(y.ChangeAction,y.Action),y.ChangeAction.prototype.undo=function(e,t){for(var n=(0,a.deepClone)(this.changes),o=e.countEmptyRows(!0),r=e.countEmptyCols(!0),i=0,s=n.length;i<s;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var l=0,u=n.length;l<u;l++)e.getSettings().minSpareRows&&n[l][0]+1+e.getSettings().minSpareRows===e.countRows()&&o===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[l][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[l][1]+1+e.getSettings().minSpareCols===e.countCols()&&r===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[l][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},y.ChangeAction.prototype.redo=function(e,t){for(var n=(0,a.deepClone)(this.changes),o=0,r=n.length;o<r;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},y.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,a.inherit)(y.CreateRowAction,y.Action),y.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&this.index-o<n&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},y.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},y.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,a.inherit)(y.RemoveRowAction,y.Action),y.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},y.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},y.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,a.inherit)(y.CreateColumnAction,y.Action),y.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},y.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},y.RemoveColumnAction=function(e,t,n,o,r){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=r.slice(0),this.actionType="remove_col"},(0,a.inherit)(y.RemoveColumnAction,y.Action),y.RemoveColumnAction.prototype.undo=function(e,t){var n,o=this,a=this.indexes.slice(0).sort(),s=function(e,t,n){return n[o.indexes.indexOf(a[t])]},l=[];(0,i.rangeEach)(this.data.length-1,function(e){l[e]=(0,r.arrayMap)(o.data[e],s)});var u;u=(0,r.arrayMap)(this.headers,s);var c=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,i.rangeEach)(this.data.length-1,function(t){n=e.getSourceDataAtRow(t),(0,i.rangeEach)(a.length-1,function(e){n.splice(a[e],0,l[t][e]),c.push([t,a[e],null,l[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(c),void 0!==this.headers&&(0,i.rangeEach)(u.length-1,function(t){e.getSettings().colHeaders.splice(a[t],0,u[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},y.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},y.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o},y.CellAlignmentAction.prototype.undo=function(e,t){var n=this;(0,r.arrayEach)(this.range,function(t){for(var o=t.from,r=t.to,i=o.row;i<=r.row;i+=1)for(var a=o.col;a<=r.col;a+=1)e.setCellMeta(i,a,"className",n.stateBefore[i][a]||" htLeft")}),e.addHookOnce("afterRender",t),e.render()},y.CellAlignmentAction.prototype.redo=function(e,t){(0,l.align)(this.range,this.type,this.alignment,function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),e.addHookOnce("afterRender",t),e.render()},y.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,a.inherit)(y.FiltersAction,y.Action),y.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},y.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var m=function(e){function t(e,n){var o;return c(this,t),(o=d(this,p(t).call(this))).cellRange=n,o.rangeData=e.getData(n.from.row,n.from.col,n.to.row,n.to.col),o}return g(t,y.Action),h(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.populateFromArray(this.cellRange.from.row,this.cellRange.from.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange)}}]),t}();y.MergeCellsAction=m;var w=function(e){function t(e,n){var o;return c(this,t),(o=d(this,p(t).call(this))).cellRange=n,o}return g(t,y.Action),h(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),t}();function b(){void 0===this.getSettings().undo||this.getSettings().undo?this.undoRedo||(this.undoRedo=new y(this),function(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}(this),this.addHook("beforeKeyDown",C),this.addHook("afterChange",S)):this.undoRedo&&(delete this.undoRedo,function(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}(this),this.removeHook("beforeKeyDown",C),this.removeHook("afterChange",S))}function C(e){(e.ctrlKey||e.metaKey)&&!e.altKey&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(this.undoRedo.redo(),(0,s.stopImmediatePropagation)(e)):90===e.keyCode&&(this.undoRedo.undo(),(0,s.stopImmediatePropagation)(e)))}function S(e,t){if("loadData"===t)return this.undoRedo.clear()}y.UnmergeCellsAction=w,y.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,a.inherit)(y.RowMoveAction,y.Action),y.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.rows[0]<this.target?-1*this.rows.length:0,r=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],i=[],a=this.rows.length+o,s=o;s<a;s+=1)i.push(this.target+s);n.moveRows(i.slice(),r),e.render(),e.selectCell(this.rows[0],0,this.rows[this.rows.length-1],e.countCols()-1,!1,!1)},y.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selectCell(o,0,o+this.rows.length-1,e.countCols()-1,!1,!1)};var _=o.default.getSingleton();_.add("afterInit",b),_.add("afterUpdateSettings",b),_.register("beforeUndo"),_.register("afterUndo"),_.register("beforeRedo"),_.register("afterRedo");var E=y;t.default=E}]).default}); 42